Operating System - HP-UX
1822659 Members
3940 Online
109644 Solutions
New Discussion юеВ

Re: Recovery VG with different VG name

 
Christhian Chamba
Frequent Advisor

Recovery VG with different VG name

Hi,
I have the following problem: I have a server with HP-UX 11.11 with a VG name vg11 with two disk c14t0d0 and c14t0d1; these disk are in a Storage. I done a CLON of these disks in the Storage and present to the server, the two new disks name c16t0d0 and c16t0d0.
Is posible restore or import this 2 disks (c16t0d0 and c16t0d1) in the same server with a different name and diferrent minor number???.
Thanks.
4 REPLIES 4
Mel Burslan
Honored Contributor

Re: Recovery VG with different VG name

if you create a new vg with a different vg name and while doing vgimport if you use that name, why not ? It is possible...
________________________________
UNIX because I majored in cryptology...
Christhian Chamba
Frequent Advisor

Re: Recovery VG with different VG name

Hi Mel,

Thanks for your answer, I explain better. In the vg11 (with minor number 0x010000) have lv's with data and i need that the new disck c16t0d0 and c16t0d1 imports in the same server but with a different name (for example vg12) and different minor number (0x020000).

I attach the vgdisplay of vg 11:

VG Name /dev/vg11
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 14
Open LV 14
Max PV 16
Cur PV 4
Act PV 2
Max PE per PV 8511
VGDA 4
PE Size (Mbytes) 16
Total PE 10557
Alloc PE 8319
Free PE 2238
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Physical volumes ---
PV Name /dev/dsk/c14t0d0
PV Status available
Total PE 8510
Free PE 191
Autoswitch On
Proactive Polling On
PV Name /dev/dsk/c14t0d1
PV Status available
Total PE 2047
Free PE 2047
Autoswitch On
Proactive Polling On
James R. Ferguson
Acclaimed Contributor

Re: Recovery VG with different VG name

Hi:

As Mel said, use 'vgimport'. Using your device names:

# mkdir /dev/vg12
# mknod /dev/vg12/group c 64 0x020000
#...assuming that this is a unique, unused minor number LESS than 'maxvgs'...
# vgimport -m /tmp/oldvg.map /dev/new12 /dev/dsk/c16t0d0 /dev/dsk/c16t0d1
# vgchange -a y /dev/new12

While what you call the volume group (you said "vg12") and what the minor number is (you said '0x02' doesn't matter, it is a very useful convention to make them the same.

Lastly, if you don't have a mapfile for the VG, don't despair. Using one in a 'vgimport' isn't necessary unless you want to assign the volume group's logical volume names to other than the default 'lvol1', 'lvol2', etc.

Regards!

...JRF...

Christhian Chamba
Frequent Advisor

Re: Recovery VG with different VG name

I finde the solution...