Admin

Difference between revisions of "Main server"

From MusicTechWiki

m (MusicTechWikiBot moved page AdminMove:Main server to Admin:Main server without leaving a redirect: Bot: Moved page)
 
(No difference)

Latest revision as of 20:09, 28 July 2017

The main server that runs the main brucetambling.com domain. Currently hosted at Codero after being migrated from Amazon in June/July 2015.

Domains brucetambling.com dl.brucetambling.com
Public IP 69.64.70.84
SSH access Key-based logins
Disk 1TB (ext4, boot, RAID-1), 1TB (backup)
CPU 8 x 3.3GHz Xeon with 8MB cache
RAM 8GB
RAID 3ware 9650SE SATA-II RAID PCIe (see also RAID details)

Device and parition layout

The main server's partitions are allocated as follows (obtained with lsscsi and lsblk):

[0:0:0:0]    disk    AMCC     9650SE-2LP DISK  4.10  /dev/sdb
[1:0:0:0]    disk    ATA      Hitachi HUA72201 JP4O  /dev/sda

sda      8:0    0 931.5G  0 disk 
├─sda1   8:1    0   476M  0 part 
├─sda2   8:2    0   3.8G  0 part 
└─sda3   8:3    0 927.2G  0 part /media/data1
sdb      8:16   0 931.3G  0 disk 
├─sdb1   8:17   0   476M  0 part /boot
├─sdb2   8:18   0   3.8G  0 part [SWAP]
└─sdb3   8:19   0   927G  0 part /
  • Note: The sda1 and sda2 partitions are not used, they're just left over from when it was the main drive. But we're using the sda3 partition as another backup of the sites main data directory which is synchronised daily. See Admin:Backup for more detail.
  • Note2: The server calls the check-raid.pl script every 5 minutes which will email the admins if either of the drives statuses are not OK.

Regular jobs

The server has a number of items in /etc/crontab which are best documented here since they're not included in backup.

# Temp to allow PHP to display error log
*/1 * * * * root chmod 755 /var/log/apache2 && chmod 644 /var/log/apache2/error.log

# Temp to restart FTP server if it's stopped, need to find out why it stops though
*/1 * * * * root perl -e '`service proftpd start` unless `netstat -nlp|grep proftpd`'

# Backup the wiki db daily
0 0   * * * root perl /var/www/brucetambling.com/TamblingRepo/scripts/backup-main.pl

# Email us if RAID drive status not ok
*/5 * * * * root perl /var/www/brucetambling.com/TamblingRepo/scripts/check-raid.pl