NFS Mounting (AIX and other Unix flavors)
MAKE ENTRY IN /etc/exports file and also check the NFS service whether started or not...
===================================
exportfs Lists all exported filesystems
exportfs -a Exports all fs's in /etc/exports file
exportfs -u (filesystem) Un-exports a filesystem
mknfs Configures and starts NFS services
rmnfs Stops and un-configures NFS services
mknfsexp -d /directory Creates an NFS export directory
mknfsmnt Creates an NFS mount directory
***mknfsmnt -f filesys -d remotedir -h host
mount hostname:/filesystem /mount-point Mount an NFS filesystem
nfso -a Display NFS Options
nfso -o option=value Set an NFS Option
nfso -o nfs_use_reserved_port=1
=====================================
Example
----------
To add the mount of a remote directory, enter:
mknfsmnt -f /usr/share/man -d /usr/share/man -h host1
In this example, the mknfsmnt command mounts the remote directory /usr/share/man on the /usr/share/man directory that resides on host1.
Files
------
/etc/filesystems -- Lists the remote file systems to be mounted during the system restart.
=======================================
The output of exportfs command should be
/usr/sap/trans -public,sec=sys,rw,root=142.147.101.33
This will give the same group of the folder which is NFS mounted as in Source system.
======================================
Blogs by Sumit
Showing posts with label NFS. Show all posts
Showing posts with label NFS. Show all posts
Thursday, 1 May 2008
Monday, 16 July 2007
TELNET-NFS-DNS-NFSCORE Settings Enabling...
TELNET-NFS-DNS-NFSCORE Settings Enabling
---------------------------------------------------------
To enable Telnet:
1, un-comment below line in /etc/inetd.conf
telnet stream tcp nowait root /usr/lbin/telnetd telnetd
2, issue inetd -c command
#inetd -c
To enable NFS server:
1, vi /etc/rc.config.d/netdaemons
export XNTPD=1
2, edit /etc/exports
/tmp/dir_temp root=hosta
/home -a
...and so on....
3, start
#/sbin/init.d/nfs.core start
#/sbin/init.d/nfs.server start
4. Export file system
#exportfs -a
4, exportfs
Enable NFS client:
1, set at boot time:
vi /etc/rc.config.d/netdaemons
NFS_CLIENT=1
NFS_SERVER=0
enable 02 service :
#/sbin/init.d/nfs.client start
#/sbin/init.d/nfs.core start
NOTE: 02 above services are started at level 02 by default!
2, vi /etc/fstab : add mount point and server
myhp:/home /home03 nfs rw 0 0
myhp:/usr/share/man /usr/share/man nfs ro 0 0
3, create mount point
cd /home03 /usr/share/man
4. mount manually if desire!
#mount myhp:/home /home03
Enable DNS require much time than other.
DNS SERVER CONFIGURATION
1, Create /etc/name.data directory
2, Create /etc/name.data/param file
#vi param
-d boota.com
-n 192.168.3
-z 192.168.3.10
-b /etc/named.boot
-s
3, create database
#hosts_to_name -f param
4, download db.cache from internet and put it into /etc/named.data
5. Modify
#vi /etc/rc.config.d/namesvrs
NAMED=1
6. start named service
#/sbin/init.d/named start
CLIENT CONFIGURATION
1, vi /etc/nsswitch.conf
hosts: dns files
2, vi /etc/resolv.conf
search your.domain.com
nameserver 10.0.76.1 ---IPofDNSserver
nameserver 10.0.76.2 ---IPofDNSSeconndserver
---------------------------------------------------------
To enable Telnet:
1, un-comment below line in /etc/inetd.conf
telnet stream tcp nowait root /usr/lbin/telnetd telnetd
2, issue inetd -c command
#inetd -c
To enable NFS server:
1, vi /etc/rc.config.d/netdaemons
export XNTPD=1
2, edit /etc/exports
/tmp/dir_temp root=hosta
/home -a
...and so on....
3, start
#/sbin/init.d/nfs.core start
#/sbin/init.d/nfs.server start
4. Export file system
#exportfs -a
4, exportfs
Enable NFS client:
1, set at boot time:
vi /etc/rc.config.d/netdaemons
NFS_CLIENT=1
NFS_SERVER=0
enable 02 service :
#/sbin/init.d/nfs.client start
#/sbin/init.d/nfs.core start
NOTE: 02 above services are started at level 02 by default!
2, vi /etc/fstab : add mount point and server
myhp:/home /home03 nfs rw 0 0
myhp:/usr/share/man /usr/share/man nfs ro 0 0
3, create mount point
cd /home03 /usr/share/man
4. mount manually if desire!
#mount myhp:/home /home03
Enable DNS require much time than other.
DNS SERVER CONFIGURATION
1, Create /etc/name.data directory
2, Create /etc/name.data/param file
#vi param
-d boota.com
-n 192.168.3
-z 192.168.3.10
-b /etc/named.boot
-s
3, create database
#hosts_to_name -f param
4, download db.cache from internet and put it into /etc/named.data
5. Modify
#vi /etc/rc.config.d/namesvrs
NAMED=1
6. start named service
#/sbin/init.d/named start
CLIENT CONFIGURATION
1, vi /etc/nsswitch.conf
hosts: dns files
2, vi /etc/resolv.conf
search your.domain.com
nameserver 10.0.76.1 ---IPofDNSserver
nameserver 10.0.76.2 ---IPofDNSSeconndserver