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 ------------------------------------------------------------------------
Hi Please paste the script. & your desired output requirement from script so that it could be modified to that extent. Br// Srijan
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).