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
#Migrating btrfs to bcachefs
1 messages · Page 1 of 1 (latest)
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.
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?
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
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
Also I can’t do the rsync way since I don’t think I have enough free space
Just randomly or were you messing with it?
I thought it was stable enough unless you were doing some crazy stuff
I did make a snapshot earlier but it doesn't break normally
So I still shouldn’t use it?
How long until you think it will actually be stable?
no idea
That’s unfortunate
when it'll have complete autorepair capability maybe
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
I don't think you can do much
there's ZFS too which I think was faster than BTRFS? I'd have to find benchmarks
I think so too but weren’t there supposed to be different problems with that or is that just licensing?
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?
¯_(ツ)_/¯
I’ll do unresolved for now unless someone corrects me
took me 2 hours to get it working again
so yeah unless you're a masochist don't use it
🙏
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
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
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
Yeah one for media like games and one as the root
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
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
yep, as I said you can disable it tho
it's just not safe
I'd copy things to another drive and the format the current one with bcachefs
this way you're sure you won't lose anything