Site Tools


server:nas4free_build

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
server:nas4free_build [2015/06/24 16:06] – [VirtualBox] ashleyserver:nas4free_build [2015/08/28 20:22] (current) – [4K sectors] ashley
Line 1: Line 1:
 =====Nas4Free Build===== =====Nas4Free Build=====
 +====Partition drives for ZFS====
 +http://www.freebsddiary.org/zfs-with-gpart.php
 ====VirtualBox==== ====VirtualBox====
   cd /mnt/storage   cd /mnt/storage
Line 17: Line 19:
   ./vbox_configure.sh   ./vbox_configure.sh
  
 +====ZFS Tune==== 
 +  mkdir /mnt/data/zfskerntune 
 +  cd /mnt/data/zfskerntune 
 +  fetch http://www.peach.ne.jp/archives/nas4free/ext/zfskerntune-20121031.tar.gz 
 +  tar xvf zfskerntune-20121031.tar.gz 
 +  cd zfskerntune 
 +  ./zfskerntune-install.php
 ====TheBrig==== ====TheBrig====
 http://www.forums.nas4free.org/viewtopic.php?t=3894 http://www.forums.nas4free.org/viewtopic.php?t=3894
Line 44: Line 52:
  
 Save and exit Save and exit
 +====4K sectors====
 +For each device which will be made a part of the pool, a gnop "chained" device needs to be created, and then those devices need to be added to a pool:
 +
 +  gnop create -S 4096 /dev/da0
 +  gnop create -S 4096 /dev/da1
 +  zpool create data mirror /dev/da0.nop /dev/da1.nop
 +
 +This will create the "data" pool with the *.nop devices, making ZFS think the drives have 4K physical sectors. Next, the pool needs to be exported and the gnop devices removed:
 +
 +  zpool export data
 +  gnop destroy /dev/da0.nop /dev/da1.nop
 +
 +Next, the pool can be imported from the "raw" devices:
 +
 +  zpool import data
 +
 +You can check the configuration of the pool by using the "zdb" command on the pool:
 +
 +  zdb -C data | grep ashift
 +
 +The ashift should be "12" for 4K alignment. This works because ZFS writes the ashift value in its metadata.
 ====Plex==== ====Plex====
  
Line 77: Line 106:
 Alternatively, you can have portupgrade prompt you before upgrading each port with this: Alternatively, you can have portupgrade prompt you before upgrading each port with this:
   portupgrade -ai   portupgrade -ai
 +  
 +or
 +
 +  In short, for upgrade just go to where you had installed plex (chroot, jail, jail in chroot...) and upgrade SW
 +  pkg upgrade
  
 Afterwards, your ports, including Plex, should be up to date. Afterwards, your ports, including Plex, should be up to date.
 +
 +====Upgrade Plex====
 +I run the commands as root, so su preceding the following or log into the jail as root.
 +
 +  mkdir /tmp/src
 +  cd /tmp/src
 +  wget http://downloads.ple...d-amd64.tar.bz2
 +  tar xvf PlexMediaServer-0.9.9.12.504-3e7f93c-freebsd-amd64.tar.bz2
 +  service plexmediaserver stop
 +  mv /usr/local/share/plexmediaserver /usr/local/share/oldplex
 +  mkdir /usr/local/share/plexmediaserver
 +  cp -r /tmp/PlexMediaServer-0.9.12.4.1192-9a47d21/* /usr/local/share/plexmediaserver/
 +  service plexmediaserver start
 + 
 +Of course after it starts and you verify it runs properly you can remove the old folders and the tar/extracted copies. Now you are on the latest build with out having to wait for the plugin to be updated.
 + 
 +This will only update the actual plex media server and leave all the media database and meta data alone since it is segmented into it's own folders. Once you start the server go into settings and server info, you may need to force it to refresh the page but will list 9.9.12 as the version.
  
 ====Monitoring HP cards with PRTG==== ====Monitoring HP cards with PRTG====
 https://www.avforums.com/threads/guide-hp-proliant-microserver-p410-smart-array-controller.1624921/ https://www.avforums.com/threads/guide-hp-proliant-microserver-p410-smart-array-controller.1624921/
 +
 +====Installing owncloud====
 +https://www.en0ch.se/pre-configured-owncloud-installaton/
 +
 +====Prevent ZFS taking all your drive====
 +http://www.freebsddiary.org/zfs-with-gpart.php
 +
 +====Install vbox in Ubuntu LTS====
 +http://santi-bassett.blogspot.co.uk/2013/01/installing-virtualbox-on-ubuntu-server.html
 +
 +http://www.unixmen.com/install-oracle-virtualbox-and-manage-it-using-phpvirtualbox-on-ubuntu-15-04-headless-server/
 +
 +http://wiki.nas4free.org/lib/exe/fetch.php?media=faq:wdadvancedformat4kdrives-definitiveanswer.pdf
server/nas4free_build.1435162002.txt.gz · Last modified: (external edit)