1834483 Members
3700 Online
110067 Solutions
New Discussion

relocate vxfs filesystem

 
SOLVED
Go to solution
sameerK
Frequent Advisor

relocate vxfs filesystem

I have one rx6600 server and one rx2660 server.I also have an external storage ( Netapp fas250). I have presented 2 LUNs to rx6600 server.On rx6600 server I am using HPUX 11iv2.I added theses LUNs to vg01,vg02 respectively.I also created the logical volumes & vxfs filesystems .Rx2660 also uses HPUX 11iv2.I want know that if rx6600 server develops a problem,how can i mount these filesystems on rx2660 server.
6 REPLIES 6
Aneesh Mohan
Honored Contributor

Re: relocate vxfs filesystem

Hi Sammer ,

I believe you can present the same luns to rx2660 too,but you may need to enable VGs manually .

Export LVM configuration on rx6600.
-------
#vgexport -v -s -p -m /etc/lvmconf/vg_name.map vg_name
#vgchange â a n vgname
--------------
On rx2660 :-

# cd /etc/lvmconf
# rcp node1:/etc/lvmconf/vg_name .
# mkdir /dev/vg_name
# mknod /dev/vg_name/group c 64 0x020000
# vgimport â v â s â m /etc/lvmconf/vg_name vg_name
# vgchange -a r vg_rating
# vgcfgbackup /dev/vg_rating
# vgchange -a n vg_rating

Modify /etc/lvmrc

AUTO_VG_ACTIVATE=0
---------------
Reenable vg_name on rx6600
#vgchange â a y vgname


If you want to shift the vg`s then deactivate from one node and activate on other node.


Aneesh
sameerK
Frequent Advisor

Re: relocate vxfs filesystem

HI Aneesh,
Thnx for your reply.Pls see by query in brackets:
Export LVM configuration on rx6600.
-------
#vgexport -v -s -p -m /etc/lvmconf/vg_name.map vg_name ( what is vg_name.map ?)
#vgchange â  a n vgname ( I see some junk characters between vgchange & n. Pls can you resend this line)
--------------
On rx2660 :-

# cd /etc/lvmconf
# rcp node1:/etc/lvmconf/vg_name ( what does this do?)
# mkdir /dev/vg_name
# mknod /dev/vg_name/group c 64 0x020000
# vgimport â  v â  s â  m /etc/lvmconf/vg_name vg_name ( I see some junk characters between vgimport and /etc/lvm.... Pls can you resend this line)
# vgchange -a r vg_rating ( what does thi do?)
# vgcfgbackup /dev/vg_rating ( what does thi do?)
# vgchange -a n vg_rating( what does thi do?)

Modify /etc/lvmrc

AUTO_VG_ACTIVATE=0
---------------
Reenable vg_name on rx6600
#vgchange â  a y vgname( what does thi do?)


If you want to shift the vg`s then deactivate from one node and activate on other node.( what do you mean by this?)
Aneesh Mohan
Honored Contributor

Re: relocate vxfs filesystem

HI ,

I mean dont activate Volume groups on both node at a time in read/write mode ,it may cause filesystem corruption .

Aneesh
sameerK
Frequent Advisor

Re: relocate vxfs filesystem

what about my other queries? thnx, in advance
Aneesh Mohan
Honored Contributor
Solution

Re: relocate vxfs filesystem

Hi Sammer,

>#vgexport -v -s -p -m /etc/lvmconf/vg_name.map vg_name ( what is vg_name.map ?)
On rx6600, copy the mapping of the volume group group to a file vg_name.map , This file contains a description of the volume group and its associated logical volume(s) (if any).

>#vgchange -a n vgname ( I see some junk characters between vgchange & n. Pls can you resend this line)
vgchange -a n vg_name --Deactivating the volume group
># rcp rx2660:/etc/lvmconf/vg_name ( what does this do?)
Coping the map file to rx2660

># vgimport -v -s -m /etc/lvmconf/vg_name vg_name ( I see some junk characters between vgimport and /etc/lvm.... Pls can you resend this line)

#vgimport -v -s -m /etc/lvmconf/vg_name.map vgname

># vgchange -a r vg_name ( what does thi do?)
Activate the volumegroup in read only mode
># vgcfgbackup /dev/vg_rating ( what does thi do?)
vgcfgbackup - create or update LVM volume group configuration backup file
> # vgchange -a n vg_rating( what does thi do?)
Deactivate the volume group on rx2660
> #vgchange -a y vg_name( what does thi do?)
Activate the volume group on rx6600
Aneesh Mohan
Honored Contributor

Re: relocate vxfs filesystem

Hi Sammer,

If I have clarified your queries ,please take care to assign points ... :|)

/Aneesh