Hi,
I've recently converted an ext4 filesystem with 2.5TB of data to btrfs and I would like to have that data, now residing in the root of the filesystem (subvolid 0) in a subvolume so the subvolume can be snapshotted on a regular basis.
I'm new to using Btrfs and I'd like some opinion on the best way to move this data and I haven't found any specific info on standard practice in this situation after the usual flurry of Google searches etc.
So would it be necessary to create a subvolume and move the data from the filesystem to the subvolume? aka;
Code:
# btrfs subvolume create /mnt/subvol1
# mv /mnt/dir1 /mnt/dir2 /mnt/dir3 /mnt/subvol1/
... which will take
ages.
Or is it just as valid to create a rw snapshot, delete the data above the snapshot path, and use that subvolume as my data filesystem going forward, aka;
Code:
# btrfs subvolume snapshot /mnt /mnt/subvol1
# rm -rf /mnt/dir1 /mnt/dir2 /mnt/dir3
# umount /mnt
# mount -o subvol=subvol1 /dev/sdb /mnt
... which will take no time at all.
Opinions?
Thanks in advance.