9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: lucio@proxima.alt.za
To: 9fans@cse.psu.edu
Subject: [9fans] Venti for Fossil
Date: Fri,  4 Jul 2003 16:27:51 +0200	[thread overview]
Message-ID: <77da6dc262ebb960e06310ac8a4841ac@proxima.alt.za> (raw)

I am attempting to set up Fossil reliably, but I'm encountering some
stumbling blocks.

I have one incidental question, first of all: does not setting
/env/venti cause Fossil to omit the Venti interactions?

That aside, I have configured a single partition for Venti arenas:

	--rw-r----- S 0 proxima proxima 2146770944 Jul  3 10:57 sd01/v.arena

with

	--rw-r----- S 0 proxima proxima  209715200 Jul  3 10:57 sd00/v.idx0
	--rw-r----- S 0 proxima proxima  209715200 Jul  3 10:57 sd00/v.idx1

for the index.

The following commands:

	venti/fmtarenas arena.  /dev/sd01/v.arena
	venti/fmtisect  isect.0 /dev/sd00/v.idx0
	venti/fmtisect  isect.1 /dev/sd00/v.idx1

produce results along the following lines:

	clearing the partition
	configuring /dev/sd01/v.arena with arenas=3 for a total storage of bytes=2146435072 and directory bytes=65536
	adding arena arena.0 at [335872,537206784)
	adding arena arena.1 at [537206784,1074077696)
	adding arena arena.2 at [1074077696,1610948608)
	clearing the partition
	configuring index section isect.0 with space for index config bytes=65536
	clearing the partition
	configuring index section isect.1 with space for index config bytes=65536
	using 51118 buckets of 51118; div=84021

which I find a little worrying, index-size-wise.

Starting venti is surprising:

	venti/venti -c venti.conf -B 1m -C 1m -I 1m -w -a tcp!127.1!venti

which returns (note the different numbers):

	add arena arena.0 at [1048576,537903104)
	add arena arena.1 at [537903104,1074757632)
	add arena arena.2 at [1074757632,1611612160)
	configured index=main with arenas=3 and storage=1610563584

Whether this explains the problems I have encountered with archive
snapshots (lost blocks, but I also saw some I/O errors :-(, I would
prefer to ask more competent people.

I'm appending the script I use to set up Venti and Fossil from
scratch.  May it be useful to others as well as attract any
improvements (and land on the WIKI, if really useful).

(I have been playing a bit, trying to produce reproducible results,
but I have encountered too many difficulties, so the script that
follows may not be exactly what I used last.  It ought to be pretty
close, though.)

---- cut here ----
#!/bin/rc
cd /sys/lib/sysconfig/huddle/init
venti/fmtarenas arena.  /dev/sd01/v.arena
venti/fmtisect  isect.0 /dev/sd00/v.idx0
venti/fmtisect  isect.1 /dev/sd00/v.idx1
venti/fmtindex  venti.conf
venti/venti -c venti.conf -B 1m -C 1m -I 1m -w -a tcp!127.1!venti
venti=tcp!127.1!venti
echo -n '(venti)' Sleeping...; sleep 30; echo
echo y | fossil/flfmt /dev/sd01/fossil
echo -n '(flfmt)' Sleeping...; sleep 5; echo
fossil/fossil -c '. flauth'
echo -n '(fossil)' Sleeping...; sleep 5; echo
con -l /srv/fscons << EOF
create /active/adm adm adm d775
EOF
mount -c /srv/fossil /n/fossil
sed 's/^([^:]+):([^:]+)/\2:\2/' /adm/users > /n/fossil/adm/users
con -l /srv/fscons << EOF
users -r /active/adm/users
EOF
9fs kfs
disk/mkfs -a -s /n/kfs /sys/lib/sysconfig/proto/allproto | disk/mkext -u -d /n/fossil
con -l /srv/fscons << EOF
users -w
EOF
echo 'Done!'
---- cut here ----

flauth is, very simply:

---- cut here ----
srv -p fscons
srv fossil
fsys main config /dev/sd01/fossil
fsys main open -AWP
fsys main
---- cut here ----

venti.conf is:

---- cut here ----
index main
isect /dev/sd00/v.idx0
isect /dev/sd00/v.idx1
arenas /dev/sd01/v.arena
---- cut here ----

and the output, for reference:

- Omitted - Things are too far out of kilt! -

++L



             reply	other threads:[~2003-07-04 14:27 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-04 14:27 lucio [this message]
2003-07-30  4:14 ` okamoto
2003-07-30  4:25   ` andrey mirtchovski
2003-07-30  4:54     ` okamoto
2003-07-30  5:14       ` andrey mirtchovski
2003-07-31 16:04         ` [9fans] VMWare related question Ishwar Rattan
2003-08-05 20:54         ` [9fans] generating ssh keys for a user Ishwar Rattan
2003-08-06  4:19           ` David Presotto
2003-08-06 13:17         ` [9fans] rsa key again Ishwar Rattan
2003-08-06 14:43           ` David Presotto
2003-07-30  6:46       ` [9fans] Venti for Fossil okamoto
2003-07-30  4:54   ` Lucio De Re
2003-07-31  3:48     ` okamoto
2003-07-31  4:05       ` jmk
2003-07-31  4:14         ` okamoto
2003-07-31  5:03           ` okamoto
2003-07-31  9:11             ` okamoto
2003-07-31  9:21               ` Fco.J.Ballesteros
2003-07-31  9:33                 ` okamoto
2003-07-31  9:36                   ` Fco.J.Ballesteros
2003-07-31  9:40                     ` okamoto
2003-07-31 16:17                 ` jmk
2003-07-31 20:53                   ` rog
2003-08-01  1:15                     ` okamoto
2003-08-01  1:27                       ` Dan Cross
2003-08-01  3:39                       ` okamoto
2003-08-01  6:06                         ` okamoto
2003-08-05  5:43                         ` okamoto
2003-08-05  6:24                           ` okamoto
2003-08-05  7:47                             ` okamoto
2003-08-06  5:49                               ` okamoto
2003-08-06 14:55                                 ` jmk
2003-08-06 15:01                                   ` boyd, rounin
2003-08-06 15:01                                   ` andrey mirtchovski
2003-08-07  0:45                                   ` okamoto
2003-08-01  4:41                   ` Lucio De Re
2003-07-30  4:55 okamoto
     [not found] <2845195861@snellwilcox.com>
2003-08-06  8:40 ` steve.simon
2003-08-06 10:13   ` boyd, rounin
2003-08-06 10:50   ` C H Forsyth
2003-08-06 11:50   ` Derek Fawcus
2003-08-06 15:07 David Presotto
2003-08-07  0:56 ` okamoto
2003-08-07  0:57   ` andrey mirtchovski
2003-08-07  1:00   ` boyd, rounin
2003-08-07  2:53 Skip Tavakkolian

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=77da6dc262ebb960e06310ac8a4841ac@proxima.alt.za \
    --to=lucio@proxima.alt.za \
    --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).