1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Playing with NFS4.1 Multipathing on Synology

Discussion in 'NAS Systems and Networked Home and SMB Software' started by nitrobass24, Jan 15, 2017.

  1. nitrobass24

    nitrobass24 Moderator

    Joined:
    Dec 26, 2010
    Messages:
    915
    Likes Received:
    77
    When creating a new NFS datastore I noticed that VMware only supports v3 and v4.1. Unfortunately Synology only officially support NFS v4 and not 4.1.

    I was poking around my syno and the kernal they are using does in fact support 4.1. By making a simple edit I am able to enable this functionality on my 1812+ and setup a new NFS4.1 datastore on the Esx6.5 Cluster.

    Before
    Code:
    root@DiskStation:/usr/syno/etc/rc.sysv# cat /proc/fs/nfsd/versions
    +2 +3 +4 -4.1
    After
    Code:
    root@DiskStation:/usr/syno/etc/rc.sysv# cat /proc/fs/nfsd/versions
    +2 +3 +4 +4.1
    How
    We just have to edit the NFSd startup script, specifically line 89 from "/usr/sbin/nfsd $N" to "/usr/sbin/nfsd $N -V 4.1"
    Code:
    root@DiskStation:/usr/syno/etc/rc.sysv# vi S83nfsd.sh
    root@DiskStation:/usr/syno/etc/rc.sysv# ./S83nfsd.sh  restart
    Will post more later with some IOMeter results
     
    #1
    Last edited: Jan 15, 2017
    gigatexal, Marsh and Patrick like this.
  2. Patrick

    Patrick Administrator
    Staff Member

    Joined:
    Dec 21, 2010
    Messages:
    9,297
    Likes Received:
    2,857
    That is awesome.
     
    #2
  3. nitrobass24

    nitrobass24 Moderator

    Joined:
    Dec 26, 2010
    Messages:
    915
    Likes Received:
    77
    While i run the test here is my setup

    Syno 1812+
    3x Samsung PM853t 960GB in RAID5

    Host ESX6.5
    Xeon E3-1265L v2
    16GB DDR3 ECC

    Guest VM (where I am running IOMeter)
    Win 10 x64 build 1607
    1 vCPU
    2048MB Ram
    VMware Tools installed

    IOMeter Results
    iSCSI w/ Multipathing 2x 1Gb links
    [​IMG]

    NFS4.1 over 2x1GB links (LACP).
    [​IMG]
     
    #3
    Last edited: Jan 22, 2017
    Patrick likes this.
  4. maze

    maze Active Member

    Joined:
    Apr 27, 2013
    Messages:
    312
    Likes Received:
    36
    Are the changes persistent? - i'v done a bit of editing to my fstab and they are not.. - just wondering :)
     
    #4
  5. nitrobass24

    nitrobass24 Moderator

    Joined:
    Dec 26, 2010
    Messages:
    915
    Likes Received:
    77
    Persist reboots, but not software upgrades. However if you are like me you might upgrade once in a blue moon.


    Sent from my iPhone using Tapatalk
     
    #5
    maze likes this.
  6. PigLover

    PigLover Moderator

    Joined:
    Jan 26, 2011
    Messages:
    2,413
    Likes Received:
    888
    And if you are like me you forget all the edits that won't persist an upgrade...

    Always take good notes. And store them somewhere you can find them later :)

    This is good stuff, BTW. Thank you.
     
    #6
    nitrobass24 and maze like this.
  7. gigatexal

    gigatexal I'm here to learn

    Joined:
    Nov 25, 2012
    Messages:
    1,781
    Likes Received:
    258
    Looking forward to the results. Nice find btw.
     
    #7
  8. Deslok

    Deslok Active Member

    Joined:
    Jul 15, 2015
    Messages:
    754
    Likes Received:
    75
    What's the purpose of them using a kernel that supports 4.1 but not taking advantage of it?
     
    #8
  9. maze

    maze Active Member

    Joined:
    Apr 27, 2013
    Messages:
    312
    Likes Received:
    36
    Could be a former major update that enabled 4.1 support by the kernel, but they werent ready to enable it in their software as such.. just a thought.
     
    #9
  10. nitrobass24

    nitrobass24 Moderator

    Joined:
    Dec 26, 2010
    Messages:
    915
    Likes Received:
    77
    Initial Results posted above. The caveat is I havent yet tested the NFS Multipathing because I need to do more reading on how to properly set that up with VMware. So for now I have the same links setup in LAG (LACP) group.

    What was most surprising to me is that all other things being equal (Host, VMware Guest, Storage Backend, Raw Network Bandwidth) I am seeing a nearly 30% increase in IOPS and 23% reduction in IO response times.

    Also Hardware acceleration is not supported with Synology NFS (any version) on VMWare 6.5. I am hoping their plug-in is updated soon as that should improve things as well.

    Will update once I figure out the NFS multipathing.
     
    #10
    Last edited: Jan 22, 2017
  11. nitrobass24

    nitrobass24 Moderator

    Joined:
    Dec 26, 2010
    Messages:
    915
    Likes Received:
    77
    +1 for good documentation, but in this instance I am hoping to figure out where to place a startup script that will persist upgrades and can check the NFS status when booting up. This will limit the downtime of my datastores.
     
    #11
  12. gigatexal

    gigatexal I'm here to learn

    Joined:
    Nov 25, 2012
    Messages:
    1,781
    Likes Received:
    258
    those speeds seem low for pool of 3x SSDs

    what happens if you increase the cores on the guest VM?
     
    #12
  13. nitrobass24

    nitrobass24 Moderator

    Joined:
    Dec 26, 2010
    Messages:
    915
    Likes Received:
    77
    Here is a 15 minute run, upped the vCPUs to 4. And increased the the Datastore shares from 1000 to 5000. But this shouldnt matter, I am only running a CentOS box with DNSmasq on the same array while I run this.

    IOMeter Result
    [​IMG]

    I just always assumed it was being limited by the SATAII interfaces on the Syno. Here is the picture from the Syno Utilization monitor, while this is running. You can see its right around 80% the whole time this is running.
    [​IMG]
     
    #13
    gigatexal likes this.
  14. gigatexal

    gigatexal I'm here to learn

    Joined:
    Nov 25, 2012
    Messages:
    1,781
    Likes Received:
    258
    Ahh sata 2 that's probably it
     
    #14

Share This Page