Operating System - HP-UX
1748252 Members
3785 Online
108760 Solutions
New Discussion юеВ

Re: lvdisplay showing all extents stale after hub replacement

 
seanharrodine
Advisor

lvdisplay showing all extents stale after hub replacement

Hi everyone,

I have had to have a fibre hub replaced today on 1 side of my 2 node cluster.
The ioscans are now showing correctly on both sides, but, my lvol is still showing stales.....

# lvdisplay -v /dev/vg02/lvol1|more
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c5t0d2":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query physical volume "/dev/dsk/c11t0d2":
The specified path does not correspond to physical volume attached to
this volume group
lvdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name /dev/vg02/lvol1
VG Name /dev/vg02
LV Permission read/write
LV Status available/stale
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 59724
Current LE 14931
Allocated PE 29862
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c4t0d2 14931 14931

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c4t0d2 00000 current ??? 00000 stale
00001 /dev/dsk/c4t0d2 00001 current ??? 00001 stale

etc etc etc.............

I have an old example of an lvdisplay which shows that the volumes that i need are :

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c4t0d2 14931 14931
/dev/dsk/c11t0d2 14931 14931

The vgdisplay "seems" to show still seems to have c11t0d2 in its config :

# vgdisplay -v vg02
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c5t0d2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c11t0d2":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Volume groups ---
VG Name /dev/vg02
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 2
Act PV 1
Max PE per PV 14956
VGDA 2
PE Size (Mbytes) 4
Total PE 14954
Alloc PE 14931
Free PE 23
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0


So, in short, can anyone advise how i get my LV back up and running and fully mirrored and get rid of all the stales please ?

TIA
Sean
2 REPLIES 2
Mel Burslan
Honored Contributor

Re: lvdisplay showing all extents stale after hub replacement

on the output of vgdisplay -v vg02, do you se these lines below ? More importantly do you know what they mean ? It means you have two physical volumes (LUNs) on this vg but one of them is inactive ?

Cur PV 2
Act PV 1

Please post the entire output from vgdisplay -v vg02, including the PV names and all. Do not hold back anything.

Also,
ioscan -fnC disk

and

for fc in `ioscan -fnC fc |grep "/dev/"`
do
fcmsutil $fc
done


outputs are needed. If it is too long, post it as an attachment, otherwise post the output text here.

Looks like your second path (the fiber switch you replaced) is not active at the moment.

________________________________
UNIX because I majored in cryptology...
seanharrodine
Advisor

Re: lvdisplay showing all extents stale after hub replacement

Hi Mel,

Apologise for the confusion.

I have attached the information that you require (ioscans, vgdisplay, lvdisplay etc)

This is a live 2 node service guard cluster and the package is running on server 01.
The servers are connected by 2 longwave fibre cables but we have been running with 1 disconnected for 6 months now due to a seperate problem. This gives us more than enough resilience though.

Controller 112 was unavailable on the 02 server but this was rectified last night (fibre hub problem) but ioscans now show that it is available and visible once more, but the LV doesnt seem to be able to see it any longer and we have stales.

I have found an old LVDISPLAY output
So, by my understanding, i need to get the LVDISPLAY back to the state where it can use
/dev/dsk/c11t0d2 again.

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c4t0d2 14931 14931
/dev/dsk/c11t0d2 14931 14931

Thanks in advance Mel.

Feel free to ask for any more information.

Rgds,
Sean