Operating System - HP-UX
1753467 Members
5005 Online
108794 Solutions
New Discussion

Re: lvreduce error (lvm_lock)

 
new2008
Advisor

Re: lvreduce error (lvm_lock)

Hi,

Output of pvdisplay and the disk is CLAIMED.

pvdisplay /dev/dsk/c2t0d0
--- Physical volumes ---
PV Name /dev/dsk/c2t0d0
VG Name /dev/vg00
PV Status available
Allocatable yes
VGDA 2
Cur LV 1
PE Size (Mbytes) 8
Total PE 4340
Free PE 3830
Allocated PE 510
Stale PE 510
IO Timeout (Seconds) default
Autoswitch On
Sajjad Sahir
Honored Contributor

Re: lvreduce error (lvm_lock)

please run
lvdisplay -k /dev/vg02/lvol6 and note the pvkey
and lvreduce -k -m 1 /dev/vg02/lvol6

thanks and regards

Sajjad
Michal Kapalka (mikap)
Honored Contributor

Re: lvreduce error (lvm_lock)

hi,

one think, what about sync the VG and if its in mirror state, use the lvreduce command again.

vgsync /dev/vgxx

mikap
new2008
Advisor

Re: lvreduce error (lvm_lock)

Hi,

Find below the lvdisplay -v -k output.
Please let me know what is the PV key.

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2 PV3 PE3 Status 3
00000 0 01624 current 2 01624 stale 1 00000 stale
00001 0 01625 current 2 01625 stale 1 00001 stale

Regards
new2008
Advisor

Re: lvreduce error (lvm_lock)

Hello All,

Are 1 & 2 the PV key for the stale PE's as posted above.

Regards
R.K. #
Honored Contributor

Re: lvreduce error (lvm_lock)

Yes .... correct

pvkey 2 and 1 are stale
00001 0 01625 current 2 01625 stale 1 00001 stale

lvreduce -m 1 -k 1 /dev/vg_name/lvolXX
lvreduce -m 0 -k 2 /dev/vg_name/lvolXX

Or try:

vgreduce -f vg_name <<== to remove unavailable/unresponding disks from VG

Regds,
R.K.
Don't fix what ain't broke
new2008
Advisor

Re: lvreduce error (lvm_lock)

Hello,

I get the following error when issued the command with K 1.

lvreduce -m 1 -k 1 /dev/vg00/lvol6
lvreduce: "1": No such file or directory
Usage: lvreduce
[-A Autobackup]
[-k]
{-m MirrorCopies |
-l LogicalExtentsNumber |
-L LogicalVolumeSize}
R.K. #
Honored Contributor

Re: lvreduce error (lvm_lock)

Hi....

Try this one:
lvreduce â k â m 1 /dev/vg_name/lvolXX 1

Regds,
R.K.
Don't fix what ain't broke
new2008
Advisor

Re: lvreduce error (lvm_lock)

Dear R.k.

Could you please paste the command again. I see control characters.

Regards
R.K. #
Honored Contributor

Re: lvreduce error (lvm_lock)

lvreduce -Â Â k -Â Â m 1 /dev/vg_name/lvolXX 1

lvreduce -Â Â k -Â Â m 0 /dev/vg_name/lvolXX 2
Don't fix what ain't broke