Bug 30285

Summary: btrfs-convert is missing a dependency
Product: Infrastructure Reporter: Lloyd Osten <lloyd.osten>
Component: BuildSystemAssignee: Sysadmin Team <sysadmin-bugs>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: sysadmin-bugs
Version: unspecified   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: btrfs* CVE:
Status comment:

Description Lloyd Osten 2022-04-13 16:20:09 CEST
Description of problem:

btrfs-convert appears to be missing a dependency


Version-Release number of selected component (if applicable): 

btrfs---updated to latest version for Mageia 8 x86-64


How reproducible:every time


Steps to Reproduce:
1.First, I used btrfs-convert (as root) to convert an ext4 partition
./usr/sbin/btrfs-convert /dev/sda1
That went ok. It takes a while to create the image file

2. The next step was to reboot.

3. On rebooting, the system would only boot into emergency mode. Some error messages came up:

First error message says the drive "timed out." (btrfs also gave the drive a new UUID)

Second error message said "DEPEND", which I assume means a dependency is missing, even though I have installed every RPM related to btrfs. It doesn't say exactly what dependency is missing. I rebooted more than once. Same thing happens every time.

On a positive note, btrfs-convert can be rolled back to the original (ext4) configuration. I tried that. It worked perfectly and took less than 5 seconds
Comment 1 Thomas Backlund 2022-04-13 16:43:11 CEST
If you converted the filesystem, you need to adjust

/etc/fstab

to match and recreate the initrd so the fstab in initrd gets updated too
Comment 2 sturmvogel 2022-04-17 04:58:37 CEST
As pointed out by Thomas, you'd miss to mount the new partition/remove the old partition from fstab. There is plenty of information and tutorials/howtos available in internet how to do proper filesystem conversion. As example here:
https://fedoramagazine.org/convert-your-filesystem-to-btrfs/
or
https://www.thegeekdiary.com/how-to-convert-ext-file-systems-to-btrfs/
or
...

Closing this bug as INVALID

Status: NEW => RESOLVED
Resolution: (none) => INVALID