Assuming pg1 is our current primary node, follow these steps as the root user:
- Use this command to find the Linux kernel version:
uname -r
- Create a mount location by executing this command:
mkdir /db
- For kernel versions 3.0 and above, mount the filesystem with this command:
mount -t xfs -o noatime,nodiratime \ -o logbsize=256k,allocsize=1m \ /dev/VG_POSTGRES/LV_DATA /db
- For kernels below 3.0, mount with this command:
mount -t xfs -o noatime,nodiratime \ -o logbufs=8,logbsize=256k,attr2 \ -o allocsize=1m /dev/VG_POSTGRES/LV_DATA /db
- Execute this command to confirm a successful mount:
df /dev/mapper/VG_POSTGRES-LV_DATA