- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Removing Disks
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-09-2002 10:56 AM
01-09-2002 10:56 AM
Removing Disks
Does deactivate the volume group do the trick? It doesn't look like it, asthere are still references in the /etc/lvmtab file.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 11:01 AM
01-09-2002 11:01 AM
Re: Removing Disks
a block is 512 chracters
have fun!!!!!!!!
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 11:13 AM
01-09-2002 11:13 AM
Re: Removing Disks
The easist method is to 'vgexport' the volume group. This will perform the necessary maintenance to /etc/lvmtab and remove the /dev files.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 11:21 AM
01-09-2002 11:21 AM
Re: Removing Disks
If the disk(s) you are removing belong to one single VG and there are no other disk(s) in that VG other than the one you are removing, do a vgexport for the vg and that will remove all the information for those disk and the VG concerned from the system. If you do not want to remove the Vg but just want to remove some disks from the VG, do a vgreduce. This will remove the disk info from the VG and from the other system files. If you want to scrap all the info on the disk, do a "dd" as suggested by harry and this will destroy the data on the disk. do a "man dd" for info on the dd command.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 11:43 AM
01-09-2002 11:43 AM
Re: Removing Disks
First of all, you have to find the VG information on the specific disks you are going to remove. Do:
# pvdisplay -v /dev/dsk/cxtxdx
If the disks are part of a single VG, then you can do 'vgexport' or 'vgremove'. Or else, you have to do 'vgreduce' to remove each physical volume. Remember to take backups of file systems, if the FS spans on different disks.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 11:49 AM
01-09-2002 11:49 AM
Re: Removing Disks
# vgreduce /dev/vgname /dev/dsk/cXtYdZ
Force reduction of missing PVs from volume group: vg01
vgreduce -f /dev/vg01
# vgscan -v will recreate lvmtab
G'd luck
t++
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2002 12:06 PM
01-09-2002 12:06 PM
Re: Removing Disks
vgexport will not cleanup /etc/fstab. You will have to do that manually or either remove the logical volumes before vgexporting. SAM does this nicely.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2002 05:43 PM
01-13-2002 05:43 PM
Re: Removing Disks
First of all, you have to remove all the LVs under that VG. Then vgremove the VG by command "vgremove /dev/vgXX". Do an "strings /etc/lvmtab" and you will not see the VG in the lvmtab file. Then you can shutdown the machine and unplug the harddisk.
Hope this helps.
Kenny.