[opensuse-kernel] getting btrfs to find & assemble raid array on boot?
i'm working on using btrfs with our newer kernels. atm i've, uname -a Linux test 2.6.37.1-4-xen #1 SMP 2011-02-20 11:37:34 +0100 x86_64 x86_64 x86_64 GNU/Linux lsb_release -d Description: openSUSE 11.3 (x86_64) chatting @ #btrfs, 1st order of business was an up-to-date version of btrfs progs: zypper rm btrfsprogs git clone git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs-unstable.git cd /usr/local/src/btrfs-progs-unstable make -j5 make install rehash btrfs --help | grep "Btrfs v" Btrfs v0.19-35-g1b444cd with that, mkfs.btrfs -L BTRFS_POOL -m raid10 -d raid10 /dev/sd[abcd] btrfs fi show Label: none uuid: d45db479-5447-3ac8-80db-6464a381d3a5 Total devices 4 FS bytes used 28.00KB devid 1 size 931.51GB used 2.03GB path /dev/sda devid 2 size 931.51GB used 2.01GB path /dev/sdb devid 3 size 931.51GB used 2.01GB path /dev/sdc devid 4 size 931.51GB used 2.01GB path /dev/sdd mount /dev/sda /mnt df -h | grep /mnt /dev/sda 3.7T 40K 3.7T 1% /mnt btrfs fi df /mnt Data, RAID10: total=2.00GB, used=0.00 Data: total=8.00MB, used=0.00 System, RAID10: total=16.00MB, used=4.00KB System: total=4.00MB, used=0.00 Metadata, RAID10: total=2.00GB, used=8.00KB Metadata: total=8.00MB, used=16.00KB which is all fine. on reboot, iiuc, btrfs module is supposed to find & auto-assemble the array. but, shutdown -r now btrfs fi show Btrfs v0.19-35-g1b444cd fdisk -l | grep /dev/sd | grep GB Disk /dev/sda: 1000.2 GB, 1000204886016 bytes Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes btrfs device scan Scanning for Btrfs filesystems btrfs fi show Btrfs v0.19-35-g1b444cd so the disks are there, but seemingly btrfs array metadata is not found ... recreating, mkfs.btrfs -L BTRFS_POOL -m raid10 -d raid10 /dev/sd[abcd] btrfs fi show Label: 'BTRFS_POOL' uuid: fe927b40-8fe1-430f-ae72-fbe8f1292b4b Total devices 4 FS bytes used 28.00KB devid 1 size 931.51GB used 2.03GB path /dev/sda devid 2 size 931.51GB used 2.01GB path /dev/sdb devid 3 size 931.51GB used 2.01GB path /dev/sdc devid 4 size 931.51GB used 2.01GB path /dev/sdd Btrfs v0.19-35-g1b444cd all's again in existence -- noting, of course, the new/different UUID. unclear whether whatever info btrfs needs to find & autoassemble the array is missing in my conf/process, in initrd, in kernel, init scripts, etc. any guidance? thanks -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
participants (1)
-
dev001x