Operating System - HP-UX
1834090 Members
2037 Online
110063 Solutions
New Discussion

lvreduce doesn't remove ghost disk

 
Gerd Sitato
New Member

lvreduce doesn't remove ghost disk

Hallo,
I'm unable do reduce the mirror count.
I try the following:
uxsico02:/ # lvreduce -k -m 0 /dev/vg00/lvol5 1
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/lvol5".
uxsico02:/ #
uxsico02:/ # lvdisplay -v /dev/vg00/lvol1
--- Logical volumes ---
LV Name /dev/vg00/lvol1
VG Name /dev/vg00
LV Permission read/write
LV Status available/stale
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 88
Current LE 11
Allocated PE 22
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c1t6d0 11 11

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c1t6d0 00000 stale ??? 00000 current
00001 /dev/dsk/c1t6d0 00001 stale ??? 00001 current
00002 /dev/dsk/c1t6d0 00002 stale ??? 00002 current
00003 /dev/dsk/c1t6d0 00003 stale ??? 00003 current
00004 /dev/dsk/c1t6d0 00004 stale ??? 00004 current
00005 /dev/dsk/c1t6d0 00005 stale ??? 00005 current
00006 /dev/dsk/c1t6d0 00006 stale ??? 00006 current
00007 /dev/dsk/c1t6d0 00007 stale ??? 00007 current
00008 /dev/dsk/c1t6d0 00008 stale ??? 00008 current
00009 /dev/dsk/c1t6d0 00009 stale ??? 00009 current
00010 /dev/dsk/c1t6d0 00010 stale ??? 00010 current

uxsico02:/ #
uxsico02:/ # lvdisplay -k -v /dev/vg00/lvol1
--- Logical volumes ---
LV Name /dev/vg00/lvol1
VG Name /dev/vg00
LV Permission read/write
LV Status available/stale
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 88
Current LE 11
Allocated PE 22
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c1t6d0 11 11

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 0 00000 stale 1 00000 current
00001 0 00001 stale 1 00001 current
00002 0 00002 stale 1 00002 current
00003 0 00003 stale 1 00003 current
00004 0 00004 stale 1 00004 current
00005 0 00005 stale 1 00005 current
00006 0 00006 stale 1 00006 current
00007 0 00007 stale 1 00007 current
00008 0 00008 stale 1 00008 current
00009 0 00009 stale 1 00009 current
00010 0 00010 stale 1 00010 current

uxsico02:/ #
Please help

gerd
8 REPLIES 8

Re: lvreduce doesn't remove ghost disk

Gerd,

Looking at your output it looks like is the PV with a key of 0 thats stale, not 1.

Try:

lvreduce -m 0 -k /dev/vg00/lvol5 0

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Torsten.
Acclaimed Contributor

Re: lvreduce doesn't remove ghost disk

I guess you try to remove the *good* side of the mirror!

In case you want to replace a bad disk, you should leave the config as is and just replace the disk followed by the proper re-config steps, see

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Gerd Sitato
New Member

Re: lvreduce doesn't remove ghost disk

Hi Duncan,

the same error:
uxsico02:/ # lvreduce -k -m 0 /dev/vg00/lvol5 0
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/lvol5".
uxsico02:/ #

I think the PE1 is the active disk and PE2 the missing

gerd
Hasan  Atasoy
Honored Contributor

Re: lvreduce doesn't remove ghost disk

hi gerd ;

you need to execute
lvreduce -k -m 0 /dev/vg00/lvol? 1
for each lv in vg


hasan.
Gerd Sitato
New Member

Re: lvreduce doesn't remove ghost disk

Hi Hasan,

see the error in my opening question.

Gerd
Torsten.
Acclaimed Contributor

Re: lvreduce doesn't remove ghost disk

Again, do you want to replace a bad disk?


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Gerd Sitato
New Member

Re: lvreduce doesn't remove ghost disk

No.

I have done a kernel reconfiguration and was unable to boot. That's why I boot from a tape. The boottape was old and I restore the filesystem from a backup. An now I try to setup the mirror.
Torsten.
Acclaimed Contributor

Re: lvreduce doesn't remove ghost disk

I don't know how far you already modified something, but if

vgcfgrestore -n vg00 -l

gives a meaningful result you may consider to restore the vg config to the "new" disk.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!