#1  
Old 13th April 2014, 23:10
Fairbanks Fairbanks is offline
Junior Member
 
Join Date: Jul 2011
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Default Disk Usage

Hi,

I created a quick and dirty bash script that gives me the "full picture" around disk usage for my system. The script is not that perfect but handy for my setup. Below is the output if someone is interested...

I use this system to sit a version of ISPConfig 3. I created a volume group for /www that I can expand using free space when I need it.

Anyway, let me know !

G

------------------------------------------------------------------------
Checking RAID Device(s)
Looking at RAID md0
State : clean -- Used for SWAP
Looking at RAID md1
State : clean -- 70% Used for /boot
Looking at RAID md2
State : active -- Used for Volume Group below
------------------------------------------------------------------------
Checking VolumeGroup(s)
VG #PV #LV #SN Attr VSize VFree
VG-01 1 4 0 wz--n- 287.86g 102.86g
------------------------------------------------------------------------
Checking LogicalVolume(s)
LogVol00: /dev/VG-01/LogVol00 = 25.00g = 1% used for /home
LogVol01: /dev/VG-01/LogVol01 = 30.00g = 3% used for /var
LogVol02: /dev/VG-01/LogVol02 = 30.00g = 1% used for /www
LogVol03: /dev/VG-01/LogVol03 = 100.00g = 5% used for /
Total Space 185.00g
------------------------------------------------------------------------
Reply With Quote
Sponsored Links
  #2  
Old 14th April 2014, 07:29
srijan srijan is offline
HowtoForge Supporter
 
Join Date: Feb 2014
Location: New Delhi, India
Posts: 604
Thanks: 4
Thanked 80 Times in 77 Posts
Send a message via Skype™ to srijan
Default

Hi

Please paste the script. & your desired output requirement from script so that it could be modified to that extent.

Br//
Srijan
Reply With Quote
  #3  
Old 15th April 2014, 15:31
Fairbanks Fairbanks is offline
Junior Member
 
Join Date: Jul 2011
Posts: 18
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Attached is the script for others to use. There's a few things that are "hardcoded" for my environment, but the script is doing exactly what I want e.g. showing a complte disk health picture with one command (the file has to be renamed chkdsk.sh of course).
Attached Files
File Type: txt chkdsk.txt (3.6 KB, 23 views)
Reply With Quote
  #4  
Old 15th April 2014, 15:41
srijan srijan is offline
HowtoForge Supporter
 
Join Date: Feb 2014
Location: New Delhi, India
Posts: 604
Thanks: 4
Thanked 80 Times in 77 Posts
Send a message via Skype™ to srijan
 
Default

Hi

I will check the script & let you know with the possiblities.

Br//
Srijan
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
df -h shows 100% disk usage after reboot vmos Installation/Configuration 0 4th February 2013 15:34
Mailbox disk usage in ISPConfig3 Captain Installation/Configuration 2 13th July 2012 11:47
Adding non-RAID backup disk to system with RAID 1... BorderAmigos Installation/Configuration 1 20th February 2010 20:50
Accessing Devices from Inside VPS i need help! swap-as Installation/Configuration 2 8th May 2009 14:45
chgrp error new user DKA General 15 28th July 2008 17:45


All times are GMT +2. The time now is 20:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.