I have a rather nice Synology DS218 (and also a single disk one for scratch work), and--because burning CD-ROMs to endlessly mount on AIX is really unsavoury when you run into dependency problem after dependency problem, I've decided to just have an NFS share to resolve all of the hassle. But of course there are caveats when creating an NFS share for AIX so I'm creating this thread to document my experience.
#1 First thing I was curious about is... how does AIX respond to synologies, if there are any caveats? This notice from this website seems to imply such by claiming AIX needs adjustment to work with a Linux NFS share (otherwise it only partially works???):
http://www.gigahype.com/mount-nfs-share-aix-6-1/
So I go ahead and run the following (on AIX 5.3):
Code:
# nfso -o -p nfs_use_reserved_ports=1
nfso: 1485-110 Invalid tunable name -p
nfso: 1831-541 Some parameters were not parsed.
Usage: nfso -h [tunable] | {-L [tunable]} | {-x [tunable]}
nfso [-p|-r] (-a | {-o tunable})
nfso [-p|-r] )-D | ({-d tunable} {-o tunable=value}))
nfso [-c] -a
nfso -l hostname
nfso -H enable_ha
nfso -H disable_ha
nfso -H sm_register <hostname>
nfso -H sm_unregister <hostname>
nfso -H sm_gethost
nfso -H dump_dupcache <log device>
nfso -?
I'm not sure why the aforementioned command fails to run because -p is a valid parameter even under AIX, unfortunately the author who posted it doesn't describe what the flags are doing or why they were put there. I'm going to assume this would work in AIX 6.1 and not AIX 5.3? So I go ahead and remove the offending '-p' flag and simply run this:
Code:
# nfso -o nfs_use_reserved_ports=1
Setting nfs_use_reserved_ports to 1
Okay, I guess? So what was the -p for then? And did I even have to run this at all at this point?
Meanwhile it's probably a good idea to actually get the Synology NFS share going, but the first question is... does AIX 5.3 actually support NFS v4? The answer according to IBM, is yes:
https://www.ibm.com/support/knowledgecen...fs_v4.html <-- keep in mind this URL will probably change as IBM has been ruthlessly changing their documentation links...
So we go into the Synology: "File Station" and under
Create >
Create New Shared Folder. I'm naming it AIXTRSFR and using NFS v4 (no reason to use NFS v3 and the above IBM link seems to mention 5.3 may have some challenges with v3 over v4). For now I'm not bothering with encryption, and for the NFS permissions we have the following:
- Client: 192.168.2.62 <-- I'm just using a random IP (I tried a hostname and it didn't seem to work?)
- Squash: No mapping
- Asynchronous: Yes
- Non-privileged port: Denied <-- not sure if AIX needs this
- Cross-mount: Denied <-- don't think AIX needs this
- Security: sys
- Mount path:/volume1/AIXTRSFR
Okay so let's try to connect this to AIX, I presume that's sufficient. There are a lot of IBM articles and 3rd party articles all over the place (with varying commands), so let's start with this one:
https://www.ibm.com/support/knowledgecen...licit.html
Now I'm not entirely sure what "ServerName" entails, if it's the name of the mount folder, if it's the name of the NAS itself, if it's the IP address of the client share name, or hell, even the IP address of the NAS itself.
So I ran the following to see what would happen:
Code:
# show mount -e synology
showmount: unknown host synology
# showmount -e 192.168.2.62
192.168.2.62: RPC: 1832-018 port mapper failure - RPC: 1832-006 unable to send
Apparently it's useless with NFS v4 according to IBM:
Quote:The showmount command will not work for file systems that were exported only as NFS version 4 file systems. For NFS version 4, the client can mount the root filesystem for the server and traverse the exported directory structure. Individual exported file systems do not have to be explicitly mounted to be accessed by the client.
It's at this point I realize AIX does not automatically initiate TCP/IP, so you have to go to System Manager and actually start the networking subsystem; I forgot about this but yeah. The AIX network wizard can auto configure to go against DHCP so it's no big deal--give it a bit to actually procure a lease or just reboot the system with: shutdown -r now
So I run the NFS mount command and get this:
Code:
# mount server:/volume1/AIXTRSFR /mnt
mount: 1831-009 server not in hosts database
mount: 1831-008 giving up on:
server:/volume1/AIXTRSFR
A route to the remote host is not available.
So then I look at how it is mounted in Linux and tried this, but it's an invalid usage of the command:
Code:
# mount server 192.168.2.62:/volume1/AIXTRSFR /mnt
(invalid usage)
Well I've been at this for a few hours so I'm going to bed, will try again some more tomorrow.
EDIT: well after trying this a few times I noticed that the command at the first URL here, buddy changed the command a bit and I compared it from IBM's official example:
Daily Admin's example:
mount server:/path/to/share /mnt
IBM's example:
mount ServerName:/remote/directory /local/directory
So the Daily Admin made it look like 'server' was part of mount...
So the correct command would be (which is similar to Linux's):
Code:
# mount 192.168.2.62:/volume1/AIXTRSFR /mnt
mount: 1831-011 access denied for 192.168.2.62:/volume1/AIXTRSFR
mount: 1831-008 giving up on:
192.168.2.62:/volume1/AIXTRSFR
The file access permissions do not allow the specified action.
Of course I get access denied and that's to be expected but I'll figure that out later.
---
I've attempted to add 'Everyone' read access (and even modification access) over this share. However, I don't know if it also needs UNIX permissions and how that carries over to the Synology's share. Also--I'm wondering why credentials can't just be specified at this point.
So after going over a few more articles I decided to actually check if NFS is running (despite mount sort of hinting it is). When I ran
lssrc -g nfs two of the NFS services were running but I didn't know if that was enough. It's always easier to see things in the Systems Manager anyways, so I went to: localhost > File Systems > NFS Configuration and it appears the NFS service isn't started, so let's go ahead and get that configured not too unlike the TCP/IP services.
Under the System Manager, the menu bar has "NFS", you'll want to go to NFS > New > NFS Mount (Advanced)
==Tab: Mount Point==
- Path name of mount point: /mnt <-- if this is left blank the "OK" button will be blanked out, and you must start with a '/' of course
- Remote host where directory resides: 192.168.2.60
- Path name of remote directory: /volume1/AIXTRSFR (if you click browse it should show all mount points on the synology! So we know it's working)
- Mount group name: <left blank>
- Permissions: read/write (default)
- Attempt mount in foreground or background: background (default)
- Allow keyboard interrupts on hard mounts: yes
- Mount the directory immediately: yes
And then I chose from the radio buttons this option:
Add entry to /etc/filesystems. Mount directory on the next system startup. <-- this is so it always gets mounted
And then under 'Options' I made sure it was set to NFS version 4. After click OK we get the same message output as in the terminal. So back to the readme, I noticed there's the following option:
NFS > Configure RPCSEC_GSS > Configure Host Principals > Configure Host Credentials
I then pop in the IP address of the synology and it states it was successful. So the status showing in the System Manager is now:
- NFS started: no <-- not sure why it says that
- NFS client mounts: 1
- NFS exported directories: 0
- NFS local domain: (synology's IP address)
After running lsfs I do see the mount in there so I'm going to assume it's working??? I'll update this with anything further that I find if not.