[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] mounting a replicated lun

Great . I will test and let you guys know how it goes. Meanwhile you guys can answer me a question.

a) I have a lun (gfs2) mounted to /test
b) I replicate it
c) I undefine my original lun from this cluster node
d) I now assign the replicated lun to the same cluster node
e) I issue a lip

Since the luns are same in all aspects, will it automatically configure itself the new one and mount it to /test?


On Wed, Nov 20, 2013 at 4:05 PM, Bob Peterson <rpeterso redhat com> wrote:
----- 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.


Bob Peterson
Red Hat File Systems

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]