Operating System - HP-UX
1834640 Members
3151 Online
110069 Solutions
New Discussion

Re: Checking all volumes,volume sizes,total and free disk space

 
Nagaraj_4
Occasional Contributor

Checking all volumes,volume sizes,total and free disk space

Hi there,
How can I check all available vg,volume sizes,total and free disk space of n-class server attached to emc storage without root user?

Thanks in advance
-Nag
6 REPLIES 6
Armin Feller
Honored Contributor

Re: Checking all volumes,volume sizes,total and free disk space

Hi,

you can see the free space of all configured EMC LUNs in your volume groups by:

# vgdisplay

have a look at this line for each volume group:

Free PE

Hope that helps.

Regrads ...
Armin
Armin Feller
Honored Contributor

Re: Checking all volumes,volume sizes,total and free disk space

Hi,

sorry ;-( You can configure a restricted SAM (sam -r) so that a other user can see the avaliable free space of you volume groups (see man page).

Regards ...
Armin
Trond Haugen
Honored Contributor

Re: Checking all volumes,volume sizes,total and free disk space

Any user can use bdf, vgdisplay and lvdisplay.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Steven E. Protter
Exalted Contributor

Re: Checking all volumes,volume sizes,total and free disk space

If you like your figures in Megabytes, I'm attaching a script called mbdf

It uses bdf but provides figures in Meg instead if kb.

All you need to do is save it in a common directory on the user path and give it execute permissions.

It is tested, but I always recommend carefully examining shell scripts prior to using them.

P
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeff Schussele
Honored Contributor

Re: Checking all volumes,volume sizes,total and free disk space

Hi Nagaraj,

vgdisplay -v > /tmp/vgdata.out

and

lvdisplay -v /dev/vg_name/lv_name > /tmp/lv_name.out

for every LV should give you everything you want.

These can be run by normal users.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Sridhar Bhaskarla
Honored Contributor

Re: Checking all volumes,volume sizes,total and free disk space

Hi Nag,

You can do.

VGs - /usr/sbin/vgdisplay -v
LVs and their sizes - /usr/sbin/lvdisplay -v lv_name
Disks - /usr/sbin/ioscan -fnkC disk
Used and free space - bdf

All the above can you done as a normal user. Look at the man pages of each of the above commands. You may need to do a combination of the above commands to get what you need.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try