LVM error

 
SOLVED
Go to solution
Pluto_2
Occasional Advisor

LVM error

Hi Experts,

I had one disk(Hot Swappable) replacement activity. disk was mirrored. without breaking mirror disk was replaced by HP-FE. Stale lvols were there. Then I tried to first remove disk from vg00. But got the following error.


===========================================

cow08157:root vgreduce vg00 /dev/dsk/c2t0d0
vgreduce: Physical volume "/dev/dsk/c2t0d0" could not be removed since some of its
physical extents are still in use.

=======================================

Then i tried to break the mirror.
cow08157:root lvreduce -m 0 /dev/vg00/lvol7 /dev/dsk/c2t0d0
Usage: lvreduce
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
[-f]
LogicalVolumePath
"m": Illegal option.


Please suggest and how to proceed as it is production box.

Regards
kris
----------------------------------------------------------------------------------------------
P.S. This thread has been moved from system administration to LVM and VxVM - Forum Moderator
5 REPLIES 5
soandy
Frequent Advisor

Re: LVM error

Hi,


you should use lvchange instead of lvreduce


Turn the mirror write cache off on a logical volume:

lvchange -M n /dev/vg01/lvol1

reference link:
http://www.informatik.uni-frankfurt.de/doc/man/hpux/lvchange.1m.html
VVS
Regular Advisor

Re: LVM error

Please check attached document.
Refer page 18.

Regards,
VVS
Work is life, you know, and without it, there's nothing but fear and insecurity.
Chandrahasa s
Valued Contributor
Solution

Re: LVM error

HI,

command syntax you used ok but some time space create problem
try same command again.
If not
Attach following output,

a.vgdisplay -v
b.strings /etc/lvmtab
c.swlist | grep -i mir
d.uname -a
e.swlist | grep -i qpk


Chandra
shanmuhanandam
HPE Pro

Re: LVM error

Hi,
if you are getting the error message like "m": Illegal option " then there will not be mirror license. please check do you have the mirror license or not...


Thanks,
Shan.
I am an HPE Employee

Accept or Kudo

Pluto_2
Occasional Advisor

Re: LVM error

my problem resolved

thanks a lot