From Fedora Project Wiki

 
Line 10: Line 10:
</noinclude>
</noinclude>
<includeonly>| </includeonly>
<includeonly>| </includeonly>
# Create an ext4 partition
# Create an ext2, ext3 or ext4 volume and mount it
# Dump some data on it (large and small files)
# Dump some data on it (large and small files)
# yum install btrfs-progs
# unmount the volume you intent to convert
# unmount the ext4 filesystem to be migrated
# dnf install btrfs-progs
# Run btrfs-convert on the partition
# Run btrfs-convert on the partition containing the target file system
# Mount partition
# Mount partition
# Verify if files are still a) present and b) sane.
# Verify if files are still a) present and b) sane.
# Verify if a backup snapshot is created (TODO:  Verify that this is default behavior)
# Verify if a backup snapshot, named ext2_saved.


<noinclude>
<noinclude>

Latest revision as of 16:33, 17 March 2017

Description

Migrating a filesystem from Ext4 (or other) to btrfs. NOTE: Convert has been rewritten since btrfs-progs 4.6; and rollback has been reworked in btrfs-progs 4.10.1. See https://btrfs.wiki.kernel.org/index.php/Conversion_from_Ext3 for more info.


How to test

  1. Create an ext2, ext3 or ext4 volume and mount it
  2. Dump some data on it (large and small files)
  3. unmount the volume you intent to convert
  4. dnf install btrfs-progs
  5. Run btrfs-convert on the partition containing the target file system
  6. Mount partition
  7. Verify if files are still a) present and b) sane.
  8. Verify if a backup snapshot, named ext2_saved.


Expected Results

  1. btrfs-progs install successfully
  2. btrfs-convert runs successfully
  3. Data should be present and sane