[liveuser@eos-2020.07.15 ~]$ sudo btrfs filesystem show /mnt
Label: none uuid: 2d127164-f2f7-48a4-9a3e-49e32b1d1109
Total devices 1 FS bytes used 7.50GiB
devid 1 size 110.75GiB used 9.02GiB path /dev/sda4
EDIT: Just saw your own edit. When I tried running btrfs device add /dev/sdb4 /home
it didn’t work properly and got me the following error:
[liveuser@eos-2020.07.15 ~]$ sudo btrfs device add /dev/sdb4 /home
ERROR: not a btrfs filesystem: /home
Do I need to be booted into new system and just flatout ignore the rest of the guide? I’m a little confused.
EDIT 2: It seems like I may have screwed myself. I force-mounted sdb4 and then reformatted as unformatted, as that’s what the guide you just linked called for, and now I think if I go further I’ll break something. I need to figure out how to remove the drive, format it back to btrfs, and go back to following the first guide.
Everything I did
[liveuser@eos-2020.07.15 ~]$ sudo btrfs device add /dev/sdb4 /mnt -f
[liveuser@eos-2020.07.15 ~]$ ls /etc/fstab
/etc/fstab
[liveuser@eos-2020.07.15 ~]$ btrfs filesystem show /mnt
ERROR: cannot open /dev/sda4: Permission denied
ERROR: not a valid btrfs filesystem: /mnt
[liveuser@eos-2020.07.15 ~]$ sudo btrfs filesystem show /mnt
Label: none uuid: 2d127164-f2f7-48a4-9a3e-49e32b1d1109
Total devices 2 FS bytes used 7.50GiB
devid 1 size 110.75GiB used 9.02GiB path /dev/sda4
devid 2 size 110.75GiB used 0.00B path /dev/sdb4
[liveuser@eos-2020.07.15 ~]$ sudo btrfs device add /dev/sdb4 /home
ERROR: not a btrfs filesystem: /home
[liveuser@eos-2020.07.15 ~]$ sudo btrfs device remove /dev/sdb4 /mnt -f
ERROR: cannot access '-f': No such file or directory
[liveuser@eos-2020.07.15 ~]$ sudo btrfs device remove /dev/sdb4 /mnt
ERROR: error removing device '/dev/sdb4': Invalid argument
[liveuser@eos-2020.07.15 ~]$ btrfs filesystem show /mnt
ERROR: cannot open /dev/sda4: Permission denied
ERROR: not a valid btrfs filesystem: /mnt
[liveuser@eos-2020.07.15 ~]$ sudo btrfs filesystem show /mnt
Label: none uuid: 2d127164-f2f7-48a4-9a3e-49e32b1d1109
Total devices 2 FS bytes used 7.50GiB
devid 1 size 110.75GiB used 9.02GiB path /dev/sda4
devid 2 size 110.75GiB used 0.00B path /dev/sdb4
[liveuser@eos-2020.07.15 ~]$ sudo btrfs device remove /dev/sdb4 /mnt
ERROR: error removing device '/dev/sdb4': Invalid argument
[liveuser@eos-2020.07.15 ~]$ sudo btrfs device remove /dev/sdb4
btrfs device remove: not enough arguments: 1 but at least 2 expected
[liveuser@eos-2020.07.15 ~]$ sudo btrfs device remove /dev/sdb4 /mnt
ERROR: error removing device '/dev/sdb4': Invalid argument
[liveuser@eos-2020.07.15 ~]$ man btrfs
[liveuser@eos-2020.07.15 ~]$ sudo btrfs device /dev/sdb4 /mnt
btrfs device: unknown token '/dev/sdb4'
usage: btrfs device <command> [<args>]
btrfs device add [options] <device> [<device>...] <path>
Add one or more devices to a mounted filesystem.
btrfs device delete <device>|<devid> [<device>|<devid>...] <path>
btrfs device remove <device>|<devid> [<device>|<devid>...] <path>
Remove a device from a filesystem
btrfs device scan [-d|--all-devices] <device> [<device>...]
btrfs device scan -u|--forget [<device>...]
Scan or forget (unregister) devices of btrfs filesystems
btrfs device ready <device>
Check and wait until a group of devices of a filesystem is ready for mount
btrfs device stats [options] <path>|<device>
Show device IO error statistics
btrfs device usage [options] <path> [<path>..]
Show detailed information about internal allocations in devices.
manage and query devices in the filesystem
[liveuser@eos-2020.07.15 ~]$ sudo btrfs device delete /dev/sdb4 /mnt
ERROR: error removing device '/dev/sdb4': Invalid argument
[liveuser@eos-2020.07.15 ~]$ sudo btrfs device remove /dev/sdb4 /mnt
ERROR: error removing device '/dev/sdb4': Invalid argument
Sorry for my slow responses. I’ve been doing other things because I’m just so discouraged by this falling apart at the last possible moment. Anyway, regardless of if I try to reformat it back to btrfs with gparted, or run that command, I get the same error:
ERROR: unable to open /dev/sdb4: Device or resource busy
EDIT: Fixed it! I had to restart and boot back into the live iso. I’ve successfully ran the following:
We did it! I’ve successfully restarted into then new environment. We’re all done, for the most part. All that’s left to do now(maybe) is to clean things up a bit. Everything works, RAID 0 works perfectly, but you can also see the drives individually as well as combined.
If that’s not something that can be fixed, I really don’t care. I am so happy! I never thought I’d actually be able to pull this off. Thank you guys so much!
Okay so now you have to explain exactly how to do it. I have 2 500 GB nvme drives on my system i could try it. Not sure i want to go through all of it though.
Would be great to have a wiki about it, lot of users asking for it.
Maybe @killbotvii you could show a screenshoot of your GParted from raid to see the final schema ?
I would try it maybe but i would be starting also from scratch. Since i already have EndeavourOS installed then i would be wiping it out and changing the partioning to btrfs and reinstalling and setting up raid 0 or 1?
I have never actually installed it myself. I just read stuff about mdadm. I’m not sure how he installed it as i wasn’t following. I know it’s raid 1 but is he using encryption? (luks) or not? and also lvm? or just btrfs with raid 1 and does that give it the ability to do snapshots? Or is it just btrfs and raid 1 without any fancy stuff.
usage: btrfs device <command> [<args>]
btrfs device add [options] <device> [<device>...] <path>
Add one or more devices to a mounted filesystem.
btrfs device delete <device>|<devid> [<device>|<devid>...] <path>
btrfs device remove <device>|<devid> [<device>|<devid>...] <path>
Remove a device from a filesystem
btrfs device scan [-d|--all-devices] <device> [<device>...]
btrfs device scan -u|--forget [<device>...]
Scan or forget (unregister) devices of btrfs filesystems
btrfs device ready <device>
Check and wait until a group of devices of a filesystem is ready for mount
btrfs device stats [options] <path>|<device>
Show device IO error statistics
btrfs device usage [options] <path> [<path>..]
Show detailed information about internal allocations in devices.