Bug 30285 - btrfs-convert is missing a dependency
Summary: btrfs-convert is missing a dependency
Status: RESOLVED INVALID
Alias: None
Product: Infrastructure
Classification: Unclassified
Component: BuildSystem (show other bugs)
Version: unspecified
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Sysadmin Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-13 16:20 CEST by Lloyd Osten
Modified: 2022-04-17 04:58 CEST (History)
1 user (show)

See Also:
Source RPM: btrfs*
CVE:
Status comment:


Attachments

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


Note You need to log in before you can comment on or make changes to this bug.