- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to unmount FS and deactivate vg when PV is...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2011 03:53 AM
тАО10-31-2011 03:53 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2011 06:28 AM
тАО10-31-2011 06:28 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2011 06:43 AM
тАО10-31-2011 06:43 AM
Re: How to unmount FS and deactivate vg when PV is unavailable
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2011 06:43 AM
тАО10-31-2011 06:43 AM
Re: How to unmount FS and deactivate vg when PV is unavailable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2011 06:53 AM
тАО10-31-2011 06:53 AM
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
- Tags:
- vgexport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2011 06:57 AM
тАО10-31-2011 06:57 AM
Re: How to unmount FS and deactivate vg when PV is unavailable
Do I need to recreate the lvmtab before we issue reboot ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2011 09:38 AM
тАО10-31-2011 09:38 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-31-2011 10:31 PM
тАО10-31-2011 10:31 PM
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
- Tags:
- lvmtab strings