Skip to content

            Lost ?  |  Need an account:
 
LVM Attributes PDF Print E-mail
(7 votes, average 5.00 out of 5)
Written by Tom Hirt   
Thursday, 21 May 2009 19:30
Article Index
LVM Attributes
Volume Group Attributes
Physical Volume Attributes
All Pages

 

Attributes Overview


In this KB, we will explorer LVM display attributes.  The LVM display attributes will help provide some insight into the status of your logical volumes and assist with determine if they are functioning correctly.

 

Logical Volume Attributes (lv_attr)


The lvs display attributes or lv_attr provide details into the status of the logical volume.  These attributes will help you determine if your volume / mirror / snap is online and functioning correctly.  We have include a diagram and table of this information for your convenience.

lv_attr Diagram:

lvs attr

lv_attr Table:

[root@Linux01 ~]# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
LogVol00 VolGroup00 -wi-ao 1.00G
[root@Linux01 ~]#


Bit #1
  • (m)irrored
  • (M)irrored without initial sync
  • (o)rigin
  • (p)vmove
  • (s)napshot
  • (S)napshot invalid
  • (v)irtual
  • (i)mage mirror
  • (I)mage out-of-sync
  • (c)onversion in progress
Bit #2
  • (w)riteable
  • (r)ead-only
Bit #3
  • (c)ontiguous
  • (n)ormal
  • c(l)ing
  • (a)nywhere
  • (i)nherited
Bit #4
  • (m)inor
Bit #5
  • (a)ctive
  • (s)uspended
  • (I)nvalid snapshot
  • (S)uspended snapshot
  • (d)evice present without tables
  • (i)nactive table on present device
Bit #6
  • (o)pen

 

From the above examples, we can see the lv_attr of '-wi-ao' tells us this logical volumes is:

  • Writeable
  • Inherited
  • Active
  • Open (mounted)


Volume Group Attributes (vg_attr)


The vgs display attributes or vg_attr provides details into the status of the volume group.  These attributes will help you understand the makeup and composition of the volume group.  We have include a diagram and table of this information for your convenience.

vg_attr Diagram:

vgs_attr

vg_attr Table:

[root@Linux01 ~]# vgs
VG #PV #LV #SN Attr VSize VFree
VolGroup00 1 5 0 wz--n- 9.88G 0
[root@Linux01 ~]#


Bit #1
  • (w)riteable

  • (r)ead-only
Bit #2
  • resi(z)eable
Bit #3
  • E(x)ported
Bit #4
  • (p)artial
Bit #5
  • (c)ontiguous
  • c(l)ing
  • (n)ormal
  • (a)nywhere
  • (i)nherited
Bit #6
  • (c)lustered

 

From the above examples, we can see the vg_attr of 'wz--n-' tells us this volume group is:

  • Writeable
  • Resizeable
  • Normal



 

Physical Volume Attributes (pv_attr)


The pvs display attributes or pv_attr provides details into the status of the physical volumes.  We have include a diagram and table of this information for your convenience.

pv_attr Diagram:

pv_attr

pv_attr Table:

[root@Linux01 ~]# pvs
PV VG Fmt Attr Psize PFree
/dev/sda2 VolGroup00
lvm2
a- 9.88G 0
[root@Linux01 ~]#


Bit #1
  • (a)llocatable
  • e(x)ported
Bit #2
  • NOT IN USE

 

From the above examples, we can see the pv_attr of 'a-' tells us this volume group is:

  • Allocatable

Add this page to your favorite website
AddThis Social Bookmark Button
Comments
Add New Search
Mark Stevens  - Nice Explaination of attribute bits |22/07/2009 10:19:57
Thanks for posting. I was looking for a good definition of attribute bits, and this could not be better.
Anonymous |04/03/2010 23:37:28
good one . Really helpfull
Anonymous |17/05/2010 13:39:14
This is helpful, but is there a way to set the the pv_attr to Allocatable. Basically we exported BCV's to a box and I can't mount them to the box.
bret |30/06/2010 09:45:57
Is there a chart for Volume Group attributes as well? I've issued the vgs command and am not sure how to interpret. Thanks.
bret |30/06/2010 09:47:15
Nevermind. I just did a man on 'vgs' and got the info I needed. Thanks.
Anonymous |21/03/2011 01:53:51
Thanks. Good One!
Anonymous |23/05/2011 10:49:19
useful! thanks :D
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:D:):(:0:shock::confused:8):lol::x:P:oops::cry::evil::twisted::roll::wink::!::?::idea::arrow:
 
Please input the anti-spam code that you can read in the image.

!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved."

Last Updated on Tuesday, 02 June 2009 07:55
 

Forum Activity

Author: Cogterrit
May.18.12
Author: Cogterrit
May.18.12
Author: Cogterrit
May.18.12
Author: Cogterrit
May.17.12

Online Stats

Guests Online: 67
Members Online: 1