- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Procedure to remove bad disk
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
08-20-2010 06:31 AM
08-20-2010 06:31 AM
Procedure to remove bad disk
We experienced a disk failure a while back on disk that were no longer in use. The volume group contained 2 mirrored disks (ie 4 disks).
The interim solution adopted then was to umount the affected filesystems and disable the volume group using vgchange.
I am tasked with actually removing these drives together wit a bunch of other ones that are unused and I'm looking for the sure and safe way to do it.
My plan is to perform lvremove, vgremove, pvremove and then remove the disks.
Is this possible or do I have to somehow reactivate the disabled volume group first?
Thanks
RayB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2010 07:21 AM
08-20-2010 07:21 AM
Re: Procedure to remove bad disk
You can use 'vgexport' to remove the LVM device files and volume group information from '/etc/lvmtab'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2010 08:55 AM
08-20-2010 08:55 AM
Re: Procedure to remove bad disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2010 11:52 AM
08-24-2010 11:52 AM
Re: Procedure to remove bad disk
vgexport says it removes the VG informaion from lvmtab but writes nothing on the disk(s).
Can I just physically remove the disks after without risking problems next time I reboot?
Will I be able to reuse / reinitialize the good disk(s) at a later time?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2010 09:46 AM
08-30-2010 09:46 AM
Re: Procedure to remove bad disk
Question, do you have the disk in mirror? if does, reduce the mirror by using lvreduce -m 0 and replace the faulty disk, then use /usr/sbin/vgcfgrestore -n
Then use vgsysnc
to re-sync the mirror again.
I also can recommend you this excelet document to approach disk problems in hpux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2010 01:29 AM
08-31-2010 01:29 AM
Re: Procedure to remove bad disk
Your plan is good.
- lvremove
- vgremove
- pvremove
- Remove disk
and
- remove special files (rmsf)
- ioscan -fn
rgs,