- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: delete physical volume?
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-31-2002 11:23 PM
01-31-2002 11:23 PM
delete physical volume?
I pvcreate'ed a raid lun which I want to nuke and resize.
Presumably I should first delete the physical volume - but there's no apparent pv* command to do so.
Also, once gone, would I need to manually remove the device files which were created with 'insf -e'?
Cheers,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2002 11:38 PM
01-31-2002 11:38 PM
Re: delete physical volume?
- Delete LUN with SAM or arraycfg -L "LUN" -d "array_id" (for AutoRAID 12H).
- Then you are save to delete your device-files.
I have good experience using SAM for all these operations. This prevents ending in an inconsistent state.
Hardy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2002 11:51 PM
01-31-2002 11:51 PM
Re: delete physical volume?
There two things to do:
First if it part of a volume group
remove the logical volumes first
and the vgreduce it from the group.
Once that it done you will need to
clean up the hardware path.
# lvremove /dev/yourvg/yourlv
# vgreduce /dev/yourvg /dev/dsk/cytxdz
from the ioscan output for this disk:
# rmsf -H 1/12/4.1.0 (example)
You could use SAM, but I'm not sure
if it actually removes the hardware.
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2002 11:55 PM
01-31-2002 11:55 PM
Re: delete physical volume?
Thanks for the info.
I actually haven't added them to an volume groups - just pvcreated them.
I was wondering if it's necessary to un-pvcreate them.. and then is it necessary to delete the special files manually..
Thanks,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2002 12:06 AM
02-01-2002 12:06 AM
Re: delete physical volume?
When you power-cycle your machine and the system and OS detects the new harddisk, it creates the device file automatically.
pvcreate does not create the device file. Consider the analogy of pvcreate alike fdisk in MS-DOS, newfs alike format in MS-DOS.
Thus, there is no need or utility to perform a "pv-uncreate".
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2002 12:08 AM
02-01-2002 12:08 AM
Re: delete physical volume?
On 2nd thoughts, I think lvcreate should be more alike fdisk in the analogy, not pvcreate.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2002 12:09 AM
02-01-2002 12:09 AM
Re: delete physical volume?
Thanks all,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2002 12:10 AM
02-01-2002 12:10 AM
Re: delete physical volume?
There is no command to un-pvcreate
except if you want to add the volume
to another group if for some reason
it became corrupted.
The best way to remove it is to
identify the hardware path from
the output of ioscan and use the
'rmsf' command I gave earlier.
# rmsf -H 1/12/6.4.1 (example)
The 'H' option is the hardware path
which will remove the disk.
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2002 07:54 AM
02-01-2002 07:54 AM
Re: delete physical volume?
If the disk/LUN had been added to a volume group previously, you would need to 'pvcreate -f' the disk/LUN before you add it to another volume group.
If you unbind the LUN and rebind it, you will have to pvcreate the new LUN before you can add it to a VG.