Contents
How do I remove Btrfs snapshot?
To delete a snapshot:
- Mount the top level of the file system, for example: # mount -o subvolid=5 /dev/mapper/vg_btrfs-lv_root /mnt.
- Change directory to the mount point and delete the snapshot.
- Change directory to / and unmount the top level of the file system.
How do I change from EXT4 to btrfs Synology?
How to easily migrate a Synology EXT4 volume to Btrfs without data loss
- Backup your data!
- Shut down the DS, remove drive 2.
- Turn the DS back on and DO NOT repair the fault volume.
- Create a new volume (SHA and Btrfs) in the Storage Manager on drive 2.
- For each shared folder, change the location to the new volume.
How to specify the subvolume path in Btrfs?
There are two ways how to specify the subvolume, by or by the path. The id can be obtained from btrfs subvolume list, btrfs subvolume show or btrfs inspect-internal rootid. Show more information about subvolume regarding UUIDs, times, generations, flags and related snapshots.
How to rename BtrFS snapshots with the same name?
If you decide you don’t need the mangled subvolume anymore you can delete it and rename the snapshot with the same name as the mangled subvolume, so you don’t have to change configuration files like /etc/stab. Use our old friend the mv command for renaming:
What to do with mangled snapshots in Btrfs?
First unmount the mangled subvolume, then mount the snapshot in its place. If you decide you don’t need the mangled subvolume anymore you can delete it and rename the snapshot with the same name as the mangled subvolume, so you don’t have to change configuration files like /etc/stab.
How to find the ID of a subvolume?
For every subvolume the following information is shown by default: where ID is subvolume’s id, gen is an internal counter which is updated every transaction, top level is the same as parent subvolume’s id, and path is the relative path of the subvolume to the top level subvolume.