From Fedora Project Wiki
Chrismurphy (talk | contribs) |
Chrismurphy (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
</noinclude> | </noinclude> | ||
<includeonly>| </includeonly> | <includeonly>| </includeonly> | ||
Migrating a filesystem from Ext4 (or other) to btrfs. NOTE: | 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. | |||
<noinclude> | <noinclude> | ||
Line 10: | Line 10: | ||
</noinclude> | </noinclude> | ||
<includeonly>| </includeonly> | <includeonly>| </includeonly> | ||
# Create an ext4 | # 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) | ||
# | # unmount the volume you intent to convert | ||
# 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 | # 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
- Create an ext2, ext3 or ext4 volume and mount it
- Dump some data on it (large and small files)
- unmount the volume you intent to convert
- dnf install btrfs-progs
- Run btrfs-convert on the partition containing the target file system
- Mount partition
- Verify if files are still a) present and b) sane.
- Verify if a backup snapshot, named ext2_saved.
Expected Results
- btrfs-progs install successfully
- btrfs-convert runs successfully
- Data should be present and sane