Operating System - HP-UX
1752786 Members
5794 Online
108789 Solutions
New Discussion

Re: How to unmount FS and deactivate vg when PV is unavailable

 
joseph51
Regular Advisor

How to unmount FS and deactivate vg when PV is unavailable

Hi

 

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

7 REPLIES 7
Patrick Wallek
Honored Contributor

Re: How to unmount FS and deactivate vg when PV is unavailable

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.

joseph51
Regular Advisor

Re: How to unmount FS and deactivate vg when PV is unavailable

I dont have that disks .and dont have access to disk Customer has agreed to reboot it . But simple reboot will work or not ..?
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
joseph51
Regular Advisor

Re: How to unmount FS and deactivate vg when PV is unavailable

its 11.23 version of HP-UX
Patrick Wallek
Honored Contributor

Re: How to unmount FS and deactivate vg when PV is unavailable

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

 

 

joseph51
Regular Advisor

Re: How to unmount FS and deactivate vg when PV is unavailable

There is no fstab entry for that vg .
Do I need to recreate the lvmtab before we issue reboot ?
Patrick Wallek
Honored Contributor

Re: How to unmount FS and deactivate vg when PV is unavailable

I would not worry too much about the /etc/lvmtab file at this point.

 

Once the system is back up, just vgexport the VG.

joseph51
Regular Advisor

Re: How to unmount FS and deactivate vg when PV is unavailable

I have recreated the lvmtab and the system cameup properly

 

But the order of the vg is like

 

root@sap1:/ : strings /etc/lvmtab
/dev/vgsap

/dev/dsk/c8t0d0
/dev/dsk/c8t0d1
/dev/dsk/c8t0d2
/dev/dsk/c8t0d3
/dev/dsk/c8t0d4
/dev/dsk/c10t0d0
/dev/dsk/c10t0d1
/dev/dsk/c10t0d2
/dev/dsk/c10t0d3
/dev/dsk/c10t0d4
/dev/dsk/c4t0d0
/dev/dsk/c4t0d1
/dev/dsk/c4t0d2
/dev/dsk/c4t0d3
/dev/dsk/c4t0d4
/dev/dsk/c6t0d0
/dev/dsk/c6t0d1
/dev/dsk/c6t0d2
/dev/dsk/c6t0d3
/dev/dsk/c6t0d4
/dev/vg00
/dev/dsk/c0t8d0s2
/dev/dsk/c2t8d0s2
root@sap1:/ :

 

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