User Tools

Site Tools


computers:server:ubuntu10.04lts_hydra

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computers:server:ubuntu10.04lts_hydra [2011/06/11 15:38] davidcomputers:server:ubuntu10.04lts_hydra [2013/09/30 20:29] (current) – [Update] david
Line 41: Line 41:
 </code> </code>
  
 +==== Import ====
  
 +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.
  
 +  * [[http://forums.freebsd.org/showthread.php?t=16807]] <- a couple posts down
 +  * With all drives installed and spun up: <code>
 +zpool import
 +</code>
 +  * Just import your pool now! <code>
 +zpool import <poolname>
 +</code>
 +
 +<code>
 +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>
 +</code>
 +
 +==== Update ====
 +
 +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/. "
 +
 +==== Drive Failure ====
 +
 +  * **2013.09.30** - Looks like we might have had a drive failure.  I know in the past, one of the drives was flaky and would not show up because of a cable issue (swapped cables, and it worked).
 +  * Drive identification: (just pasting in the drives in the raid alive<code>
 +# 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
 +   raidz1-0  DEGRADED             0
 +     sdb     ONLINE               0
 +     sdc     ONLINE               0
 +     sdd     ONLINE               0
 +     sde     ONLINE               0
 +     sdf     UNAVAIL      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
 +</code>
 ====== Software ====== ====== Software ======
  
 ===== Daemons ===== ===== Daemons =====
 +
 +==== apcd ====
 +
 +  - Install **apcupsd** <code>
 +sudo apt-get install apcupsd
 +</code>
 +  - Configure the configuration file:  **/etc/apcupsd/apcupsd.conf** <code>
 +UPSTYPE net
 +DEVICE xx.xx.xx.xx # your master local apcupsd server
 +</code>
 +  - Set the **ISCONFIGURED** flag in **/etc/default/apcupsd** to **yes**
 +  - Restart the daemon <code>
 +sudo service apcupsd restart
 +</code>
  
 ==== LAMP ==== ==== LAMP ====
Line 74: Line 144:
 ==== mediatomb ==== ==== mediatomb ====
  
-  Found these instructions [[http://www.havetheknowhow.com/Install-the-software/Install-MediaTomb.html|here]] +**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.
-  Found some more stuff [[https://help.ubuntu.com/community/MediaTomb#Getting%20Started%20With%20MediaTomb|here]] (like how to add media)+
  
-  Update your repository information <code> +==== nfs ==== 
-sudo apt-get update+ 
 +Will use NFS to share up the storage directory. 
 + 
 +  Grab the NFS server package <code> 
 +sudo apt-get install nfs-kernel-server nfs-common portmap
 </code> </code>
-  - Install the server <code> +  - Configure **portmap** <code> 
-sudo apt-get install mediatomb+sudo dpkg-reconfigure portmap
 </code> </code>
-  - Check it out by going to http://YOURSERVER:49152 +  - And restart (this did not work btw) <code> 
-  - Modified settings in **/etc/mediatomb/config.xml** +sudo /etc/init.d/portmap restart 
-    - Altered the <nametag to name our server +</code> 
-    - Set this to "yes" to enable PS3 support:  <protocolInfo extend="yes"/+  - Modify our exports <code> 
-    Add this to make the PS3 support happy:  <code>+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) 
 +</code
 +  - Restart the NFS server <code
 +sudo /etc/init.d/nfs-kernel-server restart 
 +</code> 
 +==== samba ====
  
 +  - Stole the **/etc/samba/smbd.conf** from Mythbuntu and made it read only.
 +
 +
 +==== ushare ====
 +
 +uShare is a media server uPnP media server (very light weight)
 +
 +  - Install the service <code>
 +sudo apt-get install ushare
 +</code>
 +  - I manually edited this file first, there were some options that don't come up when you do the "config" <code>
 +sudo vi /etc/ushare.conf
 +</code>
 +  - Proper configuration is done with this <code>
 +sudo dpkg-reconfigure ushare
 </code> </code>
  
-==== samba ====+==== vsftpd ====
  
-  - Configure our samba server to share up some media+I would like a local ftp client so that we can move files around as fast as possible
  
 +  - Install **vsftpd** <code>
 +sudo apt-get install vsftpd
 +</code>
 +  - Modify the **/etc/vsftpd.conf** file <code>
 +sudo nano /etc/vsftpd.conf
 +</code>
 +    - Modify so we can write files to the server <code>
 +write_enable=YES
 +</code>
 ===== Programs ===== ===== Programs =====
  
computers/server/ubuntu10.04lts_hydra.1307806685.txt.gz · Last modified: by david