February 2020
Intermediate to advanced
734 pages
38h 13m
English
Is 5 percent too much space to set aside for snapshots, especially in multi-terabyte volumes? Probably! Unfortunately, the only other mechanism available to define the volume size is the -L parameter for lvcreate, which only works with absolute measurements. Yet we know the size of our devices, and we are free to make loose estimates.
For example, imagine we have a 4 TB storage device, and we only want to leave around 50 GB for snapshots instead of 200 GB. This lvcreate command specifies the size of our device in GB:
lvcreate -n LV_DATA -L 3950G VG_POSTGRES
Read now
Unlock full access