<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CIFS: SMB2 on Linux clients? in Network and Storage Protocols</title>
    <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/155507#M9381</link>
    <description>&lt;P&gt;Thanks for sharing your test details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tested different 'linux kernels' as SMBclient (samba/cifs-utils) with NetApp 7-mode &amp;amp; cDOT CIFS shares on redhat/centos 5.x/6.x/7.x:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a BUG:&lt;BR /&gt;&lt;A href="https://access.redhat.com/solutions/1178753" target="_blank" rel="noopener"&gt;https://access.redhat.com/solutions/1178753&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the bug, SMB Dialect = 2 is not supported as 'client' on certain(most) linux kernels, but it is supported as 'SMB server' on redhat/centos 5.x/6.x/7.x and so on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cause&lt;/STRONG&gt;: B'cos NetApp Storage is acting as 'SMB server' and 'Linux Host (kernels)' as SMBclient, it can only negotiate to &lt;STRONG&gt;SMB1&lt;/STRONG&gt;, according to the BUG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to negotiate SMB2.1 or higher protcols use cDOT/ONTAP.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Tests results:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Tried to mount 7-mode using Redhat7/centos7 without specifiying any dialect and met with error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;mount error(22): Invalid argument&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error is not very useful, if you google, you will see number of hits, asking to change min protocol versions etc on smb.conf file, however they aren't applicable, b'cos we are using linux as SMB client and not as SMB Server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;To get more useful info, try to read the kernel or "messages" log:&lt;/STRONG&gt;&lt;BR /&gt;[root@redhatcentos7 ~]# tail -f /var/log/messages [This is more useful, as seen below]&lt;/P&gt;
&lt;P&gt;Linux kernel version: redhatcentos7 3.10.0-1062.el7.x86_64&lt;BR /&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt; Apr 13 20:32:39 redhatcentos7 kernel: Default dialect has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore, if you wish to have CIFS shares accessible from Linux kernel versions 3.10.x or later then, you are limited to use dialect 1.0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;To mount 1.0 on redhat7 from NetApp 7-mode, try following command:&lt;/STRONG&gt;&lt;BR /&gt;[root@redhatcentos7 ~]# mount -t cifs -o vers=1.0,username=Administrator,password=xxxxx,domain=TEST.COM //192.168.0.5/vol_test /mnt/7mode&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please note:&lt;/STRONG&gt; This is specific to linux clients, in this kernel version the minimal supported dialect is 2.1 which apparently was rejected by 7-mode. Hence, had to be mounted via 1.0.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Recommendations based on testing&lt;/STRONG&gt;:&lt;BR /&gt;From linux clients (as SMB Clients) works with dialect 1.0 with 7-mode.&lt;BR /&gt;From linux clients (as SMB Clients) works with 2.0,2.1 or higher 3.0 with cDOT/ONTAP&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;To mount:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;7-mode SMB Server shares:&lt;/STRONG&gt;&lt;BR /&gt;mount -t cifs -o vers=1.0,username=Administrator,password=xxx,domain=TEST.COM //192.168.0.5/vol_test /mnt/7mode&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;cDOT/ONTAP SMB Server shares:&lt;/STRONG&gt;&lt;BR /&gt;mount -t cifs -o vers=2.0,username=Administrator,password=xxx,domain=TEST.COM //192.168.0.7/fin /cdot&lt;BR /&gt;mount -t cifs -o vers=2.1,username=Administrator,password=xxx,domain=TEST.COM //192.168.0.7/fin /cdot&lt;BR /&gt;mount -t cifs -o vers=3.0,username=Administrator,password=xxx,domain=TEST.COM //192.168.0.7/fin /cdot&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;To check SMB dialects:&lt;/STRONG&gt;&lt;BR /&gt;7-mode:&lt;BR /&gt;filer&amp;gt; cifs sessions -t&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cDOT/ONTAP&lt;BR /&gt;::&amp;gt; cifs session show -vserver &amp;lt;vserver&amp;gt; -fields protocol-version,address&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 13 Apr 2020 21:37:36 GMT</pubDate>
    <dc:creator>Ontapforrum</dc:creator>
    <dc:date>2020-04-13T21:37:36Z</dc:date>
    <item>
      <title>CIFS: SMB2 on Linux clients?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/106315#M7809</link>
      <description>&lt;P&gt;Hi all;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we're trying (and failing) to mount a NetApp CIFS share on Linux boxes in SMB2 mode. Situation so far:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;* Mounting the NetApp CIFS share using SMB2 works well on Windows 7 clients, so I assume the NetApp has SMB2 correctly enabled.&lt;/P&gt;
