System Administration
Showing results for 
Search instead for 
Do you mean 

Unable to reduce an LV or sync.

SOLVED
Go to Solution
Visitor

Unable to reduce an LV or sync.

I have a bad drive and have been able to remove all LV's except for one.

On the last one I am getting when trying to Reduce...

 

# lvreduce -m 0 -A n /dev/vg00/lvol1 /dev/dsk/c1t15d0
lvreduce: Couldn't reduce the logical volume:
Device busy
lvreduce: The LVM device driver failed to reduce mirrors on
the logical volume "/dev/vg00/lvol1".

 

I figured I needed to try to resync to remove it so when I try to sync the LV, I get this....

# lvsync /dev/vg00/lvol1
lvsync: Couldn't re-synchronize stale partitions of the logical volume:
I/O error
lvsync: Couldn't resynchronize logical volume "/dev/vg00/lvol1".

 

I have also tried the -k option to no avail.... 

# lvreduce -k -m 0 /dev/vg00/lvol1 0
lvreduce: Couldn't reduce the logical volume:
Device busy
lvreduce: The LVM device driver failed to reduce mirrors on
the logical volume "/dev/vg00/lvol1".

Any other suggestions?

Only 1 extent shows as current on the bad disk.   No stale extents on the good drive.

6 REPLIES
Highlighted
Honored Contributor Honored Contributor

Re: Unable to reduce an LV or sync.

What version of HP-UX are you using?

 

Starting about 7 years ago, the pvchange command was updated with the -a N option to disable I/O to a specific disk. Once disabled, the bad disk can be hotswapped and then reenabled with pvchange -a y <diskName>

 

This applies to 11.11 (11.00 and 10.20 do not have the -a option) and later.

Trusted Contributor

Re: Unable to reduce an LV or sync.

some of the LVM commands have a -f for force.. Check for that option.

Emil Velez
HP UNIX Certified ATP ASE HPUX
Certified HP Instructor, ATP and ASE Server Solutions
ATP Storage

Master ASE Superdome Solutins



HPE Education Services

Ask me about training on HP-UX, Proliant, ServiceGuard, StoreAll, StoreOnce, StoreServ, StoreEasy and High Availability

internet: Emil.Velez@hpe.com
Linkedin: http://www.linkedin.com/in/emilvelez

Acclaimed Contributor Acclaimed Contributor

Re: Unable to reduce an LV or sync.

You may run into problems when reducing the mirror because of a failing disk. You should avoid this and don't touch the configuration. Just disable the disk for LVM (pvchange -a N ...) and proceed:

When_Good_Disks_Go_Bad_WP
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf


In the situation you are now, consider to just pull the disk, do a vgcfgrestore and mirror all remaining LVOLs.

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!   
Visitor

Re: Unable to reduce an LV or sync.

Still running version 11.0

There is not an option for pvchange -a   in this version.

Advisor

Re: Unable to reduce an LV or sync.

Try the procedure given in  below link for replacing boot disk with mirroring (chapter 4)

 

http://h30499.www3.hp.com/hpeb/attachments/hpeb/itrc-156/239753/1/266625.htm

 

 

Visitor

Re: Unable to reduce an LV or sync.

The last reply was close enough to the solution.

Also had to remove the last extent with the -k option since after the reboot the PE showed as  "???"

 

Thank all of you!   :)