Operating System - HP-UX
1834771 Members
3212 Online
110070 Solutions
New Discussion

Re: VG Mounting & LV Access

 
SOLVED
Go to solution
susee_sundar
Regular Advisor

VG Mounting & LV Access

Anybody help me to get out of this issue...

This is the Scenerio...

I AM MOVING THE DISK1 FROM
SERVER1------->SERVER2

SERVER1:-

/dev/vg03/lvol1---->c2t0d0
/dev/vg03/lvol2---->c2t0d0
/dev/vg03/lvol3---->c2t0d0
/dev/vg03/lvol4---->c2t0d0

#vgexport vg03 /vg03.map


--> I exported the VG using vgexport and created the file vg03.map

SERVER2:-

I copied the file vg03.map from the server1.
I physically attached the disk to the SERVER2 as c5t0d0

NOTE:In my server2 there is already a VG named VG03 exist.

My Query:-

1. If I go for vgimport it will do any impact on my current VG03..?
2. How can I mount the disk that I attached and access the Logical Volumes..?


Expecting the reply soon.....

5 REPLIES 5
Torsten.
Acclaimed Contributor

Re: VG Mounting & LV Access

You can simply import the exported VG as VG04. Create the dir /dev/vg04, the group file and import. Create a mount point and mount your lvols, e.g.

mount /dev/vg04/lvol1 /my_mount_point

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: VG Mounting & LV Access

Hi,

Create directory and group special file on server2

# ll /dev/*/group
pick a free minor number
# mkdir /dev/vg04
# mknod /dev/vg04/group c 64 0x040000
# vgimport vg04 /dev/dsk/c5t0d0
# vgchange -a y vg04
# vgcfgbackup vg04

Create mountpoints and test.
# mkdir /test1
# mount /dev/vg04/lvol1 /test1
# cd /test1
# ls -la

Regards,
Robert-Jan
susee_sundar
Regular Advisor

Re: VG Mounting & LV Access

Can you give the vgimport command syntax..

In the SERVER2:-
#
#
#
#
#
#
#
susee_sundar
Regular Advisor

Re: VG Mounting & LV Access

Its a great Reply and my Query is cleared..

Jayasuntar
Valued Contributor

Re: VG Mounting & LV Access

Hi..


that is

#vgimport -m /vg03.map vg04 /dev/dsk/c5t0d0

Regards

Jay