&lt;P&gt;* Mounting CIFS shares exposed by a Windows 2012 file server using SMB2 or even SMB3 works well on these Linux boxes so I assume these machines are generally able to speak to a SMB2+ server.&lt;/P&gt;
&lt;P&gt;* However, mounting the NetApp CIFS share on the Linux machines using any "newer" version of SMB reproducibly fails:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;kaleid:~$ sudo mount -t cifs -o vers=2.0,nodfs,credentials=/home/kristian/bin/filer,uid=kr,gid=kr //192.168.1.249/data /mnt
mount error(95): Operation not supported

[  967.925655] CIFS VFS: cifs_mount failed w/return code = -95
[  972.198283] CIFS VFS: cifs_read_super: get root inode failed&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Known problem? Any idea how to work around this? System is a FAS2020 running OnTAP 7.3.7P3.&lt;/P&gt;
&lt;P&gt;TIA and all the best,&lt;/P&gt;
&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2015 15:54:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/106315#M7809</guid>
      <dc:creator>karstenrink</dc:creator>
      <dc:date>2015-06-17T15:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: CIFS: SMB2 on Linux clients?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/137581#M8958</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;have you ever found a solution for this behaviour. I get the same. I was able to get a connection with smbclient but not with mount.cifs and the kernel cifs module&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 09:49:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/137581#M8958</guid>
      <dc:creator>tux</dc:creator>
      <dc:date>2018-01-25T09:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: CIFS: SMB2 on Linux clients?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/146991#M9206</link>
      <description>&lt;P&gt;I need some further information to help you with this. The type of Linux client, the version, the kernel version, etc.&lt;/P&gt;
&lt;P&gt;I'd also like to know the serial number of the filer in question.&lt;/P&gt;
&lt;P&gt;I'd also like to see packet captures attempting the access to the cifs share.&lt;/P&gt;
&lt;P&gt;I'd also like to know the name of the cifs share.&lt;/P&gt;
&lt;P&gt;I'd also like to know the ip address of the client attempting to access the cifs share as well as what IP address on the filer it's attempting to access.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's a lot of variables here that could be causing problems so I apologize about all the questions.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 15:21:33 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/146991#M9206</guid>
      <dc:creator>Allison_McWaters</dc:creator>
      <dc:date>2019-03-08T15:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: CIFS: SMB2 on Linux clients?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/155480#M9376</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dear NetApp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also get the exact error message as well&amp;nbsp; using different versions of samba when attempting to access the NetApp specifying smb 2.0 (or greater). What is the solution to this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Sat, 11 Apr 2020 16:22:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/155480#M9376</guid>
      <dc:creator>pgc</dc:creator>
      <dc:date>2020-04-11T16:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: CIFS: SMB2 on Linux clients?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/155482#M9377</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SMB 3.0 (newer versions)only available in cDot/ONTAP (Precisely cDOT 8.2 and later). Hence, it is not going to work with Data ontap 7-mode (as SMB server, 7-mode OS version doesn't matter, SMB 3.0 is never introduced in 7-mode and will never be b'cos the code development is stopped, cDOT/ONTAP is the only way forward wrt SMB3.0 support).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want NetApp (as SMB Server) to serve SMB3.0 version to clients, then you must be on cDOT/ONTAP and client must also support the higher version (For them to negotiate).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To verify &lt;STRONG&gt;max SMB&lt;/STRONG&gt; versions supported on your 7-mode Data Ontap, simplest way is to run this command:&lt;BR /&gt;7-mode&amp;gt; options cifs.smb&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check the SMB2.0 support on your ontap version, this option must be enabled:&lt;BR /&gt;filer&amp;gt; cifs.smb2.enable on&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: When this option is enabled, the Filer uses SMB 2.0, provided client also supports SMB 2.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;You can try this command from Linux host to mount CIFS shares hosted on NetApp 7-mode:&lt;/STRONG&gt;&lt;BR /&gt;[root@redhat /]# mount -t cifs -o username=Administrator,password=&amp;lt;password&amp;gt;,domain=ABC.COM //192.x.x.x/share1 /mnt/smb&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once the command is successful, go to /mnt/smb and check if you are able to see shares.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, on the filer side:&lt;/P&gt;
