Re: Unable to reduce an LV or sync. (407 Views)
Reply
Visitor
Chad Parrish
Posts: 3
Registered: ‎07-28-2003
Message 1 of 7 (427 Views)
Accepted Solution

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.

Honored Contributor
Bill Hassell
Posts: 14,210
Registered: ‎05-29-2000
Message 2 of 7 (407 Views)

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
Emil Velez_2
Posts: 126
Registered: ‎01-15-2002
Message 3 of 7 (399 Views)

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 (CSA, CSE HPUX 11i High Availability) HP Software (Openview) Certified Consultant
Certified HP Instructor, Technical Certified I and II SMB and Enterprise
Master ASE Superdome Solutins

HP Education Services

Ask me about training on Blades, Proliant, HP-UX, ServiceGuard, Polyserve, X9000, Virtual Libraries, and High Availability

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

Acclaimed Contributor
Torsten.
Posts: 23,395
Registered: ‎10-02-2001
Message 4 of 7 (391 Views)

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
Chad Parrish
Posts: 3
Registered: ‎07-28-2003
Message 5 of 7 (381 Views)

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
karthikbalu
Posts: 20
Registered: ‎10-16-2012
Message 6 of 7 (375 Views)

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
Chad Parrish
Posts: 3
Registered: ‎07-28-2003
Message 7 of 7 (362 Views)

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

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.