Re: How to unmount FS and deactivate vg when PV is unavailable (798 Views)
Reply
Regular Advisor
Posts: 153
Registered: ‎11-24-2008
Message 1 of 8 (834 Views)

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

Honored Contributor
Posts: 13,860
Registered: ‎06-21-2000
Message 2 of 8 (823 Views)

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.

Regular Advisor
Posts: 153
Registered: ‎11-24-2008
Message 3 of 8 (821 Views)

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
Regular Advisor
Posts: 153
Registered: ‎11-24-2008
Message 4 of 8 (821 Views)

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

its 11.23 version of HP-UX
Honored Contributor
Posts: 13,860
Registered: ‎06-21-2000
Message 5 of 8 (817 Views)

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

 

 

Regular Advisor
Posts: 153
Registered: ‎11-24-2008
Message 6 of 8 (814 Views)

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 ?
Honored Contributor
Posts: 13,860
Registered: ‎06-21-2000
Message 7 of 8 (807 Views)

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.

Regular Advisor
Posts: 153
Registered: ‎11-24-2008
Message 8 of 8 (798 Views)

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

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.