Operating System - HP-UX
1825795 Members
2264 Online
109687 Solutions
New Discussion

logical volume not connected .

 
Shah Gaurang B.
Frequent Advisor

logical volume not connected .

My server main o/s hardisk was failed and my backup cartridge also was not working now i reinstalled the o/s and recover volume group which were on unother disk of the server now i faced poblem that i got success in recovering of volume group but i am not able to connect the logical volumes of that volume group .

So pl. i request you to guide me , how to short out this problem.

thanks and wish u happy new year to all of u .
4 REPLIES 4
Sivakumar TS
Honored Contributor

Re: logical volume not connected .


Dear Shah,

How did you recover the other logical volumes ?

I hope you would have done #vgimport to get the lvols from the other disk.

Please activate the Volume Group by

#vgchange -a y

before accessing the lvols in it.

after this you can try #vgdisplay to check for the lvols status.

With Regards,

Siva.
Nothing is Impossible !
Tvs
Regular Advisor

Re: logical volume not connected .

hi.

1. create the group file

mknod /dev/vgxx/group c 64 0xxx000000

2.Import the volume group /dev/vg01 that is located on physical disks /dev/dsk/c0t1d0 and /dev/dsk/c0t3d0:


vgimport -v /dev/vgxx /dev/dsk/c0t1d0 /dev/dsk/c0t3d0
3. Activate the volume group following a successful import:
vgchange -a y vgxx

4.. update the /etc/fstab

for more info go thr the documents..

tvs
James R. Ferguson
Acclaimed Contributor

Re: logical volume not connected .

Hi Shah:

You say that you sucessfully recovered the volume group but not the logical volumes.

When you did your 'vgimport' of the volume group, did you specify a 'mapfile'?

If not, then you will have logical volume names of the form 'lvolNN'. If this is the case, but this is not what you want, 'vgexport' the volume group again, and create a 'mapfile' that looks like:

# cat /tmp/vgNN.map
1 mylvolA
2 mylvolB
...

Then do, 'vgimport -m /tmp/vgNN.map ...' as before.

Regards!

...JRF...
Ajitkumar Rane
Trusted Contributor

Re: logical volume not connected .

Hello Gaurang,

Do a strings /etc/lvmtab and find if it shows the name of the VG you imported. If yes then VG is sucessfully imported and you can do a vgchange -a y VGXX, then mount the lvols on the mount points, maybe b4 even mounting the lvols you would like to fsck the rlovls. If you are not aware of the lvols that came in the VG you imported go to /dev/VGxx and you would find the devcie files for the lvols.

hope this helps

Best Of Lucks

Ajit
Amidsts difficulties lie opportunities