[Linux-cluster] mounting a replicated lun

emmanuel segura emi2fast at gmail.com
Thu Nov 21 18:13:00 UTC 2013


if you have lvm on the luns, you don't need to think about mounting lun,
but volume in the volume group, so lun->pv->vg->lv, after you use vgimportclone
to rename your pv uuid && vg uuid dupplicate you can mount your new
repplicated volume


2013/11/21 Paras pradhan <pradhanparas at gmail.com>

> Thanks. So after vgimportclone ,  I can mount my new lun it seems (?).
>
> What if I remove the original lun (undefine from SAN) from the node so
> that only the new lun is seen from the os? If I do that I don't even need
> to vgiimport and I can mount the lun with the same vgname? Am i correct?
>
> Thanks
> Paras.
>
>
> On Thu, Nov 21, 2013 at 11:15 AM, emmanuel segura <emi2fast at gmail.com>wrote:
>
>> Thanks
>>
>> i didn't know this command :)
>>
>>
>> 2013/11/21 Bryn M. Reeves <bmr at redhat.com>
>>
>> On 11/21/2013 04:56 PM, emmanuel segura wrote:
>>> > vgcfgbackup -f /tmp/mylvm.bck c
>>> > change the volume group id: esample
>>> > id = "JGWiR6-J5mh-VnQr-168J-uzj6-RjcD-FtmKQo"
>>> > pvcreate --restorefile /tmp/mylvm.bck --uuid
>>> > "laHRdG-3NPX-MGMj-TQtV-FkV5-Yp3M-gSJaj7" /dev/mapper/mapth5
>>> > vgrename JGWiR6-J5mh-VnQr-168J-uzj6-RjcD-FtmKQo new_vg
>>>
>>> It's much better to use the vgimportclone command to do this - it
>>> automates renaming and changing the UUID in a single step.
>>>
>>> For one thing the above will fail in the current example due to
>>> duplicate PVs being present.
>>>
>>> Regards,
>>> Bryn.
>>>
>>>
>>
>>
>> --
>> esta es mi vida e me la vivo hasta que dios quiera
>>
>> --
>> Linux-cluster mailing list
>> Linux-cluster at redhat.com
>> https://www.redhat.com/mailman/listinfo/linux-cluster
>>
>
>
> --
> Linux-cluster mailing list
> Linux-cluster at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-cluster
>



-- 
esta es mi vida e me la vivo hasta que dios quiera
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20131121/9ba26a26/attachment.htm>


More information about the Linux-cluster mailing list