Namran Hussin Linux Setting GFS2 partition for cluster usage in Redhat 5

Setting GFS2 partition for cluster usage in Redhat 5

let’s say the cluster name is “mynamran” and the shared storage device is mapped to /dev/mapper/mpath0

so the command to create GFS2 partition is as below :

mkfs.gfs2 -p lock_dlm -t mynamran:gfs2 -j 8 /dev/mapper/mpath0

then to test mount it .. to a /gfs2

mount -o acl -t gfs2 /dev/mapper/mpath0 /gfs2

any node which is members of “mynamran” cluster will be able to mount this
storage simultaneously ..

some other tools to test

gfs2_tool list
gfs2_tool df

woohoo..!

it shall however.. un-mounted before machine goes off.
hence.. is recommended putting this into /etc/fstab
current working setting is as below

/dev/mapper/mpath0      /gfs2                    gfs2 defaults,noatime,nodiratime 0 0

there option to actually mount the GFS2 partition via cluster suite..
but that probably for just the active node .. which somehow defeat the purpose.. of enabling it to actually having multiple node
accessing same storage.. without NFS.. :)

2 thoughts on “Setting GFS2 partition for cluster usage in Redhat 5”

  1. I am extremely inspired together with your writing talents and also with the format for
    your blog. Is this a paid theme or did you customize it
    yourself? Either way keep up the excellent high quality writing,
    it is uncommon to peer a great blog like this one these days.
    Snipfeed!

  2. I’m really inspired together with your writing talents and also with the format on your weblog. Is this a paid theme or did you modify it yourself? Anyway stay up the nice high quality writing, it’s rare to peer a nice weblog like this one today!

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post