Operating System - HP-UX
1847474 Members
3084 Online
110265 Solutions
New Discussion

Stale LV...has to be clear ( Please go through message content to get clear pic)

 
Karthik Balu_1
New Member

Stale LV...has to be clear ( Please go through message content to get clear pic)

apus67 # lvdisplay -v /dev/vg03/lvswap3|more
--- Logical volumes ---
LV Name /dev/vg03/lvswap3
VG Name /dev/vg03
LV Permission read/write
LV Status available/stale
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1024
Current LE 256
Allocated PE 512
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/c1t10d0 256 256
/dev/dsk/c1t14d0 256 256

----------------
/dev/dsk/c1t14d0 00002 stale (Also hav write errors on STM)
----------------

Stale PV shared with 4 Logical volumes...and they all are not mirrored....

--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vg03/lvsap23 126 126
/dev/vg03/lvswap3 256 256
/dev/vg03/lvsap24 64 64
/dev/vg03/lvsap14 38 38
_______

This case how do we recover the stale...?
If incase we need to replace the disk...what is the procedure...?

Thanks in advance....
3 REPLIES 3
rariasn
Honored Contributor

Re: Stale LV...has to be clear ( Please go through message content to get clear pic)

Matti_Kurkela
Honored Contributor

Re: Stale LV...has to be clear ( Please go through message content to get clear pic)

"Mirror copies 1" means /dev/vg03/lvswap3 *is* mirrored: there is one complete copy on /dev/Dsk/c1t10d0 and another on c1t14d0.

Just mirror the lvswap3 to a new PV, and then use "lvreduce -m" to remove the mirror component that's currently on c1t14d0.

If the other LVs on c1t14d0 are also mirrored, do the same for them too.

If they are not mirrored but still readable, backup their data as soon as possible! Then mirror them to the new PV, and remove the mirror half that's on c1t14d0.

The document linked by rariasn is very useful too.

MK
MK
Karthik Balu_1
New Member

Re: Stale LV...has to be clear ( Please go through message content to get clear pic)

Rariasn -> Thanks for the response...Your document is very usefull to get a hint..

Matti Kurkela -> Thank you for the Right solution.... follwed your steps..