* Re: [9fans] venti on linux under p9port?
@ 2005-09-29 11:17 jpc
2005-09-29 15:23 ` Russ Cox
0 siblings, 1 reply; 5+ messages in thread
From: jpc @ 2005-09-29 11:17 UTC (permalink / raw)
To: 9fans
>
> Many thanks.
>
> I think I had an additional problem in that the linux system had been
> updated since last I compiled p9ports. Redoing ./INSTALL and running
> venti with no options works now. Unfortunately, at the time of day that
> I asked the question my mind was in no condition to look at the source code.
>
did you get vbackup working? i think i have venti running on a server:
% hget http://lepton5/storage
index=main
total arenas=19 active=1
total space=9,999,253,504 used=13,628,050
clumps=3,466 compressed clumps=2,802 data=23,379,423 compressed data=13,409,692
%
but when i try to use vbackup from my laptop, i run into problems:
% echo $venti
tcp!lepton5!venti
% vbackup /dev/hda5
offset of magic: 1372
ffs magic 0xbe800ea0
offset of magic: 1372
ffs magic 0x0
offset of magic: 1372
ffs magic 0x0
*** glibc detected *** double free or corruption (fasttop): 0x08083978 ***
11425: signal: sys: abort
% core
stack ./core
# Thu Sep 29 11:14:31 EDT 2005
# vbackup /dev/hda5
% stack ./core
gsignal() called from abort+0xeb
abort() called from 0xb7e88365
0xb7e88365 called from 0xb7e8ea07
0xb7e8ea07 called from __libc_free+0x82
__libc_free() called from p9free+0x21
p9free(v=0x8083978) /usr/local/plan9/src/lib9/malloc.c:32 called from ffssync+0xbc
ffssync(fsys=0x80838e0) /usr/local/plan9/src/libdiskfs/ffs.c:175 called from fsysopenffs+0x7b
fsysopenffs(disk=0x8078328) /usr/local/plan9/src/libdiskfs/ffs.c:51 called from fsysopen+0x16
fsysopen(disk=0x8078328) /usr/local/plan9/src/libdiskfs/fsys.c:25 called from threadmain+0xf0
threadmain(argc=0x2, argv=0xbf8c0b64) /usr/local/plan9/src/cmd/vbackup/vbackup.c:150 called from threadmainstart+0x24
threadmainstart(v=0x0) /usr/local/plan9/src/libthread/thread.c:582 called from threadstart+0x16
threadstart(y=0xb7de5008, x=0x0) /usr/local/plan9/src/libthread/thread.c:91 called from makecontext+0x44
%
i'm sure i'm doing something obviously wrong, but i'm having trouble
seein' it, can anyone else?
john cummings
cummij@rpi.edu
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] venti on linux under p9port?
2005-09-29 11:17 [9fans] venti on linux under p9port? jpc
@ 2005-09-29 15:23 ` Russ Cox
0 siblings, 0 replies; 5+ messages in thread
From: Russ Cox @ 2005-09-29 15:23 UTC (permalink / raw)
To: cummij, Fans of the OS Plan 9 from Bell Labs
> but when i try to use vbackup from my laptop, i run into problems:
>
> *** glibc detected *** double free or corruption (fasttop): 0x08083978 ***
> 11425: signal: sys: abort
make sure you have the latest source.
what is STACK set to in src/cmd/vbackup.c?
i upped it from 8192 to 32768 to solve some
problems others were having. i don't know
why it was overflowing.
russ
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] venti on linux under p9port?
2005-09-23 15:43 ` Russ Cox
@ 2005-09-29 4:00 ` Adrian Tritschler
0 siblings, 0 replies; 5+ messages in thread
From: Adrian Tritschler @ 2005-09-29 4:00 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Russ Cox wrote:
>>% venti/venti -w
>>usage: venti [-dsw] [-a ventiaddress] [-h httpaddress] [-c config] [-C
>>cachesize] [-I icachesize] [-B blockcachesize]
>>
>>I can't seem to work out any combination of parameters that give any
>>output other than the above.
> Looks like I lost -w. Use "queuewrites" in the config instead.
> No arguments at all -- venti/venti -- should work just fine.
> Worst case, you could always look at the source code.
> Venti is still somewhat in progress. Sorry.
Many thanks.
I think I had an additional problem in that the linux system had been
updated since last I compiled p9ports. Redoing ./INSTALL and running
venti with no options works now. Unfortunately, at the time of day that
I asked the question my mind was in no condition to look at the source code.
> Russ
Adrian
---------------------------------------------------------------
Adrian Tritschler mailto:ajft@ajft.org
Latitude 38°S, Longitude 145°E, Altitude 50m, Shoe size 44
---------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [9fans] venti on linux under p9port?
2005-09-23 7:53 Adrian Tritschler
@ 2005-09-23 15:43 ` Russ Cox
2005-09-29 4:00 ` Adrian Tritschler
0 siblings, 1 reply; 5+ messages in thread
From: Russ Cox @ 2005-09-23 15:43 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
> % venti/venti -w
> usage: venti [-dsw] [-a ventiaddress] [-h httpaddress] [-c config] [-C
> cachesize] [-I icachesize] [-B blockcachesize]
>
> I can't seem to work out any combination of parameters that give any
> output other than the above.
Looks like I lost -w. Use "queuewrites" in the config instead.
No arguments at all -- venti/venti -- should work just fine.
Worst case, you could always look at the source code.
Venti is still somewhat in progress. Sorry.
Russ
^ permalink raw reply [flat|nested] 5+ messages in thread
* [9fans] venti on linux under p9port?
@ 2005-09-23 7:53 Adrian Tritschler
2005-09-23 15:43 ` Russ Cox
0 siblings, 1 reply; 5+ messages in thread
From: Adrian Tritschler @ 2005-09-23 7:53 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
I'm trying to muddle my way through creating a venti under p9ports on a
linux box (for various reasons). For the moment, I'm not too concerned
at performance, I just want to get familiar with it. Rather than
accessing a raw partition, I'm trying to set it up to refer to arena and
index files in /usr/local/venti (is this sensible?)
So far:
Created the arena files from sh with:
dd if=/dev/zero of=arenas1 seek=$((1024 * 1024 * 512 - 1)) bs=1 count=1
Created the index files with:
dd if=/dev/zero of=isect0 seek=$((1024 * 1024 * 24 - 1)) bs=1 count=1
Then following the wiki page on setting up venti:
Format the arenas with:
% venti/fmtarenas arenas0 /usr/local/venti/arenas0
fmtarenas /usr/local/venti/arenas0: 1 arenas, 536,076,288 bytes storage,
524,288 bytes for index map
% venti/fmtarenas arenas1 /usr/local/venti/arenas1
fmtarenas /usr/local/venti/arenas1: 1 arenas, 536,076,288 bytes storage,
524,288 bytes for index map
Format the index sections with:
% venti/fmtisect isect0 /usr/local/venti/isect0
fmtisect /usr/local/venti/isect0: 2,975 buckets of 215 entries, 524,288
bytes for index map
% venti/fmtisect isect1 /usr/local/venti/isect1
fmtisect /usr/local/venti/isect1: 2,975 buckets of 215 entries, 524,288
bytes for index map
% cat venti.conf
# the name of the index
index main
# the index sections
isect /usr/local/venti/isect0
isect /usr/local/venti/isect1
# the arenas
arenas /usr/local/venti/arenas0
arenas /usr/local/venti/arenas1
Problem comes when I try to start venti, it just gives me the following:
% venti/venti -w
usage: venti [-dsw] [-a ventiaddress] [-h httpaddress] [-c config] [-C
cachesize] [-I icachesize] [-B blockcachesize]
I can't seem to work out any combination of parameters that give any
output other than the above.
Any assistance, or which fine manual have i missed?
thanks,
ADrian
---------------------------------------------------------------
Adrian Tritschler mailto:ajft@ajft.org
Latitude 38°S, Longitude 145°E, Altitude 50m, Shoe size 44
---------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-09-29 15:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-29 11:17 [9fans] venti on linux under p9port? jpc
2005-09-29 15:23 ` Russ Cox
-- strict thread matches above, loose matches on Subject: below --
2005-09-23 7:53 Adrian Tritschler
2005-09-23 15:43 ` Russ Cox
2005-09-29 4:00 ` Adrian Tritschler
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).