Operating System - HP-UX
1753804 Members
7642 Online
108805 Solutions
New Discussion юеВ

Re: How to unmirror a failed disk

 
SOLVED
Go to solution
Madhu_17
Regular Advisor

How to unmirror a failed disk

Hi,

I have mounted the filesystem. but the lvdisplay is showing stale for one of the disk.

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
0000 ??? 0000 stale /dev/dsk/c2t2d0 0000 current

i tried to reduce the lv, but it's giving the error. i think for this problematic disks with the question mark we have to use lvreduce command with "pvkey".

Can anybody pls tell me how to find out this pvkey 'n' the exact syntax of this command.

Thanks,
SR
4 REPLIES 4
Stf
Esteemed Contributor

Re: How to unmirror a failed disk

Hello,

try :

# lvreduce -m 0 /dev/vgxx/lvolx /dev/dsk/cxtxdx

which /dev/dsk/cxtxdx is your failed disk

Stf ;-)
Madhu_17
Regular Advisor

Re: How to unmirror a failed disk

I tried the same command already. But it's failing.

Can you pls tell me how to remove the failed disk, which shows "question marks" in lvdisplay.
Sridhar Bhaskarla
Honored Contributor
Solution

Re: How to unmirror a failed disk

Hi Rakesh,

You are right. You will need to use 'pvkey' to reduce the mirror. Run the command

lvdisplay -k -v /dev/vgxx/lvolx

and find out the pvkey corresponding to the failed PV. Then use 'lvreduce -m 0 -k /dev/vgxx/lvolx . In your case, will be most likely 1.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Madhu_17
Regular Advisor

Re: How to unmirror a failed disk

Great Sri...

I was looking for the exact command.

I have reduced the LV successfully.

Thanks,
SR