1827293 Members
3754 Online
109717 Solutions
New Discussion

lvdisplay

 
SOLVED
Go to solution
merce_1
Occasional Contributor

lvdisplay

Hello.
Executing the lvdisplay command it's only get in the LV status 'available' without determining if it's 'stale' or 'syncd'. I've read that it's related to the Mirrow Writte cache and Mirrow Recovery. Is it true? and if it's how can i know if they are on or off and solve the problem?
7 REPLIES 7
Shahul
Esteemed Contributor
Solution

Re: lvdisplay

Hi

What exactly U are looking for?

If U wanted to know about the extends which are in stale state, U can use lvdisplay -v command.

If U wanted to know about consistancy recovery, U can see a field in lvdisplay command like consistancy recovery. It's vale will be MWC, NOMWC or NONE. The details about these U can see in man page of lvdisplay.

Best of luck
Shahul
PIYUSH D. PATEL
Honored Contributor

Re: lvdisplay

Hi,

Pls post an output of your lvdisplay

lvdisplay -v /dev/vg02/lvol1 ( the logical volume for which you want this info. )

Normally if you go thro the first 10-15 lines you will be able to understand.

MWC ...Mirror copies

Do man lvdisplay

Piyush
PIYUSH D. PATEL
Honored Contributor

Re: lvdisplay

--- Logical volumes ---
LV Name /dev/vg00/lvol1
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 100
Current LE 25
Allocated PE 50
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/c1t2d0 25 25
/dev/dsk/c2t2d0 25 25

See the attachment

merce_1
Occasional Contributor

Re: lvdisplay

ok, yeah, thanks but my problem is that I need to get all the information for the LV status, not only available, also if it's syncd or stale when i do a lvdisplay or a vgdisplay.
I read in man that it's due to have the Mirrow Writte Cache and the Mirrow recovery off.

Also I read some options in lvchange to change the Recovery consistency...and although i change it from NONE to NONWC or MWC i'm not able to get the ouput of the lvdisplay in the LV Status as more than just 'available'

Martin Johnson
Honored Contributor

Re: lvdisplay

I don't understand, when you do a lvdisplay -v
the forth line will have the LV status:

LV Status available/syncd

If the lv is stale if would say:

LV Status unavailable/stale

what else are you looking for?

Marty
merce_1
Occasional Contributor

Re: lvdisplay

well, sometimes or at least in this case, doing lvdisplay only appears

LV status available

nothing more

why?
John Dvorchak
Honored Contributor

Re: lvdisplay

Have you tried:
lvdisplay -v /dev/vgxx/lvolx|grep -i stale

And are you sure that the LV is mirrored? If it is mirrored and you issue the above command you will have an output like this:

--- 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) 140
Current LE 35
Allocated PE 70
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/c0t1d0 35 35
/dev/dsk/c0t3d0 35 35

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
0000 /dev/dsk/c0t1d0 0085 current /dev/dsk/c0t3d0 0085 current
0001 /dev/dsk/c0t1d0 0086 current /dev/dsk/c0t3d0 0086 current
0002 /dev/dsk/c0t1d0 0087 current /dev/dsk/c0t3d0 0087 current
0003 /dev/dsk/c0t1d0 0088 current /dev/dsk/c0t3d0 0088 current
0004 /dev/dsk/c0t1d0 0089 current /dev/dsk/c0t3d0 0089 current
0005 /dev/dsk/c0t1d0 0090 current /dev/dsk/c0t3d0 0090 current
0006 /dev/dsk/c0t1d0 0091 current /dev/dsk/c0t3d0 0091 current
0007 /dev/dsk/c0t1d0 0092 current /dev/dsk/c0t3d0 0092

Notice the "mirror copies" and the output below stating "current"


If it has wheels or a skirt, you can't afford it.