- 1 Specification
- 2 Description
- 3 Current role
- 4 Planned roles
- 5 Name
- 6 Storage
- 7 Virtualization
- Dell Poweredge 2950
- Dual quad-core 2.0GHz L5335 Low voltage Xeon processors with 8MB L2 Cache
- 16GB DDR2F RAM
- 2×146GB + 4×300GB 15,000 RPM SAS hard disks
- Dual gigabit ethernet
- Dual, redundant, hot-swappable power supplies
snark is a much-better-than-spoon-but-not-quite-cube 2U monster that was bought on adverts.ie in April 2012. Anything relating to it - including what the hell we plan to do with it - should be maintained here.
Snark is serving as a system on which the Xen virtualisation system is running. It is running Debian wheezy with kernel version 3.2.0-2-amd64 and xen version 4.1.3-rc2-pre. Currently only admins have access to both the dom0 (snarkroot) and the domUs (the various VMs that are running on it - see below for a list). It is connected to the College network via it's eth0 interface, which is running as a bridge for Xen to allow the domUs communicate. The configuration of the interface is given below:
auto xenbr0 iface xenbr0 inet static bridge_ports eth0 address 22.214.171.124 gateway 126.96.36.199 broadcast 188.8.131.52 netmask 255.255.255.0 dns-nameservers 184.108.40.206 dns-search netsoc.tcd.ie
There are two domUs running on snark at the moment: Freedom and snark. Freedom is a freeBSD 9.0 HVM whilst snark is a paravirtualised domU running Debian Wheezy. snark's IP is 220.127.116.11. both snark and freedom are running SSH servers, but neither are interfaced with the LDAP system and so only local accounts will work (and only root accounts exist at this time).
Primary services server
We're going to move the following off Cube, and onto VMs on snark:
- Netsoc website/database
- Primary LDAP
- Primary DNS
- Secondary mail
- IRC services
By doing this we will be able to greatly reduce the load on cube, and leave it as a big massive dev box for people to run all their crazy stuff on. It'll also make it easier to rebuild cube on Xen, and end the OpenVZ pain forever.
Backup login server
We'll also include a small login VM called 'snark', so that people have another place to log into in the case of downtime. This will have roughly Spoon-level resources allocated to it, and a modestly-sized /home. We won't be installing any dev software (fancy compilers, obscure libs, etc.) here, to discourage people from ruining it with coursework.
An important service which will run on snark is backups. We now have the right card and cable to drive the PowerVault disk array, and we have enough disks now. We'll back up everything on Spoon, Cube and snark to it, including all member data. Because the machine is hosted in TCHPC, this provides us with redundancy and means that if some day either the Maths department or TCHPC burns down, member data will be safe.
snark is a weapon in the original Half Life game by "Valve":http://www.valvesoftware.com/.
The storage on snark is set up as a RAID1 of the 2x146GB drives whilst the 4x300GB are in a RAID5, both controlled by the onboard PERC 6/i card. LVM is set up on top of the RAID5 completely in a physical volume and volume group both called onboard-raid5 (/dev/sdb1). The 146GB RAID1 is split to a 200MB ext2 /boot partition, a 50GB ext4 /, a 24GB swap, and a 72GB LVM with its physical volume called onboard-raid1. The onboard-raid1 volume contains / for the Dom0, and space for miscellaneous storage.The onboard-raid5 volume contains the logical volumes for the various VMs the machine runs.
Snark goes hand-in-hand with the Snark disk array, which is connected via an infiniband cable to the PERC 6/E card. It contains four 1TB SATA disks, which are pooled as a RAID5, providing 3TB of storage. The disk array's storage appears in a volume group called diskarray-raid5.
Xen is used as the hypervisor. The processors in snark support VT-x. Unlike on Cube, each VM is able to have its own kernel (as opposed to sharing a single kernel with the hardware node).
Adding new vms
xen-create-image --hostname NAMEHERE --size=20Gb --mem=4Gb --swap=1Gb --ip=134.226.83.NEWHERE --gateway=18.104.22.168 --netmask=255.255.0.0 --dist=wheezy
xm create /etc/xen/NAMEHERE.cfg, then
xm console NAMEHERE to get a shell, but an ssh server should come up by default.
REMEMBER TO UPDATE ips
In the spirit of Cube, the Dom0 is called snarkroot. Nothing will be set up on this machine except Xen, shorewall, and things which require access to hardware, like RAID and LVM and so on. It runs Debian stable
Exactly what it says on the tin.
Running squeeze, because wheezy has no hybserv package.
This machine is relatively small, and is currently in the process of being set up as a DNS server with bind.
This machine will host whatever backup software we decide to run (fwbackups, bacula, amanda...), and coordinate backups of all machines. It will only be accessible by admins (for now), and will run a stable release. If the disk array is to be used for backups only, we'll make this machine the only one with access to it.
A few somewhat sillier VMs also exist on snark. They're not powered on all the time though.
I can't believe I'm writing this, but this is an instance of Windows Server 2012, set up by DUCSS admin k3ypad.
A FreeBSD VM, for people to play with.
Other proposed VMs are;
- Morpheus - Matrix clone with netris.real and amazing (bad?) tcsh prompts. OpenIndiana, most likely, as Solaris itself is verging on really-quite-non-free.
- Shipwreck - A proposed VM for Titanic that ran legacy operating systems inside emulators (preferably ones that don't eat CPUs)