# The primary network interface auto eth0 iface eth0 inet static address x.x.x.x netmask 255.255.255.0 network x.x.x.x broadcast x.x.x.255 gateway x.x.x.1 # dns-* options are implemented by the resolv.conf package, if installed dns-nameservers x.x.x.1 dns-search lattice.net
sudo /etc/init.d/networking restart
The moment of truth. How hard would it be to configure a raidz array out of the five 2TB drives? Um, two lines!? These instructions came from here
sudo apt-get install zfs-fuse
sudo zpool create media -m /storage raidz /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf
The update repository appears to be broken, so I might need to re-install the OS on hydra. According to a post I found, all I need to do is “import” the pool.
zpool import
zpool import <poolname>
With all of the drives in the system, just run zpool import. That will scan all the drives for ZFS metadata, and will show any pools that can be imported. Then you just import the one you want via zpool import <poolname>.
AH, would make more sense to use a these drive IDs since it would be consistent:
“You should add your drives using the /dev/disk/by-id directory. That way the drive will be picked up consistently regardless of the device node in /dev/. ”
# status as of today 2013.09.30 #sudo zpool status -v media pool: media state: DEGRADED status: One or more devices could not be opened. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Attach the missing device and online it using 'zpool online'. see: http://www.sun.com/msg/ZFS-8000-2Q scrub: none requested config: NAME STATE READ WRITE CKSUM media DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 sdb ONLINE 0 0 0 sdc ONLINE 0 0 0 sdd ONLINE 0 0 0 sde ONLINE 0 0 0 sdf UNAVAIL 0 0 0 cannot open errors: No known data errors #ls /dev/disk/by-id/ -la lrwxrwxrwx 1 root root 9 Sep 30 15:44 scsi-SATA_ST2000DL003-9VT_5YD24VFW -> ../../sde lrwxrwxrwx 1 root root 9 Sep 30 15:44 scsi-SATA_ST2000DL003-9VT_5YD2J987 -> ../../sdc lrwxrwxrwx 1 root root 9 Sep 30 15:44 scsi-SATA_ST2000DL003-9VT_5YD2K8XW -> ../../sdb lrwxrwxrwx 1 root root 9 Sep 30 15:44 scsi-SATA_ST2000DL003-9VT_5YD2K90G -> ../../sdd
sudo apt-get install apcupsd
UPSTYPE net DEVICE xx.xx.xx.xx # your master local apcupsd server
sudo service apcupsd restart
Linux, Apache, Mysql and PHP as shown here
NOTE: According to the comments on that page, you could do all of these with this: (but I'm not that lazy, I can copy and paste a few lines)
sudo tasksel install lamp-server
sudo aptitude install mysql-server mysql-client
sudo aptitude install apache2
sudo aptitude install php5 libapache2-mod-php5
sudo /etc/init.d/apache2 restart
NOTE: I could not get this to work, the content always came up with some kind of error. uShare worked right out of the box with no fusing, so I'm going to use that for the UPnP server.
Will use NFS to share up the storage directory.
sudo apt-get install nfs-kernel-server nfs-common portmap
sudo dpkg-reconfigure portmap
sudo /etc/init.d/portmap restart
sudo nano /etc/exports # here are some example entries # hal /storage/video 10.0.0.5(ro,fsid=7,no_root_squash,async,subtree_check) # nmt /storage/video 10.0.0.13(ro,fsid=7,no_root_squash,async,subtree_check)
sudo /etc/init.d/nfs-kernel-server restart
uShare is a media server uPnP media server (very light weight)
sudo apt-get install ushare
sudo vi /etc/ushare.conf
sudo dpkg-reconfigure ushare
I would like a local ftp client so that we can move files around as fast as possible
sudo apt-get install vsftpd
sudo nano /etc/vsftpd.conf
write_enable=YES
sudo apt-get install jed