작업환경: IBM P570
OS: AIX 6100-08-02-1316
NFS 서버 ip주소: 192.168.0.200
NFS Client ip 주소: 192.168.0.213
Server/Client 모두 AIX 사용
client의 cdrom 을 사용할 수 없어, 다른서버에서 mount한 후 nfs를 통해 cdrom을 사용하고자 하였음. 따라서, /etc/exports/에서 -ro 옵션을 주었다.
I. NFS 서버 설정.
1. /etc/exports 화일 생성(/mnt 를 읽기 전용으로 사용하고자 한다)
# cat exports /mnt -ro
2. nfs 서비스 실행하기.
#lssrc -g nfs Subsystem Group PID Status biod nfs 3735558 active rpc.statd nfs 2883676 active rpc.lockd nfs 5374124 active nfsd nfs inoperative rpc.mountd nfs inoperative nfsrgyd nfs inoperative gssd nfs inoperative # startsrc -g nfs 0513-029 The biod Subsystem is already active. Multiple instances are not supported. 0513-059 The nfsd Subsystem has been started. Subsystem PID is 5308422. 0513-059 The rpc.mountd Subsystem has been started. Subsystem PID is 5963812. 0513-059 The nfsrgyd Subsystem has been started. Subsystem PID is 5177590. 0513-059 The gssd Subsystem has been started. Subsystem PID is 2490570. 0513-029 The rpc.lockd Subsystem is already active. Multiple instances are not supported. 0513-029 The rpc.statd Subsystem is already active. Multiple instances are not supported. # lssrc -g nfs Subsystem Group PID Status biod nfs 3735558 active rpc.statd nfs 2883676 active rpc.lockd nfs 5374124 active nfsd nfs 5308422 active rpc.mountd nfs 5963812 active nfsrgyd nfs inoperative gssd nfs inoperative
3. portmap 서비스가 실행중인지 확인하고, 실행되고 있지 않으면 실행해 준다.(여기서는 실행중)
# lssrc -s portmap Subsystem Group PID Status portmap portmap 4587544 active # exportfs -a
II. Client측 설정.
1. Client에서 nfs 서비스가 실행되는지 확인
# lssrc -g nfs Subsystem Group PID Status biod nfs 4063360 active rpc.statd nfs 6357192 active rpc.lockd nfs 5570764 active nfsd nfs inoperative rpc.mountd nfs inoperative nfsrgyd nfs inoperative gssd nfs inoperative
2. showmount 커맨드로 nfs서버 사용가능한지 확인.
# showmount -e 192.168.0.200 export list for 192.168.0.200: /mnt (everyone)
3. 마운트하여 사용한다.
# mount 192.168.0.200:/mnt /fox/mt # df -gP /mnt Filesystem GB blocks Used Available Capacity Mounted on 192.168.0.200:/mnt 4.37 4.37 0.00 100% /mnt
주의) mount 오류.
아래와 같은 오류가 발생한다면, /etc/hosts에 nfs서버의 호스트네임을 등록해준다.
# mount 192.168.0.200:/mnt /fox/mt nfsmnthelp: 1831-019 standby: System call error number -1. mount: 1831-008 giving up on: standby:/mnt System call error number -1.
1 comment
도움이 되었습니다. 감사합니다.