There is no fstab entry on the Linux system; this is shared via samba from my NAS, and I just open a Dolphin window using an icon on my desktop that I created many years ago named "Network Neighborhood", then browse the workgroup to the share I want to look at. The NAS runs FreeBSD, and there is no fstab entry for the array. It is a ZFS filesystem loaded on an encrypted volume, and the opening of the encrypted volume and mounting is handled dynamically.
The ZFS volume properties are these, as reported in the NAS4free gui:
- Code: Select all
ZFS volume properties
NAME PROPERTY VALUE SOURCE
VD01 type filesystem -
VD01 creation Tue Jul 22 2:40 2014 -
VD01 used 2.26T -
VD01 available 26.3T -
VD01 referenced 2.26T -
VD01 compressratio 1.00x -
VD01 mounted yes -
VD01 quota none default
VD01 reservation none default
VD01 recordsize 128K default
VD01 mountpoint /mnt/VD01 local
VD01 sharenfs off default
VD01 checksum on default
VD01 compression off default
VD01 atime on default
VD01 devices on default
VD01 exec on default
VD01 setuid on default
VD01 readonly off default
VD01 jailed off default
VD01 snapdir hidden default
VD01 aclmode discard default
VD01 aclinherit restricted default
VD01 canmount on default
VD01 xattr off temporary
VD01 copies 1 default
VD01 version 5 -
VD01 utf8only off -
VD01 normalization none -
VD01 casesensitivity sensitive -
VD01 vscan off default
VD01 nbmand off default
VD01 sharesmb off default
VD01 refquota none default
VD01 refreservation none default
VD01 primarycache all default
VD01 secondarycache all default
VD01 usedbysnapshots 0 -
VD01 usedbydataset 2.26T -
VD01 usedbychildren 8.88M -
VD01 usedbyrefreservation 0 -
VD01 logbias latency default
VD01 dedup off default
VD01 mlslabel -
VD01 sync standard default
VD01 refcompressratio 1.00x -
VD01 written 2.26T -
VD01 logicalused 2.26T -
VD01 logicalreferenced 2.26T
Note that I am using hardware RAID6, so the OS on the NAS sees the array as one big 32 TiB disk.
SMB on the NAS has been configured to work well with Windows, and it does. my Windows 7 VM accesses the Video directory and plays the videos without incident. Windows Media Player does begin playing as soon as enough has been buffered, and the buffer seems to keep up fine with the playback.
The smb.conf file on the NAS is this:
- Code: Select all
[global]
encrypt passwords = yes
netbios name = JSSNAS
workgroup = HOMEGROUP
server string = NAS4Free Server
security = user
max protocol = SMB2
dns proxy = no
# Settings to enhance performance:
strict locking = no
read raw = yes
write raw = yes
oplocks = yes
max xmit = 65535
deadtime = 15
getwd cache = yes
socket options = TCP_NODELAY SO_SNDBUF=64240 SO_RCVBUF=64240
# End of performance section
unix charset = UTF-8
store dos attributes = yes
local master = no
domain master = no
preferred master = no
os level = 0
time server = no
guest account = ftp
map to guest = Never
display charset = LOCALE
max log size = 100
syslog only = yes
syslog = 1
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
log level = 1
dos charset = CP437
smb passwd file = /var/etc/private/smbpasswd
private dir = /var/etc/private
passdb backend = tdbsam
idmap config * : backend = tdb
idmap config * : range = 10000-39999
aio read size = 4096
aio write size = 4096
bind interfaces only = yes
interfaces = re0
[Videos]
comment = movies and TV shows
path = /mnt/VD01/Videos
writeable = yes
printable = no
veto files = /.snap/.sujournal/
hide dot files = no
guest ok = no
inherit permissions = yes
vfs objects = shadow_copy2 zfsacl
shadow:format = auto-%Y%m%d-%H%M%S
shadow:snapdir = .zfs/snapshot
shadow:sort = desc
shadow:localtime = yes
veto files = /.zfs/
hosts allow = 192.168.0.0/24 172.16.187.0/24
So, it works properly with Windows. It does not work properly with Linux...at least, with Mageia 4; I really have not tried with any of my Linux VMs, though I suppose I should.
Now, I have established an extent on the NAS which I mount on my workstation as a local drive using iscsi, and if I play a movie from the iscsi extent, I get the desired behavior; the Linux media players act as if the movie file was a local file instead of coming across the LAN. So I think it is something the media players are doing, but I'm not sure of that.
Of course, I COULD just keep all the videos in that extent, but I don't want to do that; I want to share them via SMB (and possibly other ways) so this NAS can function as a multimedia repository for the house in addition to providing me with all the storage I need for my business. I specifically want to keep my workstation, and the facilities on my workstation, pretty much private to the workstation. Hence the iscsi extent will support the workstation, not provide multimedia support to the house.