10-31-2011 03:53 AM
I have a situation like
some one created one vg and logical volume on the server using one disk . Bue he removed the disk with out destroying lv and vg
Now the vgdisplay showing the pv status unavailable . and that disk actually not there .
Now I want to deactivate the VG ,only 3 FS are mounted
I wanted to unmount the FS and deactivate the VG
when I tried , with umount its not happening , the bdf out put went in hung state . I could not deactivate the vg as the FS is showing as mounted
Is there any way to do this
these unmount process are running
root 3952 1 0 10:29:28 pts/3 0:00 /sbin/fs/vxfs/umount /dev/ccon/lvol1 /test/stand
root 4792 1 0 10:37:12 pts/2 0:00 /sbin/fs/vxfs/umount /dev/ccon/lvol3 /test/root
root 4767 1 0 10:36:50 pts/3 0:00 /sbin/fs/vxfs/umount /dev/ccon/lvol6 /test/usr
root 4213 1 0 10:32:44 pts/2 0:00 /sbin/fs/vxfs/umount /dev/ccon/lvol7 /test/var
root 9365 24717 0 11:42:14 pts/3 0:00 grep -i umount
10-31-2011 06:28 AM
What version of HP-UX?
Do you still have access to the disk that the VG and LVs were on? If so, put it back in the slot.
If not, do you have ANY spare disk that can be put back in that slot? If so, you may be able to put a disk in, restore the VG configuration to it, and reactivate the VG. Then you can go through the correct steps of unmounting the LVs, exporting the VG and then remove the disk again.
10-31-2011 06:43 AM
there is an entry in lvmtab for this vg so while booting this it will check for this vg right ?
please help me with proper solution
10-31-2011 06:53 AM
If there are entries in /etc/fstab they should be removed or commented.
Once the system is back up you can export the VG.
# vgexport /dev/ccon
10-31-2011 10:31 PM
I have recreated the lvmtab and the system cameup properly
But the order of the vg is like
root@sap1:/ : strings /etc/lvmtab
the vg00 came in the last , will it be a problem while system is boot up and activation of vg
I thik the vg activate in the order or given in the lvmtab .
please correct me if I am wrong