Fileserver: Difference between revisions
Jump to navigation
Jump to search
(→Access) |
No edit summary |
||
Line 56: | Line 56: | ||
** Save | ** Save | ||
** Activate configuration | ** Activate configuration | ||
== Post Reboot == | |||
The ZFS pool does not get mounted automatically, which leads to a bit of confusion. Here's how to fix it: | |||
* Login as root via SSH | |||
<pre> | |||
umount /export /share | |||
zfs mount internal | |||
mount -a | |||
</pre> | |||
[[Category:Infrastructure]] | [[Category:Infrastructure]] |
Revision as of 12:26, 27 June 2016
We are running a Fileserver at the space to store all kinds of stuff, as well as use it for generel data exchange (getting stuff to the laser, anyone?
Access
IP: 10.10.20.61
- There's a SMB (windows) share that should be writable to everyone. Try this \\10.10.20.61\share
Setup
We are running OpenMediaVault 3 (Erasmus) on Debian Jessie.
Hardware
- 2 Intel(R) Xeon(R) 5130 Dual Core @ 2.00GHz
- 6GB RAM
- 2x 150GB SATA Bootdrives built into case
- 8x 500GB SATA Drives in hotswappable bays
- 3ware 9550sxu-8lp RAID controller (for the 500GB drives, set in JBOD mode)
Software
We wanted to run the two boot drives in a software RAID1 array, so we had to install a barebones Debian system and then install OMV ontop, because the OMV installer disks do not seem to support this.
- Install Debian 8 from scratch, setting up the RAID1 in the process.
- Reinstall the bootloader on both drives (setup will only install on one)
dpkg-reconfigure grub-pc
- Install OpenMediaVault Erasmus (only version compatible with Debian Jessie at the time of installation)
echo "deb http://packages.openmediavault.org/public erasmus main" > /etc/apt/sources.list.d/openmediavault.list apt-get update apt-get install openmediavault-keyring postfix apt-get update apt-get install openmediavault omv-initsystem
- Reboot
- Log into webinterface (User: admin, PW: openmediavault)
- Change the password
- Install ZFS plugin for OMV following this guide
- The Plugin seems mature enough that you do not need to enable the ZFS testing repository, the normal one seems just fine
- The installation of the plugin itself however did not go through completely on the webinterface. I was required to restart and finish the installation from the commandline with
dpkg --configure -a
- So if you keep getting error messages in the WebUI after the installation, log onto the machine and run this until it produces no more output.
- Setup a ZFS pool: We just setup one pool with all 8 drives, as a RAIDZ2 (the disks are already a bit old). You can do it all on the WebUI, but it'll take time until the pool is initialized, and there's no status information, so just wait (took about 8 hours on our machine)
- Setup the Samba share
- Go to the SMB/CIFS configuration on the WebUI
- Enable the Samba service
- Make sure "Null passwords" are enabled
- Save
- Go to "shares" and add a new share
- Set permissions on the share to "Read/Write/Execute" for everyone (owner,group,others)
- Set Public to "Only guests"
- Activate "Browesable"
- Activate "Recycle bin" if you feel like it (we haven't)
- Save
- Activate configuration
Post Reboot
The ZFS pool does not get mounted automatically, which leads to a bit of confusion. Here's how to fix it:
- Login as root via SSH
umount /export /share zfs mount internal mount -a