9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Christian Kellermann <Christian.Kellermann@nefkom.net>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: [9fans] fs(3) issues ('clear' missing and mirror question)
Date: Fri, 28 Sep 2007 16:02:46 +0200	[thread overview]
Message-ID: <20070928140246.GA22503@hermes.my.domain> (raw)

[-- 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 --]

             reply	other threads:[~2007-09-28 14:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-28 14:02 Christian Kellermann [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070928140246.GA22503@hermes.my.domain \
    --to=christian.kellermann@nefkom.net \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).