koverstreet / bcachefs

Other
671 stars 70 forks source link

How to convert ext4 to his potential sucessor bcachefs, on Linux Mint 21? #502

Open Nihon-Ryori opened 1 year ago

Nihon-Ryori commented 1 year ago

**The becachefs management software bcachefs-tools are available by Application Management of Linux Mint 21.

The follow part of the bcachefs manual, looks to try to describe a way, which offer the migration of ext4 to bcachefs.**

bcachefs migrate [options] device Migrate an existing filesystem to bcachefs

       -f fs   Root of filesystem to migrate

       --encrypted
               Enable whole filesystem encryption (chacha20/poly1305)

       --no_passphrase
               Don't encrypt master encryption key

       -F      Force, even if metadata file already exists

bcachefs migrate-superblock [options] device Create default superblock after migrating

       -d device
               Device to create superblock for

       -o offset
               Offset of existing superblock

Source:

https://web.archive.org/web/20230205130327/https://bcachefs.org/bcachefs-principles-of-operation.pdf

How to convert ext4 to his his potential successor bcachefs, on Linux Mint 21 ?

Any example exist ? Possible like the follow:

convert ext4 system to bcachefs system source /dev/sda /dev/sda

A comparable question can be found on stackexchange:

YellowOnion commented 1 year ago

The conversion is failing tests at the moment so I would wait till that is stable, see test single_device.migrate_from_ext4

https://evilpiepirate.org/~testdashboard/ci?branch=bcachefs

you can see the source code for the test here, that shows you how to use it: https://evilpiepirate.org/git/ktest.git/tree/tests/bcachefs/single_device.ktest#n1061

The gist of it seems to be run migrate on the mounted file system, then unmount and run migrate-superblock on the block device.

Nihon-Ryori commented 1 year ago

THX for the answer:

The gist of it seems to be run migrate on the mounted file system, then unmount and run migrate-superblock on the block device.

How to:

Not everybody are a programmer, which are able to figure out this from follow:

TurkeyMan commented 12 months ago

It's great that this works. Can an ext4 raid array be migrated? Raid 1? Raid 5?