I have a two similar Ubuntu servers 18.04 (4.15.0-39-generic #42-Ubuntu SMP Tue Oct 23 15:48:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux) and trying to mount windows files server share on it. On one server it's mounting without problem but on second one failing with invalid argument error:
mount error(22): Invalid argument Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Executing same command on both servers:
mount -t cifs -o username=username,domain=domain-name //path/to/share /mount/path
Kernel log write such messages:
[Tue Dec 4 13:48:36 2018] No dialect specified on mount. Default 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. [Tue Dec 4 13:48:36 2018] CIFS VFS: cifs_mount failed w/return code = -22