Operating System - HP-UX
1748264 Members
4069 Online
108760 Solutions
New Discussion

Re: Unable to reduce an LV or sync.

 
SOLVED
Go to solution
Chad Parrish
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 6
Bill Hassell
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.



Bill Hassell, sysadmin
Emil Velez_2
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
Instructor Storage, Servers, HP-UX and Partner Courses
Hewlett Packard Enterprise Education Services
Ask me about training on StoreServ (3PAR) StoreOnce, StoreEasy, StoreAll, StoreVirtual, HP-UX, ServiceGuard and HPE Partner Ready Certification Training

internet: Linkedin: http://www.linkedin.com/in/emilvelez

HPE Master ASE Server Solutions Architect V3
HPE Master ASE Storage Solutions Architect V2
HP UNIX Certified (ASE HPUX 11iv3 Administration V1)
Certified HPE Instructor
HPE Product Certified - OneView [2016]
HP Sales Certified -Servers, Converged Systems and Services [2015]
HPE Product Certified - Converged Solutions [2017]
Torsten.
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!   
Chad Parrish
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.

karthikbalu
Advisor
Solution

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

 

 

Chad Parrish
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!   :)