1 / 78

PC-Cluster 架設圖解教學 作業系統 -linux-openSuSE 12.1

PC-Cluster 架設圖解教學 作業系統 -linux-openSuSE 12.1. PC-Cluster 硬體架構. PC-Cluster 軟體架構. NFS ( N etwork F ile S ystem) Server 它最大的功能就是可以透過網路,讓不同的機器、不同的作業系統、可以彼此分享個別的檔案 (share files) 。 NIS ( N etwork I nformation S ervice) Server

avedis
Télécharger la présentation

PC-Cluster 架設圖解教學 作業系統 -linux-openSuSE 12.1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PC-Cluster架設圖解教學 作業系統-linux-openSuSE 12.1

  2. PC-Cluster硬體架構

  3. PC-Cluster軟體架構 • NFS (Network FileSystem) Server • 它最大的功能就是可以透過網路,讓不同的機器、不同的作業系統、可以彼此分享個別的檔案 (share files)。 • NIS (Network Information Service) Server • 一部帳號主控伺服器用來管理網域中所有主機的帳號, 當其他的主機有使用者登入的需求時,才到這部主控伺服器上面要求相關的帳號、密碼等使用者資訊。 • SSH 免密碼登入 • 當前端伺服器用SSH要求後端電腦啟動程序時,必須輸入密碼才能啟動。這使得平行程式執行時非常的不方便,因此我們可以使用金鑰來驗證身份,避免每次都要輸入密碼。 • MPI (Message Passing Interface)

  4. OPENSUSE 12.1安裝教學

  5. 設定使用光碟開機 • 按delete鍵進入BIOS,設定使用光碟開機。 • 把OpenSuSe光碟片放進光碟機開機。

  6. 選擇Installation

  7. 授權合約

  8. 顯示部分中文翻譯可能未完全完成

  9. 系統偵測

  10. 選擇安裝模式

  11. 選擇時區

  12. 選擇預設安裝的桌面選項

  13. 硬碟分割用預設,直接下一步

  14. 建立登入的使用者

  15. 進行安裝設定可以按軟體,進行軟體細部的調整進行安裝設定可以按軟體,進行軟體細部的調整 • 記得把此頁面最下面的防火牆關閉(因為會擋住SSH的通訊)且把SSH開啟(用來作為電腦間的通訊)

  16. 安裝軟體畫面選擇,勾選檔案伺服器與其他伺服器與C/C++安裝軟體畫面選擇,勾選檔案伺服器與其他伺服器與C/C++

  17. 調整完成後,終於可以進行安裝了!

  18. 做安裝前的確認

  19. 安裝完成後進行安裝後的設定

  20. 完成開機畫面

  21. 伺服器的安裝設定

  22. 安裝之前的前置動作 • 安裝OS完畢後開啟終端機,切換身份為root請輸入 • 查詢網路設定,請輸入以下指令並抄下IP位址。 alien@node1:~> su - Password: node1:~ # node1:~ # ifconfig

  23. 查詢IP

  24. 安裝之前的前置動作(續) • 設定主機別名 (2台電腦都要設定) • 啟動SSH (如果在安裝時就啟動就可跳過此步驟) • 關閉防火牆(如果在安裝時就關閉就可跳過此步驟) node1:~ # vi /etc/hosts 140.116.246.232 node1 140.116.246.234 node2 node1:~ # cd /etc/rc.d node1:/etc/rc.d # ./sshd start node1:~ # cd /etc/rc.d node1:/etc/rc.d # ./SuSEfirewall2_setup stop

  25. 安裝之前的前置動作(續) • 測試是否可以利用ssh登入另一台電腦 node1:~ # ssh 140.116.246.234 or node2:~ # ssh 140.116.246.232

  26. 啟動YaST

  27. 網路設定

  28. 更改主機名稱 (2台電腦都要更改) 163.28.112.1 163.28.113.1

  29. NFS SERVER的安裝與設定

  30. 設定NFS伺服器

  31. 設定啟動

  32. 按新增目錄

  33. 分享/home目錄

  34. 主機萬用字元 • 輸入 • 140.116.246.0/24 • 選項輸入rw,no_root_squash,sync 140.116.246.0/24 rw,no_root_squash,sync

  35. 選項參數

  36. 完成設定 140.116.246.0/24

  37. 網路遮罩 Netmask • 網路遮罩通常以下列形式出現 • 255.0.0.0 (140.0.0.0~140.255.255.255是同一網域) • 255.255.0.0 (140.116.0.0~140.116.255.255是同一網域) • 255.255.255.0 (140.116.245.0~140.116.245.255是同一網域) • 有時為了方便會寫成以下形式 • 140.0.0.0/8 • 140.116.0.0/16 • 140.116.245.0/24

  38. NFS CLIENT的安裝與設定

  39. YaST設定,先設定主機名稱node2

  40. 先umount本地端的/home • 在Client輸入 (IP請輸入SERVER IP) • 如果不能umount掉/home,請用手動方式 • 如果無法mount 140.116.246.232:/home,請用手動方式 node2:~ # vi /etc/fstab #… /home ext4 acl,user_xattr …← 把這行mark掉(前面加#) 140.116.246.232:/home /home nfs defaults 0 0 ← 多加這一行 node2:~ # mount -a node2:~ # umount -l /home node2:~ # mount –t nfs 140.116.246.232:/hmoe /home

  41. 設定NFS

  42. 輸入主機

  43. 有時會出現/home已掛載

  44. 額外的指令 • 測試本機的 portmapper。 • 顯示 NFS Server 上的掛載資訊。 node2:~ # rpcinfo -p localhost← 測試本機的 portmapper。只要有出現 111 port 就 ok 。 node2:~ # rpcinfo -p 140.116.246.232← 測試 Server 的 portmapper。只要有出現 111 port 就 ok。 node2:~ # cd /etc/rc.d node2: :/etc/rc.d # rpcbind start ← 如果沒有出現111 port 就是rpcbind沒有啟動。 node2: :/etc/rc.d # chkconfig rpcbind on ← 設定開機時就啟動。 node2:~ # showmount -e 140.116.246.232 Export list for 140.116.246.232:/home (everyone)

  45. NIS SERVER的安裝與設定

  46. YaST設定

  47. 安裝設定NIS

  48. NIS領域名稱

  49. 選擇要映射的資料 shadow

  50. 新增主機 255.255.255.0 140.116.246.0

More Related