&lt;P&gt;filer&amp;gt; cifs sessions -t [This command will tell you which SMB version is currently negotiated]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: Also, check the smb version running on your client and the default client smb version mentioned in the smb.conf file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2020 01:48:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/155482#M9377</guid>
      <dc:creator>Ontapforrum</dc:creator>
      <dc:date>2020-04-12T01:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: CIFS: SMB2 on Linux clients?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/155485#M9378</link>
      <description>&lt;P&gt;Hi NetApp support,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for quick response!&amp;nbsp; I will check this out first thing next week.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stay tuned,&lt;/P&gt;
&lt;P&gt;pgc&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2020 13:19:15 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/155485#M9378</guid>
      <dc:creator>pgc</dc:creator>
      <dc:date>2020-04-12T13:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: CIFS: SMB2 on Linux clients?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/155495#M9379</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;cifs.smb2.enable is set to "on".&amp;nbsp; will changing the protocol mode make a difference? ... from unix (default setting) to "mixed"?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 13:34:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/155495#M9379</guid>
      <dc:creator>pgc</dc:creator>
      <dc:date>2020-04-13T13:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: CIFS: SMB2 on Linux clients?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/155496#M9380</link>
      <description>&lt;P&gt;Looking at a wireshark trace, I see that the client is attempting to negotiate a session using smb v2.0 but the netapp is returning errors, starting with this. I am assuming this there is some setting on the netapp that is not configured correctly. I mean, it's smb version 2, which has been around for ever. the last error msg is "not supported" ???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Frame 3: 366 bytes on wire (2928 bits), 366 bytes captured (2928 bits)&lt;BR /&gt;Linux cooked capture&lt;BR /&gt;Internet Protocol Version 4, Src: 172.22.0.21, Dst: 172.22.17.76&lt;BR /&gt;Transmission Control Protocol, Src Port: 445, Dst Port: 44682, Seq: 222, Ack: 231, Len: 298&lt;BR /&gt;NetBIOS Session Service&lt;BR /&gt;SMB2 (Server Message Block Protocol version 2)&lt;BR /&gt;SMB2 Header&lt;BR /&gt;ProtocolId: 0xfe534d42&lt;BR /&gt;Header Length: 64&lt;BR /&gt;Credit Charge: 0&lt;BR /&gt;NT Status: STATUS_MORE_PROCESSING_REQUIRED (0xc0000016)&lt;BR /&gt;Command: Session Setup (1)&lt;BR /&gt;Credits granted: 1&lt;BR /&gt;Flags: 0x00000001, Response&lt;BR /&gt;Chain Offset: 0x00000000&lt;BR /&gt;Message ID: Unknown (1)&lt;BR /&gt;Process Id: 0x00000785&lt;BR /&gt;Tree Id: 0x00000000&lt;BR /&gt;Session Id: 0x0000000000085b8c&lt;BR /&gt;Signature: 00000000000000000000000000000000&lt;BR /&gt;Session Setup Response (0x01)&lt;BR /&gt;StructureSize: 0x0009&lt;BR /&gt;0000 0000 0000 100. = Fixed Part Length: 4&lt;BR /&gt;.... .... .... ...1 = Dynamic Part: True&lt;BR /&gt;Session Flags: 0x0000&lt;BR /&gt;.... .... .... ...0 = Guest: False&lt;BR /&gt;.... .... .... ..0. = Null: False&lt;BR /&gt;.... .... .... .0.. = Encrypt: False&lt;BR /&gt;Blob Offset: 0x00000048&lt;BR /&gt;Blob Length: 222&lt;BR /&gt;Security Blob: 4e544c4d5353500002000000160016003000000005028960…&lt;BR /&gt;NTLM Secure Service Provider&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Frame 11: 145 bytes on wire (1160 bits), 145 bytes captured (1160 bits)&lt;BR /&gt;Linux cooked capture&lt;BR /&gt;Internet Protocol Version 4, Src: 172.22.0.21, Dst: 172.22.17.76&lt;BR /&gt;Transmission Control Protocol, Src Port: 445, Dst Port: 44682, Seq: 1226, Ack: 1595, Len: 77&lt;BR /&gt;NetBIOS Session Service&lt;BR /&gt;SMB2 (Server Message Block Protocol version 2)&lt;BR /&gt;SMB2 Header&lt;BR /&gt;ProtocolId: 0xfe534d42&lt;BR /&gt;Header Length: 64&lt;BR /&gt;Credit Charge: 0&lt;BR /&gt;NT Status: STATUS_NOT_FOUND (0xc0000225)&lt;BR /&gt;Command: Ioctl (11)&lt;BR /&gt;Credits granted: 2&lt;BR /&gt;Flags: 0x00000001, Response&lt;BR /&gt;Chain Offset: 0x00000000&lt;BR /&gt;Message ID: Unknown (9)&lt;BR /&gt;Process Id: 0x00000785&lt;BR /&gt;Tree Id: 0x00000040&lt;BR /&gt;Session Id: 0x0000000000085b8c&lt;BR /&gt;Signature: 00000000000000000000000000000000&lt;BR /&gt;Ioctl Response (0x0b)&lt;BR /&gt;StructureSize: 0x0009&lt;BR /&gt;0000 0000 0000 100. = Fixed Part Length: 4&lt;BR /&gt;.... .... .... ...1 = Dynamic Part: True&lt;BR /&gt;Error Context Count: 0&lt;BR /&gt;Reserved: 0x00&lt;BR /&gt;Byte Count: 0&lt;BR /&gt;Error Data: 00&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;finally, this error ... not supported.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Frame 17: 145 bytes on wire (1160 bits), 145 bytes captured (1160 bits)&lt;BR /&gt;Linux cooked capture&lt;BR /&gt;Internet Protocol Version 4, Src: 172.22.0.21, Dst: 172.22.17.76&lt;BR /&gt;Transmission Control Protocol, Src Port: 445, Dst Port: 44682, Seq: 2027, Ack: 2283, Len: 77&lt;BR /&gt;NetBIOS Session Service&lt;BR /&gt;SMB2 (Server Message Block Protocol version 2)&lt;BR /&gt;SMB2 Header&lt;BR /&gt;ProtocolId: 0xfe534d42&lt;BR /&gt;Header Length: 64&lt;BR /&gt;Credit Charge: 0&lt;BR /&gt;NT Status: STATUS_NOT_SUPPORTED (0xc00000bb)&lt;BR /&gt;Command: GetInfo (16)&lt;BR /&gt;Credits granted: 2&lt;BR /&gt;Flags: 0x00000001, Response&lt;BR /&gt;Chain Offset: 0x00000000&lt;BR /&gt;Message ID: Unknown (15)&lt;BR /&gt;Process Id: 0x00000785&lt;BR /&gt;Tree Id: 0x00000041&lt;BR /&gt;Session Id: 0x0000000000085b8c&lt;BR /&gt;Signature: 00000000000000000000000000000000&lt;BR /&gt;GetInfo Response (0x10)&lt;BR /&gt;StructureSize: 0x0009&lt;BR /&gt;0000 0000 0000 100. = Fixed Part Length: 4&lt;BR /&gt;.... .... .... ...1 = Dynamic Part: True&lt;BR /&gt;Error Context Count: 0&lt;BR /&gt;Reserved: 0x00&lt;BR /&gt;Byte Count: 0&lt;BR /&gt;Error Data: 00&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 14:07:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/155496#M9380</guid>
      <dc:creator>pgc</dc:creator>
      <dc:date>2020-04-13T14:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: CIFS: SMB2 on Linux clients?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/155507#M9381</link>
      <description>&lt;P&gt;Thanks for sharing your test details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tested different 'linux kernels' as SMBclient (samba/cifs-utils) with NetApp 7-mode &amp;amp; cDOT CIFS shares on redhat/centos 5.x/6.x/7.x:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a BUG:&lt;BR /&gt;&lt;A href="https://access.redhat.com/solutions/1178753" target="_blank" rel="noopener"&gt;https://access.redhat.com/solutions/1178753&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the bug, SMB Dialect = 2 is not supported as 'client' on certain(most) linux kernels, but it is supported as 'SMB server' on redhat/centos 5.x/6.x/7.x and so on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cause&lt;/STRONG&gt;: B'cos NetApp Storage is acting as 'SMB server' and 'Linux Host (kernels)' as SMBclient, it can only negotiate to &lt;STRONG&gt;SMB1&lt;/STRONG&gt;, according to the BUG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to negotiate SMB2.1 or higher protcols use cDOT/ONTAP.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Tests results:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Tried to mount 7-mode using Redhat7/centos7 without specifiying any dialect and met with error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;mount error(22): Invalid argument&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error is not very useful, if you google, you will see number of hits, asking to change min protocol versions etc on smb.conf file, however they aren't applicable, b'cos we are using linux as SMB client and not as SMB Server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;To get more useful info, try to read the kernel or "messages" log:&lt;/STRONG&gt;&lt;BR /&gt;[root@redhatcentos7 ~]# tail -f /var/log/messages [This is more useful, as seen below]&lt;/P&gt;
