Le 20 Décembre 2005 23:21, Bakul Shah a écrit :
> There is no special magic number for venti.  Just give it a
> normal file or a freebsd partition (/dev/ad0s1e etc) or a
> slice (/dev/ad0s2 etc.)  I suggest you use normal files
> while playing with venti.

Hello,
i tried it with normal files and it begins to work.

I got this error with yesterday
; yesterday -d /COPYRIGHT
diff -c /dump/quenix1/2005/1222/COPYRIGHT /COPYRIGHT
diff: /dump/quenix1/2005/1222/COPYRIGHT: Input/output error
[status 1]
;  
with this message on the terminal where i start venti and vnfs:
% err 0: read too small: asked for 128 need at least 300
cannot open venti disk b8ab9f305bd8b1b7b5e7c18186e7336a94107e2c: read too 
small: asked for 128 need at least 300

I don't know what exactly it means.

For information, i made my setup like this:
create arenas and index:
$ dd if=/dev/zero of=arenas0 seek=$((1024 * 1024 * 512 - 1)) bs=1 count=1
1+0 records in
1+0 records out
1 bytes transferred in 0.000109 secs (9178 bytes/sec)

$ dd if=/dev/zero of=isect0 seek=$((1024 * 1024 * 24 - 1)) bs=1 count=1
1+0 records in
1+0 records out
1 bytes transferred in 0.000095 secs (10538 bytes/sec)

; 9 rc
% venti/fmtisect -b 32k isect0. isect0
part isect0: file isect0 offset 0 size 25,165,824
fmtisect isect0: 743 buckets of 862 entries, 524,288 bytes for index map
% venti/fmtarenas -b 32k arenas0. arenas0
part arenas0: file arenas0 offset 0 size 536,870,912
fmtarenas arenas0: 1 arenas, 536,051,712 bytes storage, 524,288 bytes for 
index map

(I tried it with -b 16k the first time. It was just to see the difference)

% cat venti.conf
index main
isect /home/serge/isect0
arenas /home/serge/arenas0

% venti/fmtindex venti.conf
part venti.conf: file venti.conf offset 0 size 92
part /home/serge/isect0: file /home/serge/isect0 offset 0 size 25,165,824
part /home/serge/arenas0: file /home/serge/arenas0 offset 0 size 536,870,912
fmtindex: 1 arenas, 743 index buckets, 535,986,176 bytes storage

And start venti:
% venti/venti -c venti.conf -h tcp!localhost!8888
venti: conf...part venti.conf: file venti.conf offset 0 size 92
part /home/serge/isect0: file /home/serge/isect0 offset 0 size 25,165,824
part /home/serge/arenas0: file /home/serge/arenas0 offset 0 size 536,870,912
httpd tcp!localhost!8888...init...sync...announce tcp!*!venti...serving.

(it is very fun to play with this ;)

Ok, now i have backuped something:
; sudo vbackup /dev/ad1s2a
Password:
offset of magic: 1372
ffs magic 0x12253e51
offset of magic: 1372
ffs magic 0x19540119
mount /quenix1/2005/1222 ffs:b8ab9f305bd8b1b7b5e7c18186e7336a94107e2c 
2005/1222/1222
# 2005/1222 12:22:23.491 /dev/ad1s2a 
ffs:b8ab9f305bd8b1b7b5e7c18186e7336a94107e2c

It is my / partition

And now I started vnfs:
cat config
mount /quenix1/2005/1222 ffs:b8ab9f305bd8b1b7b5e7c18186e7336a94107e2c 
2005/1222/1222
% sudo vnfs -b 32k -c 1k config
Password:
handle da39a3ee5e6b4b0d

and mount it:
; - vmount
sudo vmount localhost /dump

This is where i got a little problem:
; yesterday /COPYRIGHT
/dump/quenix1/2005/1222/COPYRIGHT
; yesterday -d /COPYRIGHT
diff -c /dump/quenix1/2005/1222/COPYRIGHT /COPYRIGHT
diff: /dump/quenix1/2005/1222/COPYRIGHT: Input/output error
[status 1]
;  

Sorry for my very beginner question...

regards,
-- 
GAGNON serge <[EMAIL PROTECTED]>
PGP KEY-ID: 0xBBC1478F
PGP Fingerprint: B48B 4633 28F5 28F6 7A62 5650 69C8 E293 BBC1 478F
PPG Key: http://quenix2.dyndns.org:7777 | telnet quenix2.dyndns.org 7777

Reply via email to