- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mirrored vg00 with stale extents on both volum...
Operating System - HP-UX
1748128
Members
3475
Online
108758
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО12-03-2005 07:54 AM
тАО12-03-2005 07:54 AM
mirrored vg00 with stale extents on both volumes
Had this problem today and wondering if there was another way out besides restoring via ignite (which was what we eventually did).
EMS called out a media failure on one of the two scsi volumes mirroring vg00. Prior to replacement I went to reduce the failing volume out of the lvols, but two would not reduce because there were stale extents on both volumes. Couldn't reduce because of it; couldn't run lvsynch or vgsynch because of i/o error returned by the failing disk...
one of the lvols was lvol4 and there was only 1 stale extent towards the end of the "good" volume allocation so I was able to lvreduce lvol4's size (shrinking it so the end was before the stale extent) and could then lvreduce the failing disk out of it.
However, the other was lvol2, and the "good" disk had many more stale extents, and these were closer to the beginning of the allocation so I didn't try shrinking the size.
Tried to force out the bad pv by mv-ing lvmtab, pvcreating -f the failing disk, and running vgscan but this left me with the no vg00 in lvmtab due to an lvm error (sorry, can't recall the exact text) with no luck.
After replacing lvmtab from the copy, I hot-swapped the drive then tried doing a vgcfgrestore. However, the lvm still reported the two-disk stale extents on lvol2.
Attempted a reboot to maintenance mode and an lvrmboot -s, but that dutifully reported that the extents were inconsistent between the two volumes! (hp-ux is nothing if not persistent!)
Course, the Ignite restore ended up being faster that the couple hours I tried the manual approach, but if anyone has run into this problem and was able to get out of it with lvm commands I'd be very interested to learn of it. Thanks...
EMS called out a media failure on one of the two scsi volumes mirroring vg00. Prior to replacement I went to reduce the failing volume out of the lvols, but two would not reduce because there were stale extents on both volumes. Couldn't reduce because of it; couldn't run lvsynch or vgsynch because of i/o error returned by the failing disk...
one of the lvols was lvol4 and there was only 1 stale extent towards the end of the "good" volume allocation so I was able to lvreduce lvol4's size (shrinking it so the end was before the stale extent) and could then lvreduce the failing disk out of it.
However, the other was lvol2, and the "good" disk had many more stale extents, and these were closer to the beginning of the allocation so I didn't try shrinking the size.
Tried to force out the bad pv by mv-ing lvmtab, pvcreating -f the failing disk, and running vgscan but this left me with the no vg00 in lvmtab due to an lvm error (sorry, can't recall the exact text) with no luck.
After replacing lvmtab from the copy, I hot-swapped the drive then tried doing a vgcfgrestore. However, the lvm still reported the two-disk stale extents on lvol2.
Attempted a reboot to maintenance mode and an lvrmboot -s, but that dutifully reported that the extents were inconsistent between the two volumes! (hp-ux is nothing if not persistent!)
Course, the Ignite restore ended up being faster that the couple hours I tried the manual approach, but if anyone has run into this problem and was able to get out of it with lvm commands I'd be very interested to learn of it. Thanks...
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2005 09:33 AM
тАО12-03-2005 09:33 AM
Re: mirrored vg00 with stale extents on both volumes
Shalom Peter,
If the disk involved is not totally dead, sometimes lvsync will fix it enough.
Then you use lvsplit to break the mirrors, lvreduce to force the bad disk out of the vg and then replace the disk, pvcreate it and mirror once again.
SEP
If the disk involved is not totally dead, sometimes lvsync will fix it enough.
Then you use lvsplit to break the mirrors, lvreduce to force the bad disk out of the vg and then replace the disk, pvcreate it and mirror once again.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2005 10:51 AM
тАО12-04-2005 10:51 AM
Re: mirrored vg00 with stale extents on both volumes
Tried that, but (noted above) lvsync rfailed due to an I/O error returned from the failing disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-04-2005 08:55 PM
тАО12-04-2005 08:55 PM
Re: mirrored vg00 with stale extents on both volumes
It happen to me b4, what i did was
1/ do vgchange -a y /dev/vg00
if it doesn't work than you can try to do
2/ vgimport -v /dev/vg00 /dev/dsk/cxtxdx /dev/vg00/cxtxdx
Good luck!
Tamil
1/ do vgchange -a y /dev/vg00
if it doesn't work than you can try to do
2/ vgimport -v /dev/vg00 /dev/dsk/cxtxdx /dev/vg00/cxtxdx
Good luck!
Tamil
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP