Operating System - HP-UX
1747988 Members
4925 Online
108756 Solutions
New Discussion юеВ

Incorrect status of swap lvol

 
Atul Goel
Frequent Advisor

Incorrect status of swap lvol

On my HP rx2620 machine with HPUX 11.23 OS the vg00 disk are mirrored. But, after taking out the one of the mirrored disk the status of swap partition and some times / partition is not automatically changes to stale. Is there any way to update this status??

bash-2.05b# lvdisplay /dev/vg00/lvol2
--- Logical volumes ---
LV Name /dev/vg00/lvol2
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 24576
Current LE 768
Allocated PE 1536
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

bash-2.05b# lvdisplay /dev/vg00/lvol1
--- Logical volumes ---
LV Name /dev/vg00/lvol1
VG Name /dev/vg00
LV Permission read/write
LV Status available/stale
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 576
Current LE 18
Allocated PE 36
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default
4 REPLIES 4
Ganesan R
Honored Contributor

Re: Incorrect status of swap lvol

Hi,

Try vgsync/lvsync commands.

#vgsync vg00

#lvsync /dev/vg00/lvol1
#lvsync /dev/vg00/lvol2
Best wishes,

Ganesh.
Atul Goel
Frequent Advisor

Re: Incorrect status of swap lvol

I tried the vgsync/lvsync but it did not help
Still the status of the disk is syncd


bash-2.05b# lvsync /dev/vg00/lvol2
Resynchronized logical volume "/dev/vg00/lvol2".
bash-2.05b# lvdisplay /dev/vg00/lvol2
--- Logical volumes ---
LV Name /dev/vg00/lvol2
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 24576
Current LE 768
Allocated PE 1536
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

Re: Incorrect status of swap lvol

Well a lvol isn't going to be marked as "stale" until a write occurs to it which can't go to all the mirrors.

So for the / lvol, I guess you could just run:

touch /xyz;sync;rm /xyz;sync

I'd imagine that will have forced a write and should mark your volume as stale.

For swap... well the only way to fotce a write is to force a page out, which would mean using up enough memory for paging to start happening.

Why do you care?

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Atul Goel
Frequent Advisor

Re: Incorrect status of swap lvol

I have to automate the scrpt for split mirroring. For that i have to find out the stale disk and provide the PV key information of the stale disk to the lvreduce command