Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] mdadm and superblock
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
BlueFusion
Guru
Guru


Joined: 08 Mar 2006
Posts: 371

PostPosted: Wed Aug 10, 2011 2:49 pm    Post subject: [solved] mdadm and superblock Reply with quote

I am experimenting for the first time with mdadm RAID 0 as my rootfs on my HTPC. I have a problem with fsck and tune2fs. Neither of those programs can read the superblock. When I try I get this error:

Quote:
phoenix ~ # tune2fs -l /dev/md0
tune2fs 1.41.12 (17-May-2010)
tune2fs: Filesystem revision too high while trying to open /dev/md0
Couldn't find valid filesystem superblock.


But the filesystem is mounted and works fine as far as I can tell. What gives? Am I missing a silly little step somewhere?

Code:
Filesystem            Size  Used Avail Use% Mounted on
rootfs                284G  2.7G  267G   1% /
udev                   10M  332K  9.7M   4% /dev
/dev/md0              284G  2.7G  267G   1% /
rc-svcdir             1.0M   92K  932K   9% /lib64/rc/init.d
shm                  1005M     0 1005M   0% /dev/shm
none                  512M   12K  512M   1% /tmp


Quote:
phoenix ~ # emerge --info
Portage 2.1.10.3 (unavailable, gcc-4.4.5, glibc-2.12.2-r0, 2.6.39-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r3-x86_64-Intel-R-_Pentium-R-_D_CPU_3.20GHz-with-gentoo-2.0.3
Timestamp of tree: Unknown
dev-lang/python: 2.7.1-r1::gentoo, 3.1.3-r1::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.68::gentoo
sys-devel/automake: 1.11.1::gentoo
sys-devel/binutils: 2.20.1-r1::gentoo
sys-devel/libtool: 2.4-r1::gentoo
sys-kernel/linux-headers: 2.6.36.1::gentoo (virtual/os-headers)
Repositories: x-portage
ACCEPT_LICENSE="*"
CFLAGS="-O2 -march=nocona -mtune=generic -msse3 -mfpmath=sse -mcx16 --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=1024 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=nocona -mtune=generic -msse3 -mfpmath=sse -mcx16 --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=1024 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://area51/gentoo-portage"
USE="64bit X a52 aac acpi aim alsa amarok bitmap-fonts cairo cdr cups dbus device-mapper divx dri dts dvd dvdr dvdread esd fam ffmpeg firefox gif glitz gnutls gstreamer gtk gtk2 hddtemp java javascript jpeg kde lame libnotify lm_sensors logitech-mouse lzo mad matroska mmap mmx mmxext mp3 mpeg mplayer nptl nsplugin nvidia offensive openal opengl pdf phonon plasma png ppds qt3support qt4 quicktime real sdl smp spell sse sse2 sse3 ssl startup-notification svg symlink threads tiff truetype truetype-fonts type1-fonts udev usb vdpau vidix x264 xine xpm xv xvid"
Unset: ACCEPT_KEYWORDS, EMERGE_DEFAULT_OPTS, PORTAGE_BUNZIP2_COMMAND

_________________
i7-940 2.93Ghz | ASUS P6T Deluxe (v.1) | 24GB Triple Channel RAM | nVidia GTX660
4x 4TB Seagate NAS HDD (Btrfs raid5) | 2x 120GB Samsung 850 EVO SSD (Btrfs raid1)


Last edited by BlueFusion on Wed Aug 10, 2011 11:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
BlueFusion
Guru
Guru


Joined: 08 Mar 2006
Posts: 371

PostPosted: Wed Aug 10, 2011 3:27 pm    Post subject: Reply with quote

I forgot the output of mdadm. Here it is.

[cquote]phoenix ~ # mdadm --detail --scan
mdadm: /dev/.tmp.md0 is an invalid name for an md device - ignored.
ARRAY /dev/md0 metadata=0.90 UUID=9ac131d1:4ab9c23d:78a9b883:5f5f67d5
mdadm: cannot open /dev/md/Gentoo-11:0: No such file or directory[/quote]

I don't know what the first and last line errors are all about. I set up the RAID array using the Gentoo 11 LiveDVD and not sure if that screwed something up.

Also, auto detection does not work. The 2 partitions are set up as the fd partition type, I used version 0.90 for the RAID version, and mdadm is included in the initrd that genkernel made.

I really need to get this running ASAP.
_________________
i7-940 2.93Ghz | ASUS P6T Deluxe (v.1) | 24GB Triple Channel RAM | nVidia GTX660
4x 4TB Seagate NAS HDD (Btrfs raid5) | 2x 120GB Samsung 850 EVO SSD (Btrfs raid1)
Back to top
View user's profile Send private message
BlueFusion
Guru
Guru


Joined: 08 Mar 2006
Posts: 371

PostPosted: Wed Aug 10, 2011 6:40 pm    Post subject: Reply with quote

I got the auto detection on boot up working. I overlooked the "domdraid" kernel option in grub.conf.

I also used gparted instead of fdisk to redo the partitions and reformatted everything and it seems to be working now. I have no idea what was wrong before, but I am happy so far....
_________________
i7-940 2.93Ghz | ASUS P6T Deluxe (v.1) | 24GB Triple Channel RAM | nVidia GTX660
4x 4TB Seagate NAS HDD (Btrfs raid5) | 2x 120GB Samsung 850 EVO SSD (Btrfs raid1)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum