とうとうSGIは連邦破産法11条適用を申請したようです。 ちなみに、日本SGIはNECの子会社であるようです。 日本SGIは米国SGIより幅広く事業を展開しているので、それほどの影響は受けないのかもしれません。
入手方法など詳しいことは SGIマシンの入手とIRIXのインストールなどを参照して下さい。
GUIを利用できる場合は必要ないでしょう。ただ、ConsoleをSerialにしている場合は GUIに戻す時に必要です。クロスケーブルが一本あれば何かと重宝するかもしれません。
$ cu -l /dev/ttyS1
System Maintenance Menu
1) Start System
2) Install System Software
3) Run Diagnostics
4) Recover System
5) Enter Command Monitor
Option? 5
Command Monitor. Type "exit" to return to the menu.
> setenv console d (Serial#1)
> setenv console d2 (Serial#2)
> setenv console g (GUI)
以下の設定をしないと、いくつかのバグのあるfirmwareではtftpイメージを ダウンロードできない事があります。
# echo 1 > /proc/sys/net/ipv4/ip_no_pmtu_disc
# echo 2048 32767 > /proc/sys/net/ipv4/ip_local_port_range
DHCPDは最新をものを利用しましょう。(書いている時点でV3.0.4) MAC addressは上記のfirmwareからprintenvで表示できます。
[/etc/dhcpd.conf]
server-identifier 192.168.1.100;
option subnet-mask 255.255.255.0;
default-lease-time -1;
ddns-update-style none;
use-host-decl-names on;
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.1.1;
host sgi {
hardware ethernet 08:00:69:??:??:??;
fixed-address 192.168.1.170;
}
authoritative;
allow bootp;
}
[/etc/inetd.conf]
tftp dgram udp wait root /usr/sbin/tcpd in.tftpd -s /tftpboot -r blksize -vvv
NFSは使えません。rshを設定しましょう。気になるなら、作業後はコメントアウトしましょう。
[/etc/inetd.conf]
shell stream tcp nowait root /usr/sbin/tcpd in.rshd -L
login stream tcp nowait root /usr/sbin/tcpd in.rlogind
$ rsh localhost ls /
stderr is not a tty - where are you?
bin
...
stderr is not a tty - where are you?という表示がされる場合は、/etc/profileなどに リダイレクトや出力を利用するコマンドが含まれている可能性があるので、この場合は一時的に 使用不可にしましょう。次に、一時的に/bin/shをksh系にする必要があります。ただ、 ksh (AT&T Korn Shell 93)では正常に動かなかったので、mkshを利用すると良いでしょう。
# mv /bin/sh /bin/sh-
# ln -s /bin/mksh /bin/sh
終ったら戻しましょう。Serverの準備が整ったら、クライアントを起動します。 Partitionを切っていない場合は、まず、boot -f bootp():irix/fx.ARCSで Partitionを切ります。fx.ARCSやfx.64でなくても、fdiskで切ることもできますが、 その場合は、SGI raw(Swap Partition)とSGI sysvとSGI volhdrとは必ず必要と思われます。 面倒なようなら、fxを利用した方が良いでしょう。
> boot -f bootp():irix/sashARCS (Server上では/tftpboot/irix/sashARCSに配置する。)
Setting $netaddr to 192.168.1.170 (from server )
Obtaining irix/sashARCS from server
136944+22896+3248+341792+49584d+4620+6880 entry: 0x8ffa5e50
Standalone Shell SGI Version 6.5 ARCS Oct 6, 2004 (32 Bit)
sash: cp -b 32k bootp():irix/sa(mr) pci(0)scsi(0)disk(2)rdisk(0)partition(1) (SwapPartitionにminirootを書き込む)
Setting $netaddr to 192.168.1.170 (from server )
Obtaining irix/sa(mr) from server
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
..................
19456000 (0x128e000) bytes copied
sash: boot -f bootp():irix/unix.IP32 root=dks0d2s1 (SwapPartitionをrootにして起動)
Setting $netaddr to 192.168.1.170 (from server )
Obtaining irix/unix.IP32 from server
4349976+493192 entry: 0x80012580
IRIX Release 6.5 IP32 Version 01062343 System V
Copyright 1987-2005 Silicon Graphics, Inc.
All Rights Reserved.
root on /hw/node/io/pci/1/scsi_ctlr/0/target/2/lun/0/disk/partition/1/block ; dumpdev on /dev/swap ;
boot swap file on /dev/swap swplo 81000
WARNING: Cannot load runtime symbol table from bootp'ed kernel.
Loadable modules will not be registered or loaded.
Creating miniroot devices, please wait...
Current system date is Wed May 31 05:49:12 PDT 2006
Mounting file systems:
UX:make: INFO: `scsi' is up to date.
NOTICE: XVM mirrors enabled
NOTICE: XVM snapshot enabled
xvminit complete
/dev/miniroot on /
/dev/dsk/realroot on /root
Invoking software installation.
Default distribution to install from: /CDROM
For help on inst commands, type "help overview".
Inst 4.1 Main Menu
1. from [source ...] Specify location of software to be installed
2. open [source ...] Specify additional software locations
3. close [source ...] Close a software distribution location
4. list [keywords] [names] Display information about software subsystems
5. go Perform software installation and removal now
6. install [keywords] [names] Select subsystems to be installed
7. remove [keywords] [names] Select subsystems to be removed
8. keep [keywords] [names] Do not install or remove these subsystems
9. step [keywords] [names] Interactive mode for install/remove/keep
10. conflicts [choice ...] List or resolve installation conflicts
11. help [topic] Get help in general or on a specific word
12. view ... Go to the View Commands Menu
13. admin ... Go to the Administrative Commands Menu
14. quit Terminate software installation
Inst> open user@192.168.1.100:/mnt/net1/tmp/IRIX_6.5.27/cd1
What is the hostname (system name) of your machine? 192.168.1.170
What is the netmask for 192.168.1.170?
Press Enter for the IP class default [0xffffff00]:
Starting network with hostname: 192.168.1.170, at ip address: 192.168.1.170
...(省略、表示される内容を読めば大体わかるでしょう。)
Inst> keep *
Inst> install standard
Inst> install prereqs
Inst> keep incompleteoverlays
Inst> go
(以下依存関係が満たされないものはそれぞれ解決する。)
Inst> exit
Requickstarting ELF files (see rqsall(1)) .. 100% Done.
Automatically reconfiguring the operating system.
Ready to restart the system. Restart? { (y)es, (n)o, (sh)ell, (h)elp }: y
Preparing to restart system ...
CDはたくさんあるようですが、Foundation 1/2 + Overlay 1/2/3/(4) + Development Libraries/Foundation + Applicationsを読み込めばだいたいOKでしょう。もちろん全部読み込むこともできます。
IRIXのインストールCDROMは、SGI disklabelで切ってある上にEFSを利用しているので、 普通にはmountできません。また、bootイメージをファイルとして取り出すのは少々大変です。 まずは、efs filesystemのmoduleがなければ作りましょう。また、Note: sector size is 2048 (not 512) と言われますが、最近の一般のCDROMドライブがそうなだけで、SGIマシンは512がdefaultです。 インストール時は、dist/以下を指定します。
$ fdisk /dev/hdc
You will not be able to write the partition table.
Note: sector size is 2048 (not 512)
Command (m for help): u
Changing display/entry units to sectors
Command (m for help): p
Disk /dev/hdc (SGI disk label): 255 heads, 63 sectors, 14 cylinders
Units = sectors of 1 * 2048 bytes
----- partitions -----
Pt# Device Info Start End Sectors Id System
8: /dev/hdc1 49248 919911 870664 5 SGI sysv (...EFS filesystemは49248 sectorから始まる。)
9: /dev/hdc2 0 49247 49248 0 SGI volhdr
11: /dev/hdc3 0 919935 919936 6 SGI volume
----- Bootinfo -----
Bootfile:
----- Directory Entries -----
0: sgilabel sector 32 size 512
1: mr sector 33 size19456000
2: sash64 sector38033 size 266728
3: sashARCS sector38554 size 343556
Command (m for help): q
$ losetup /dev/loop0 -o $((49248*512)) /dev/hdc
$ mount -t efs /dev/loop0 /mnt/loop
$ ls /mnt/loop/
CDgrelnotes* CDrelnotes* WhatsNew/ dist/ installtools/ relnotes/ stand/
$ ls /mnt/loop/stand/
fx.64* fx.ARCS* ide.IP30* ide.IP32*
以下minirootとsashを取り出す。countはちょっと余分に読みとる。
$ dd if=/dev/hdc of=/tmp/sashARCS bs=512 skip=38554 count=$((343556/512+1))
$ dd if=/dev/hdc of=/tmp/mr bs=512 skip=33 count=$((19456000/512+1))
No one knows all of Perl - not even Larry Wall. Except Chuck Norris, who knows
all of Perl 5, Perl 6 and can answer questions about the design of Perl 7.
-- Shlomi Fish
-- Chuck
Norris Facts by Shlomi Fish and Friends ( http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ )
The government of the Supporter will finance your travel, and you will be able
to leave tomorrow morning. We would like to inform you of the following facts:
we cannot assure your safety during this travel. Furthermore, despite your
long service at the Organization and your constructive proposal, we cannot
say, wholeheartedly or halfheartedly, that we wish to protect your safety.
Likewise, we cannot guarantee that we would not take actions that may harm
you, indirectly or in a direct manner.
We hope to see you here very soon.
"The Enemy and how I Helped to Fight It"
Shlomi Fish
-- Shlomi Fish
-- Shlomi Fish's Aphorisms Collection ( http://www.shlomifish.org/humour.html )