Difference between revisions of "Bacon"

From CSLabsWiki
Jump to: navigation, search
(Initial Page)
(No difference)

Revision as of 23:32, 27 September 2016

IP Address(es):
Contact Person: xperia64
Last Update: Fall 2016
Services: Various

Hostname: bacon.cslabs.clarkson.edu
Operating system: Debian 8.5.0
NIC 1: Clarkson Network
MAC: ?
CPU: Intel Xeon E5-2609 v2 @ 2.5 GHz (4 cores)
RAM: 16 GB


Bacon is our main storage server. It hosts our NFS home partitions for our lab build.


Begin with a basic Debian install, configuring a software RAID1 for the two WD Gold Datacenter boot drives. Assuming you do not want to keep the data on the existing storage drives, wipe the partitions off of the storage drives and configure them for software RAID6.

LDAP & Kerberize the server as described here


Install the following packages:

nfs-kernel-server nfs-common

Edit /etc/exports and point it at the proper directory like so:


Note that while async may be less "safe" than sync, it is necessary to ensure reasonable performance and not wear the drives more than necessary.

Run the following command as root to export the new mount:

exportfs -ra

Attempt to mount this NFS share on a known working client build.

Web Services

The main cslabs.clarkson.edu page is hosted with nginx. Essentially, point cslabs.clarkson.edu and cosi.clarkson.edu to /var/www/cslabs, and if you feel like maintaining an incredibly out of date web page, point xen.cslabs.clarkson.edu to /var/www/xen

PXE Boot

To set up a PXE server, install the following package:


Edit /etc/default/tftp to contain the following

# /etc/default/tftpd-hpa


and reload or restart the tftp service.

Ensure that /storage/srv/tftp/pxelinux.cfg/default exists and contains a valid PXE config. Note that if any PXE Boot item requires a "fetch" kernel append, the folder that it is trying to fetch must be symlinked from /storage/srv/tftp to /var/www/cslabs so that nginx can serve it.

Backup Notes

When backing up and restoring Bacon, ensure that rsync does not try to set the owner, group, or permissions of files. Practice with a small folder to ensure you get the flags right.

Future Setup Suggestions

  • Consider using an alternative filesystem when setting up a new storage server such as BTRFS or alternatively going back to ZFS for potential speedup
  • Consider setting up a small RAM disk for use with the dm-cache module for potential speedup