Questions about Btrfs
by lucmove from LinuxQuestions.org on (#6CMAM)
I've been reading a lot of documentation and a few points are still not sufficiently clear to me:
(Note: I use "directories" and "subvolumes" interchangeably in this topic.)
1. I understand that if I enable snapshots for a directory (say /), its subdirectories (say /home) will not be included in the snapshots. I understand that one benefit of it is to be able to snapshot the parent directory without affecting the subdirectories. But, apart from the /home and /var specific cases, is there any other situation where this is really a benefit?
1b. Short of enabling snapshots for each subdirectory (sub-subvolume?) individually, is there a way to include all subdirectories if I want to?
1c. Would there be some benefit in never using mkdir again, using only 'btrfs subvolume create' instead so that eventually my entire tree has subvolumes in place of old school directories? Would there be some pitfall?
2. How come moving the contents of one directory to another in the same filesystem is instantaneous while moving them from a directory to a subvolume in the same filesystem is as slow as a copy operation?
TIA
(Note: I use "directories" and "subvolumes" interchangeably in this topic.)
1. I understand that if I enable snapshots for a directory (say /), its subdirectories (say /home) will not be included in the snapshots. I understand that one benefit of it is to be able to snapshot the parent directory without affecting the subdirectories. But, apart from the /home and /var specific cases, is there any other situation where this is really a benefit?
1b. Short of enabling snapshots for each subdirectory (sub-subvolume?) individually, is there a way to include all subdirectories if I want to?
1c. Would there be some benefit in never using mkdir again, using only 'btrfs subvolume create' instead so that eventually my entire tree has subvolumes in place of old school directories? Would there be some pitfall?
2. How come moving the contents of one directory to another in the same filesystem is instantaneous while moving them from a directory to a subvolume in the same filesystem is as slow as a copy operation?
TIA