Testing btrfs for the first time to see if I can use it for a specific project.
I'm working in a virtual machine.
Created a volume with these 3 small and random sized disks.
mkfs.btrfs -d single /dev/sdb /dev/sdc /dev/sdd mount /dev/sdb /mnt/data
Added another device just to test
btrfs device add /dev/sde /mnt/data
Created a bunch of 1GB files to fill up the disks
dd if=/dev/urandom of=1GB_07.bin bs=64M count=16 iflag=fullblock
I removed one of the disks from the VM and rebooted
I was able to force mount in read only mode
mount -ro degraded /dev/sdb /mnt/data
I can see all of the files. I tried to rsync them to a different directory and could not copy one of the 1G files I created. Makes sense, it's on the missing disk!
From here, is there a way to just "trash" the missing disk and files that were on it and have things running in read/write mode again? I'm just trying to piece together a box with a bunch of random sized disks. Redundancy isn't important to me here and I don't want the overhead of mirroring data on this box.
If I lose a drive with some data on it, I want to just replace/remove it and re-rsync from the source to get new copies of the missing files on the BTRFS machine.
Does that make sense? Is this possible?