Startup sequence for my server
After e reboot (e.g. after upgrading the kernel) I need to execute a couple of commands to get the server working. The first ones (those in brackets) were only previously necessary as I exchanged the hardware and the registration of the new MAC adress took a while:
/etc/inti.d/backuppc stop
rm -rf /var/lib/backuppc/*
(macchanger --mac=00:B0:D0:20:A5:D9 eth0)
(ifconfig eth0 down)
(ifconfig eth0 up)
ping mcblserver.hi.helsinki.fi (just to see whether the serever is online)
cryptsetup create cryptodata /dev/mapper/defaultvolumegroup-data
mount /dev/mapper/cryptodata /home/jeltsch/Documents
cryptsetup create cryptobackup /dev/mapper/backuppcvg-backuplv
mount /dev/mapper/cryptobackup /var/lib/backuppc
/etc/init.d/backuppc start