- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- command for size disk
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2010 11:31 AM
тАО05-06-2010 11:31 AM
There is a command to determine the size available or used in a disk of a VG?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2010 11:48 AM
тАО05-06-2010 11:48 AM
Solutionvgdisplay # shows free PE and size of each PE in a volume group.This shows what portion of a VG is part of a logical volume.
pvdisplay # will show on a physical volume free versus allocated PE's and these figure can be translated into MB or GB
bdf, general tool for checking file systems.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2010 12:09 PM
тАО05-06-2010 12:09 PM
Re: command for size disk
in this case disk free size 3.9 GB???
--- Physical volumes ---
PV Name /dev/dsk/c27t1d4
VG Name /dev/vgQAECC
PV Status available
Allocatable yes
VGDA 2
Cur LV 10
PE Size (Mbytes) 4
Total PE 15359
Free PE 1021
Allocated PE 14338
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
Proactive Polling On
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2010 12:10 PM
тАО05-06-2010 12:10 PM
Re: command for size disk
will list all vg , to get the total/ used / free size in vg
total = PE size * Total PE
used = PE size * Alloc PE
free = PE size * Free PE
(2) And to check how many disk in vg
#vgdisplay -v /dev/vgname
Regards,
Subodh B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2010 06:16 PM
тАО05-06-2010 06:16 PM
Re: command for size disk
> There is a command to determine the size available or used in a disk of a VG?
- There is no single command , but you can try this, for: Total,Allocated and Available space on the VG:
# vgdisplay vg_name | grep -e "PE Size" -e "Total PE" -e "Alloc PE" -e "Free PE" | cut -c 25- | xargs | awk '{print "Total =\t"$1 * $2 "MB\n" "Allocated =\t" $1*$3 "MB\n" "Free =\t" $1*$4 "MB" }'| awk '{printf "%-15s%-2s%s\n",$1,$2,$3}'
Output:
Total = 138208MB
Allocated = 131072MB
Free = 7136MB
_____________________________
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2010 06:35 PM
тАО05-06-2010 06:35 PM
Re: command for size disk
As everyone post above "vgdisplay" is the command.
for more information on vgdisplay check the man pages.
http://docs.hp.com/en/B2355-90692/vgdisplay.1M.html
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-06-2010 06:40 PM
тАО05-06-2010 06:40 PM
Re: command for size disk
You can see the free space from vgdisplay command
(Free PE*PE Size)/1024 GB.
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2010 02:18 PM
тАО05-07-2010 02:18 PM
Re: command for size disk
PVdisplay: solved problem