AIX下配置NFS

來源:互聯網
上載者:User


AIX下配置NFS 環境:服務端:AIX 5.3.10用戶端:Red Hat Linux As 5 服務端1.建立檔案系統soft同時mount該檔案系統#mount /soft 2.編譯服務端的/etc/hosts檔案,添加NFS用戶端資訊 192.168.1.103 stdby 3.編輯/etc/exports,(預設情況下沒有這個檔案, 需要自己建立)vi /etc/exports/soft -rw,root=stdby,access=stdby 4.編輯/etc/xtab /soft -rw,root=stdby_1,access=stdby_1   www.2cto.com  5.啟、停NFS服務 立即啟動 #/usr/sbin/mknfs '-N' 立即啟動,restart也自動運行 #/usr/sbin/mknfs '-B'立即停止 #/usr/sbin/rmnfs '-N' 立即停止,系統停止也停止 #/usr/sbin/mknfs '-B' 6.伺服器上執行 #exportfs -a 該命令將匯出/etc/exports中寫入的所有目錄 用戶端配置:1.用戶端機器的host中寫入NFS伺服器的資訊,我的用戶端是linux,修改/etc/hosts 192.168.1.185 hxl 2.建立目錄並載入#mkdir data #mount hxl:/soft /data 載入成功www.2cto.com  3.查看載入目錄[root@stdby data]# pwd/data[root@stdby data]# ls -altotal 2511436drwxr-xr-x  7  202  202       4096 Sep  2 10:53 .drwxr-xr-x 27 root root       4096 Sep  2 15:53 ..-rw-r-----  1  202  202 1564425851 Aug 22 08:54 aix.ppc64_11gR2_database_1of2.zip-rw-r-----  1  202  202 1007010341 Aug 19 11:56 aix.ppc64_11gR2_database_2of2.zipdrwxr-xr-x  9  202  202       4096 Dec 21  2009 databasedrwxr-x---  2  202  202      12288 Aug 19 12:03 DownloadDirectordrwxr-xr-x  3  203  202        256 Sep  2 10:55 gridsoft-rw-r-----  1  202  202      75320 Aug 20 10:22 gzip-1.2.4a-10.aix5.2.ppc.rpmdrwxr-xr-x  2  202  202        256 Sep  1 09:59 javadrwxr-xr-x  2  202  202        256 Aug 19 11:44 lost+found-rw-r-----  1  202  202     156854 Aug 20 10:22 unzip-5.51-1.aix5.1.ppc.rpm  www.2cto.com  發現在用戶端能看到了服務端/soft的內容伺服器端用戶端載入成功後,可以查看載入的機器[hxl/root]#showmountstdby[hxl/root]# -- The End -- 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.