The software described in this documentation is either in Extended Support or Sustaining Support. See https://www.oracle.com/us/support/library/enterprise-linux-support-policies-069172.pdf for more information.
Oracle recommends that you upgrade the software described by this documentation as soon as possible.
To take a snapshot of the current root file system:
Mount the top level of the root file system on a suitable mount point.
#
mount -o subvolid=5 /dev/mapper/vg_btrfs-lv_root /mnt
Change directory to the mount point and take the snapshot. In this example, the
install
subvolume is currently mounted as the root file system system.#
cd /mnt
#btrfs subvolume snapshot install root_snapshot_1
Create a snapshot of 'install' in './root_snapshot_1'Change directory to
/
and unmount the top level of the file system.#
cd /
#umount /mnt
The list of subvolumes now includes the newly created snapshot.
#
btrfs subvolume list /
ID 258 top level 5 path install ID 260 top level 5 path root_snapshot_1