9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Venti for Fossil
@ 2003-07-04 14:27 lucio
  2003-07-30  4:14 ` okamoto
  0 siblings, 1 reply; 46+ messages in thread
From: lucio @ 2003-07-04 14:27 UTC (permalink / raw)
  To: 9fans

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



^ permalink raw reply	[flat|nested] 46+ messages in thread
* Re: [9fans] Venti for Fossil
@ 2003-07-30  4:55 okamoto
  0 siblings, 0 replies; 46+ messages in thread
From: okamoto @ 2003-07-30  4:55 UTC (permalink / raw)
  To: okamoto, 9fans

When I want to close venti or fossil server, I just kill those
processes?   I read venti/sync command, and I think I got it
right.

Kenji



^ permalink raw reply	[flat|nested] 46+ messages in thread
[parent not found: <2845195861@snellwilcox.com>]
* Re: [9fans] Venti for Fossil
@ 2003-08-06 15:07 David Presotto
  2003-08-07  0:56 ` okamoto
  0 siblings, 1 reply; 46+ messages in thread
From: David Presotto @ 2003-08-06 15:07 UTC (permalink / raw)
  To: 9fans

Ka pupuhi te hau ka maringi te wai


^ permalink raw reply	[flat|nested] 46+ messages in thread
* Re: [9fans] Venti for Fossil
@ 2003-08-07  2:53 Skip Tavakkolian
  0 siblings, 0 replies; 46+ messages in thread
From: Skip Tavakkolian @ 2003-08-07  2:53 UTC (permalink / raw)
  To: 9fans

> Yeah - got burned over the weekend.  However that doesn't change that the
> sea's around our little island are genrally 'Too COLD,  too COLD!',  hmm
> where's that dry suit...

During the last two weeks it's been hot enough here that I've been
able to swim in the Puget Sound wearing a cheap wet suite.

Maybe there is something to this global warming claim?!!



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

end of thread, other threads:[~2003-08-07  2:53 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-04 14:27 [9fans] Venti for Fossil lucio
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

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).