xref: /plan9/sys/src/cmd/cwfs/doc/worm.fs (revision 01a344a29f2ff35133953eaef092a50fc8c3163b)
1# fs: new main file server on 633MHz machine with 4 IDE disks & 4K blocks
2# was called rosewood at first
3config h0
4service fs
5ip0     66.120.90.177
6ipgw0   66.120.90.186
7ipmask0 255.255.255.0
8ipsntp  66.120.90.185
9filsys main c{p(h0)0.25p(h2)0.25}f{p(h0)25.75p(h2)25.75}
10filsys dump o
11filsys other h3
12# later added: filsys spare h1
13# ream other
14# ream main
15# recover main
16allow
17end
18
19h0 20GB "main":  25% cache and 75% fake-worm;
20h1 40GB "spare": holds test venti used for backup
21h2 20GB "main":  (h1.0.0) a mirror of h0.
22h3 40GB "other": (h1.1.0) ``scratch'' space
23
24---
25halted. press a key to reboot.
26
27ether#0: i82557: port 0x9400 irq 10: 00A0C9E02756
28dev A0 port 1F0 config 427A capabilities 2F00 mwdma 0007 udma 103F
29dev A0 port 170 config 427A capabilities 2F00 mwdma 0007 udma 043F
30dev B0 port 170 config 045A capabilities 0F00 mwdma 0007 udma 043F
31found 9PCFSIMR.    attr 0x0 start 0x423 len 391193
32.239705.............................+41712.....+181524=462941
33entry: 0x80100020
34cpu0: 635MHz GenuineIntel PentiumIII/Xeon (cpuid: AX 0x0686 DX 0x383f9ff)
35ether0: i82557: 100Mbps port 0x9400 irq 10: 00a0c9e02756
36
37iobufinit
38        114253 buffers; 14281 hashes
39        mem left = 44040191
40                out of = 528482304
41nvr read
42found plan9.nvr attr 0x0 start 0x18c len 677
43for config mode hit a key within 5 seconds
44
45config: filsys main c{p(h0)0.25p(h2)0.25}f{p(h0)25.75p(h2)25.75}
46config: filsys dump o
47config: filsys other h3
48config: recover main
49config: ream other
50config: allow
51config: end
52ysinits
53config h0
54        devinit h0
55i hd0: DW CDW02E0-B00HB0F    lba/atapi/drqintr: 1/0/0  C/H/S: 0/0/0  CAP: 39102336
56hd0: LBA 39102336 sectors
57ideinit(device 9ce00948 ctrl 0 targ 0) driveno 0 dp 802eff24
58config block written
59config h0
60        devinit h0
61ideinit(device 9ce00988 ctrl 0 targ 0) driveno 0 dp 802eff24
62service    rosewood
63ipauth  0.0.0.0
64ipsntp  66.120.90.185
65ip0     66.120.90.194
66ipgw0   66.120.90.186
67ipmask0 255.255.255.0
68filsys main c{p(h0)0.25p(h2)0.25}f{p(h0)25.75p(h2)25.75}
69filsys dump o
70filsys other h3
71sysinit: main
72recover: c{p(h0)0.25p(h2)0.25}f{p(h0)25.75p(h2)25.75}
73        devinit {p(h0)0.25p(h2)0.25}
74        devinit p(h0)0.25
75        devinit h0
76ideinit(device 9ce00a68 ctrl 0 targ 0) driveno 0 dp 802eff24
77atasize(9ce00a68):  39102336 -> 4887552
78        devinit p(h2)0.25
79        devinit h2
80i hd2: DW CDW02E0-B00HB0F    lba/atapi/drqintr: 1/0/0  C/H/S: 0/0/0  CAP: 39102336
81hd2: LBA 39102336 sectors
82ideinit(device 9ce00ae8 ctrl 0 targ 2) driveno 2 dp 802f4324
83atasize(9ce00ae8):  39102336 -> 4887552
84        devinit f{p(h0)25.75p(h2)25.75}
85fworm init
86        devinit {p(h0)25.75p(h2)25.75}
87        devinit p(h0)25.75
88        devinit h0
89ideinit(device 9ce00bc8 ctrl 0 targ 0) driveno 0 dp 802eff24
90atasize(9ce00bc8):  39102336 -> 4887552
91        devinit p(h2)25.75
92        devinit h2
93ideinit(device 9ce00c48 ctrl 0 targ 2) driveno 2 dp 802f4324
94atasize(9ce00c48):  39102336 -> 4887552
95dump 2 is good; 5 next
96dump 5 is good; 494408 next
97dump 494408 is good; 495193 next
98dump 495193 is good; 495224 next
99dump 495224 is good; 496007 next
100dump 496007 is good; 496062 next
101dump 496062 is good; 496089 next
102dump 496089 is good; 496096 next
103dump 496096 is good; 496118 next
104dump 496118 is good; 496882 next
105fworm: read 496882
106cache init c{p(h0)0.25p(h2)0.25}f{p(h0)25.75p(h2)25.75}
107done cacheinit
108done recover
109        devinit c{p(h0)0.25p(h2)0.25}f{p(h0)25.75p(h2)25.75}
110sysinit: dump
111        devinit o{p(h0)0.25p(h2)0.25}f{p(h0)25.75p(h2)25.75}
112sysinit: other
113        devream: h3 1
114        devinit h3
115i hd3: AMTXRO4 0K042H        lba/atapi/drqintr: 1/0/0  C/H/S: 0/0/0  CAP: 78198750
116hd3: LBA 78198750 sectors
117ideinit(device 9ce00ca8 ctrl 0 targ 3) driveno 3 dp 802f44f0
118atasize(9ce00ca8):  78198750 -> 9774592
119ether0o: 00a0c9e02756 66.120.90.194
120ether0i: 00a0c9e02756 66.120.90.194
121next dump at Mon Sep 10 05:00:00 2001
122current fs is "main"
123il: allocating il!66.120.90.189!23230
12441 uids read, 21 groups used
125rosewood as of Sun Sep  9 16:27:27 2001
126        last boot Mon Sep 10 00:56:10 2001
127touch superblock 496118
128rosewood:
129