Operating System - HP-UX
1833091 Members
3218 Online
110050 Solutions
New Discussion

mount volume group from SAN

 
SOLVED
Go to solution
d_bachelor01
Frequent Advisor

mount volume group from SAN

Hi Guys,

I reinstalled HP-UX on my server. There is one volume group from SAN that is mounted on it previously. Although I dont really need to recover it, I just want to know how could I mount it back to the server?

Thanks!

-jef
5 REPLIES 5
Hasan  Atasoy
Honored Contributor
Solution

Re: mount volume group from SAN


hi ;
if you know the devices in that volume group then you can imprt by vgimport , like ,


mkdir /dev/vgtest ( any directory for vg )
mknod /dev/vgtest/group c 64 0x0?0000 ( any unused group minor number , you can look at minor numbers by ll /dev/*/group )
vgimport /dev/vgtest /dev/dsk/c?t?d? /dev/dsk/c?t?d?

if you have a map file then last step is more easy like

vgimport -v -s -m mapfile vgtest


Hasan
d_bachelor01
Frequent Advisor

Re: mount volume group from SAN

Hi,

I got this error.

# vgimport /dev/vg20 /dev/dsk/c4t0d0 /dev/dsk/c8t0d0
vgimport: Cannot open the control file "/dev/vg20/group":
No such device


c4t0d0 and c8t0d0 are mirrored and contains the volume group on the SAN
d_bachelor01
Frequent Advisor

Re: mount volume group from SAN

Ooops! My maxvgs is only set to 10. Repeating the command gives me this output:

# vgimport /dev/vg20 /dev/dsk/c4t0d0 /dev/dsk/c8t0d0
vgimport: Warning: Volume Group contains "1" PVs, "2" specified. Continuing.
Warning: A backup of this volume group may not exist on this machine.
Please remember to take a backup using the vgcfgbackup command after activating the volume group.

What is the next step guys?

Thanks!
-jef
d_bachelor01
Frequent Advisor

Re: mount volume group from SAN

It is working now after I added the entry on /etc/fstab.

Thanks!
d_bachelor01
Frequent Advisor

Re: mount volume group from SAN

It is working now after I added the entry on /etc/fstab.

Thanks!