On Tue, 09 Nov 2010 09:41:26 PST David Leimbach <[email protected]> wrote:
>
> Also the one time I tried to set up venti from p9p I basically failed
> horribly, and wasn't really sure what I did wrong. (I should read the
> installation scripts for Plan 9 and the man pages but haven't had time to
> get back to it).
See $PLAN9/src/cmd/venti/srv/tester.
When I was first playing with venti about 5 years back, I
used a `newventi' script like the one below. It creates all
the necessary data & conf files in $PWD. Modify as per
taste. Once set up, start as
$PLAN9/bin/venti/venti -c $conf
You have to be a bit careful when shutting things down
(flush dcache or something -- can't remember).
If you decide to back up ffs/ffs2/hfs/ext2fs/fat filesystems,
Russ's backup scripts are pretty handy.
---
#!/bin/sh
PATH=$PATH:$PLAN9/bin:$PLAN9/bin/venti
export PATH
d=$PWD
bs=8k
conf=venti.conf
echo index main > $conf
for i in 0 1 2 3
do
rm -f arenas$i; touch arenas$i; truncate -s 32G arenas$i;
fmtarenas -b $bs arenas$i. arenas$i
echo arenas arenas$i >> $conf
done
isect=$d/isect0
rm -f $isect; touch $isect; truncate -s 8G $isect
fmtisect -b $bs isect0. $isect
echo isect $isect >> $conf
bloom=$d/bloom
rm -f $bloom; touch $bloom; truncate -s 64M $bloom;
fmtbloom $bloom
echo bloom $bloom >> $conf
cat >> $conf <<EOF
mem 128M
bcmem 64M
icmem 64M
queuewrites
webroot $d/www
httpaddr tcp!*!9091
EOF
fmtindex $conf