Mar 2,1998 onl7v1: Solaris 2.5.1 cc ドライバのテスト. Solaris2.5.1 システムのインストール --- システム環境設定#02 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (http://www-online.kek.jp/~inoue/Machine/onl7v1/ Solaris2.5.1/system-install2.txt) 追加: Mar 11, 1998 に項目(7)の追加設定をやった 高エネルギー加速器研究機構 素粒子原子核研究所 物理、オンライングループ 井上 栄二 (1). 現状確認 (A). Solaris2.5.1 が届いた。 (B). Solaris2.5.1 のシステムをインストールした。 (2). ここでやるべきこと /etc の下の各設定、および /export/home のリストアをやる。 (3). マウント情報をチェック onl7v1# df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t3d0s0 123063 18367 92396 17% / /dev/dsk/c0t3d0s6 443407 337495 61572 85% /usr /proc 0 0 0 0% /proc fd 0 0 0 0% /dev/fd /dev/dsk/c0t3d0s7 7488675 9 6739806 1% /export/home /dev/dsk/c0t3d0s5 202287 80485 101582 45% /opt swap 99768 8 99760 1% /tmp /dev/dsk/c0t1d0s0 119703 16426 91307 16% /mnt /dev/dsk/c0t1d0s6 288319 185846 73643 72% /mnt/usr /dev/dsk/c0t1d0s7 3607765 39297 3207698 2% /mnt/export/home onl7v1# /mnt 以下には、Solaris2.5 のシステムがマウントしてある。 (3-1). ルートの環境設定 onl7v1# onl7v1# pwd / onl7v1# ls -l /etc/skel total 6 -rw-r--r-- 1 root sys 124 Feb 26 16:56 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 onl7v1# cp /etc/skel/local.cshrc .cshrc onl7v1# cp /etc/skel/local.login .login onl7v1# cp /etc/skel/local.profile .profile onl7v1# onl7v1# source .login Starting OpenWindows in 5 seconds (type Control-C to interrupt)^Conl7v1# onl7v1# source .cshrc onl7v1# (3-2). /etc/auto_kekfs の設定 onl7v1# pwd / onl7v1# cd /etc onl7v1# ls -l au* -rw-r--r-- 1 root bin 50 Feb 26 16:56 auto_home -rw-r--r-- 1 root bin 94 Feb 26 16:56 auto_master lrwxrwxrwx 1 root root 16 Feb 26 16:56 autopush -> ../sbin/autopush onl7v1# ls -l /mnt/etc/au* -rw-r--r-- 1 root bin 50 Dec 24 14:54 /mnt/etc/auto_home -rw-r--r-- 1 root other 106 Dec 24 16:39 /mnt/etc/auto_kekfs -rw-r--r-- 1 root bin 94 Dec 24 14:55 /mnt/etc/auto_master lrwxrwxrwx 1 root root 16 Dec 24 14:54 /mnt/etc/autopush -> ../sbin/autopush onl7v1# cp /mnt/etc/auto_kekfs . onl7v1# cat auto_kekfs #Auto.kekfs for KEK Workstation support File server mount kek -ro,intr,suid kiwifs:/public/sun/Solaris2 onl7v1# onl7v1# ls -l auto_kekfs -rw-r--r-- 1 root other 106 Feb 27 14:21 auto_kekfs onl7v1# chgrp bin auto_kekfs onl7v1# ls -l aut* -rw-r--r-- 1 root bin 50 Feb 26 16:56 auto_home -rw-r--r-- 1 root bin 106 Feb 27 14:21 auto_kekfs -rw-r--r-- 1 root bin 94 Feb 26 16:56 auto_master lrwxrwxrwx 1 root root 16 Feb 26 16:56 autopush -> ../sbin/autopush onl7v1# (3-3). /etc/defaultdomain の設定 onl7v1# ls -l defaultdomain defaultdomain: No such file or directory onl7v1# ls -l /mnt/etc/defaultdomain -rw-r--r-- 1 root other 7 Dec 24 16:40 /mnt/etc/defaultdomain onl7v1# cp /mnt/etc/defaultdomain . onl7v1# ls -l defaultdomain -rw-r--r-- 1 root other 7 Feb 27 14:27 defaultdomain onl7v1# chgrp sys defaultdomain onl7v1# ls -l defaultdomain -rw-r--r-- 1 root sys 7 Feb 27 14:27 defaultdomain onl7v1# cat defaultdomain kek.jp onl7v1# (3-4). /etc/defaultrouter の設定 onl7v1# ls -l defaultrouter defaultrouter: No such file or directory onl7v1# ls -l /mnt/etc/defaultrouter -rw-r--r-- 1 root other 7 Dec 24 16:41 /mnt/etc/defaultrouter onl7v1# cp /mnt/etc/defaultrouter . onl7v1# ls -l defaultrouter -rw-r--r-- 1 root other 7 Feb 27 14:30 defaultrouter onl7v1# chgrp sys defaultrouter onl7v1# ls -l defaultrouter -rw-r--r-- 1 root sys 7 Feb 27 14:30 defaultrouter onl7v1# cat defaultrouter ICCFG1 onl7v1# (3-5). /etc/group の設定 onl7v1# ls -l group* -rw-r--r-- 1 root sys 278 Feb 26 16:56 group onl7v1# mv group group.org onl7v1# cp group.org group onl7v1# ls -l group* -rw-r--r-- 1 root other 278 Feb 27 14:41 group -rw-r--r-- 1 root sys 278 Feb 26 16:56 group.org onl7v1# chgrp sys group onl7v1# ls -l group* -rw-r--r-- 1 root sys 278 Feb 27 14:41 group -rw-r--r-- 1 root sys 278 Feb 26 16:56 group.org onl7v1# 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: onl7v1# (3-6). /etc/hostname.hme0 の設定 onl7v1# ls -l hostname* -rw-r--r-- 1 root root 7 Feb 26 17:30 hostname.le0 onl7v1# ls -l /mnt/etc/hostname* -rw-r--r-- 1 root root 11 Jan 13 13:44 /mnt/etc/hostname.hme0 -rw-r--r-- 1 root root 11 Dec 24 16:45 /mnt/etc/hostname.hme0.bak -rw-r--r-- 1 root root 7 Dec 24 15:14 /mnt/etc/hostname.le0 onl7v1# cp /mnt/etc/hostname.hme0 . onl7v1# ls -l hostname* -rw-r--r-- 1 root other 11 Feb 27 14:51 hostname.hme0 -rw-r--r-- 1 root root 7 Feb 26 17:30 hostname.le0 onl7v1# chgrp root hostname.hme0 onl7v1# ls -l hostname* -rw-r--r-- 1 root root 11 Feb 27 14:51 hostname.hme0 -rw-r--r-- 1 root root 7 Feb 26 17:30 hostname.le0 onl7v1# cat hostname.hme0 onl7v1fast onl7v1# (3-7). /etc/nsswitch.conf の設定 onl7v1# ls -l nss* -rw-r--r-- 1 root sys 686 Feb 26 17:30 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 onl7v1# mv nsswitch.conf nsswitch.conf.org onl7v1# cp nsswitch.conf.org nsswitch.conf onl7v1# ls -l nss* -rw-r--r-- 1 root other 686 Feb 27 15:20 nsswitch.conf -rw-r--r-- 1 root sys 686 Feb 26 17:30 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 onl7v1# chgrp sys nsswitch.conf onl7v1# ls -l nss* -rw-r--r-- 1 root sys 686 Feb 27 15:20 nsswitch.conf -rw-r--r-- 1 root sys 686 Feb 26 17:30 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 onl7v1# 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 "nsswitch.conf" 26 lines, 690 characters onl7v1# (3-8). resolv.conf の設定 onl7v1# ls -l res* No match onl7v1# ls -l /mnt/etc/res* -rw-r--r-- 1 root other 109 Dec 24 17:03 /mnt/etc/resolv.conf onl7v1# cp /mnt/etc/resolv.conf . onl7v1# ls -l res* -rw-r--r-- 1 root other 109 Feb 27 15:35 resolv.conf onl7v1# cat resolv.conf domain kek.jp nameserver 130.87.152.2 nameserver 130.87.34.6 nameserver 130.87.34.2 onl7v1# (3-9). /etc/hosts の設定 onl7v1# pwd /etc/inet onl7v1# ls -l hosts* -r--r--r-- 1 root sys 76 Feb 26 17:30 hosts onl7v1# mv hosts hosts.org onl7v1# ftp ftp.kek.jp Connected to is2.kek.jp. 220 is2.kek.jp FTP server (Version wu-2.4(9) Thu Mar 27 01:00:50 JST 1997) ready. Name (ftp.kek.jp:root): anonymous 331 Guest login ok, send your complete e-mail address as password. Password: 230- 230-*** KEK COMPUTING CENTER ANONYMOUS FTP SERVICE *** 230- 230- This service is experimental. All transfers are logged. 230- Send comments to ftp-admin@is2.kek.jp. 230- 230- Local time (JST): Fri Feb 27 15:45:10 1998 230- 230- There are some extensions to this FTP server such that if the 230- user specifies a filename (when using a RETRIEVE command) such that: 230- 230- True Filename Specified Filename Action 230- ------------- ------------------ ----------------------------------- 230- .Z Decompress file before transmitting 230- .gz Gunzip file before transmitting 230- .Z Compress before 230- transmitting 230- .gz gzip before transmitting 230- .tar Tar before transmitting 230- .tar.Z Tar and compress before 230- transmitting 230- .tar.gz Tar and gzip before 230- transmitting 230--- 230- The access to the /cern directory is restricted. 230- 230 Guest login ok, access restrictions apply. ftp> dir 200 PORT command successful. 150 Opening ASCII mode data connection for /bin/ls. total 564 dr-xr-xr-x 2 0 0 8192 Apr 28 1997 bin drwxr-x--x 9 299 127 512 Apr 22 1997 cern dr-xr-xr-x 2 0 0 8192 Apr 28 1997 etc drwxr-xr-x 4 0 0 8192 Apr 28 1997 hep drwxr-xr-x 28 0 0 8192 Nov 25 21:30 kek -rw-r--r-- 1 0 0 416605 Feb 27 07:00 ls-lR -rw-r--r-- 1 0 0 98609 Feb 27 07:00 ls-lR.Z dr-xr-xr-x 9 0 0 8192 Jan 13 10:38 pub -rw-r--r-- 1 0 0 1031 Apr 28 1997 welcome.msg -rw-r--r-- 1 0 0 304 Apr 28 1997 welcome.msg.old 226 Transfer complete. 628 bytes received in 0.16 seconds (4 Kbytes/s) ftp> cd kek/netinfo 250 CWD command successful. ftp> dir 200 PORT command successful. 150 Opening ASCII mode data connection for /bin/ls. total 333 -rw-r--r-- 1 0 30 82 Feb 17 1994 .message -rw-r----- 1 0 30 326992 Feb 27 09:21 hosts drwxr-xr-x 2 0 30 8192 Oct 18 1994 mail-example -rw-r----- 1 0 30 3096 Feb 17 1994 networks 226 Transfer complete. 268 bytes received in 0.023 seconds (11 Kbytes/s) ftp> get hosts 200 PORT command successful. 150 Opening ASCII mode data connection for hosts (326992 bytes). 226 Transfer complete. local: hosts remote: hosts 333187 bytes received in 0.59 seconds (5.5e+02 Kbytes/s) ftp> quit 221 Goodbye. onl7v1# onl7v1# ls -l hosts* -rw-r--r-- 1 root other 326992 Feb 27 15:43 hosts -r--r--r-- 1 root sys 76 Feb 26 17:30 hosts.org onl7v1# chgrp sys hosts onl7v1# chmod u-w hosts onl7v1# ls -l hosts* -r--r--r-- 1 root sys 326992 Feb 27 15:43 hosts -r--r--r-- 1 root sys 76 Feb 26 17:30 hosts.org onl7v1# (3-10). /etc/networks の設定 onl7v1# diff /mnt/etc/inet/networks networks 1,9c1,17 < total 682 < -r--r--r-- 1 root other 320224 Dec 24 11:11 hosts < -r--r--r-- 1 root other 76 Dec 24 11:11 hosts.org < -r--r--r-- 1 root other 4615 Dec 24 11:11 inetd.conf < -r--r--r-- 1 root other 592 Dec 24 11:11 netmasks < -rw-r--r-- 1 root other 400 Dec 24 11:11 networks < -r--r--r-- 1 root other 372 Dec 24 11:11 networks.org < -r--r--r-- 1 root other 499 Dec 24 11:11 protocols < -r--r--r-- 1 root other 2059 Dec 24 11:11 services --- > #ident "@(#)networks 1.4 92/07/14 SMI" /* SVr4.0 1.1 */ > # > # The networks file associates Internet Protocol (IP) network numbers > # with network names. The format of this file is: > # > # network-name network-number nicnames . . . > # > > # > # The loopback network is used only for intra-machine communication > # > loopback 127 > > # > # Internet networks > # > arpanet 10 arpa # Historical onl7v1# ??? Solaris2.5 用の /etc/inet/networksファイルが壊れているようだ。 ついでに直しておこう。 onl7v1# ls -l /mnt/etc/inet total 682 -rw-r--r-- 1 root sys 320224 Dec 25 10:46 hosts -r--r--r-- 1 root sys 76 Dec 24 15:14 hosts.org -r--r--r-- 1 root sys 4615 Dec 24 14:54 inetd.conf -r--r--r-- 1 root sys 592 Dec 24 15:14 netmasks -rw-r--r-- 1 root sys 519 Dec 25 10:50 networks -r--r--r-- 1 root sys 372 Dec 24 14:54 networks.org -r--r--r-- 1 root sys 499 Oct 25 1995 protocols -r--r--r-- 1 root sys 2059 Oct 25 1995 services onl7v1# cp /mnt/etc/inet/networks.org /mnt/etc/inet/networks onl7v1# vi /mnt/etc/inet/networks #ident "@(#)networks 1.4 92/07/14 SMI" /* SVr4.0 1.1 */ # # The networks file associates Internet Protocol (IP) network numbers # with network names. The format of this file is: # # network-name network-number nicnames . . . # # # The loopback network is used only for intra-machine communication # loopback 127 # # Internet networks # arpanet 10 arpa # Historical FP-cluster-1 130.87.216 ~ ~ ~ ~ ~ "/mnt/etc/inet/networks" 17 lines, 372 characters onl7v1# Solaris2.5.1 用の /etc/inet/networks を修正する。 onl7v1# mv networks networks.org onl7v1# cp networks.org networks onl7v1# ls -l networks* -r--r--r-- 1 root other 372 Feb 27 16:04 networks -r--r--r-- 1 root sys 372 Feb 26 16:56 networks.org onl7v1# chgrp sys networks onl7v1# ls -l networks* -r--r--r-- 1 root sys 372 Feb 27 16:04 networks -r--r--r-- 1 root sys 372 Feb 26 16:56 networks.org onl7v1# chmod u+w networks onl7v1# ls -l networks* -rw-r--r-- 1 root sys 372 Feb 27 16:04 networks -r--r--r-- 1 root sys 372 Feb 26 16:56 networks.org onl7v1# vi networks #ident "@(#)networks 1.4 92/07/14 SMI" /* SVr4.0 1.1 */ # # The networks file associates Internet Protocol (IP) network numbers # with network names. The format of this file is: # # network-name network-number nicnames . . . # # # The loopback network is used only for intra-machine communication # loopback 127 # # Internet networks # arpanet 10 arpa # Historical FG-cluster-1 130.87.152 ~ ~ ~ ~ ~ "networks" 18 lines, 399 characters onl7v1# (3-11). /etc/passwd の設定 onl7v1# pwd /etc onl7v1# ls -l pass* -rw-r--r-- 1 root sys 445 Feb 27 09:11 passwd onl7v1# mv passwd passwd.org onl7v1# cp /mnt/etc/passwd . onl7v1# ls -l passwd* -rw-r--r-- 1 root other 801 Feb 27 16:14 passwd -rw-r--r-- 1 root sys 445 Feb 27 09:11 passwd.org onl7v1# chgrp sys passwd onl7v1# ls -l passwd* -rw-r--r-- 1 root sys 801 Feb 27 16:14 passwd -rw-r--r-- 1 root sys 445 Feb 27 09:11 passwd.org onl7v1# (3-12). /etc/shadow の設定 onl7v1# pwd /etc onl7v1# ls -l shadow* -r-------- 1 root sys 265 Feb 27 09:11 shadow onl7v1# mv shadow shadow.org onl7v1# cp /mnt/etc/shadow . onl7v1# ls -l shadow* -r-------- 1 root other 437 Feb 27 16:16 shadow -r-------- 1 root sys 265 Feb 27 09:11 shadow.org onl7v1# chgrp sys shadow onl7v1# ls -l shadow* -r-------- 1 root sys 437 Feb 27 16:16 shadow -r-------- 1 root sys 265 Feb 27 09:11 shadow.org onl7v1# (3-13). /etc/oshadow の設定 onl7v1# pwd /etc onl7v1# ls -l oshadow* No match onl7v1# cp /mnt/etc/oshadow . onl7v1# ls -l oshadow* -r-------- 1 root other 439 Feb 27 16:19 oshadow onl7v1# chgrp sys oshadow onl7v1# ls -l oshadow* -r-------- 1 root sys 439 Feb 27 16:19 oshadow onl7v1# ここでシステムをリブートする。 onl7v1# /usr/sbin/shutdown -i0 -g0 Shutdown started. Fri Feb 27 16:21:51 JST 1998 Do you want to continue? (y or n): y Broadcast Message from root (console) on onl7v1 Fri Feb 27 16:21:52... THE SYSTEM IS BEING SHUT DOWN NOW ! ! ! Log off now or risk your files being damaged showmount: onl7v1: RPC: Program not registered Changing to init state 0 - please wait onl7v1# 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 27 16:21:59 onl7v1 syslogd: going down on signal 15 nfs umount: onl7v1:vold(pid283) server not responding: RPC: Program not registered Feb 27 16:22:06 cssd: Got sig#15, sending it to all CSes and exit Feb 27 16:22:06 /usr/sbin/vold[894]: problem unmounting /vol; Resource temporarily una vailable 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-7V, No Keyboard ROM Rev. 2.15.1, 64 MB memory installed, Serial #9157050. Ethernet address 0:80:42:b:49:ba, Host ID: 808bb9ba. 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: onl7v1 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 onl7v1 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. onl7v1 console login: ok. 正常に立ち上がった。 onl7v1# ifconfig -a ifconfig: Command not found onl7v1# /.cshrc の path を設定する。 onl7v1# vi /.cshrc # @(#)cshrc 1.11 89/11/29 SMI umask 022 set path=(/usr/sbin /sbin /bin /usr/bin /usr/ucb /etc .) if ( $?prompt ) then set history=32 endif ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "/.cshrc" 6 lines, 140 characters onl7v1# onl7v1# source /.cshrc onl7v1# ifconfig -a lo0: flags=849 mtu 8232 inet 127.0.0.1 netmask ff000000 hme0: flags=863 mtu 1500 inet 130.87.217.113 netmask fffffc00 broadcast 130.87.219.255 ether 0:80:42:b:49:ba le0: flags=863 mtu 1500 inet 130.87.153.92 netmask fffffc00 broadcast 130.87.155.255 ether 0:80:42:b:49:ba onl7v1# 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.113 U 2 0 hme0 130.87.152.0 130.87.153.92 U 3 2 le0 224.0.0.0 130.87.153.92 U 3 0 le0 default 130.87.152.1 UG 0 0 onl7v1# route delete net 130.87.216.0 130.87.217.113 delete net 130.87.216.0: gateway 130.87.217.113 onl7v1# route add host 130.87.217.112 130.87.217.113 0 add host 130.87.217.112: gateway 130.87.217.113 onl7v1# netstat -r Routing Table: Destination Gateway Flags Ref Use Interface -------------------- -------------------- ----- ----- ------ --------- localhost localhost UH 0 0 lo0 onl5v4fast onl7v1fast UH 2 0 hme0 130.87.152.0 onl7v1 U 3 2 le0 BASE-ADDRESS.MCAST.NET onl7v1 U 3 0 le0 default ICCFG1 UG 0 0 onl7v1# ok. 正常に立ち上がった。 Solaris2.5 のディスクをマウントする。 onl7v1# mount /dev/dsk/c0t1d0s0 /mnt onl7v1# mount /dev/dsk/c0t1d0s6 /mnt/usr onl7v1# mount /dev/dsk/c0t1d0s7 /mnt/export/home onl7v1# (4). Solaris2.5:/export/home ディレクトリをコピーする onl7v1# ls -l /mnt/export/home total 20 drwxr-xr-x 2 root root 512 Nov 5 13:49 TT_DB drwx------ 2 root root 8192 Oct 14 15:14 lost+found drwxr-xr-x 8 root other 512 Nov 17 14:50 onl7v1 onl7v1# ls -l /export total 6 drwxrwxr-x 3 root root 512 Feb 26 17:18 exec drwxr-xr-x 3 root root 512 Feb 26 17:30 home drwxrwxr-x 2 root root 512 Feb 26 17:18 share onl7v1# ls -l /export/home total 16 drwx------ 2 root root 8192 Feb 26 16:55 lost+found onl7v1# /mnt/export/home/onl7v1 の下をコピーする。 onl7v1# pwd /export/home onl7v1# ls -l total 16 drwx------ 2 root root 8192 Feb 26 16:55 lost+found onl7v1# onl7v1# cp -pr /mnt/export/home/onl7v1 . onl7v1# ls -l total 18 drwx------ 2 root root 8192 Feb 26 16:55 lost+found drwxr-xr-x 8 root other 512 Nov 17 14:50 onl7v1 onl7v1# ls -l onl7v1 total 12 drwxr-xr-x 3 facom user 512 Jan 16 17:02 facom drwxr-xr-x 2 igarashi kek 512 Nov 17 14:05 igarashi drwxr-xr-x 12 inoue kek 512 Feb 26 14:01 inoue drwxr-xr-x 2 keibun kek 512 Oct 20 15:33 keibun drwxr-xr-x 2 kodama kek 512 Oct 20 15:33 kodama drwxr-xr-x 2 yasu kek 512 Oct 20 15:33 yasu onl7v1# /mnt/usr/local の下をコピーする。 onl7v1# ls -l /mnt/usr/local /mnt/usr/local: No such file or directory onl7v1# /mnt/usr/local ディレクトリがないようだ。 とりあえず、onl5v4 から /usr/local/bin だけをコピーしておこう。 onl7v1# pwd /export/home onl7v1# ls -l total 18 drwx------ 2 root root 8192 Feb 26 16:55 lost+found drwxr-xr-x 8 root other 512 Nov 17 14:50 onl7v1 onl7v1# mkdir local onl7v1# ln -s /export/home/local /usr/local onl7v1# rcp -pr onl5v4:/usr/local/bin /usr/local/bin onl7v1# ls -l /usr/local/bin total 4588 -rwxr-xr-x 1 root other 516096 May 1 1997 kermit -rwxr-xr-x 1 root other 114300 Oct 25 1996 less -rwxr-xr-x 1 root other 4745 Oct 25 1996 less.hlp -rwxr-xr-x 1 root other 8784 Oct 25 1996 lesskey -rwxr-xr-x 1 root other 208924 Nov 29 1996 ng -rwxr-xr-x 1 root other 247784 Jul 23 1997 tclsh -rwxr-xr-x 1 root other 460100 Nov 29 1996 tcsh -rwxr-xr-x 1 root other 719012 Jul 23 1997 wish onl7v1# /export/home 下のリストアはうまくできた。 (5). ユーザ・アカウントでログインしてみる onlsun2[46]% telnet onl7v1 Trying 130.87.153.92... Connected to onl7v1.kek.jp. Escape character is '^]'. UNIX(r) System V Release 4.0 (onl7v1) login: inoue Password: Last login: Mon Mar 2 11:05:44 from onlsun2 Sun Microsystems Inc. SunOS 5.5.1 Generic May 1996 onl7v1[33]% ok. 正常にできた。 (6). ネットワークの設定をやる システムをリブートしてからネットワークの設定をやる。 Power-On Self Test IU Register File Test MMU Context Table Reg Test MMU Context Register Test MMU Sync Fault Stat Reg Test MMU Sync Fault Addr Reg Test D-Cache Tag Ram Test D-Cache Data Ram Test D-TLB CAM Test D-TLB RAM Test I-Cache Tag Ram Test I-Cache Data Ram Test No Secondary Cache Exists No Secondary Cache Exists No Secondary Cache Exists Snoop Ram Test IOMMU-TLB Test IOMMU Control Register Test IOMMU Base Addr Register Test IOMMU SBus Config Registers Test Set RAH to 3 Set WS to 3 DRAM Data Bus Test Probing Bank 0 -- 32 Megs Found Probing Bank 1 -- 32 Megs Found Probing Bank 2 -- 0 Megs Found Probing Bank 3 -- 0 Megs Found Probing Bank 4 -- 0 Megs Found Probing Bank 5 -- 0 Megs Found Probing Bank 6 -- 0 Megs Found Probing Bank 7 -- 0 Megs Found DRAM Address Bus Test Memory Address Pattern Test D-Cache Hit Miss Test D-TLB Hit Miss Test I-TLB Hit Miss Test I-Cache Hit Miss Test No Secondary Cache Exists I-TLB Ram Test FPU Register File Test FPU Misaligned Reg Pair Test FPU Single-precision Tests FPU Double-precision Tests FPU SP Invalid CEXC Test FPU SP Overflow CEXC Test FPU SP Divide-by-0 CEXC Test FPU SP Inexact CEXC Test FPU SP Trap Priority > Test FPU SP Trap Priority < Test FPU DP Invalid CEXC Test FPU DP Overflow CEXC Test FPU DP Divide-by-0 CEXC Test FPU DP Inexact CEXC Test FPU DP Trap Priority > Test FPU DP Trap Priority < Test PROC0 Interrupt Regs Tests Soft Interrupts OFF Test Soft Interrupts ON Test PROC0 User Timer Test PROC0 Counter/Timer Test DMA2 E_CSR Register Test LANCE Address Port Tests LANCE Data Port Tests DMA2 D_CSR Register Test DMA2 D_ADDR Register Test DMA2 D_BCNT Register Test DMA2 D_NADDR Register Test ESP Registers Tests DMA2 P_CSR Register Test DMA2 P_ADDR Register Test DMA2 P_BCNT Register Test PPORT Registers Tests NVRAM Access Test TOD Registers Test screen not found. Can't open input device. Keyboard not present. Using tty for input and output. SPARC CPU-7V, No Keyboard ROM Rev. 2.15.1, 64 MB memory installed, Serial #9157050. Ethernet address 0:80:42:b:49:ba, Host ID: 808bb9ba. Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0 File and args: 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: onl7v1 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 onl7v1 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. onl7v1 console login: onl7v1 console login: root Password: Mar 2 11:39:50 onl7v1 login: ROOT LOGIN /dev/console Last login: Mon Mar 2 11:30:59 on console Sun Microsystems Inc. SunOS 5.5.1 Generic May 1996 Starting OpenWindows in 5 seconds (type Control-C to interrupt) ^C# onl7v1# ifconfig -a lo0: flags=849 mtu 8232 inet 127.0.0.1 netmask ff000000 hme0: flags=863 mtu 1500 inet 130.87.217.113 netmask fffffc00 broadcast 130.87.219.255 ether 0:80:42:b:49:ba le0: flags=863 mtu 1500 inet 130.87.153.92 netmask fffffc00 broadcast 130.87.155.255 ether 0:80:42:b:49:ba onl7v1# 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.113 U 2 1 hme0 130.87.152.0 130.87.153.92 U 3 2 le0 224.0.0.0 130.87.153.92 U 3 0 le0 default 130.87.152.1 UG 0 0 onl7v1# route delete net 130.87.216.0 130.87.217.113 delete net 130.87.216.0: gateway 130.87.217.113 onl7v1# route add host 130.87.217.112 130.87.217.113 0 add host 130.87.217.112: gateway 130.87.217.113 onl7v1# netstat -r Routing Table: Destination Gateway Flags Ref Use Interface -------------------- -------------------- ----- ----- ------ --------- localhost localhost UH 0 0 lo0 onl5v4fast onl7v1fast UH 2 0 hme0 130.87.152.0 onl7v1 U 3 2 le0 BASE-ADDRESS.MCAST.NET onl7v1 U 3 0 le0 default ICCFG1 UG 0 0 onl7v1# Solaris2.5 のシステムを /mnt にマウントする。 onl7v1# df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t3d0s0 123063 18800 91963 17% / /dev/dsk/c0t3d0s6 443407 337497 61570 85% /usr /proc 0 0 0 0% /proc fd 0 0 0 0% /dev/fd /dev/dsk/c0t3d0s7 7488675 41574 6698241 1% /export/home /dev/dsk/c0t3d0s5 202287 80485 101582 45% /opt swap 100376 8 100368 1% /tmp onl7v1# mount /dev/dsk/c0t1d0s0 /mnt onl7v1# mount /dev/dsk/c0t1d0s6 /mnt/usr onl7v1# mount /dev/dsk/c0t1d0s7 /mnt/export/home onl7v1# df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t3d0s0 123063 18800 91963 17% / /dev/dsk/c0t3d0s6 443407 337497 61570 85% /usr /proc 0 0 0 0% /proc fd 0 0 0 0% /dev/fd /dev/dsk/c0t3d0s7 7488675 41574 6698241 1% /export/home /dev/dsk/c0t3d0s5 202287 80485 101582 45% /opt swap 100376 8 100368 1% /tmp /dev/dsk/c0t1d0s0 119703 16426 91307 16% /mnt /dev/dsk/c0t1d0s6 288319 185846 73643 72% /mnt/usr /dev/dsk/c0t1d0s7 3607765 39297 3207698 2% /mnt/export/home onl7v1# ok. 正しく設定できた。 --- <<< 以下の項目(7)の設定は、Mar 11, 1998 にやった。 >>> (7). /kek シンボリックリンクを作る (7-1). / ディレクトリに /kek のシンボリックリンクを作る onl7v1# pwd / onl7v1# ls -l total 101 lrwxrwxrwx 1 root root 9 Feb 26 16:56 bin -> ./usr/bin drwxr-xr-x 2 root nobody 512 Feb 27 09:14 cdrom drwxrwxr-x 18 root sys 4096 Mar 9 14:32 dev drwxrwxr-x 5 root sys 512 Feb 26 17:30 devices drwxrwxr-x 26 root sys 3072 Mar 9 14:32 etc drwxrwxr-x 5 root sys 512 Feb 26 17:18 export dr-xr-xr-x 2 root root 2 Mar 11 10:13 home drwxr-xr-x 9 root sys 512 Feb 26 20:06 kernel lrwxrwxrwx 1 root root 9 Feb 26 16:56 lib -> ./usr/lib drwx------ 2 root root 8192 Feb 26 16:54 lost+found drwxrwxr-x 2 root sys 512 Feb 26 16:56 mnt dr-xr-xr-x 2 root root 3 Mar 11 10:13 net drwxrwxr-x 11 root sys 512 Mar 6 14:50 opt drwxr-xr-x 5 root sys 1024 Feb 26 16:59 platform dr-xr-xr-x 2 root root 16064 Mar 11 10:13 proc drwxr-xr-x 2 root other 512 Mar 3 11:26 ptfmnt drwxrwxr-x 2 root sys 512 Mar 3 16:59 sbin drwxrwxrwt 5 sys sys 233 Mar 11 10:11 tmp drwxrwxr-x 30 root sys 1024 Mar 2 11:01 usr drwxrwxr-x 21 root sys 512 Feb 27 09:11 var drwxr-xr-x 2 root root 512 Feb 27 09:11 vol dr-xr-xr-x 2 root root 2 Mar 11 10:13 xfn onl7v1# mkdir kekfs onl7v1# mkdir /kekfs/kek onl7v1# ln -s /kekfs/kek kek onl7v1# (7-2). /etc/auto_master を編集する onl7v1# 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 onl7v1# ここでシステムをリブートする。 onl7v1# shutdown -i0 -g0 Shutdown started. Wed Mar 11 10:41:41 JST 1998 Do you want to continue? (y or n): y Broadcast Message from root (console) on onl7v1 Wed Mar 11 10:41:43... THE SYSTEM IS BEING SHUT DOWN NOW ! ! ! Log off now or risk your files being damaged showmount: onl7v1: RPC: Program not registered Changing to init state 0 - please wait onl7v1# 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 10:41:50 onl7v1 syslogd: going down on signal 15 umount: /net busy nfs umount: /vol: not mounted Mar 11 10:41:59 cssd: Got sig#15, sending it to all CSes and exit Mar 11 10:41:59 /usr/sbin/vold[450]: problem unmounting /vol; No such file or director y 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-7V, No Keyboard ROM Rev. 2.15.1, 64 MB memory installed, Serial #9157050. Ethernet address 0:80:42:b:49:ba, Host ID: 808bb9ba. 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: onl7v1 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 NOTICE: VME SYSFAIL (clr) not handled. 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 onl7v1 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. onl7v1 console login: ネットワーク設定をやる。 onl7v1# ifconfig -a lo0: flags=849 mtu 8232 inet 127.0.0.1 netmask ff000000 hme0: flags=863 mtu 1500 inet 130.87.217.113 netmask fffffc00 broadcast 130.87.219.255 ether 0:80:42:b:49:ba le0: flags=863 mtu 1500 inet 130.87.153.92 netmask fffffc00 broadcast 130.87.155.255 ether 0:80:42:b:49:ba onl7v1# 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.113 U 2 1 hme0 130.87.152.0 130.87.153.92 U 3 4 le0 224.0.0.0 130.87.153.92 U 3 0 le0 default 130.87.152.1 UG 0 4 onl7v1# route delete net 130.87.216.0 130.87.217.113 delete net 130.87.216.0: gateway 130.87.217.113 onl7v1# route add host 130.87.217.112 130.87.217.113 0 add host 130.87.217.112: gateway 130.87.217.113 onl7v1# netstat -r Routing Table: Destination Gateway Flags Ref Use Interface -------------------- -------------------- ----- ----- ------ --------- localhost localhost UH 0 0 lo0 onl5v4fast onl7v1fast UH 2 0 hme0 130.87.152.0 onl7v1 U 3 4 le0 BASE-ADDRESS.MCAST.NET onl7v1 U 3 0 le0 default ICCFG1 UG 0 5 onl7v1# /kek ディレクトリーに正しくマウントできたかどうかチェック。 onl7v1# 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 onl7v1# ok. うまくマウントできた。 --- (6). セクション (6-1). サブセクション (6-1-1). サブサブセクション