Clear space on boxes

From JCWiki
Revision as of 20:56, 10 October 2012 by Support (talk | contribs)
Jump to navigation Jump to search

bwdb: we move old traffic flow files to backup2

  1. go to bwdb (10.1.4.203 - a7p1o4) /usr/home/archive#
  2. scp the oldest month to any available disk with space on backup2:
    1. since there are many files, you can't do a whole month at a time like this:
      • scp ft-v05.2012-06-* 10.1.4.3:/d2/bwdb/archive/ && rm -f ft-v05.2012-06-*
    2. you have to start with the single digit days first:
      • scp ft-v05.2012-07-0* 10.1.4.3:/d2/bwdb/archive/ && rm -f ft-v05.2012-07-0*
    3. then you can proceed with the full month:
      • scp ft-v05.2012-06-* 10.1.4.3:/d2/bwdb/archive/ && rm -f ft-v05.2012-06-*
  3. mostly the same on bwdb2 (a7p1o5):
    1. bwdb2 /home/archive# scp ft-v05.2011-05* backup2:/mnt/data2/bwdb/archive/bwdb2/
    2. bwdb2 /home/archive# rm ft-v05.2011-05*

jail8

  1. rm /var/mail/root


backup2
nothing yet...

        to find candidate to move off host machines

jails
for f in `ls |grep -v DIR`; do du -sh $f; df -h $f-DIR

look for bang for the buck

virts

vdf = df -h in container
vdff = df everyone in cur dir (e.g. /vz or /vz1 or /vz2)