- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- lvreduce: The LVM device driver failed to reduce m...
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-09-2005 09:34 PM
тАО10-09-2005 09:34 PM
I have some issue to remove a failed disk from a VG.
We have lost a disk:
tpsin1-root-[/]: ioscan -fnCdisk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 8/4.5.0 sdisk NO_HW DEVICE SEAGATE ST318275LC
/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0
disk 1 8/4.8.0 sdisk CLAIMED DEVICE SEAGATE ST318275LC
/dev/dsk/c0t8d0 /dev/rdsk/c0t8d0
disk 2 8/16/5.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 6x/32x
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
tpsin1-root-[/]:
This disk is part of VG00:
tpsin1-root-[/]: strings /etc/lvmtab
/dev/vg00
/dev/dsk/c0t5d0
/dev/dsk/c0t8d0
tpsin1-root-[/]:
I have removed all LV mirrored and I can't remove this one (primary swap LV):
tpsin1-root-[/home/nms]: lvreduce -m 0 /dev/vg00/lvol2 /dev/dsk/c0t5d0
Physical extents on remaining physical volumes are stale or
Remaining physical volumes are not responding.
lvreduce: The LVM device driver failed to reduce mirrors on
the logical volume "/dev/vg00/lvol2".
tpsin1-root-[/home/nms]:
Someone can help me ?
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2005 09:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2005 09:42 PM
тАО10-09-2005 09:42 PM
Re: lvreduce: The LVM device driver failed to reduce mirrors...
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=128170
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2005 09:48 PM
тАО10-09-2005 09:48 PM
Re: lvreduce: The LVM device driver failed to reduce mirrors...
I have tried but...
.
..
...
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
0000 /dev/dsk/c0t5d0 0021 current /dev/dsk/c0t8d0 0021 current
0001 /dev/dsk/c0t5d0 0022 current /dev/dsk/c0t8d0 0022 current
0002 /dev/dsk/c0t5d0 0023 current /dev/dsk/c0t8d0 0023 current
0003 /dev/dsk/c0t5d0 0024 current /dev/dsk/c0t8d0 0024 current
0004 /dev/dsk/c0t5d0 0025 current /dev/dsk/c0t8d0 0025 current
0005 /dev/dsk/c0t5d0 0026 current /dev/dsk/c0t8d0 0026 current
0006 /dev/dsk/c0t5d0 0027 current /dev/dsk/c0t8d0 0027 current
0007 /dev/dsk/c0t5d0 0028 current /dev/dsk/c0t8d0 0028 current
...
..
.
.
..
...
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
0000 0 0021 current 1 0021 current
0001 0 0022 current 1 0022 current
0002 0 0023 current 1 0023 current
0003 0 0024 current 1 0024 current
0004 0 0025 current 1 0025 current
0005 0 0026 current 1 0026 current
0006 0 0027 current 1 0027 current
0007 0 0028 current 1 0028 current
0008 0 0029 current 1 0029 current
0009 0 0030 current 1 0030 current
0010 0 0031 current 1 0031 current
0011 0 0032 current 1 0032 current
0012 0 0033 current 1 0033 current
...
..
.
So my pvkey is 0
sin1-root-[/home/nms]: lvreduce -m 0 -k /dev/vg00/lvol2 0
Usage: lvreduce
[-A Autobackup]
[-k pvkey]
{-m MirrorCopies |
-l LogicalExtentsNumber |
-L LogicalVolumeSize}
[-f]
LogicalVolumePath [PhysicalVolumePath ...]
"pvkey": Must be a number.
tpsin1-root-[/home/nms]:
???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2005 09:52 PM
тАО10-09-2005 09:52 PM
Re: lvreduce: The LVM device driver failed to reduce mirrors...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2005 09:55 PM
тАО10-09-2005 09:55 PM
Re: lvreduce: The LVM device driver failed to reduce mirrors...
tpsin1-root-[/home/nms]: lvreduce -m 0 -k 0 /dev/vg00/lvol2 /dev/dsk/c0t5d0
Physical extents on remaining physical volumes are stale or
Remaining physical volumes are not responding.
lvreduce: The LVM device driver failed to reduce mirrors on
the logical volume "/dev/vg00/lvol2".
tpsin1-root-[/home/nms]:
Any idea ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2005 09:57 PM
тАО10-09-2005 09:57 PM
Re: lvreduce: The LVM device driver failed to reduce mirrors...
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2005 10:00 PM
тАО10-09-2005 10:00 PM
Re: lvreduce: The LVM device driver failed to reduce mirrors...
What does it say??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2005 11:02 PM
тАО10-09-2005 11:02 PM
Re: lvreduce: The LVM device driver failed to reduce mirrors...
The situation here is a bit abormal. Allthogh the disk has failed and is showing as NO_HW under ioscan, system is still be able to right some part of it and that is causing it to display this error.
The other possible reason for this can be that the other disk having the second copy is also having some issues.
The best way to replace such a disk will be to remove it without reducing the LVOLs and then add another disk in its place. Once done you can do a vgcfgrestore and vgsync.
After replacing the disk /dev/dsk/c0t5d0 either offline or online if supported.
If you are replacing disk after shutting down the system then boot it in single user mode bypassing quorum check and using the alternate disk.
ISL>hpux -is -lq (Alternate disk path)/stand/vmunix
# vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t5d0
# vgchange -a y /dev/vg00
# mount /usr
# mkboot /dev/rdsk/c0t5d0
# mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c0t5d0
# lvlnboot -R
Note: If /usr doesn't reside in /dev/vg00 the volume group that does
contain /usr's logical volume will also have to be activated.
Now, synchronize mirrored logical volumes:
# vgsync /dev/vg00
If the disk is replaced online, you can straight away do a vgcfgrestore, vgsync.
Confirm proper mirrors using
#lvlnboot -v
&
#lvdisplay -v /dev/vg00/lvol*
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2005 11:47 PM
тАО10-09-2005 11:47 PM
Re: lvreduce: The LVM device driver failed to reduce mirrors...
There are the results:
tpsin1-root-[/home/nms]: lvreduce -m 0 -k /dev/vg00/lvol2 /dev/dsk/c0t5d0
Usage: lvreduce
[-A Autobackup]
[-k pvkey]
{-m MirrorCopies |
-l LogicalExtentsNumber |
-L LogicalVolumeSize}
[-f]
LogicalVolumePath [PhysicalVolumePath ...]
"pvkey": Must be a number.
tpsin1-root-[/home/nms]:
tpsin1-root-[/home/nms]:
tpsin1-root-[/home/nms]: lvreduce -m 0 -k 0 /dev/vg00/lvol2 /dev/dsk/c0t5d0
Physical extents on remaining physical volumes are stale or
Remaining physical volumes are not responding.
lvreduce: The LVM device driver failed to reduce mirrors on
the logical volume "/dev/vg00/lvol2".
tpsin1-root-[/home/nms]:
???