[Bug 829594] New: Installation by using btrfs with an existing root partition that uses multiple devices will always fail
https://bugzilla.novell.com/show_bug.cgi?id=829594 https://bugzilla.novell.com/show_bug.cgi?id=829594#c0 Summary: Installation by using btrfs with an existing root partition that uses multiple devices will always fail Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: All OS/Version: openSUSE 12.3 Status: NEW Severity: Normal Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: kingleo@gmx.at QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0 I'm using btrfs since 12.1 with multiple devices (raid0) and tried upgrading my system to 12.3. I always run into this error: Failure during the following action: Formatting Btrfs volume of size 9.32 GB (used devides:/dev/sda3 /dev/sda2) System error code was: -3042 /sbin/btrf device add '/dev/sda2' /tmp/libstorage-WHUF95/tmp-mplu3yoB: /dev/sda2 is mounted Reproducible: Always Steps to Reproduce: 1. create a blank disk, add some partitions eg 3 partisions /dev/sda1, /dev/sda3, /dev/sda3, all of type linux I've choosen the 12.3 rescue system for this work. 2. format mkfs.ext4 /dev/sda1 mkfs.btrfs /dev/sda1 /dev/sda2 /mnt mount /mnt umount /mnt 3. reboot and choose install go throu the installer, choose manual partition, now choose the ext4 Partition as /boot device and the btrfs partition as / continue with the installer and try to install I've also tried creating a regular 12.1 installation, by using btrfs as / filesystem, without multiple devices. After the installation is completet, I added 2 btrfs partitions to the / filesystem. btrfs add /dev/sda3 / Then I've tried to install a 12.3 system. No upgrade, I've just imported the /etc/fstab. This will also run into the same error. Actual Results: Failure during the following action: Formatting Btrfs volume of size 9.32 GB (used devides:/dev/sda3 /dev/sda2) System error code was: -3042 /sbin/btrf device add '/dev/sda2' /tmp/libstorage-WHUF95/tmp-mplu3yoB: /dev/sda2 is mounted -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=829594
https://bugzilla.novell.com/show_bug.cgi?id=829594#c
Ye Yuan
https://bugzilla.novell.com/show_bug.cgi?id=829594
https://bugzilla.novell.com/show_bug.cgi?id=829594#c
Alberto Planas Dominguez
https://bugzilla.novell.com/show_bug.cgi?id=829594
https://bugzilla.novell.com/show_bug.cgi?id=829594#c1
David Sterba
2. format mkfs.ext4 /dev/sda1 mkfs.btrfs /dev/sda1 /dev/sda2 /mnt
Choosing the same device for 2 filesystems (sda1) will not work.
mount /mnt umount /mnt
3. reboot and choose install go throu the installer, choose manual partition, now choose the ext4 Partition as /boot device and the btrfs partition as / continue with the installer and try to install
I've also tried creating a regular 12.1 installation, by using btrfs as / filesystem, without multiple devices. After the installation is completet, I added 2 btrfs partitions to the / filesystem. btrfs add /dev/sda3 / Then I've tried to install a 12.3 system. No upgrade, I've just imported the /etc/fstab. This will also run into the same error. Actual Results: Failure during the following action: Formatting Btrfs volume of size 9.32 GB (used devides:/dev/sda3 /dev/sda2)
System error code was: -3042
/sbin/btrf device add '/dev/sda2' /tmp/libstorage-WHUF95/tmp-mplu3yoB: /dev/sda2 is mounted
Does this mean you've tried to add sda2 to a mounted filesystem that is contains sda2? Looks like it from the log output above. Besides, yast does not support multiple btrfs devices, which by itself is not not a supported setup with opensuse (yet). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=829594
https://bugzilla.novell.com/show_bug.cgi?id=829594#c2
--- Comment #2 from Martin Oberzalek
Choosing the same device for 2 filesystems (sda1) will not work.
Sorry that was a typo 2. format mkfs.ext4 /dev/sda1 mkfs.btrfs /dev/sda2 /dev/sda3 /mnt mount /mnt umount /mnt
Failure during the following action: Formatting Btrfs volume of size 9.32 GB (used devides:/dev/sda3 /dev/sda2)
System error code was: -3042
/sbin/btrf device add '/dev/sda2' /tmp/libstorage-WHUF95/tmp-mplu3yoB: /dev/sda2 is mounted
Does this mean you've tried to add sda2 to a mounted filesystem that is contains sda2? Looks like it from the log output above.
I've tried to add sda2 as root partition. (I've not chosen it twice). Yast is doing this. Maybe yast is scanning the partitions and some subsystem is reporting /dev/sda3 and /dev/sda2 are btrf partitions. So yast is trying to mount first /dev/sda3 and then /dev/sda2. Which will result into this error. /dev/sda2 will also be mounted automatically, when yast is mounting /dev/sda3. Since the log is telling us first /dev/sda3 and then /dev/sda2 I guess I'm right.
Formatting Btrfs volume of size 9.32 GB (used devides:/dev/sda3 /dev/sda2)
Besides, yast does not support multiple btrfs devices
But you can create it. Or you will run into it during a upgrade process, like me.
which by itself is not not a supported setup with opensuse (yet).
Right! Not Yet! :-) But since btrf should become the next generation filesystem, someone should keep an eye on this feature. In future releases this better should work. Especially for buisness usage creating raids is very common. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com