February 2020
Intermediate to advanced
734 pages
38h 13m
English
For the purposes of this recipe, we will assume that the /dev/sdb device has been dedicated to PostgreSQL use. Follow these steps as the root user on two servers to create the first LVM layer:
parted /dev/sdb mklabel gpt parted /dev/sdb mkpart primary 1 100% parted /dev/sdb set 1 lvm on parted /dev/sdb print
pvcreate /dev/sdb1
vgcreate VG_DRBD /dev/sdb1
lvcreate -n LV_DATA -l 100%VG VG_DRBD
Read now
Unlock full access