From: Serge Gagnon <serge.gagnon@b2b2c.ca>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] plan9port venti FreeBSD
Date: Thu, 22 Dec 2005 13:22:37 -0500 [thread overview]
Message-ID: <200512221322.37563.serge.gagnon@b2b2c.ca> (raw)
In-Reply-To: <200512210421.jBL4LmZv058701@gate.bitblocks.com>
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 <serge.gagnon@b2b2c.ca>
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
next parent reply other threads:[~2005-12-22 18:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200512210421.jBL4LmZv058701@gate.bitblocks.com>
2005-12-22 18:22 ` Serge Gagnon [this message]
2005-12-22 19:04 ` Russ Cox
2005-12-22 20:06 ` Serge Gagnon
2005-12-21 4:07 Serge Gagnon
2005-12-21 4:43 ` Russ Cox
2005-12-21 4:44 ` Russ Cox
2005-12-27 19:41 ` Serge Gagnon
2005-12-30 19:40 ` Russ Cox
2005-12-31 4:22 ` Serge Gagnon
2005-12-31 10:36 ` C H Forsyth
2005-12-31 13:50 ` Russ Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200512221322.37563.serge.gagnon@b2b2c.ca \
--to=serge.gagnon@b2b2c.ca \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).