Difference between revisions of "Checking disk quota"
(just a placeholder) |
m (ve0->CT0) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
FIXME: describe this | FIXME: describe this | ||
− | <source | + | <source lang="bash"> |
− | # cat /proc/vz/vzquota | awk 'BEGIN {b_s=b_h=i_s=i_h=0} /1k-blocks/ {b_s+=$3; b_h+=$4} /inodes/ {i_s+=$3; i_h+=$4} END {print "1k-blocks soft: " b_s " hard:" b_h; print " inodes soft: " i_s " hard: " i_h}' | + | # cat /proc/vz/vzquota | awk ' |
+ | BEGIN {b_s=b_h=i_s=i_h=0} | ||
+ | /1k-blocks/ {b_s+=$3; b_h+=$4} | ||
+ | /inodes/ {i_s+=$3; i_h+=$4} | ||
+ | END {print "1k-blocks soft: " b_s " hard:" b_h; | ||
+ | print " inodes soft: " i_s " hard: " i_h}' | ||
1k-blocks soft: 68500834 hard:73237749 | 1k-blocks soft: 68500834 hard:73237749 | ||
inodes soft: 7880000 hard: 8080000 | inodes soft: 7880000 hard: 8080000 | ||
− | [root@ | + | [root@CT0 packages]# df -k /vz |
Filesystem 1K-blocks Used Available Use% Mounted on | Filesystem 1K-blocks Used Available Use% Mounted on | ||
/dev/sda4 51210008 48193204 415480 100% /vz | /dev/sda4 51210008 48193204 415480 100% /vz | ||
Line 12: | Line 17: | ||
/dev/sda4 6504448 1822924 4681524 29% /vz | /dev/sda4 6504448 1822924 4681524 29% /vz | ||
</source> | </source> | ||
+ | |||
+ | [[Category: Disk quota]] | ||
+ | [[Category: Monitoring]] |
Latest revision as of 12:02, 11 March 2008
FIXME: describe this
# cat /proc/vz/vzquota | awk '
BEGIN {b_s=b_h=i_s=i_h=0}
/1k-blocks/ {b_s+=$3; b_h+=$4}
/inodes/ {i_s+=$3; i_h+=$4}
END {print "1k-blocks soft: " b_s " hard:" b_h;
print " inodes soft: " i_s " hard: " i_h}'
1k-blocks soft: 68500834 hard:73237749
inodes soft: 7880000 hard: 8080000
[root@CT0 packages]# df -k /vz
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda4 51210008 48193204 415480 100% /vz
[root@ve0 packages]# df -ki /vz
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda4 6504448 1822924 4681524 29% /vz