- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can I get rid of a disk from lvmtab
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
Forums
Discussions
Discussions
Discussions
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
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
06-27-2008 06:32 AM
06-27-2008 06:32 AM
How can I get rid of a disk from lvmtab
I have had a problem with some disks having their special files change (don't ask), but the lvmtab has a disk registered in it (including 3 alt paths) but the volume group is not there and I want to reuse the disk.
I have tried moving the lvmtab and running:
#vgscan -v
But it put the disk back into the lvmtab.
Has anyone any ideas as to how I can get it out of the lvmtab.
pvcreate -f didn't work.
hpux 11.23
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2008 06:38 AM
06-27-2008 06:38 AM
Re: How can I get rid of a disk from lvmtab
The easy way is to 'vgexport' the volume group. Then, if you are sure that you want to reuse the physical disk, 'pvcreate' them.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2008 06:44 AM
06-27-2008 06:44 AM
Re: How can I get rid of a disk from lvmtab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2008 06:51 AM
06-27-2008 06:51 AM
Re: How can I get rid of a disk from lvmtab
vgreduce -f ( check man page for description
Then if neccessary.
mv /etc/lvmtab /etc/lvmtab.old
then vgscan to rebuild the lvmtab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2008 06:56 AM
06-27-2008 06:56 AM
Re: How can I get rid of a disk from lvmtab
> The volume group has disappeared
If you are absolutely sure of the physical devices that you want to obliterate, the LVM signitures on them with 'pvremove' (on 11.23 or later) or write zeros as:
# pvremove /dev/rdsk/cXtYdZ
(or)
# dd if=/dev/zero of=/dev/rdsk/cXtYdZ bs=1024k count=10000
Then:
# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -av
# vgchange -a y
# lvlnboot -R
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2008 07:03 AM
06-27-2008 07:03 AM
Re: How can I get rid of a disk from lvmtab
I will check it tho'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2008 07:05 AM
06-27-2008 07:05 AM
Re: How can I get rid of a disk from lvmtab
pvremove: The physical volume "/dev/rdsk/c20t3d0" belongs to volume group "/dev/vg_dboracle".
pvremove: Couldn't remove physical volume "/dev/rdsk/c20t3d0".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2008 07:25 AM
06-27-2008 07:25 AM
Re: How can I get rid of a disk from lvmtab
and also #vgdisplay -v
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2008 07:29 AM
06-27-2008 07:29 AM
Re: How can I get rid of a disk from lvmtab
/dev/vg_dboracle
/dev/dsk/c20t3d0
/dev/dsk/c21t3d0
/dev/dsk/c18t3d0
/dev/dsk/c19t3d0
Multi-path san lun.
apgst01 # vgdisplay -v /dev/vg_dboracle
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg_dboracle".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2008 07:48 AM
06-27-2008 07:48 AM
Re: How can I get rid of a disk from lvmtab
Problem solved, came to me on a fag break!!
Thanks for all the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2008 07:51 AM
06-27-2008 07:51 AM