Record of some of the computer tech I deal with so that it's documented at least somewhere.

Thursday 10 July 2008

Lets Venti

I added a drive to QEMU in XP64 ! yay for Windows
C:\Program Files (x86)\qemu-0.9.0-windows>qemu-img create -f raw venti 1G

(nice prompt!)
booted plan9
% disk/prep /dev/sdC1/data
>>> a areanas 10 1800000
>>> a isect 1800000 2097152

10 to avoid the mbr (less than ten will work but I cba to find the minimum)

% venti/fmtarenas weg /dev/sdC1/arenas
% venti/fmtisect weg /dev/sdC1/isect
% echo 'index main
isect /dev/sdC1/isect
arenas /dev/sdC1/arenas
' > venti.conf
% venti/fmtindex venti.conf
fmtindex: 2 arenas, 18,475 index buckets, 920,764,416 bytes storage
% venti/venti
2008/0711 19:08:52 venti: conf...init...icache 0 bytes = 1,000 entries; 4 scache
sync...announce ....serving. tcp!*!venti
% telnet tcp!$sysname!venti
connected to tcp!$sysname!venti on /net/tcp/1
venti-02-libventi

The weg is a name that venti wants for these arenas/isect I guess it will make sense later.
whee, that looks like a venti server running for me :)
And I thought it was complex

No comments: