Operating System - HP-UX
1832128 Members
3180 Online
110038 Solutions
New Discussion

Re: error when removing mirror on a root lv

 
William Pribble
Frequent Advisor

error when removing mirror on a root lv

My primary root disk has stale extents. I am trying to remove the mirror to this disk with lvmreduce -m 0 /dev/vg00/lvol8 /dev/dsk/c1t2d0.

When I get to the lv with the actual stale extends I get the following error message.
lvreduce: Couldn't reduce the logical volume:
Device busy
lvreduce: The LVM device driver failed to reduce mirrors on
the logical volume "/dev/vg00/lvol8".

I tried using the PVKey with the following syntax

lvreduce -m 0 -k /dev/vg00/lvol8 0
And I get the same errors.

Any way I can reduce the mirror with the stale extents?

If I place in a third disk, can I mirror to this disk? And if so, will my lvol with the stale extents cause any issues since I can not remove it first?

Thanks
5 REPLIES 5
Ganesan R
Honored Contributor

Re: error when removing mirror on a root lv

Hi,

One possiblity is that both the primary and mirror copies has stale extends though lvdisplay won't display the actual status.

Try to read the entire logical volume or take a tar image of that lvol and make sure there is no i/o errors on it.

Thanks
Best wishes,

Ganesh.
Tim Nelson
Honored Contributor

Re: error when removing mirror on a root lv

Another possibility is the device you are removing is not the device at fault.

Always confirm device failure with
dd if=/dev/dsk/cxtxdx of=/dev/null

If the device you think does not fail the full read then it is the other one that is at fault.

Make an ignite image if you can before you proceed any further.

Sandeep_Chaudhary
Trusted Contributor

Re: error when removing mirror on a root lv

first u have to check which disk is failed using following command.

The following shows successful read of disk.
# dd if=/dev/rdsk/c0t5d0 of=/dev/null bs=1024k count=64
64+0 records in
64+0 records out
The following shows an unsuccessful read of the whole disk:
# dd if=/dev/rdsk/c1t3d0 of=/dev/null bs=1024k
dd read error: I/O error
0+0 records in 0+0 records out

Sachin Rajput
Advisor

Re: error when removing mirror on a root lv

Do following

First Need to Check the disk is faulty or not.
Do the four steps for that
1. vgdisplay -v vg00 //should show disk unavailable.
2. lvdisplay -v lvol_name // should show staled Pes
3. pvdisplay -v disk_path // should give error
4. ioscan -fc disk // should show disk unclaimed or no disk
5. diskinfo -v /dev/rdsk/diskpath // should show size=0 for faulty
6. dd if=/dev/rdsk/diskpath of=/dev/null bs=1024k count=64 // should return error for read

Run the following commands and check the status of the disk first

which version of Operating system is this?


Sachin Rajput
================
Suraj K Sankari
Honored Contributor

Re: error when removing mirror on a root lv

Hi,

Is seems device /dev/vg00/lvol8 is using by some other users first try to find out who is using this device other then root.

fuser -cu /var
then kill the user
fuser -ku /var

then try it with lvreduce

Suraj