top of page

NFS 사용하기

* NFS

서버에서 해 주어야할 작업

1. 공유할 디렉토리를 화일에 등록한다.

# vi /etc/dfs/dfstab share -F nfs -o ro /cdrom/volume_name

2. NFS 서버데몬을 살린다.

# /etc/init.d/nfs.server start

3. 제대로 되었는지 확인한다.

# dfshares  => 공유된 디렉토리 정보를 보여준다. # dfmounts  => 마운트하고 있는 클라이언트 정보를 보여준다.

클라이언트에서 해 주어야할 작업

1. 잠시 사용할 때는 명령어로만 마운트시킨다.

# mount SERVER:/cdrom/volume_name /cd_rom

2. 부팅할때 자동으로 마운트되게 하려면 화일에 등록한다.

# vi /etc/vfstab SERVER:/cdrom/volume_name – /cd_rom nfs – yes –

한화에서 nfs설정 1. db서버에 설정 /etc/dfs/dfstab (/etc/dfstab ?) 에서 추가

# Place share(1M) commands here for automatic execution # on entering init state 3. # # Issue the command ‘/etc/init.d/nfs.server start’ to run the NFS # daemon processes and the share commands, after adding the very # first entry to this file. # # share [-F fstype] [ -o options] [-d “<text>”] <pathname> [resource] # .e.g, # share -F nfs -o rw=engineering -d “home dirs” /export/home2 #share -F nfs -o rw /HWCAPP #share -F nfs -o rw /HCCAPP share -F nfs -o rw /HWCAPP/PATCH share -F nfs -o rw /EXTRA2/PATCH share -F nfs -o rw /HCCAPP/HCCCRP3/DB/hcccrp3comn/admin/out share -F nfs -o rw /EXTRA1/HWCCRP2/DB/hwccrp2comn/admin/out

Domain 2 에 추가 share -F nfs -o rw /HCCAPP/HCCPROD/DB/hccprodcomn/admin/out share -F nfs -o rw /HWCAPP/HWCPROD/DB/hwcprodcomn/admin/out

2. db서버(or Domain2)에 nfs 서비스용 데몬을 죽였다 살림 /etc/init.d/nfs.server stop /etc/init.d/nfs.server start 3. APP SERVER(or Domain1)에서 mount 할 디렉토리를 만든다.

mkdir OFACOH2 mkdir OFACOC3

hwgdb1-[/]mkdir OFA_HWCPROD hwgdb1-[/]mkdir OFA_HCCPROD

4. APP SERVER에서 mount시킨다. mount hwgdb1:/EXTRA1/HWCCRP2/DB/hwccrp2comn/admin/out /OFACOH2 mount hwgdb1:/HCCAPP/HCCCRP3/DB/hcccrp3comn/admin/out /OFACOC3

mount hwgdb2:/HCCAPP/HCCPROD/DB/hccprodcomn/admin/out /OFA_HCCPROD mount hwgdb2:/HWCAPP/HWCPROD/DB/hwcprodcomn/admin/out /OFA_HWCPROD

mount hwgdb1:/EXTRA2/oracle_product_cd /oracle_cd mount hwgdb1:/EXTRA2/PATCH /hcc_patch

(끊는 방법 umount /OFACOC3 )

Write access denied to .Files will not be purged after processing.

gl extract file directory

조회수 0회댓글 0개

Comentários


bottom of page