#Migrating btrfs to bcachefs

1 messages · Page 1 of 1 (latest)

gilded goblet
#

I'm not really sure what I'm doing wrong but for some reason bcachefs migrate from sys-fs/bcachefs-tools does not work. I might possibly be entering something wrong but I'm not sure what. When I do bcachefs migrate -f / as root I get the error readlink error while looking up block device: No such file or directory. I've tried specifying the drive name such as /dev/sda and even the partition dev/sda1 but all I get is /dev/sda is not a filesystem root. I can provide any information that is necessary to solve the problem. I don't know if it makes a difference but my btrfs is unencrypted but I do use zstd compression. I can send my fstab options if that will help

gilded goblet
#

I would also like to add that I have 2 drives that I would like to do this for: my main rootfs drive and my media drive. No raid or anything like that.

gilded goblet
#

Yeah I’ve been reading that stuff too but I’ve been wanting to try it anyway

#

Am I supposed to be chrooting from a usb when I do this formatting?

storm raft
#

what I did was making sure half the drive's empty, making a bcachefs partition there and then copying all the files from the btrfs partition using rsync

#

didn't know there was a migrate command

#

but my advice is don't migrate

#

bcachefs still has lots of issues

#

e.g everytime you boot it'll do a very, very slow filesystem check

#

which you can skip but that's not a good idea at all

gilded goblet
#

I was hoping for better performance than what I currently have since the only btrfs feature I use is the compression but the file system check does seem annoying

storm raft
#

bcachefs has compression and good performance too

#

but you see

gilded goblet
#

Also I can’t do the rsync way since I don’t think I have enough free space

storm raft
#

2 minutes ago

#

my filesystem broke

#

I'm running a manual fsck right now

gilded goblet
#

Just randomly or were you messing with it?

#

I thought it was stable enough unless you were doing some crazy stuff

storm raft
gilded goblet
#

So I still shouldn’t use it?

storm raft
#

don't

#

unless you don't care about the issues

gilded goblet
#

How long until you think it will actually be stable?

storm raft
#

no idea

gilded goblet
#

That’s unfortunate

storm raft
gilded goblet
#

Do you know where I can find out how to maximize the performance of my btrfs partitions that I have currently then? I can’t really find that many things online for it

storm raft
#

there's ZFS too which I think was faster than BTRFS? I'd have to find benchmarks

gilded goblet
#

I think so too but weren’t there supposed to be different problems with that or is that just licensing?

storm raft
#

yeah zfs has 2 implementations

#

openzfs and zfs

gilded goblet
#

Ok I’ll look into it thanks

#

What do I put for this thread? Resolved since I’m not looking for more help or unresolved since no one had a solution to the original problem?

storm raft
#

¯_(ツ)_/¯

gilded goblet
#

I’ll do unresolved for now unless someone corrects me

storm raft
#

so yeah unless you're a masochist don't use it

#

🙏

storm raft
#

I've switched to ZFS since then

#

didn't do a migration command

#

I'm not OP

#

have you ever done snapshots though?

#

I was using compression too

gilded goblet
#

I would be fine with just my media drive being bcachefs but I'm not sure how I would do that

#

But I wouldn't want to switch if it would make my boot times much longer

gilded goblet
#

I think someone told me it does some weird checking thing everytime they boot bcachefs

#

If that was just for them then I would actually consider switching

#

Is there any way I can switch my media drive first?

#

Without deleting everything that is

gilded goblet
#

Yeah one for media like games and one as the root

gilded goblet
#

Is there a way I can do it in place? I’m not sure if I have enough space on the main drive to fit everything from both drives temporarily

gilded goblet
#

The one for root wasn’t working as I stated in the beginning of the thread and I’m not sure how to migrate a non root drive since the docs don’t really explain how to do things and I don’t want to end up wiping a drive by accident by trying out commands with random options

storm raft
#

it's just not safe

storm raft
#

this way you're sure you won't lose anything

gilded goblet
#

I can’t that’s the problem

#

Not enough free space