OS server
special thanks Uchida-san
FORCE CPU54 (solaris 8)のOS serverを
leps04(CPU54)から linux pcに移行した。(2009Mar)
ターゲットとなるOS serverのホスト名
leps12.[DAQdomain]
(ラックマウント型)
サーバー側に必要となるデーモンは以下の通り
rarpd
bootparamd
portmap ?
nfs (nfs nfslock)
tftp (xinetd経由)
OSのinstall時にこれらのpackageを選択できる。(Scientific Linux 5.2)
(internetにつながっていればyumなどで後からでもinstallすることができる)
0. 必要なファイル
leps12:/export, /tftpboot, (/export/solaris_usr_local)
これらはもうひとつのHDDにbackupをとってあり、
/mnt/backupにtarで固めてある。
(backup用diskのdevice fileは/dev/sdb1)
また、leps11:/data11/online/backupにもおいてあるので万が一のときは
これらをコピーして展開。
1. サーバー側の設定
a) rarpd
/etc/ethersを編集
# 2009.2.7 uchida
#0:80:42:10:70:1c lep5400
0:80:42:10:70:19 lep5401
0:80:42:10:70:37 lep5402
0:80:42:10:b4:a1 lep5403
0:80:42:10:b1:ba lep5404
0:80:42:10:b4:a4 lep5405
0:80:42:10:b1:b7 lep5406
0:80:42:10:b8:70 lep5407
編集後以下の手続きを行う。
> /sbin/chkconfig rarpd on
> /etc/init.d/rarpd start
今回インストールした環境では/etc/init.d/rarpdスクリプトの
実行部分が/usr/sbin/rarpdとなっていたので
"/usr/sbin/rarpd -a"と変更した。
b) bootparamd
/etc/bootparamsを編集する。
lep5400 root=lep5400:/export/root/lep5400 swap=lep5400:/export/swap/lep5400 swapsize=:256 boottype=:di
lep5401 root=lep5400:/export/root/lep5401 swap=lep5400:/export/swap/lep5401 swapsize=:256 boottype=:di
lep5402 root=lep5400:/export/root/lep5402 swap=lep5400:/export/swap/lep5402 swapsize=:256 boottype=:di
lep5403 root=lep5400:/export/root/lep5403 swap=lep5400:/export/swap/lep5403 swapsize=:256 boottype=:di
lep5404 root=lep5400:/export/root/lep5404 swap=lep5400:/export/swap/lep5404 swapsize=:256 boottype=:di
lep5405 root=lep5400:/export/root/lep5405 swap=lep5400:/export/swap/lep5405 swapsize=:256 boottype=:di
lep5406 root=lep5400:/export/root/lep5406 swap=lep5400:/export/swap/lep5406 swapsize=:256 boottype=:di
lep5407 root=lep5400:/export/root/lep5407 swap=lep5400:/export/swap/lep5407 swapsize=:256 boottype=:di
編集後以下の手順
>/sbin/chkconfig bootparamd on
>/etc/init.d/bootparamd start
c) nfs, portmap
/etc/exportsの設定
/export/root lep54*(rw,no_root_squash,insecure,sync)
/export/swap lep54*(rw,no_root_squash,insecure,sync)
/export/exec lep54*(rw,no_root_squash,insecure,sync)
/export/exec/Solaris_8_sparc.all/usr lep54*(ro,no_root_squash,insecure,sync)
設定後
> exportfs -a
> /sbin/chkconfig portmap on
> /sbin/chkconfig nfs on
> /sbin/chkconfig nfslock on
> /etc/init.d/nfs start
d) tftp
xinetdを経由して起動させる。
/etc/xinetd.d/tftpを編集する。
# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot -vvv
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
ただし/tftpboot以下にクライアントのIPアドレスが
16進数で表示されたファイル名のファイルがブートイメージに
リンクされていないといけない。
>/sbin/chkconfig xinetd on
>/etc/init.d/xinetd start
2. クライアント側の設定
a) /export/root/leps54xx/etc/vfstabを編集
いまの場合OS serverがleps12.[DAQdomain]なので
次のように書く。
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -
/proc - /proc proc - no -
fd - /dev/fd fd - no -
swap - /tmp tmpfs - yes -
leps12:/export/root/lep5401 - / nfs - - rw
leps12:/export/swap/lep5401 - /dev/swap nfs - - -
/dev/swap - - swap - - -
leps12:/export/exec/Solaris_8_sparc.all/usr - /usr nfs - - ro
leps00:/home/solaris_home - /home nfs - yes rw
leps01:/usr/local - /usr/local nfs - yes ro
leps00:/data1 - /data1 nfs - yes rw
leps00:/data2 - /data2 nfs - yes rw
leps00fe0:/data1 - /data1fe nfs - yes rw
leps00fe0:/data2 - /data2fe nfs - yes rw
#leps00fe0:/data00 - /data00fe nfs - yes rw
#leps00fe2:/data1 - /data1fe2 nfs - yes rw
#leps00fe2:/data2 - /data2fe2 nfs - yes rw
b) /export/root/lep54XX/etc/hostsにleps12を追加。
次の一行を書き加える。
192.168.179.212 leps12
3. 起動テスト
適当なCPUボードをVMEクレートにさして、専用のシリアルケーブルを
つなぎ、その先にシリアル-Dsub9pin変換を噛ましてThinkPad560に
接続する。
TP560側でttsshをcom1ポートで開く。
VMEの電源を入れるとttsshに起動シーケンスが表示される。
consoleが立ち上がればok.
* bl34inにシリアル-usb変換コネクタとドライバのインストールCDがあるので
各自のノートPCなど適当なwindowsマシンにドライバをインストールすれば
teratermなどを使ってアクセスできる。
注意: LEPSではNISを張っているためNISに依存しているPCをOS serverに
すると、うまくクライアントが立ち上がらないという問題点が
生じた。
しかしながら、NISに独立なPCであれば正常に立ち上がったので
この問題は先送りとする。