February 2020
Intermediate to advanced
734 pages
38h 13m
English
This procedure will assume pg1 is our current primary node and VG_POSTGRES/LV_DATA is the principal data volume. Follow these steps as the root user to create and use an LVM snapshot:
lvcreate -l 100%FREE -s -n snap VG_POSTGRES/LV_DATA
mkdir /mnt/db_snap
mount -t xfs -o nouuid /dev/VG_POSTGRES/snap /mnt/db_snap
cd /mnt/db_snap/pgdata
lvdisplay VG_POSTGRES/snap | grep snap
Follow these steps as the root user to unmount and remove an LVM snapshot:
Read now
Unlock full access