&lt;P&gt;Linux kernel version: redhatcentos7 3.10.0-1062.el7.x86_64&lt;BR /&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt; Apr 13 20:32:39 redhatcentos7 kernel: Default dialect has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore, if you wish to have CIFS shares accessible from Linux kernel versions 3.10.x or later then, you are limited to use dialect 1.0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;To mount 1.0 on redhat7 from NetApp 7-mode, try following command:&lt;/STRONG&gt;&lt;BR /&gt;[root@redhatcentos7 ~]# mount -t cifs -o vers=1.0,username=Administrator,password=xxxxx,domain=TEST.COM //192.168.0.5/vol_test /mnt/7mode&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please note:&lt;/STRONG&gt; This is specific to linux clients, in this kernel version the minimal supported dialect is 2.1 which apparently was rejected by 7-mode. Hence, had to be mounted via 1.0.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Recommendations based on testing&lt;/STRONG&gt;:&lt;BR /&gt;From linux clients (as SMB Clients) works with dialect 1.0 with 7-mode.&lt;BR /&gt;From linux clients (as SMB Clients) works with 2.0,2.1 or higher 3.0 with cDOT/ONTAP&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;To mount:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;7-mode SMB Server shares:&lt;/STRONG&gt;&lt;BR /&gt;mount -t cifs -o vers=1.0,username=Administrator,password=xxx,domain=TEST.COM //192.168.0.5/vol_test /mnt/7mode&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;cDOT/ONTAP SMB Server shares:&lt;/STRONG&gt;&lt;BR /&gt;mount -t cifs -o vers=2.0,username=Administrator,password=xxx,domain=TEST.COM //192.168.0.7/fin /cdot&lt;BR /&gt;mount -t cifs -o vers=2.1,username=Administrator,password=xxx,domain=TEST.COM //192.168.0.7/fin /cdot&lt;BR /&gt;mount -t cifs -o vers=3.0,username=Administrator,password=xxx,domain=TEST.COM //192.168.0.7/fin /cdot&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;To check SMB dialects:&lt;/STRONG&gt;&lt;BR /&gt;7-mode:&lt;BR /&gt;filer&amp;gt; cifs sessions -t&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cDOT/ONTAP&lt;BR /&gt;::&amp;gt; cifs session show -vserver &amp;lt;vserver&amp;gt; -fields protocol-version,address&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 21:37:36 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/155507#M9381</guid>
      <dc:creator>Ontapforrum</dc:creator>
      <dc:date>2020-04-13T21:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: CIFS: SMB2 on Linux clients?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/155508#M9382</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&lt;SPAN&gt;In order to negotiate SMB2.1 or higher protcols use "cDOT"/ONTAP.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry but I'm not well versed with NetApp's OS versioning ... can you tell me which ONTAP version that references? 8.4? 9.0?&amp;nbsp; I want to make sure that I make the correct recommendation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for your excellent support,&lt;/P&gt;
