9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] fs(3) issues ('clear' missing and mirror question)
@ 2007-09-28 14:02 Christian Kellermann
  2007-09-28 16:15 ` geoff
  0 siblings, 1 reply; 8+ messages in thread
From: Christian Kellermann @ 2007-09-28 14:02 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 1851 bytes --]

Dear List,

1)
I have been playing with fs(3). Unfortunately the clear command
mentioned in the man page does not seem to exist.

cpu% echo clear > /dev/fs/ctl
echo: write error: unknown control message "clear"

whereas fs(3) says:
clear
               Discard all fs device definitions.

One of each is wrong here ;)

2)
I wanted to use fs(3) to setup mirrored venti arenas, and indeces.
Now with fs I only get one device after a 
echo mirror m0 /dev/sdC1/data /dev/sdD0/data > /dev/fs/ctl

I have read in earlier threads that it is possible to disk/part the
m0 device. How can I specify the partitions later on? Also This
seems to fail:

cpu% disk/prep -a^(isect arenas fscfg) /dev/fs/m0 > /dev/fs/ctl 
no plan9 partition table found
fscfg 1
arenas 558164159
isect 27908208
' fscfg                   0 1            (1 sectors, 512 B )
' arenas                  1 558164160    (558164159 sectors, 266.15
GB)
' isect           558164160 586072368    (27908208 sectors, 13.30
GB)
>>> w
adding part failed: fscfg: wrong #args in control message "part
fscfg 0 1"
adding part failed: arenas: wrong #args in control message "part
arenas 1 558164160"
adding part failed: isect: wrong #args in control message "part
isect 558164160 586072368"
?warning: partitions could not be updated in devsd
>>> q

Is this supposed to work? Doing it a second time disk/part tells me:
cpu% disk/prep -a^(isect arenas fscfg) /dev/fs/m0 > /dev/fs/ctl
partitions already exist; not repartitioning
>>> q

The '>/dev/fs/ctl' part comes from a mail from erik (Message-ID:
2cb5e9b012d84b84ab0216685114e141 () coraid ! com
)

Should I mirror each partition separately then?

Thanks for your precious time,

Christian

-- 
You may use my gpg key for replies:
pub  1024D/47F79788 2005/02/02 Christian Kellermann (C-Keen)

[-- Attachment #2: Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-09-28 20:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-28 14:02 [9fans] fs(3) issues ('clear' missing and mirror question) Christian Kellermann
2007-09-28 16:15 ` geoff
2007-09-28 16:56   ` Christian Kellermann
2007-09-28 19:38     ` geoff
2007-09-28 17:12   ` Christian Kellermann
2007-09-28 19:52     ` geoff
2007-09-28 20:48       ` erik quanstrom
2007-09-28 20:58         ` geoff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).