- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Defect Hard Disk Removal from LVM
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
Discussions
Discussions
Forums
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
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
тАО10-14-2002 12:59 AM
тАО10-14-2002 12:59 AM
we are working on a K370 machine with HPUX11.0... we have a disk that we are trying to create mirroring on... it is already in lvmtab... but now it is dead and we can't reach it...
how can i remove a dead disk from the lvmtab so that i can put in another disk and use it... mirror on this disk is not yet started... but the physical volume is already created and it is already assigned to vg01...
thanks in advance!
jerome
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2002 01:04 AM
тАО10-14-2002 01:04 AM
Re: Defect Hard Disk Removal from LVM
If not then;
1. backup /etc/lvmtab to another file
2. remove /etc/lvmtab
3. vgscan (which recreates /etc/lvmtab)
4. vgreduce -f vg01 (this should no forceably remove the device from vg01)
Then you can replace the disk, pvcreate it, then add it back in again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2002 01:10 AM
тАО10-14-2002 01:10 AM
SolutionAs per the man page try to have the volume group de-activated.
# man vgcfgrestore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2002 01:10 AM
тАО10-14-2002 01:10 AM
Re: Defect Hard Disk Removal from LVM
won't vgreduce -f vg01 remove the entire volume group... i don't want to touch the original vg01... i would lose all my data, no?
what exactly happens when i do a vgreduce -f on a volume group? does it only touch mirrored vgs?
thanks
jerome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2002 01:16 AM
тАО10-14-2002 01:16 AM
Re: Defect Hard Disk Removal from LVM
You have to do this:
# vgreduce /dev/vg01 /dev/dsk/cXtXdX
Replace the X's with the correct numbers which reflect you defect disk.
This will only touch this disk and remove that disk from the vg01.
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2002 01:32 AM
тАО10-14-2002 01:32 AM
Re: Defect Hard Disk Removal from LVM
vgreduce doesn't work because it can't reach the physical volume...
we tried the vgcfgrestore on the /dev/dsk/cxtxd0, which gave us errors, but on /dev/rdsk/cxtxd0 it said it restored the logical volume info on the new hard disk... but i still can't extend or remove the physical volume from the vg...
the error from the vgcfgrestore -n /dev/vg01 /dev/dsk/cxtxdx command was:
Character-special file for PV not supplied on command line, OR PV did not belong to volume group /dev/vg01 when configuration file was created
we checked in lvmconf/vg01.conf and /dev/rdsk/cxtxdx is the entry...
still we can't seem to GET to the physical disk...
jerome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2002 01:45 AM
тАО10-14-2002 01:45 AM
Re: Defect Hard Disk Removal from LVM
/dev/rdsk/cxtxdx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2002 03:10 AM
тАО10-14-2002 03:10 AM
Re: Defect Hard Disk Removal from LVM
If you have replaced the disk and vgcfgrestore'd the configuration to it, you can still have LVM not aware of this replacement.
You now have to use a 'vgchange -a y' command if LVM has deactivated the bad disk. From the vgchange man page you can read :
If the -a y or -a e option is executed
on a currently active volume group,
vgchange attempts to include any
physical volumes that were previously
listed as missing. This is useful if a
physical volume has come back online.
Regards,
Jean-Louis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-14-2002 03:19 AM
тАО10-14-2002 03:19 AM
Re: Defect Hard Disk Removal from LVM
jerome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2013 05:01 AM
тАО06-11-2013 05:01 AM
Re: Defect Hard Disk Removal from LVM
thanks stefan