&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 22:29:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/155508#M9382</guid>
      <dc:creator>pgc</dc:creator>
      <dc:date>2020-04-13T22:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: CIFS: SMB2 on Linux clients?</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/155540#M9383</link>
      <description>&lt;P&gt;&lt;BR /&gt;You're welcome.&lt;/P&gt;
&lt;P&gt;For your information, I will try to keep it simple.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;7-mode&lt;/STRONG&gt; [Which is known as HA Pair, non-clustered] : Is available until 8.2.x only, end of journey for 7-mode NetApp OS. [Data ONTAP 8.3 and later do not include a 7-Mode version]. This 7-mode version supports only SMB2.0 &amp;amp; 2.1 dialects. However, certain versions of "Linux" (Not Windows) as 'SMB Client' can only negotiate SMB1.0. Hence, if even if 7-mode is capable of negotiating SMB2.0/2.1, client fails to connect as we observed in the logs previously.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cluster Data ONTAP:&lt;/STRONG&gt; Until 8.3.x was called cluster Data ONTAP [Cluster-Mode], however since 9.x it is renamed to simply 'ONTAP'. Hence, what I had mentioned as 'cDOT/ONTAP', I was basically referring to 'Clustered Ontap', which we now call 'ONTAP'. In cDOT, since cDOT 8.2, higher SMB dialects are supported such as SMB2.0,2.1,3.0. I mean cDOT 8.2 and not 7-mode 8.2, and there is no 8.4 in either.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Following Linux 'kernel' as SMB Client and ONTAP 9.x as SMB Server works with SMB Dialects 1.0,2.0,2.1 &amp;amp; 3.0. Please note, I haven't tested all the kernels, but this was minimum Centos7 that I downloaded and tested and it seems to work.&lt;BR /&gt;[root@redhatcentos7 ~]# uname -a&lt;BR /&gt;Linux redhatcentos7 3.10.0-1062.el7.x86_64&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Output from my 9.1P13 NetApp Simulator:&lt;BR /&gt;::&amp;gt; cifs session show -fields protocol-version,address&lt;BR /&gt;node vserver session-id connection-id address protocol-version&lt;BR /&gt;--------- ------- ---------- ------------- ------------- ----------------&lt;BR /&gt;cdot91-01 cifs 14047853137675419654&lt;BR /&gt;2157827681 192.168.0.39 &lt;STRONG&gt;SMB1&lt;/STRONG&gt;&lt;BR /&gt;cdot91-01 cifs 14047853137675419656&lt;BR /&gt;2157827683 192.168.0.39 &lt;STRONG&gt;SMB2&lt;/STRONG&gt;&lt;BR /&gt;cdot91-01 cifs 14047853137675419652&lt;BR /&gt;2157827677 192.168.0.39 &lt;STRONG&gt;SMB2_1&lt;/STRONG&gt;&lt;BR /&gt;cdot91-01 cifs 14047853137675419654&lt;BR /&gt;2157827681 192.168.0.39 &lt;STRONG&gt;SMB3&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 00:07:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/CIFS-SMB2-on-Linux-clients/m-p/155540#M9383</guid>
      <dc:creator>Ontapforrum</dc:creator>
      <dc:date>2020-04-15T00:07:37Z</dc:date>
    </item>
  </channel>
</rss>

