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.. 🙂

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Like

Related Post

4 Responses

  1. goysar says:

    I m using centos, i tried ur installation step and gone fine but finally when i ran the command ‘service zm start’ my terminal says ‘bash: service: command not found’ wat might be the error. I want my web cam from mron to work.

    Reply
  2. namran says:

    have you become root first before issue
    with

    “su – ”

    “service zm start” ?

    can be also as ..

    “/sbin/service zm start”

    or
    “/etc/init.d/zm start”

    Reply
  3. umsrootqho says:

    hunfjcmph, ippbsesekz

    Reply

Anything to add?

X