solaris 10 nfs服務配置

來源:互聯網
上載者:User

1.查看nfs服務情況

# svcs -a | grepnfs

650) this.width=650;" style="border-bottom:0px;border-left:0px;border-top:0px;border-right:0px;" title="image" border="0" alt="image" src="http://img1.51cto.com/attachment/201309/28/703525_1380381515QPee.png" height="148" />
注:預設沒有啟動

2.啟動與關閉nfs服務

(1)svcadm方式啟動服務

# svcadm enable svc:/network/nfs/server:default# svcadm disable svc:/network/nfs/server:default或採用以下方式# /etc/init.d/nfs.server start# /etc/init.d/nfs.server stop

(2)配置nfs目錄

#直接啟動實際發現還是沒有啟動,可以採用先將共用目錄加入到/etc/dfs/dfstab目錄中,再啟動。

# vi /etc/dfs/dfstabshare -F nfs -o rw /mnt

#share命令手動樣本

# share -F nfs -o rw=192.168.233.167 /mnt

650) this.width=650;" style="border-bottom:0px;border-left:0px;border-top:0px;border-right:0px;" title="image" border="0" alt="image" src="http://www.bkjia.com/uploads/allimg/131227/23035A441-1.png" height="132" />

再次啟動

# /etc/init.d/nfs.server start
3.相關命令說明

(1)share命令顯示nfs共用情況

650) this.width=650;" style="border-bottom:0px;border-left:0px;border-top:0px;border-right:0px;" title="image" border="0" alt="image" src="http://www.bkjia.com/uploads/allimg/131227/23035C252-2.png" height="90" />

(2)dfshares命令顯示nfs共用情況

650) this.width=650;" style="border-bottom:0px;border-left:0px;border-top:0px;border-right:0px;" title="image" border="0" alt="image" src="http://www.bkjia.com/uploads/allimg/131227/23035C3a-3.png" height="81" />

查看遠程nfs伺服器資源

650) this.width=650;" style="border-bottom:0px;border-left:0px;border-top:0px;border-right:0px;" title="image" border="0" alt="image" src="http://www.bkjia.com/uploads/allimg/131227/23035B125-4.png" height="81" />

(3)unshareall取消nfs共用,shareall掛載所有/etc/dfs/dfstab上的nfs共用

650) this.width=650;" style="border-bottom:0px;border-left:0px;border-top:0px;border-right:0px;" title="image" border="0" alt="image" src="http://www.bkjia.com/uploads/allimg/131227/2303561934-5.png" height="181" />

4.用戶端配置

(1)用戶端手動掛載

# mount 192.168.233.166:/mnt /mnt

650) this.width=650;" style="border-bottom:0px;border-left:0px;border-top:0px;border-right:0px;" title="image" border="0" alt="image" src="http://www.bkjia.com/uploads/allimg/131227/23035645C-6.png" height="330" />

(2)用戶端開機自啟動掛載

# vi/etc/vfstab

650) this.width=650;" style="border-bottom:0px;border-left:0px;border-top:0px;border-right:0px;" title="image" border="0" alt="image" src="http://www.bkjia.com/uploads/allimg/131227/2303561A8-7.png" height="207" />

#mount的用法與linux一致。

本文出自 “koumm的linux技術部落格” 部落格,請務必保留此出處http://koumm.blog.51cto.com/703525/1303247

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.