User Tools

Site Tools


server_setup

This is an old revision of the document!


Server Setup

anubis host

  • OS: Ubuntu Server 18.04
  • CPU: Ryzen 5 1600 6-core 3.2GHz
  • RAM: 32GB DDR4 2400
  • Services
    • Virtual Machine Host
    • apcupsd
    • NFS server
    • getmail gmail backup

Drives

  • sda (2TB SATA WD Green)
    • sda1 (1GB, ext4, old /boot)
    • sda2 (5GB, old swap)
    • sda3 (50GB, old /)
    • sda4 (1.8TB, LVM2 physical partition)
      • pegasus (1TB, /pegasus)
      • extra_vms (400GB, /mnt/extra_vms)
      • rest unused
  • sdb (1TB WD Blue 1TB SATA 6 Gb/s 7200 RPM)
    • sdb1 (1TB, /backup)
  • sdc (500G WD SATA)
    • sdc1 (512M, /boot/efi)
    • sdc2 (238G, ext4, /)
  • sdd (2TB SATA WD Red 2TB NAS Hard Disk Drive - 5400 RPM)
    • sdd1 (2TB, ext4, mythtv)

Retired

  • nvme0n1 (256GB WD Black Performance SSD - M.2 2280 PCIe NVMe)
    • nvme0n1p1 (256MB, /boot/efi)
    • nvme0n1p2 (240GB, /)

Virtual Machines

baal

  • MAC: 12:34:07
  • OS: Ubuntu Server 18.04
  • RAM: 1GB
  • Services
    • openvpn server
    • squid

Exporting an NFS mount via NFS.

/pegasus/pub/music 192.168.0.0/16(ro,async,no_subtree_check,fsid=2)

carter

  • MAC: 12:34:04
  • OS: Ubuntu 16.04 Server
  • RAM: 2GB
  • Services
    • git-daemon
    • cgit
    • gitolite

hathor

  • MAC: 12:34:06
  • OS: Ubuntu 18.04 Server
  • RAM: 4GB
  • CPUs: 2

oneill

  • MAC: 12:34:03
  • OS: Ubuntu 16.04 Server
  • RAM: 2GB
  • CPUs: 2
  • Services
    • apache2
      • dokuwiki
      • tt-rss
      • cgit (proxy)
      • cameras (proxy)
      • mythweb (proxy)

ra

  • MAC: 12:34:05
  • OS: Mythbuntu 16.04 (mythtv updates repository enabled for 0.29)
  • RAM: 4GB
  • CPUs: 2
  • Services
    • MythTV Backend

Special Setup

NFS exports

On startup it seems that the NFS exports are getting applied before DNS is available, so the /etc/exports entries do not work properly. I created an /etc/rc.local script with these contents to rectify this:

#!/bin/sh

exportfs -a
sleep 2
exportfs -a
sleep 3
exportfs -a
sleep 5
exportfs -a
sleep 10
exportfs -a

To delay VM startup so the VM has a chance to mount NFS, add the following to /lib/systemd/system/libvirt-guests.service:

ExecStartPre=/bin/sleep 20
server_setup.1618595266.txt.gz · Last modified: by josh