How to create 2 GFS2 Volumes on one cluster

Posted on

Hi, I've just followed the steps to build GFS2 volume on the existing RHEL cluster:

pcs resource create dlm ocf:pacemaker:controld op monitor interval=30s on-fail=fence clone interleave=true ordered=true

/sbin/lvmconf --enable-cluster

pcs resource create clvmd ocf:heartbeat:clvm op monitor interval=30s on-fail=fence clone interleave=true ordered=true

pcs constraint order start dlm-clone then clvmd-clone
pcs constraint colocation add clvmd-clone with dlm-clone

pvcreate /dev/sdb
vgcreate -Ay -cy cluster_vg /dev/sdb
lvcreate -L10G -n cluster_lv cluster_vg
mkfs.gfs2 -j2 -p lock_dlm -t iibnpcluster:iibha /dev/cluster_vg/cluster_lv

pcs resource create clusterfs Filesystem device="/dev/cluster_vg/cluster_lv" directory="/var/iibha" fstype="gfs2" "options=noatime" op monitor interval=10s on-fail=fence clone interleave=true

pcs constraint order start clvmd-clone then clusterfs-clone
pcs constraint colocation add clusterfs-clone with clvmd-clone

Now I would like to build new GFS2 volume with /dev/sdc but I am not sure do I need to repeat all the above-mentioned steps to create dlm, clvmd and other resources. Can someone please advise?

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.