computers:oak
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
computers:oak [2010/07/01 15:58] – chkuo | computers:oak [2010/07/30 22:54] (current) – removed chkuo | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Oak ====== | ||
- | |||
- | ===== Services ===== | ||
- | * High-performance computation | ||
- | |||
- | ===== Hardware ===== | ||
- | * Model: NEC Express5800/ | ||
- | * CPU: Intel Xeon E5520 (2.26 GHz, 4-core) * 2 | ||
- | * RAM: 4Gb DDR3 1066MHz * 4 | ||
- | * HDD: 3.5” SAS 15k RPM 450 Gb * 4, 3.5” SATA 2 Tb * 4 | ||
- | |||
- | ==== RAID Setup ==== | ||
- | * ''/ | ||
- | * RAID 5 (2 Tb * 4) | ||
- | * Mount at ''/'' | ||
- | * System partition | ||
- | * ''/ | ||
- | * RAID 0 (450 Gb * 4) | ||
- | * Mount at ''/ | ||
- | * High-performance I/O | ||
- | |||
- | ==== RAID I/O Speed ==== | ||
- | <code bash> | ||
- | $ sudo hdparm -tT /dev/sda | ||
- | /dev/sda: | ||
- | | ||
- | | ||
- | |||
- | $ sudo hdparm -tT /dev/sdb | ||
- | /dev/sdb: | ||
- | | ||
- | | ||
- | </ | ||
- | |||
- | ===== Backup Plan ===== | ||
- | ==== Home ==== | ||
- | No backup plan for ''/ | ||
- | |||
- | ==== Scratch ==== | ||
- | The ''/ | ||
- | |||
- | <code bash> | ||
- | $ cat / | ||
- | #!/bin/bash | ||
- | prefix=/ | ||
- | max=6 | ||
- | |||
- | # remove the oldest snapshot, if it exists | ||
- | if [ -e $prefix.$max ]; then | ||
- | rm -rf $prefix.$max* | ||
- | fi; | ||
- | |||
- | # shift the other snapshot(s) back by one, if they exist | ||
- | for (( i=$max; | ||
- | do | ||
- | source_dir=$prefix.$(($i-1)) | ||
- | source_log=$prefix.$(($i-1)).log | ||
- | target_dir=$prefix.$i | ||
- | target_log=$prefix.$i.log | ||
- | if [ -e $source_dir ]; then | ||
- | mv $source_dir $target_dir | ||
- | fi; | ||
- | if [ -e $source_log ]; then | ||
- | mv $source_log $target_log | ||
- | fi; | ||
- | done | ||
- | |||
- | # make the current snapshot | ||
- | rsync -av --delete \ | ||
- | --link-dest=' | ||
- | / | ||
- | |||
- | # update the timestamp | ||
- | touch $prefix.0 | ||
- | </ | ||
- | $ cat / | ||
- | # / | ||
- | # Unlike any other crontab you don't have to run the `crontab' | ||
- | # command to install the new version when you edit this file | ||
- | # and files in / | ||
- | # that none of the other crontabs do. | ||
- | |||
- | SHELL=/ | ||
- | PATH=/ | ||
- | |||
- | # m h dom mon dow user command | ||
- | 17 * * * * root | ||
- | 25 6 * * * root test -x / | ||
- | 47 6 * * 7 root test -x / | ||
- | 52 6 1 * * root test -x / | ||
- | # daily backup for /scratch | ||
- | 45 3 * * * | ||
- | <code bash> | ||
- | </ | ||
- | |||
- | |||
- | |||
- | ===== Software ===== | ||
- | |||
- | |||
computers/oak.1277971136.txt.gz · Last modified: 2010/07/01 15:58 by chkuo