Myページ
ホーム
コミュニティの人々
ソフトウェア
技術紹介
適用分野
Tyzohとは
ご意見お問い合わせ

kkatoのブログ

Ubuntu8.04でクラスタ環境を構築

NFSとNISを入れました。以下その覚書

●NFSのインストール

■サーバで:
1)
> sudo aptitude install nfs-common nfs-kernel-server
2) /etc/exportsを書き換える。こんな感じに:
/home cluster2(rw,sync)
3) /etc/hosts.allowを書き換える。

4)
> sudo /etc/init.d/nfs-kernel-server restart

■クライアントで:
1) /etc/fstabを書き換える。こんな感じに:
cluster1:/home /home nfs rw 0 0
2)
> sudo mount /home

●NISの設定

■クライアントとサーバで:
> sudo aptitude install nis

■サーバで:
1) /etc/default/nisを編集
NISSERVER=master
NISCLIENT=false
2) /etc/ypserv.securenetsを編集
0.0.0.0 0.0.0.0
を消して、
255.255.255.0 192.168.1.0
3) /var/yp/Makefileを編集
ALL = passwd
shadow
group hosts rpc services netid protocols netgrp
4)
/usr/lib/yp/ypinit -m
5)
/etc/init.d/nis restart

■クライアントで:
1) /etc/yp.confを編集
ypserver cluster1
domain cluster
2) /etc/nsswitch.confを編集
passwd:
nis
compat

group:
nis
compat

shadow:
nis
compat

3)
sudo /etc/init.d/nis restart

ここの情報が役に立ちました。



 

タグ: , , ,

kkato (2009-03-31 14:08) | コメント(0)| トラックバック(0)

トラックバック(0)

トラックバックURL:

コメント

コメントを投稿

名前

電子メール

URL

ログイン情報を記憶

コメント (スタイル用のHTMLタグを使うことができます)

プロフィール

kkato

・10年以上前からのdebian使いです。
・C++, Ruby, perl, ocamlなどの言語をよく使います。
・数値計算などが得意です。
・スパムメールの文面をよく読むのが好きです。
ホームページ:
http://sites.google.com/site/kimikazu/

カテゴリ

RSSフィード

コミュニティの人々 | ソフトウェア | 技術紹介 | 適用分野 | Tyzohとは | ご意見お問い合わせ

Copyright (C) 2004-2011 Nihon Unisys, Ltd. All Rights Reserved.
Powered by Movable Type Open Source