Operating System - HP-UX
1753329 Members
4993 Online
108792 Solutions
New Discussion

Unable to reduce the mirrored lvol (Mirroed disk failed)

 
SOLVED
Go to solution
shikhar_1
Regular Advisor

Unable to reduce the mirrored lvol (Mirroed disk failed)

Hi,

 

I got some issue with mirrored disk of a lvol (lvolab) and i have to replace the failed mirroed disk.

However when i am trying to reduce my lvols related with disks i am getting some issue. If i am wrong then we have to reduce the lvol with the "key" number but i got the procedure.

 

Can anyone tell me the procedure to reduce the failed disk lvol?

 

Appreciate the response

 

 

 

1 REPLY 1
Patrick Wallek
Honored Contributor
Solution

Re: Unable to reduce the mirrored lvol (Mirroed disk failed)

Determine the 'pv key' of the failed disk by doing an 'lvdisplay -vk ' for the lvol in question.

 

Then to reduce the mirror do:

 

lvreduce -k -m 0 /dev/vg???/lvol??? <pvkey value>

 

For example:

 

# lvdisplay -vk /dev/vg00/lvol3
--- Logical volumes --- LV Name /dev/vg00/lvol3 VG Name /dev/vg00 LV Permission read/write LV Status available/syncd Mirror copies 1 Consistency Recovery MWC Schedule parallel LV Size (Mbytes) 544 Current LE 68 Allocated PE 136 Stripes 0 Stripe Size (Kbytes) 0 Bad block off Allocation strict/contiguous IO Timeout (Seconds) default --- Distribution of logical volume --- PV Name LE on PV PE on PV /dev/dsk/c1t0d0 68 68 /dev/dsk/c2t0d0 68 68 --- Logical extents --- LE PV1 PE1 Status 1 PV2 PE2 Status 2 00000 0 00166 current 1 00166 current 00001 0 00167 current 1 00167 current 00002 0 00168 current 1 00168 current 00003 0 00169 current 1 00169 current

 If I want to reduce the mirror disk, which has a pvkey of '1' in this case, I would do:

 

lvreduce -k -m 0 /dev/vg00/lvol3 1