IBM 서버에서 PC용 Linux서버로 NFS서버 구축해달라는 요청이
있어서 작업해본 것입니다.
다소 곡절(?)이 있었으나 그래도 결국 해냈습니다.


개요: IBM 서버에서 Linux NFS서버로 DB백업하기위해서
NFS서버설정할 필요 있었음.


Linux NFS server, AIX NFS Client


1. Linux NFS server
1.1 /etc/exports
[root@ ~]# cat /etc/exports
/nfs-183 *(rw,sync,no_root_squash)
# upper line means share(export) /nfs-183 folder to everyone(ip) with no (client) root squash to (nobody)


#


1.2 restart nfs daemon
# service netfs restart
#
# service nfs restart
# service portmap restart


2. AIX NFS Client
2.1 run modified mount command
#
lab1aix@oracle:/oracle>cat mount-linux-nfs.sh
nfso -o nfs_use_reserved_ports=1
mount nfs_svr_ip:/root/nfs-181 /nfs-bkup


# nfso -o nfs_use_reserved_ports=1
# nfs_svr_ip 의 주소를 실제 서버의 주소로 변경입력해주세요.
# 예. nfs_svr_ip 의 주소를 192.168.10.100
3. result
3.1 from client
[root@localhost /]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
192.168.10.100:/nfs-183 on /db-bkup type nfs (rw,addr=192.168.10.100)


[root@localhost /]# ls -al
total 170
drwxr-xr-x 24 root root 4096 Aug 20 10:36 .
drwxr-xr-x 24 root root 4096 Aug 20 10:36 ..


drwxrwxrwx 2 root root 4096 Aug 20 2008 db-bkup


3.2 from server


[root@211-236-176-183 /]# ls -al
?⑷퀎 194
drwxr-xr-x 27 root root 4096 8??20 11:20 .
drwxr-xr-x 27 root root 4096 8??20 11:20 ..


drwxrwxrwx 2 root root 4096 8??20 11:32 nfs-183

AIX에서 Linux NFS 서버 연결하기

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다