System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

get allocated,free space of a volume group in linux (optional : depends if vg is mirrored)

support_billa
Valued Contributor

get allocated,free space of a volume group in linux (optional : depends if vg is mirrored)

hello,

 

i have to port  a volume group scripts from HP-UX to LINUX (Suse), i also created a thread for HP-UX about this topic:

 

get allocated,free space of a volume group (optional : depends if vg is mirrored)

 

if a  Logical Volume of a Volume Group is mirrored , i use /sbin/lvs and search for Attribute "mwa" like :

 

/sbin/lvs -o lv_attr | grep "mwa"

 

i ported the script from HP-UX , i mean also it is useful to use "lvs" and "vgs" than "vgdisplay -v "

 

usage: vgstat -h

example: vgstat      

                vgstat -n    # < - net value

                 vgstat <vgname>

 

regards