Mount Windows share in AIX 7.2

Doug McKenna
Doug McKenna used Ask the Experts™
on
Does anyone have an easy way to mount a Windows share in AIX?  I've seen multiple posts regarding CIFS, but most are ancient (using AIX 5 or 6 and/or Windows 2008 and earlier).  I am using AIX 7.2 and need to mount from both Windows 2008 and 2012 Server.  We are getting the "There was an error connecting the share or the server. Make sure the lsdev command shows that device nsmb0 is in..." message and I've seen several pages address it, but none successfully beyond AIX 7.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
I have this working in several locations.

First use "smit cifs_fsmnt" to set up the mount.

more info: https://www.ibm.com/support/knowledgecenter/en/ssw_aix_72/com.ibm.aix.cmds3/mkcifsmnt.htm

Some things to check after you set it up.

At "/" check for a directory with the mount point name you specified. Permissions should be rwx.
The Server name, User name, password you entered should allow you to connect to the windows share. Try it from a pc to the server to be sure it works.

There should be an entry in /etc/filesystems that looks like the following:

/winshare:
        dev             = /UNIXLINK      (share name)
        vfs             = cifs
        nodename        = iporname/username/password
        mount           = true
        type            = cifs
        options         = uid=0,gid=0,fmode=777,wrkgrp=name
        account         = false

Essentially you can use a command like the following to do the mount.

mount -v cifs -n serverip/username/password -o wrkgrp=domain,fmode=755 /sharename /localmountpoint

Please note that nsmb0 must be available to work...
lsdev -C | grep nsmb0
nsmb0      Available             N/A
In addition to the other answer...
The "nsmb0" is part of the "bos.cifs_fs" fileset.
If the Windows user is a local Windows account (not AD), then you can drop off the "wrkgrp" option.
Seth SimmonsSr. Systems Administrator

Commented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Split:
-- carlmd (https:#a42407923)
-- Travis Grindal (https:#a42427672)


If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

seth2740
Experts-Exchange Cleanup Volunteer

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial