- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pvremove does not exist on HP-UX 10.20
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
01-26-2006 08:55 AM
01-26-2006 08:55 AM
How the heck do you remove physical volumes on HP-UX 10.20? pvremove does not exist. I have some physical volumes that are allocated to old volume groups that no longer exist.
Thanks,
Weener
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 09:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 09:02 AM
01-26-2006 09:02 AM
Re: pvremove does not exist on HP-UX 10.20
No, none of them are in /etc/lvmtab. I think some idiot that used to work here removed the volume groups using those pv's incorrectly.
Thanks for you help,
Weener
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 09:11 AM
01-26-2006 09:11 AM
Re: pvremove does not exist on HP-UX 10.20
Thanks. I did not read your whole response. Does pvcreate -f ignore that the physical disk is already in use? When I run pvcreate /dev/rdsk/c2t0d6 alone with the -f option, I get a message saying the this device is already in use by another vg. I do know for certain that this disk is not already in use. I did a vgdisplay -v on all the volume groups that exist in lvmtab and none of them include this disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 09:17 AM
01-26-2006 09:17 AM
Re: pvremove does not exist on HP-UX 10.20
man pvcreate for more details
Warning: The -f option should only be used as a last resort to over write file system or volume manager information that cannot
properly be removed using the commands
designed for that purpose. When invoked with -f, the command does minimal verification, so care should be taken to assure that the disk is not already in use
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 09:20 AM
01-26-2006 09:20 AM
Re: pvremove does not exist on HP-UX 10.20
Even with the 'f'orce option of 'pvcreate' you are protected from removing a disk that is recorded in '/etc/lvmtab'.
Since, as noted, 'pvremove' doesn't exist on 10.20, you must resort to overwriting the LVM header yourself to destroy a disk.
# # mknod /dev/zero c 3 0x000003 #...on 10.20
# dd if=/dev/zero of=/dev/rdsk/cXtYdZ bs=64k count=10
# pvcreate -f /dev/rdsk/cXtYdZ
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 09:27 AM
01-26-2006 09:27 AM
Re: pvremove does not exist on HP-UX 10.20
The contents of lvmtab reflects active disks, so if you don't see your disk inj lvmtab, then it is not active. That doesn't mean that it hasn't been used in the past or has been temporarily deactivated by another sysadim. If you know that all required volume groups are active, then you should be OK with pvcreate -f.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2006 09:54 AM
01-26-2006 09:54 AM
Re: pvremove does not exist on HP-UX 10.20
To be sure, you can also use sam to tell whether or not the disk is actually in use. The other gurus here have given enough good advice about pvcreate, so I wont go into that!!
Take care Weener,
John E. Ophious