Created
April 13, 2011 19:55
-
-
Save jlgreer/918280 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body volume checksize(size) | |
{ | |
sensible_size => "$(size)"; | |
} | |
<snip from bundle agent> | |
storage: | |
CfgMgtVcs:: | |
"/" | |
#volume => checksize("100G"), # screams that int is out of range (ok, true) | |
#volume => checksize("99999999990"), # should scream and does | |
#volume => checksize("70G"), # should scream but doesn't | |
#volume => checksize("100000"), # shouldn't scream and does not | |
#volume => checksize("103000"), # shouldn't scream and does not | |
volume => checksize("104000"), # shouldn't scream and does: !! File system / is suspiciously small! (103548 bytes) | |
classes => if_success_failure("volsize_slash_good", "volsize_slash_bad"); | |
reports: | |
CfgMgtVcs.volsize_slash_good:: | |
"Size of / is as expected."; | |
CfgMgtVcs.!volsize_slash_good:: | |
"ERROR: Size of / is less than expected."; | |
</snip> | |
# df -k | |
Filesystem 1K-blocks Used Available Use% Mounted on | |
/dev/mapper/VolGroup01-LogVol00 | |
20187780 4986792 14158968 27% / | |
/dev/sda1 101022 35673 60133 38% /boot | |
tmpfs 447904 0 447904 0% /dev/shm | |
none 1048576 48 1048528 1% /tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment