[Linux-cluster] mounting a replicated lun

Bob Peterson rpeterso at redhat.com
Wed Nov 20 22:05:27 UTC 2013


----- Original Message -----
| I have a LUN which is mounted as gfs2. We replicated this LUN and will need
| to mount this replicated LUN to another mount point. To create a gfs2 mount
| point what I do is:  pvcreate , vgcreate -c , lvcreate then mkfs.gfs2 . But
| since this replicated it has already data on it .how do we mount this?
| 
| This is CentOS/RHEL 5.
| 
| Thanks
| Paras.

If you're trying to preserve the data and mount the copy, you would
ordinarily need to change the file system name in the gfs2 superblock.
One way you can do this is something like this:

 gfs2_tool sb /dev/device table "your_cluster_name:fs_copy"

If you mean to mount the copy outside the cluster, you could just change
the locking protocol to lock_nolock:

 gfs2_tool sb /dev/device proto "lock_nolock"

However, digimer is correct that the commands you did would have wiped out
any existing data.

Regards,

Bob Peterson
Red Hat File Systems




More information about the Linux-cluster mailing list