Clear space on boxes: Difference between revisions

From JCWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(19 intermediate revisions by 4 users not shown)
Line 2: Line 2:
<br />
<br />
<ol start="1">
<ol start="1">
<li>go to bwdb (10.1.4.203 - a7p1o4) /usr/home/archive#</li>
<li>go to bwdb (10.1.4.203 - a7p1o2) /usr/home/archive#</li>
<li>scp the oldest month to any available disk with space on backup2:</li>
<li>scp the oldest month to any available disk with space on backup2:</li>
<ol style="list-style-type: upper-alpha">
<ol style="list-style-type: upper-alpha">
Line 8: Line 8:
*scp ft-v05.2012-06-* 10.1.4.3:/d2/bwdb/archive/ && rm -f ft-v05.2012-06-*
*scp ft-v05.2012-06-* 10.1.4.3:/d2/bwdb/archive/ && rm -f ft-v05.2012-06-*
<li>you have to start with the single digit days first:</li>
<li>you have to start with the single digit days first:</li>
*scp ft-v05.2012-07-0* 10.1.4.3:/d2/bwdb/archive/ && rm -f ft-v05.2012-07-0*
*scp ft-v05.2012-11-2* 10.1.4.3:/d2/bwdb/archive/ && rm -f ft-v05.2012-11-2*
<li>then you can proceed with the full month:</li>
<li>then you can proceed with the full month:</li>
*scp ft-v05.2012-06-* 10.1.4.3:/d2/bwdb/archive/ && rm -f ft-v05.2012-06-*
*scp ft-v05.2012-06-* 10.1.4.3:/d2/bwdb/archive/ && rm -f ft-v05.2012-06-*
</ol>
</ol>
<li>mostly the same on bwdb2 (a7p1o5):</li>
<li>mostly the same on bwdb2 (a7p5o11):</li>
<ol style="list-style-type: upper-alpha">
<ol style="list-style-type: upper-alpha">
<li>bwdb2 /home/archive# scp ft-v05.2011-05* backup2:/mnt/data2/bwdb/archive/bwdb2/</li>
<li>bwdb2 /home/archive# scp ft-v05.2011-07* backup2:/mnt/data2/bwdb/archive/bwdb2/ && rm ft-v05.2011-07*</li>
<li>bwdb2 /home/archive# rm ft-v05.2011-05*</li>
</ol>
</ol>
</ol>
</ol>
Line 39: Line 38:
'''backup2'''
'''backup2'''
<br />
<br />
nothing yet...
<ol start="1">
<li>for /mnt/data2</li>
<li>rm the oldest months in '''/mnt/data2/bwdb/archive''' until at an acceptable level</li>
</ol>
<br />
<br />
        to find candidate to move off host machines
 
== to find candidate to move off host machines ==


'''jails'''<br>
'''jails'''<br>

Latest revision as of 18:19, 19 January 2013

bwdb: we move old traffic flow files to backup2

  1. go to bwdb (10.1.4.203 - a7p1o2) /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-11-2* 10.1.4.3:/d2/bwdb/archive/ && rm -f ft-v05.2012-11-2*
    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 (a7p5o11):
    1. bwdb2 /home/archive# scp ft-v05.2011-07* backup2:/mnt/data2/bwdb/archive/bwdb2/ && rm ft-v05.2011-07*

jail8 & mail

  1. rm /var/mail/root


jail9

  1. jail9 /mnt/data1# rm -fr old-col02106-mdfile-cxld-20120618
  2. jail9 /mnt/data1# df .
     Filesystem    1K-blocks      Used   Avail Capacity  Mounted on
     /dev/mfid0s1g 126049816 118309094 7740722    94%    /mnt/data1
  1. jail9 /mnt/data1# gzip old-col02124-mdfile-cxld-20120817


backup2

  1. for /mnt/data2
  2. rm the oldest months in /mnt/data2/bwdb/archive until at an acceptable level


to find candidate to move off host machines[edit]

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)