* [9fans] p9p venti sync? @ 2010-11-16 22:43 David Leimbach 2010-11-17 0:32 ` Bakul Shah 2010-11-17 2:47 ` Russ Cox 0 siblings, 2 replies; 10+ messages in thread From: David Leimbach @ 2010-11-16 22:43 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs [-- Attachment #1: Type: text/plain, Size: 209 bytes --] I'm trying to figure out how to correctly sync a plan9port venti instance so I can start it back up again and have it actually function :-). using venti/sync doesn't appear to get the job done... Dave [-- Attachment #2: Type: text/html, Size: 266 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] p9p venti sync? 2010-11-16 22:43 [9fans] p9p venti sync? David Leimbach @ 2010-11-17 0:32 ` Bakul Shah 2010-11-17 2:47 ` Russ Cox 1 sibling, 0 replies; 10+ messages in thread From: Bakul Shah @ 2010-11-17 0:32 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs On Tue, 16 Nov 2010 14:43:20 PST David Leimbach <leimy2k@gmail.com> wrote: > --0016e6464d1a9112a304953348f5 > Content-Type: text/plain; charset=ISO-8859-1 > > I'm trying to figure out how to correctly sync a plan9port venti instance so > I can start it back up again and have it actually function :-). > > using venti/sync doesn't appear to get the job done... hget http://localhost:9091/flushicache hget http://localhost:9091/flushdcache or wherever is your venti has its http port ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] p9p venti sync? 2010-11-16 22:43 [9fans] p9p venti sync? David Leimbach 2010-11-17 0:32 ` Bakul Shah @ 2010-11-17 2:47 ` Russ Cox 2010-11-17 3:19 ` David Leimbach 1 sibling, 1 reply; 10+ messages in thread From: Russ Cox @ 2010-11-17 2:47 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs On Tue, Nov 16, 2010 at 5:43 PM, David Leimbach <leimy2k@gmail.com> wrote: > I'm trying to figure out how to correctly sync a plan9port venti instance so > I can start it back up again and have it actually function :-). > using venti/sync doesn't appear to get the job done... It should. Not using venti/sync should work too since vac etc all sync before hanging up. The flushicache/flushdcache trick will make restarting a little faster, but it should not be necessary for correctness and shouldn't even be that much faster. Russ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] p9p venti sync? 2010-11-17 2:47 ` Russ Cox @ 2010-11-17 3:19 ` David Leimbach 2010-11-17 3:39 ` Russ Cox 2010-11-17 4:09 ` David Leimbach 0 siblings, 2 replies; 10+ messages in thread From: David Leimbach @ 2010-11-17 3:19 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs On Tuesday, November 16, 2010, Russ Cox <rsc@swtch.com> wrote: > On Tue, Nov 16, 2010 at 5:43 PM, David Leimbach <leimy2k@gmail.com> wrote: >> I'm trying to figure out how to correctly sync a plan9port venti instance so >> I can start it back up again and have it actually function :-). >> using venti/sync doesn't appear to get the job done... > > It should. Not using venti/sync should work too since > vac etc all sync before hanging up. The flushicache/flushdcache > trick will make restarting a little faster, but it should not > be necessary for correctness and shouldn't even be > that much faster. I did a kill TERM... should the signal handler have cleaned up or was I supposed to send HUP? > > Russ > > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] p9p venti sync? 2010-11-17 3:19 ` David Leimbach @ 2010-11-17 3:39 ` Russ Cox 2010-11-17 4:09 ` David Leimbach 1 sibling, 0 replies; 10+ messages in thread From: Russ Cox @ 2010-11-17 3:39 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs On Tue, Nov 16, 2010 at 10:19 PM, David Leimbach <leimy2k@gmail.com> wrote: > On Tuesday, November 16, 2010, Russ Cox <rsc@swtch.com> wrote: >> On Tue, Nov 16, 2010 at 5:43 PM, David Leimbach <leimy2k@gmail.com> wrote: >>> I'm trying to figure out how to correctly sync a plan9port venti instance so >>> I can start it back up again and have it actually function :-). >>> using venti/sync doesn't appear to get the job done... >> >> It should. Not using venti/sync should work too since >> vac etc all sync before hanging up. The flushicache/flushdcache >> trick will make restarting a little faster, but it should not >> be necessary for correctness and shouldn't even be >> that much faster. > > I did a kill TERM... should the signal handler have cleaned up or was > I supposed to send HUP? There's no cleanup. The data's on disk after a sync RPC, which is what venti/sync does and also what vac does when it is done. Venti's writes are ordered so that the on-disk state is always recoverable. Because of that, there's no explicit shutdown: you just kill the server however you like. Russ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] p9p venti sync? 2010-11-17 3:19 ` David Leimbach 2010-11-17 3:39 ` Russ Cox @ 2010-11-17 4:09 ` David Leimbach 2010-11-17 4:47 ` David Leimbach 1 sibling, 1 reply; 10+ messages in thread From: David Leimbach @ 2010-11-17 4:09 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs Could sparse files be an issue? Bloom always shows up wrong when I restart. On Tuesday, November 16, 2010, David Leimbach <leimy2k@gmail.com> wrote: > On Tuesday, November 16, 2010, Russ Cox <rsc@swtch.com> wrote: >> On Tue, Nov 16, 2010 at 5:43 PM, David Leimbach <leimy2k@gmail.com> wrote: >>> I'm trying to figure out how to correctly sync a plan9port venti instance so >>> I can start it back up again and have it actually function :-). >>> using venti/sync doesn't appear to get the job done... >> >> It should. Not using venti/sync should work too since >> vac etc all sync before hanging up. The flushicache/flushdcache >> trick will make restarting a little faster, but it should not >> be necessary for correctness and shouldn't even be >> that much faster. > > I did a kill TERM... should the signal handler have cleaned up or was > I supposed to send HUP? > > >> >> Russ >> >> > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] p9p venti sync? 2010-11-17 4:09 ` David Leimbach @ 2010-11-17 4:47 ` David Leimbach 2010-11-17 4:49 ` David Leimbach 2010-11-17 14:36 ` Russ Cox 0 siblings, 2 replies; 10+ messages in thread From: David Leimbach @ 2010-11-17 4:47 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs [-- Attachment #1: Type: text/plain, Size: 1778 bytes --] On Tue, Nov 16, 2010 at 8:09 PM, David Leimbach <leimy2k@gmail.com> wrote: > Could sparse files be an issue? Bloom always shows up wrong when I > restart. > Nope... Didn't make a difference it seems. I recreated my venti setup, and it starts ok. I do a vac and an unvac, then kill it and restart and get the following: % venti/venti 2010/1116 20:44:14 venti: conf...2010/1116 20:44:14 err 4: read /Users/dave/venti/disks/bloom offset 0x0 count 65536 buf 3800000 returned 65536: No such file or directory venti/venti: can't load bloom filter: read /Users/dave/venti/disks/bloom offset 0x0 count 65536 buf 3800000 returned 65536: No such file or directory bloom is definitely there though... Not sure what the no such file or directory is referring to just yet. -rw-r--r-- 1 dave wheel 33554432 Nov 16 20:42 bloom I'll try without the bloom filter. > On Tuesday, November 16, 2010, David Leimbach <leimy2k@gmail.com> wrote: > > On Tuesday, November 16, 2010, Russ Cox <rsc@swtch.com> wrote: > >> On Tue, Nov 16, 2010 at 5:43 PM, David Leimbach <leimy2k@gmail.com> > wrote: > >>> I'm trying to figure out how to correctly sync a plan9port venti > instance so > >>> I can start it back up again and have it actually function :-). > >>> using venti/sync doesn't appear to get the job done... > >> > >> It should. Not using venti/sync should work too since > >> vac etc all sync before hanging up. The flushicache/flushdcache > >> trick will make restarting a little faster, but it should not > >> be necessary for correctness and shouldn't even be > >> that much faster. > > > > I did a kill TERM... should the signal handler have cleaned up or was > > I supposed to send HUP? > > > > > >> > >> Russ > >> > >> > > > [-- Attachment #2: Type: text/html, Size: 2637 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] p9p venti sync? 2010-11-17 4:47 ` David Leimbach @ 2010-11-17 4:49 ` David Leimbach 2010-11-17 14:36 ` Russ Cox 1 sibling, 0 replies; 10+ messages in thread From: David Leimbach @ 2010-11-17 4:49 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs [-- Attachment #1: Type: text/plain, Size: 1155 bytes --] > > > I'll try without the bloom filter. > > Now it's working... I probably don't need this enhancement anyway, but at least it appears to be working now. Unvac of a previously generated score is working fine. Dave > >> On Tuesday, November 16, 2010, David Leimbach <leimy2k@gmail.com> wrote: >> > On Tuesday, November 16, 2010, Russ Cox <rsc@swtch.com> wrote: >> >> On Tue, Nov 16, 2010 at 5:43 PM, David Leimbach <leimy2k@gmail.com> >> wrote: >> >>> I'm trying to figure out how to correctly sync a plan9port venti >> instance so >> >>> I can start it back up again and have it actually function :-). >> >>> using venti/sync doesn't appear to get the job done... >> >> >> >> It should. Not using venti/sync should work too since >> >> vac etc all sync before hanging up. The flushicache/flushdcache >> >> trick will make restarting a little faster, but it should not >> >> be necessary for correctness and shouldn't even be >> >> that much faster. >> > >> > I did a kill TERM... should the signal handler have cleaned up or was >> > I supposed to send HUP? >> > >> > >> >> >> >> Russ >> >> >> >> >> > >> > > [-- Attachment #2: Type: text/html, Size: 2125 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] p9p venti sync? 2010-11-17 4:47 ` David Leimbach 2010-11-17 4:49 ` David Leimbach @ 2010-11-17 14:36 ` Russ Cox 2010-11-17 15:17 ` David Leimbach 1 sibling, 1 reply; 10+ messages in thread From: Russ Cox @ 2010-11-17 14:36 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs > % venti/venti > 2010/1116 20:44:14 venti: conf...2010/1116 20:44:14 err 4: read > /Users/dave/venti/disks/bloom offset 0x0 count 65536 buf 3800000 returned > 65536: No such file or directory A read of 65536 returning 65536 should not be an error. If you want to dig in, this is $PLAN9/src/cmd/venti/srv/part.c:/^prwb. There have been problems with short reads before. Russ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] p9p venti sync? 2010-11-17 14:36 ` Russ Cox @ 2010-11-17 15:17 ` David Leimbach 0 siblings, 0 replies; 10+ messages in thread From: David Leimbach @ 2010-11-17 15:17 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs [-- Attachment #1: Type: text/plain, Size: 583 bytes --] On Wed, Nov 17, 2010 at 6:36 AM, Russ Cox <rsc@swtch.com> wrote: > > % venti/venti > > 2010/1116 20:44:14 venti: conf...2010/1116 20:44:14 err 4: read > > /Users/dave/venti/disks/bloom offset 0x0 count 65536 buf 3800000 returned > > 65536: No such file or directory > > A read of 65536 returning 65536 should not be an error. > If you want to dig in, this is $PLAN9/src/cmd/venti/srv/part.c:/^prwb. > There have been problems with short reads before. > > Russ > > I will look at this later tonight. It only happens when using a bloom file apparently so far. Dave [-- Attachment #2: Type: text/html, Size: 922 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2010-11-17 15:17 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-11-16 22:43 [9fans] p9p venti sync? David Leimbach 2010-11-17 0:32 ` Bakul Shah 2010-11-17 2:47 ` Russ Cox 2010-11-17 3:19 ` David Leimbach 2010-11-17 3:39 ` Russ Cox 2010-11-17 4:09 ` David Leimbach 2010-11-17 4:47 ` David Leimbach 2010-11-17 4:49 ` David Leimbach 2010-11-17 14:36 ` Russ Cox 2010-11-17 15:17 ` David Leimbach
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).