Network File system
- HP-UX 11i v1 and 11i v2 supports NFS v2 and v3.
- HP-UX 11i v3 supports NFS v2, v3 and v4.
Advantages of NFS v3
- Files of sizes up to 128GB
- Uses TCP versus UDP in v2
- Enhanced Performance
- AutoFS is supported versus automounter in v2
Advantages of NFS v4
- Enhanced Security
- Scalability
- Better cross platform interoperability
- Works better through firewall and on the internet
NFS v3 is still the default protocol for NFS in v3.
Some Important files to remember
- /etc/dfs/dfstab # Replaces /etc/exports file
- /etc/dfs/sharetab # Contains a list of shared resources
- /etc/rmtab # contains list of shared resources which are mounted by clients
AutoFS
cifs
To mount a windows share in HP-UX
01. Edit /etc/rc.config.d/cifsclient and make "RUN_CIFSCLIENT=1"
02. Start the cifsclient daemon ry running
# /sbin/init.d/cifsclient start
03. Make sure the Windows System Name is listed in /etc/hosts file with short and fully qualified domain name
192.168.1.10 testsystem.testdomain.local testsystem
04. Mount the file system using cifsmount command
# cifsmount -U <username> -P <passwd> -D <domain_name,optional> //system_name/share_name /Mount_point
05. Run cifslist to list all the connected shares
cifslist
Mounted Object Mountpoint State
-------------------------------------------------------------------------------
\\testsytem\share1 /mnt M
Server Local User Remote User Domain State
-------------------------------------------------------------------------------
testsystem root testuser domain L
Make the file system to mount automatically using /etc/fstab
01. Add the entry to /etc/fstab file.
cifs_server_name:/share_name /mount_point cifs defaults 0 0
NOTE: The cifs_server_name MUST be a WINS name!!
02. Do a cifslogin for the user with the '-s' option to save the password in a user database (/var/opt/cifsclient/cifsclient.udb)
# cifslogin -s -U <user_name> -P <password> -D <Domain_name> cifs_server_name
03. Check to make sure the password db was created
# ll /var/opt/cifsclient/cifsclient.udb
04. Mount the file system
# mount /mount_point
Make the file system available to other users other than root
The user which use to login on hpux server should have the required permission. Otherwise he will not be able to access the files under the cifs filesytem. To give access to "user5" to the cifs file syste,
01. Login to the UNIX system as "user5"
02. Save the CIFS user/password credentials
$ cifslogin -s -U <user_name> -P <password> -D <Domain_name> cifs_server_name
03. Verify if the new user is added using cifslist command
cifslist
Mounted Object Mountpoint State
-------------------------------------------------------------------------------
\\testsytem\share1 /mnt M
Server Local User Remote User Domain State
-------------------------------------------------------------------------------
testsystem root testuser domain L
testsystem user5 testuser domain L
04. After successful login, user5 will be able to access the CIFS share.
Tips
NFS Stale File handle error
# fuser -cu <mount_point> # /sbin/init.d/nfs.client stop # /sbin/init.d/nfs.server stop # /sbin/init.d/nfs.core stop # /sbin/init.d/nfs.client start # /sbin/init.d/nfs.server start # /sbin/init.d/nfs.core start