본문 바로가기

프로그래밍/리눅스

리눅스[linux] - nfs설정(그리드 스토리지)

반응형

vi /etc/exports

/home/222.97.190.71 222.97.190.*(rw)



#exportfs 구동 상태 확인.

/usr/sbin/exportfs


# /etc/rc.d/init.d/portmap 및 nfs 시작.


/etc/rc.d/init.d/portmap start


/etc/rc.d/init.d/nfs stop


/etc/rc.d/init.d/nfs start


/etc/rc.d/init.d/nfs status



mkdir /home/222.97.190.71

mkdir /home/222.97.190.72

mkdir /home/222.97.190.73

mkdir /home/222.97.190.74


chmod 777 /home/222.97.190.71

chmod 777 /home/222.97.190.72

chmod 777 /home/222.97.190.73

chmod 777 /home/222.97.190.74



#자신 IP제외

mount -t nfs 222.97.190.71:/home/222.97.190.71        /home/222.97.190.71

mount -t nfs 222.97.190.72:/home/222.97.190.72        /home/222.97.190.72

mount -t nfs 222.97.190.73:/home/222.97.190.73        /home/222.97.190.73

mount -t nfs 222.97.190.74:/home/222.97.190.74        /home/222.97.190.74



#자신 IP제외

umount /home/222.97.190.71

umount /home/222.97.190.72

umount /home/222.97.190.73

umount /home/222.97.190.74


반응형