Difference between revisions of "File Server"
Jump to navigation
Jump to search
Line 59: | Line 59: | ||
</pre> | </pre> | ||
=Server Setup= | =Server Setup= | ||
+ | ==File Systems== | ||
+ | * Root is on a single drive. Important files are symlinked to the raid array. | ||
+ | * Raid device is /dev/md0 | ||
+ | ** Do not access this directly | ||
+ | ** Check status with | ||
+ | <pre>cat /proc/mdstat</pre> | ||
+ | * Cache device is /dev/bcache0 | ||
+ | ** This adds SSD caching on top of the /dev/md0 | ||
+ | ** Interact with /dev/bcache0 as if it were a disk. |
Revision as of 22:18, 21 March 2014
Basic Info
- Web interface at http://files/
- Can also be accessed via samba/SMB with the standard lvl1 credentials.
- ssh is also possible, but there is no safety check for accidentally deleting files this way.
Setting up on Ubuntu
- Prerequisites:
sudo apt-get install autofs smbfs
- create autofs config files
- /etc/auto.master
/mnt /etc/auto.files --timeout=6000 --ghost
- /etc/auto.files
z -fstype=smbfs,credentials=/etc/auto.auth ://files/shared
- /etc/auto.auth
- (replace CENSORED with the lvl1 credentials)
username=CENSORED password=CENSORED
- run the following:
sudo chmod 400 /etc/auto.auth sudo service autofs restart
- the files share will be mounted in /mnt/z
- to make this easily accessible, run
ln -s /mnt/z ~/z
- Desktop file for adding to menu (place in /usr/share/applications/
[Desktop Entry] Name=File Share Comment=LVL1 central file server Exec=nautilus /home/lvl1/z Icon=system-file-manager Terminal=false Type=Application StartupNotify=true OnlyShowIn=GNOME;Unity; Categories=GNOME;GTK;Utility;Core; MimeType=inode/directory;application/x-gnome-saved-search; X-GNOME-Bugzilla-Bugzilla=GNOME X-GNOME-Bugzilla-Product=nautilus X-GNOME-Bugzilla-Component=general X-GNOME-Bugzilla-Version=3.4.2 Actions=Window; X-Ubuntu-Gettext-Domain=nautilus [Desktop Action Window] Name=File Share Exec=nautilus /home/lvl1/z OnlyShowIn=Unity;
Server Setup
File Systems
- Root is on a single drive. Important files are symlinked to the raid array.
- Raid device is /dev/md0
- Do not access this directly
- Check status with
cat /proc/mdstat
- Cache device is /dev/bcache0
- This adds SSD caching on top of the /dev/md0
- Interact with /dev/bcache0 as if it were a disk.