Feb 24,1998 onl5v4: Solaris 2.5.1 cc ドライバのテスト. Solaris2.5.1 システムのインストール --- システム環境設定#02 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (http://www-online.kek.jp/~inoue/Machine/onl5v4/ Solaris2.5.1/system-install2.txt) 追加: Mar 11, 1998 に項目(8)の追加設定をやった 高エネルギー加速器研究機構 素粒子原子核研究所 物理、オンライングループ 井上 栄二 (1). 現状確認 (A). Soalris2.5.1 が届いた。 (B). Soalris2.5.1 のシステムをインストールした。 (2). ここでやるべきこと /etc の下の各設定、および /export/home のリストアをやる。 (3). Solaris2.5:/etc をマウントする onl5v4# mkdir /mnt1 onl5v4# mount /dev/dsk/c0t1d0s0 /mnt1 onl5v4# df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t3d0s0 122735 18355 92110 17% / /dev/dsk/c0t3d0s6 442431 337495 60696 85% /usr /proc 0 0 0 0% /proc fd 0 0 0 0% /dev/fd /dev/dsk/c0t3d0s7 3373899 449 3036070 1% /export/home /dev/dsk/c0t3d0s5 202647 80485 101902 45% /opt swap 52980 8 52972 1% /tmp /dev/dsk/c0t1d0s7 3114643 763322 2039861 28% /mnt /dev/dsk/c0t1d0s0 121622 23908 85554 22% /mnt1 onl5v4# ls -l /mnt1/etc total 430 lrwxrwxrwx 1 root root 14 Oct 2 1996 TIMEZONE -> ./default/init drwxrwxr-x 2 adm adm 512 Oct 2 1996 acct lrwxrwxrwx 1 root root 14 Oct 2 1996 aliases -> ./mail/aliases -rwxr--r-- 1 root sys 360 Oct 25 1995 asppp.cf -rw-r--r-- 1 root bin 50 Oct 2 1996 auto_home -rw-r--r-- 1 root bin 106 Oct 28 1996 auto_kekfs -rw-r--r-- 1 root bin 83 Oct 29 1996 auto_master -rw-r--r-- 1 root bin 135 Oct 28 1996 auto_master.BAK -rw-r--r-- 1 root bin 94 Oct 2 1996 auto_master.org : : onl5v4# (3-1). ルートの環境設定 onl5v4# pwd / onl5v4# ls -l /etc/skel* total 6 -rw-r--r-- 1 root sys 124 Feb 19 14:32 local.cshrc -rw-r--r-- 1 root sys 575 May 3 1996 local.login -rw-r--r-- 1 root sys 560 May 3 1996 local.profile onl5v4# cp /etc/skel*/local.cshrc .cshrc onl5v4# cp /etc/skel*/local.login .login onl5v4# cp /etc/skel*/local.profile .profile onl5v4# source .login Starting OpenWindows in 5 seconds (type Control-C to interrupt)^Conl5v4# onl5v4# source .cshrc onl5v4# (3-2). /etc/auto_kekfs の設定 onl5v4# ls -l /mnt1/etc/auto_kekfs -rw-r--r-- 1 root bin 106 Oct 28 1996 /mnt1/etc/auto_kekfs onl5v4# cp /mnt1/etc/auto_kekfs . onl5v4# cat auto_kekfs #Auto.kekfs for KEK Workstation support File server mount kek -ro,intr,suid kiwifs:/public/sun/Solaris2 onl5v4# ls -l auto_kekfs -rw-r--r-- 1 root other 106 Feb 20 11:38 auto_kekfs onl5v4# chgrp bin auto_kekfs onl5v4# ls -l auto_kekfs -rw-r--r-- 1 root bin 106 Feb 20 11:38 auto_kekfs onl5v4# (3-3). /etc/defaultdomain の設定 onl5v4# ls -l defaultdomain defaultdomain: No such file or directory onl5v4# ls -l /mnt1/etc/defaultdomain -rw-r--r-- 1 root sys 7 Oct 30 1996 /mnt1/etc/defaultdomain onl5v4# cp /mnt1/etc/defaultdomain . onl5v4# ls -l defaultdomain -rw-r--r-- 1 root other 7 Feb 20 11:43 defaultdomain onl5v4# chgrp sys defaultdomain onl5v4# ls -l defaultdomain -rw-r--r-- 1 root sys 7 Feb 20 11:43 defaultdomain onl5v4# cat defaultdomain kek.jp onl5v4# (3-4). /etc/defaultrouter の設定 onl5v4# ls -l /mnt1/etc/defaultrouter -rw-r--r-- 1 root sys 7 Oct 17 15:30 /mnt1/etc/defaultrouter onl5v4# ls -l defaultrouter* No match onl5v4# cp /mnt1/etc/defaultrouter . onl5v4# ls -l defaultrouter -rw-r--r-- 1 root other 7 Feb 20 11:48 defaultrouter onl5v4# chgrp sys defaultrouter onl5v4# ls -l defaultrouter -rw-r--r-- 1 root sys 7 Feb 20 11:48 defaultrouter onl5v4# cat defaultrouter ICCFG1 onl5v4# (3-5). /etc/group の設定 onl5v4# ls -l group* -rw-r--r-- 1 root sys 278 Feb 19 14:32 group onl5v4# cat group root::0:root other::1: bin::2:root,bin,daemon sys::3:root,bin,sys,adm adm::4:root,adm,daemon uucp::5:root,uucp mail::6:root tty::7:root,tty,adm lp::8:root,lp,adm nuucp::9:root,nuucp staff::10: daemon::12:root,daemon sysadmin::14: nobody::60001: noaccess::60002: nogroup::65534: onl5v4# cat /mnt1/etc/group root::0:root,inoue,keibun,nomachi,kodama,yasu other::1: bin::2:root,bin,daemon sys::3:root,bin,sys,adm,inoue adm::4:root,adm,daemon uucp::5:root,uucp mail::6:root tty::7:root,tty,adm lp::8:root,lp,adm nuucp::9:root,nuucp staff::10: daemon::12:root,daemon sysadmin::14: user::20: kek::100: nobody::60001: noaccess::60002: onl5v4# onl5v4# ls -l group* -rw-r--r-- 1 root sys 278 Feb 19 14:32 group onl5v4# mv group group.org onl5v4# cp group.org group onl5v4# ls -l group -rw-r--r-- 1 root other 278 Feb 20 17:08 group onl5v4# chgrp sys group onl5v4# ls -l group* -rw-r--r-- 1 root sys 278 Feb 20 17:08 group -rw-r--r-- 1 root sys 278 Feb 19 14:32 group.org onl5v4# vi group root::0:root,inoue,keibun,kodama,yasu,igarashi other::1: bin::2:root,bin,daemon sys::3:root,bin,sys,adm,inoue adm::4:root,adm,daemon uucp::5:root,uucp mail::6:root tty::7:root,tty,adm lp::8:root,lp,adm nuucp::9:root,nuucp staff::10: daemon::12:root,daemon sysadmin::14: user::20: kek::100: nobody::60001: noaccess::60002: nogroup::65534: ~ ~ ~ ~ ~ "group" 18 lines, 338 characters onl5v4# (3-6). /etc/hostname.hme0 の設定 onl5v4# ls -l hostname* -rw-r--r-- 1 root root 7 Feb 19 15:07 hostname.le0 onl5v4# ls -l /mnt1/etc/hostname* -rw-r--r-- 1 root root 11 Oct 22 15:28 /mnt1/etc/hostname.hme0 -rw-r--r-- 1 root root 7 Oct 25 1996 /mnt1/etc/hostname.le0 -rw-r--r-- 1 root root 9 Oct 2 1996 /mnt1/etc/hostname.le0-org onl5v4# cp /mnt1/etc/hostname.hme0 . onl5v4# ls -l hostname* -rw-r--r-- 1 root other 11 Feb 20 17:15 hostname.hme0 -rw-r--r-- 1 root root 7 Feb 19 15:07 hostname.le0 onl5v4# chgrp root hostname.hme0 onl5v4# cat hostname.hme0 onl5v4fast onl5v4# (3-7). /etc/nsswitch.conf の設定 onl5v4# cat /mnt1/etc/nsswitch.conf # # /etc/nsswitch.files: # # An example file that could be copied over to /etc/nsswitch.conf; it # does not use any naming service. # # "hosts:" and "services:" in this file are used only if the # /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports. passwd: files group: files hosts: files dns networks: files protocols: files rpc: files ethers: files netmasks: files bootparams: files publickey: files # At present there isn't a 'files' backend for netgroup; the system will # figure it out pretty quickly, and won't use netgroups at all. netgroup: files automount: files aliases: files services: files sendmailvars: files onl5v4# onl5v4# ls -l nsswitch* -rw-r--r-- 1 root sys 686 Feb 19 15:07 nsswitch.conf -rw-r--r-- 1 root sys 686 May 3 1996 nsswitch.files -rw-r--r-- 1 root sys 915 May 3 1996 nsswitch.nis -rw-r--r-- 1 root sys 1184 May 3 1996 nsswitch.nisplus onl5v4# mv nsswitch.conf nsswitch.conf.org onl5v4# cp nsswitch.conf.org nsswitch.conf onl5v4# ls -l nsswitch.conf -rw-r--r-- 1 root other 686 Feb 20 17:20 nsswitch.conf onl5v4# chgrp sys nsswitch.conf onl5v4# ls -l nsswitch* -rw-r--r-- 1 root sys 686 Feb 20 17:20 nsswitch.conf -rw-r--r-- 1 root sys 686 Feb 19 15:07 nsswitch.conf.org -rw-r--r-- 1 root sys 686 May 3 1996 nsswitch.files -rw-r--r-- 1 root sys 915 May 3 1996 nsswitch.nis -rw-r--r-- 1 root sys 1184 May 3 1996 nsswitch.nisplus onl5v4# onl5v4# vi nsswitch.conf # # /etc/nsswitch.files: # # An example file that could be copied over to /etc/nsswitch.conf; it # does not use any naming service. # # "hosts:" and "services:" in this file are used only if the # /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports. passwd: files group: files hosts: files dns networks: files protocols: files rpc: files ethers: files netmasks: files bootparams: files publickey: files # At present there isn't a 'files' backend for netgroup; the system will # figure it out pretty quickly, and won't use netgroups at all. netgroup: files automount: files aliases: files services: files sendmailvars: files onl5v4# (3-8). /etc/hosts の設定 onl5v4# pwd /etc/inet onl5v4# ls -l hosts* -r--r--r-- 1 root sys 76 Feb 19 15:06 hosts onl5v4# mv hosts hosts.org onl5v4# cp /mnt1/etc/inet/hosts . onl5v4# ls -l hosts* -rw-r--r-- 1 root other 320224 Feb 23 14:19 hosts -r--r--r-- 1 root sys 76 Feb 19 15:06 hosts.org onl5v4# chgrp sys hosts onl5v4# ls -l hosts* -rw-r--r-- 1 root sys 320224 Feb 23 14:19 hosts -r--r--r-- 1 root sys 76 Feb 19 15:06 hosts.org onl5v4# chmod u-w hosts onl5v4# ls -l hosts* -r--r--r-- 1 root sys 320224 Feb 23 14:19 hosts -r--r--r-- 1 root sys 76 Feb 19 15:06 hosts.org onl5v4# (3-9). /etc/networks の設定 onl5v4# pwd /etc/inet onl5v4# ls -l networks* -r--r--r-- 1 root sys 372 Feb 19 14:32 networks onl5v4# mv networks networks.org onl5v4# cp /mnt1/etc/inet/networks . onl5v4# ls -l networks* -rw-r--r-- 1 root other 400 Feb 23 14:23 networks -r--r--r-- 1 root sys 372 Feb 19 14:32 networks.org onl5v4# chgrp sys networks onl5v4# chmod u-w networks onl5v4# ls -l networks* -r--r--r-- 1 root sys 400 Feb 23 14:23 networks -r--r--r-- 1 root sys 372 Feb 19 14:32 networks.org onl5v4# ここでシステムをリブートする。 onl5v4# /usr/sbin/shutdown -i0 -g0 Shutdown started. Mon Feb 23 14:28:17 JST 1998 Do you want to continue? (y or n): y Broadcast Message from root (console) on onl5v4 Mon Feb 23 14:28:19... THE SYSTEM IS BEING SHUT DOWN NOW ! ! ! Log off now or risk your files being damaged showmount: onl5v4: RPC: Program not registered Changing to init state 0 - please wait onl5v4# INIT: New run level: 0 The system is coming down. Please wait. System services are now being stopped. Print services stopped. Stopping the syslog service. Feb 23 14:28:26 onl5v4 syslogd: going down on signal 15 nfs umount: onl5v4:vold(pid283) server not responding: RPC: Program not registered Feb 23 14:28:32 cssd: Got sig#15, sending it to all CSes and exit Feb 23 14:28:32 /usr/sbin/vold[1893]: problem unmounting /vol; Resource temporarily un available The system is down. syncing file systems... done Program terminated Type help for more information ok ok boot -r Resetting ... screen not found. Can't open input device. Keyboard not present. Using tty for input and output. SPARC CPU-5V, No Keyboard ROM Rev. 2.15.3, 48 MB memory installed, Serial #9149788. Ethernet address 0:80:42:b:2d:5c, Host ID: 808b9d5c. Rebooting with command: -r Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0 File and args: -r SunOS Release 5.5.1 Version Generic_103640-12 [UNIX(R) System V Release 4.0] Copyright (c) 1983-1996, Sun Microsystems, Inc. configuring network interfaces: hme0 le0. Hostname: onl5v4 Configuring the /devices directory Configuring the /dev directory Configuring the /dev directory (compatibility devices) The system is coming up. Please wait. checking ufs filesystems /dev/rdsk/c0t3d0s5: is clean. /dev/rdsk/c0t3d0s7: is clean. Flushing routing table: add net default: gateway ICCFG1 NIS domainname is kek.jp starting rpc services: rpcbind keyserv kerbd done. Setting netmask of hme0 to 255.255.252.0 Setting netmask of le0 to 255.255.252.0 Setting default interface for multicast: add net 224.0.0.0: gateway onl5v4 syslog service starting. Print services started. starting Kana-Kanji converters: cssd. Loading /kernel/strmod/jconv7. Loading /kernel/strmod/jconv8. Loading /kernel/strmod/jconvs. volume management starting. The system is ready. onl5v4 console login: ok. 正常に立ち上がった。 Solaris2.5 のディスクをマウントする。 onl5v4# mount /dev/dsk/c0t1d0s0 /mnt1 onl5v4# (3-10). /etc/passwd の設定 onl5v4# pwd /etc onl5v4# ls -l pas* -rw-r--r-- 1 root sys 445 Feb 20 09:29 passwd onl5v4# mv passwd passwd.org onl5v4# cp /mnt1/etc/passwd . onl5v4# ls -l passwd* -r--r--r-- 1 root other 887 Feb 23 15:39 passwd -rw-r--r-- 1 root sys 445 Feb 20 09:29 passwd.org onl5v4# chgrp sys passwd onl5v4# chmod u+w passwd onl5v4# ls -l passwd** -rw-r--r-- 1 root sys 887 Feb 23 15:39 passwd -rw-r--r-- 1 root sys 445 Feb 20 09:29 passwd.org onl5v4# (3-11). /etc/shadow の設定 onl5v4# pwd /etc onl5v4# ls -l shadow* -r-------- 1 root sys 265 Feb 20 09:29 shadow onl5v4# mv shadow shadow.org onl5v4# cp /mnt1/etc/shadow . onl5v4# ls -l shadow* -r-------- 1 root other 471 Feb 23 15:42 shadow -r-------- 1 root sys 265 Feb 20 09:29 shadow.org onl5v4# chgrp sys shadow onl5v4# ls -l shadow* -r-------- 1 root sys 471 Feb 23 15:42 shadow -r-------- 1 root sys 265 Feb 20 09:29 shadow.org onl5v4# (3-11). /etc/oshadow の設定 onl5v4# pwd /etc onl5v4# ls -l osha* No match onl5v4# cp /mnt1/etc/oshadow . onl5v4# ls -l osha* -r-------- 1 root other 473 Feb 23 15:45 oshadow onl5v4# chgrp sys oshadow onl5v4# ls -l osha* -r-------- 1 root sys 473 Feb 23 15:45 oshadow onl5v4# ここでシステムをリブートする。 onl5v4# /usr/sbin/shutdown -i0 -g0 Shutdown started. Mon Feb 23 15:47:09 JST 1998 Do you want to continue? (y or n): y Broadcast Message from root (console) on onl5v4 Mon Feb 23 15:47:11... THE SYSTEM IS BEING SHUT DOWN NOW ! ! ! Log off now or risk your files being damaged showmount: onl5v4: RPC: Program not registered Changing to init state 0 - please wait onl5v4# INIT: New run level: 0 The system is coming down. Please wait. System services are now being stopped. Print services stopped. Stopping the syslog service. Feb 23 15:47:17 onl5v4 syslogd: going down on signal 15 nfs umount: onl5v4:vold(pid226) server not responding: RPC: Program not registered Feb 23 15:47:24 cssd: Got sig#15, sending it to all CSes and exit Feb 23 15:47:24 /usr/sbin/vold[450]: problem unmounting /vol; Interrupted system call The system is down. syncing file systems... done Program terminated Type help for more information ok ok boot -r Resetting ... screen not found. Can't open input device. Keyboard not present. Using tty for input and output. SPARC CPU-5V, No Keyboard ROM Rev. 2.15.3, 48 MB memory installed, Serial #9149788. Ethernet address 0:80:42:b:2d:5c, Host ID: 808b9d5c. Rebooting with command: -r Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0 File and args: -r SunOS Release 5.5.1 Version Generic_103640-12 [UNIX(R) System V Release 4.0] Copyright (c) 1983-1996, Sun Microsystems, Inc. configuring network interfaces: hme0 le0. Hostname: onl5v4 Configuring the /devices directory Configuring the /dev directory Configuring the /dev directory (compatibility devices) The system is coming up. Please wait. checking ufs filesystems /dev/rdsk/c0t3d0s5: is clean. /dev/rdsk/c0t3d0s7: is clean. Flushing routing table: add net default: gateway ICCFG1 NIS domainname is kek.jp starting rpc services: rpcbind keyserv kerbd done. Setting netmask of hme0 to 255.255.252.0 Setting netmask of le0 to 255.255.252.0 Setting default interface for multicast: add net 224.0.0.0: gateway onl5v4 syslog service starting. Print services started. starting Kana-Kanji converters: cssd. Loading /kernel/strmod/jconv7. Loading /kernel/strmod/jconv8. Loading /kernel/strmod/jconvs. volume management starting. The system is ready. onl5v4 console login: ok. 正常に立ち上がった。 (4). Solaris2.5:/export/home ディレクトリをコピーする onl5v4# mount /dev/dsk/c0t1d0s7 /mnt onl5v4# ls -l /mnt total 22 drwxr-xr-x 20 root other 512 Jan 16 1997 DDK2.5 drwxr-xr-x 10 root other 512 Jul 23 1997 local drwx------ 2 root root 8192 Oct 2 1996 lost+found drwxr-xr-x 9 root other 512 Nov 17 15:04 onl5v4 onl5v4# onl5v4# ls -lR /export/home /export/home: total 18 drwx------ 2 root root 8192 Feb 19 14:30 lost+found drwxr-xr-x 3 root other 512 Feb 20 09:53 onl5v4 /export/home/lost+found: total 0 /export/home/onl5v4: total 2 drwxr-xr-x 3 root other 512 Feb 20 09:53 inoue /export/home/onl5v4/inoue: total 2 drwxr-xr-x 2 root other 512 Feb 20 09:54 bin /export/home/onl5v4/inoue/bin: total 874 -rwxr-xr-x 1 root other 30248 Feb 20 09:54 scsiinfo -rwxr-xr-x 1 root other 146428 Feb 20 09:54 stevie -r-xr-xr-x 1 root other 173964 Feb 20 09:54 sysinfo -rwxr-xr-x 1 root other 40960 Feb 20 09:54 traceroute -rwxr--r-- 1 root other 6566 Feb 20 09:54 tx* -rwxr--r-- 1 root other 24220 Feb 20 09:54 txtps onl5v4# 一時的に作った私のホームディレクトリは削除する。 onl5v4# pwd /export/home onl5v4# ls -l total 18 drwx------ 2 root root 8192 Feb 19 14:30 lost+found drwxr-xr-x 3 root other 512 Feb 20 09:53 onl5v4 onl5v4# rm -r onl5v4 onl5v4# ls -l total 16 drwx------ 2 root root 8192 Feb 19 14:30 lost+found onl5v4# /mnt/onl5v4 の下をコピーする。 onl5v4# pwd /export/home onl5v4# cp -pr /mnt/onl5v4 . onl5v4# ls -l total 18 drwx------ 2 root root 8192 Feb 19 14:30 lost+found drwxr-xr-x 9 root other 512 Nov 17 15:04 onl5v4 onl5v4# ls -l onl5v4 total 14 drwxr-xr-x 3 facom user 512 Jan 16 17:12 facom drwxr-xr-x 2 igarashi kek 512 Nov 17 14:14 igarashi drwxr-xr-x 20 inoue kek 1024 Jan 30 17:09 inoue drwxr-xr-x 3 keibun kek 512 Jan 10 1997 keibun drwxr-xr-x 2 kodama kek 512 Nov 6 1996 kodama drwxr-xr-x 3 nagasaka kek 512 Nov 29 1996 nagasaka drwxr-xr-x 3 yasu kek 512 Jan 16 1997 yasu onl5v4# /mnt/local の下をコピーする。 onl5v4# pwd /export/home onl5v4# ls -l total 18 drwx------ 2 root root 8192 Feb 19 14:30 lost+found drwxr-xr-x 9 root other 512 Nov 17 15:04 onl5v4 onl5v4# cp -pr /mnt/local . cp: cannot access /mnt/local/unidaq-v2.3/UNIDAQ/v2.3/examples/libana.a cp: cannot access /mnt/local/unidaq-v2.3/UNIDAQ/v2.3/lib/libcamac.a cp: cannot access /mnt/local/unidaq-v2.3/UNIDAQ/v2.3/SOLARIS2/vme/camac cp: cannot access /mnt/local/unidaq-v2.3/UNIDAQ/v2.3/user_UNIDAQ/UNIwish/tkConfig.h cp: cannot access /mnt/local/unidaq-v2.3/UNIDAQ/v2.3/user_UNIDAQ/UNIwish/tkInt.h cp: cannot access /mnt/local/unidaq-v2.3/UNIDAQ/v2.3/user_UNIDAQ-old/UNIwish/tkConfig. h cp: cannot access /mnt/local/unidaq-v2.3/UNIDAQ/v2.3/user_UNIDAQ-old/UNIwish/tkInt.h cp: cannot access /mnt/local/unidaq-v2.3/UNIDAQ/v2.3/user_UNIDAQ-Sep-8.97/UNIwish/tkCo nfig.h cp: cannot access /mnt/local/unidaq-v2.3/UNIDAQ/v2.3/user_UNIDAQ-Sep-8.97/UNIwish/tkIn t.h onl5v4# /mnt/DDK2.5 の下をコピーする。 onl5v4# pwd /export/home onl5v4# cp -pr /mnt/DDK2.5 . onl5v4# ls -l total 22 drwxr-xr-x 20 root other 512 Jan 16 1997 DDK2.5 drwxr-xr-x 10 root other 512 Jul 23 1997 local drwx------ 2 root root 8192 Feb 19 14:30 lost+found drwxr-xr-x 9 root other 512 Nov 17 15:04 onl5v4 onl5v4# /export/home 下のリストアはうまくできた。 (5). ユーザ・アカウントでログインしてみる onl5v4 console login: inoue Password: Last login: Tue Feb 24 15:45:01 on console Sun Microsystems Inc. SunOS 5.5.1 Generic May 1996 Starting OpenWindows in 5 seconds (type Control-C to interrupt)^Conl5v4[33]% onl5v4[33]% ok. 正常にできた。 (6). ネットワークの設定をやる /.cshrc の path に /sbin と /usr/sbin を追加 onl5v4# vi /.cshrc # @(#)cshrc 1.11 89/11/29 SMI umask 022 set path=(/sbin /usr/sbin /bin /usr/bin /usr/ucb /etc /usr/openwin/bin .) if ( $?prompt ) then set history=32 endif onl5v4# onl5v4# ifconfig -a lo0: flags=849 mtu 8232 inet 127.0.0.1 netmask ff000000 hme0: flags=863 mtu 1500 inet 130.87.217.112 netmask fffffc00 broadcast 130.87.219.255 ether 0:80:42:b:2d:5c le0: flags=863 mtu 1500 inet 130.87.153.49 netmask fffffc00 broadcast 130.87.155.255 ether 0:80:42:b:2d:5c onl5v4# netstat -rn Routing Table: Destination Gateway Flags Ref Use Interface -------------------- -------------------- ----- ----- ------ --------- 127.0.0.1 127.0.0.1 UH 0 0 lo0 130.87.216.0 130.87.217.112 U 2 1 hme0 130.87.152.0 130.87.153.49 U 3 2 le0 224.0.0.0 130.87.153.49 U 3 0 le0 default 130.87.152.1 UG 0 0 onl5v4# route delete net 130.87.216.0 130.87.217.112 delete net 130.87.216.0: gateway 130.87.217.112 onl5v4# route add host 130.87.217.113 130.87.217.112 0 add host 130.87.217.113: gateway 130.87.217.112 onl5v4# netstat -r Routing Table: Destination Gateway Flags Ref Use Interface -------------------- -------------------- ----- ----- ------ --------- localhost localhost UH 0 0 lo0 onl7v1fast onl5v4fast UH 2 0 hme0 130.87.152.0 onl5v4 U 3 2 le0 224.0.0.0 onl5v4 U 3 0 le0 default ICCFG1 UG 0 0 onl5v4# ok. 正しく設定できた。 (7). /usr/local のシンボリック・リンクを張っておく onl5v4# pwd /usr onl5v4# ls -l total 126 drwxrwxr-x 2 root bin 1024 Feb 19 17:45 4lib lrwxrwxrwx 1 root root 5 Feb 19 14:37 5bin -> ./bin drwxrwxr-x 5 root sys 512 Feb 19 14:32 SUNWale lrwxrwxrwx 1 root root 10 Feb 19 14:58 adm -> ../var/adm drwx------ 8 root bin 512 Feb 19 14:58 aset drwxrwxr-x 2 root bin 7168 Feb 19 16:32 bin drwxr-xr-x 4 bin bin 512 Feb 19 14:58 ccs drwxrwxr-x 5 root bin 512 Feb 19 15:04 demo lrwxrwxrwx 1 root root 16 Feb 19 14:32 dict -> ./share/lib/dict drwxrwxr-x 5 root bin 512 Feb 19 14:37 dt drwxrwxr-x 2 root bin 512 Feb 19 14:30 games drwxrwxr-x 22 root bin 3072 Feb 19 16:29 include drwxr-xr-x 8 root sys 512 Feb 19 14:30 kernel drwxrwxr-x 2 bin bin 512 Feb 19 14:30 kvm drwxrwxr-x 32 root bin 4608 Feb 26 11:28 lib drwx------ 2 root root 8192 Feb 19 14:30 lost+found lrwxrwxrwx 1 root root 11 Feb 19 14:30 mail -> ../var/mail lrwxrwxrwx 1 root root 11 Feb 19 14:50 man -> ./share/man drwxrwxr-x 4 root sys 512 Feb 19 14:30 net lrwxrwxrwx 1 root root 11 Feb 19 14:30 news -> ../var/news drwxr-xr-x 5 bin bin 512 Feb 19 14:58 oasys drwxrwxr-x 2 root bin 512 Feb 19 14:30 old drwxrwxr-x 8 root bin 512 Feb 19 14:51 openwin drwxr-xr-x 7 root sys 1024 Feb 19 14:59 platform lrwxrwxrwx 1 root root 15 Feb 19 14:30 preserve -> ../var/preserve drwxr-xr-x 4 bin bin 512 Feb 19 14:32 proc lrwxrwxrwx 1 root root 15 Feb 19 14:30 pub -> ./share/lib/pub drwxr-xr-x 5 bin bin 512 Feb 19 14:31 sadm drwxrwxr-x 4 root bin 4608 Feb 19 19:16 sbin drwxr-xr-x 6 root sys 512 Feb 19 14:32 share drwxr-xr-x 6 root bin 512 Feb 19 14:42 snadm lrwxrwxrwx 1 root root 12 Feb 19 14:30 spool -> ../var/spool lrwxrwxrwx 1 root root 11 Feb 19 14:30 src -> ./share/src lrwxrwxrwx 1 root root 10 Feb 19 14:30 tmp -> ../var/tmp drwxrwxr-x 2 root bin 2048 Feb 19 16:32 ucb drwxr-xr-x 4 bin bin 512 Feb 19 15:01 ucbinclude drwxr-xr-x 2 bin bin 512 Feb 19 16:32 ucblib drwxr-xr-x 7 bin bin 512 Feb 19 14:58 vmsys drwxr-xr-x 3 root bin 512 Feb 19 15:02 xpg4 onl5v4# ln -s /export/home/local local onl5v4# ls -l local lrwxrwxrwx 1 root other 18 Mar 2 10:20 local -> /export/home/local onl5v4# ls -lL local total 16 drwxr-xr-x 2 root other 512 Jul 23 1997 bin drwxr-xr-x 8 root other 512 Jun 16 1997 camac drwxr-xr-x 3 root other 512 Jun 27 1997 cern drwxr-xr-x 2 root other 512 Jul 25 1997 include drwxr-xr-x 5 root other 512 Nov 4 15:14 lib drwxr-xr-x 5 root other 512 Jul 23 1997 man drwxr-xr-x 6 root other 512 Jul 23 1997 unidaq-v2.3 drwxr-xr-x 3 root other 512 Nov 29 1996 vme onl5v4# --- <<< 以下の項目(8)の設定は、Mar 11, 1998 にやった >>> (8). /kek シンボリック・リンクを作る (8-1). / ディレクトリに /kek のシンボリック・リンクを作る onl5v4# pwd / onl5v4# ls -l total 93 lrwxrwxrwx 1 root root 9 Feb 19 14:31 bin -> ./usr/bin drwxr-xr-x 2 root nobody 512 Feb 20 10:07 cdrom drwxrwxr-x 18 root sys 4096 Mar 11 10:42 dev drwxrwxr-x 5 root sys 512 Feb 19 15:07 devices drwxrwxr-x 26 root sys 3072 Mar 11 10:42 etc drwxrwxr-x 5 root sys 512 Feb 19 14:53 export dr-xr-xr-x 2 root root 2 Mar 11 11:35 home drwxr-xr-x 9 root sys 512 Feb 19 17:30 kernel lrwxrwxrwx 1 root root 9 Feb 19 14:31 lib -> ./usr/lib drwx------ 4 root root 8192 Feb 19 14:29 lost+found drwxrwxr-x 2 root sys 512 Feb 19 14:31 mnt drwxr-xr-x 2 root other 512 Feb 20 11:01 mnt1 dr-xr-xr-x 2 root root 3 Mar 11 11:35 net drwxrwxr-x 11 root sys 512 Mar 5 15:27 opt drwxr-xr-x 5 root sys 1024 Feb 19 14:35 platform dr-xr-xr-x 2 root root 11968 Mar 11 11:35 proc drwxr-xr-x 2 root other 512 Mar 4 14:24 ptfmnt drwxrwxr-x 2 root sys 512 Mar 4 19:10 sbin drwxrwxrwt 3 sys sys 149 Mar 11 11:11 tmp drwxrwxr-x 30 root sys 1024 Mar 2 10:20 usr drwxrwxr-x 21 root sys 512 Feb 20 09:29 var dr-xr-xr-x 6 root root 512 Mar 11 10:42 vol dr-xr-xr-x 2 root root 2 Mar 11 11:35 xfn onl5v4# mkdir kekfs onl5v4# mkdir kekfs/kek onl5v4# ln -s /kekfs/kek kek onl5v4# (8-2). /etc/auto_master を編集する onl5v4# vi auto_master # Master map for automounter # +auto_master /net -hosts -nosuid /home auto_home /kekfs /etc/auto_kekfs /xfn -xfn "auto_master" 7 lines, 118 characters onl5v4# ここでシステムをリブートする。 onl5v4# shutdown -i0 -g0 Shutdown started. Wed Mar 11 11:41:52 JST 1998 Do you want to continue? (y or n): y Broadcast Message from root (console) on onl5v4 Wed Mar 11 11:41:55... THE SYSTEM IS BEING SHUT DOWN NOW ! ! ! Log off now or risk your files being damaged showmount: onl5v4: RPC: Program not registered Changing to init state 0 - please wait onl5v4# INIT: New run level: 0 The system is coming down. Please wait. System services are now being stopped. Print services stopped. Stopping the syslog service. Mar 11 11:42:02 onl5v4 syslogd: going down on signal 15 umount: /net busy nfs umount: onl5v4:vold(pid217) server not responding: RPC: Program not registered Mar 11 11:42:10 cssd: Got sig#15, sending it to all CSes and exit Mar 11 11:42:10 /usr/sbin/vold[471]: problem unmounting /vol; Interrupted system call umount: /net busy The system is down. syncing file systems... done Program terminated Type help for more information ok boot -r Resetting ... screen not found. Can't open input device. Keyboard not present. Using tty for input and output. SPARC CPU-5V, No Keyboard ROM Rev. 2.15.3, 48 MB memory installed, Serial #9149788. Ethernet address 0:80:42:b:2d:5c, Host ID: 808b9d5c. Rebooting with command: -r Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0 File and args: -r SunOS Release 5.5.1 Version Generic_103640-12 [UNIX(R) System V Release 4.0] Copyright (c) 1983-1996, Sun Microsystems, Inc. NOTICE: VME SYSFAIL (clr) not handled. configuring network interfaces: hme0 le0. Hostname: onl5v4 Configuring the /devices directory vmemem0 at VME0: vme32d16 0x0 vmemem1 at VME0: vme16d16 0x0 vmemem2 at VME0: vme24d16 0x0 vmemem3 at VME0: vme32d32 0x0 vmemem4 at VME0: vme16d32 0x0 vmemem5 at VME0: vme24d32 0x0 vmeplus0 at VME0: vme16d16 0x0 and vme24d16 0x0 and vme32d16 0x0 and vme16d32 0x0 and vme24d32 0x0 and vme32d32 0x0 vmectl0 at VME0 Configuring the /dev directory Configuring the /dev directory (compatibility devices) The system is coming up. Please wait. checking ufs filesystems /dev/rdsk/c0t3d0s5: is clean. /dev/rdsk/c0t3d0s7: is clean. Flushing routing table: add net default: gateway ICCFG1 NIS domainname is kek.jp starting rpc services: rpcbind keyserv kerbd done. Setting netmask of hme0 to 255.255.252.0 Setting netmask of le0 to 255.255.252.0 Setting default interface for multicast: add net 224.0.0.0: gateway onl5v4 syslog service starting. Print services started. starting Kana-Kanji converters: cssd. Loading /kernel/strmod/jconv7. Loading /kernel/strmod/jconv8. Loading /kernel/strmod/jconvs. volume management starting. The system is ready. onl5v4 console login: ネットワーク設定をやる。 onl5v4# ifconfig -a lo0: flags=849 mtu 8232 inet 127.0.0.1 netmask ff000000 hme0: flags=863 mtu 1500 inet 130.87.217.112 netmask fffffc00 broadcast 130.87.219.255 ether 0:80:42:b:2d:5c le0: flags=863 mtu 1500 inet 130.87.153.49 netmask fffffc00 broadcast 130.87.155.255 ether 0:80:42:b:2d:5c onl5v4# netstat -rn Routing Table: Destination Gateway Flags Ref Use Interface -------------------- -------------------- ----- ----- ------ --------- 127.0.0.1 127.0.0.1 UH 0 0 lo0 130.87.216.0 130.87.217.112 U 2 1 hme0 130.87.152.0 130.87.153.49 U 3 8 le0 224.0.0.0 130.87.153.49 U 3 0 le0 default 130.87.152.1 UG 0 26 onl5v4# route delete net 130.87.216.0 130.87.217.112 delete net 130.87.216.0: gateway 130.87.217.112 onl5v4# route add host 130.87.217.113 130.87.217.112 0 add host 130.87.217.113: gateway 130.87.217.112 onl5v4# netstat -r Routing Table: Destination Gateway Flags Ref Use Interface -------------------- -------------------- ----- ----- ------ --------- localhost localhost UH 0 0 lo0 onl7v1fast onl5v4fast UH 2 0 hme0 130.87.152.0 onl5v4 U 3 8 le0 BASE-ADDRESS.MCAST.NET onl5v4 U 3 0 le0 default ICCFG1 UG 0 26 onl5v4# /kek ディレクトリーに正しくマウントできたかどうかチェック。 onl5v4# ls -lL /kek total 8 drwxrwxr-x 23 root sys 512 Apr 1 1995 SUNWspro drwxrwxr-x 10 10101 10101 512 Jun 3 1997 cern drwxr-xr-x 5 root other 512 Mar 4 22:02 compilers drwxr-xr-x 34 10101 10101 1024 Mar 4 21:14 local onl5v4# ok. うまくマウントできた。 --- (6). セクション (6-1). サブセクション (6-1-1). サブサブセクション