From mboxrd@z Thu Jan 1 00:00:00 1970 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: Your message of "Tue, 09 Nov 2010 09:41:26 PST." References: <75ea74312ad96f76de8cd4b3291ffb1d@brasstown.quanstro.net> From: Bakul Shah Date: Tue, 9 Nov 2010 11:17:47 -0800 Message-Id: <20101109191747.5CEB75B8C@mail.bitblocks.com> Subject: Re: [9fans] p9p factotum available for plan 9 Topicbox-Message-UUID: 7a3ff986-ead6-11e9-9d60-3106f5b1d025 On Tue, 09 Nov 2010 09:41:26 PST David Leimbach 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 <