- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: shell script for disk space in GB
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
тАО11-16-2005 05:06 PM
тАО11-16-2005 05:06 PM
Re: shell script for disk space in GB
# bdf | awk 'BEGIN{ print "Filesystem GBytes Used avail %used Mounted on"}{ if ($0 ~! /Filesystem/) { printf "%s %6.5f %6.5f %6.5f %3s %s\n",$1,$2/1024/1024,$3/1024/1024,$4/1024/1024,$5,$6;}}'
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2005 04:38 AM
тАО11-17-2005 04:38 AM
Re: shell script for disk space in GB
I have checked that both disks are available on the servers. Attached disks and SAN disk.
How to find out how much SAN disk is used, free ?
I mean i want separation of usage of SAN and attached disks both ?
Thanks,
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-17-2005 07:00 AM
тАО11-17-2005 07:00 AM
Re: shell script for disk space in GB
Depends on what you are looking for and from what perspective. Disk space available per LV, per VG. You might also have disks available on your system that have not been pvcreated but are available. Can you be more specific?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-01-2006 01:13 PM
тАО01-01-2006 01:13 PM
Re: shell script for disk space in GB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-01-2006 01:22 PM
тАО01-01-2006 01:22 PM
Re: shell script for disk space in GB
# diskinfo /dev/rdsk/cXtYdZ
...will return the size of a disk. Note the use of the raw (character) device -- 'rdsk'.
See the manpages for more information, too.
Regards!
...JRF...
- Tags:
- diskinfo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-01-2006 02:31 PM
тАО01-01-2006 02:31 PM
Re: shell script for disk space in GB
You can use the attached script finding out un-used disks,
Note : It works when you have Solution Enabler installed on your server.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-01-2006 02:36 PM
тАО01-01-2006 02:36 PM
Re: shell script for disk space in GB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-01-2006 03:14 PM
тАО01-01-2006 03:14 PM
Re: shell script for disk space in GB
As far as locating disks on your system which are not used, that is, not part of any disk volume group, you can run SAM and in the disks section, start creating a new volume group. The first step in SAM will show you potential disks you can use for a new volume or to extend an existing volume.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-01-2006 05:13 PM
тАО01-01-2006 05:13 PM
Re: shell script for disk space in GB
#!/usr/bin/ksh
echo "Filesystem Gbytes used avail %used Mounted on"
bdf $1 | grep -v Filesystem | awk '{ printf("%s %10d %10d %10d %4s %s\n",$1,$2/1024/1024,$3/1024/1024,$4/1024/1024,$5,$6)}'
And you can find the script for used and available space for disks as ana attachment. It gives you detailed information about PVs,VGs and LVs. you only have to add your mail address to script.
- « Previous
-
- 1
- 2
- Next »