Editing
Clear space on boxes
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
'''bwdb: we move old traffic flow files to backup2''' <br /> <ol start="1"> <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> <ol style="list-style-type: upper-alpha"> <li>since there are many files, you can't do a whole month at a time like this:</li> *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> *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> *scp ft-v05.2012-06-* 10.1.4.3:/d2/bwdb/archive/ && rm -f ft-v05.2012-06-* </ol> <li>mostly the same on bwdb2 (a7p5o11):</li> <ol style="list-style-type: upper-alpha"> <li>bwdb2 /home/archive# scp ft-v05.2011-07* backup2:/mnt/data2/bwdb/archive/bwdb2/ && rm ft-v05.2011-07*</li> </ol> </ol> '''jail8 & mail''' <br /> <ol start="1"> <li>rm /var/mail/root</li> </ol> <br /> '''jail9''' <ol start="1"> <li>jail9 /mnt/data1# '''rm -fr old-col02106-mdfile-cxld-20120618'''</li> <li>jail9 /mnt/data1#''' df .'''</li> </ol> Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/mfid0s1g 126049816 118309094 7740722 94% /mnt/data1 <ol start="3"> <li>jail9 /mnt/data1#''' gzip old-col02124-mdfile-cxld-20120817'''</li> </ol> '''backup2''' <br /> <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 /> == to find candidate to move off host machines == '''jails'''<br> for f in `ls |grep -v DIR`; do du -sh $f; df -h $f-DIR<br> <br> look for bang for the buck<br> <br> '''virts'''<br> <br> vdf = df -h in container<br> vdff = df everyone in cur dir (e.g. /vz or /vz1 or /vz2)
Summary:
Please note that all contributions to JCWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JCWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information