9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] Venti in 9front
@ 2021-09-04 11:41 sirjofri
  2021-09-05  4:51 ` unobe
  0 siblings, 1 reply; 8+ messages in thread
From: sirjofri @ 2021-09-04 11:41 UTC (permalink / raw)
  To: 9front

Hello 9front people,

out of curiosity, few questions about venti in 9front (especially since 
fossil is removed):

Are there any standard use cases that venti is used for? Any applications 
that use it or have sample configuration files, besides vac?

Is it possible (or a good idea) to patch cwfs to have some worm 
alternative in venti?

What do you guys use venti for?

sirjofri

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9front] Venti in 9front
  2021-09-04 11:41 [9front] Venti in 9front sirjofri
@ 2021-09-05  4:51 ` unobe
  2021-09-05 10:43   ` Stuart Morrow
  0 siblings, 1 reply; 8+ messages in thread
From: unobe @ 2021-09-05  4:51 UTC (permalink / raw)
  To: 9front

Quoth sirjofri <sirjofri+ml-9front@sirjofri.de>:
> What do you guys use venti for?

Not to be a downer, but I only use venti for backups.  I use hjfs, but
trust venti a bit more.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9front] Venti in 9front
  2021-09-05  4:51 ` unobe
@ 2021-09-05 10:43   ` Stuart Morrow
  2021-09-06  4:23     ` unobe
  0 siblings, 1 reply; 8+ messages in thread
From: Stuart Morrow @ 2021-09-05 10:43 UTC (permalink / raw)
  To: 9front

> Not to be a downer, but I only use venti for backups.  I use hjfs, but
> trust venti a bit more.

/n/dump isn't a backup anyway...it's the dump.  Only way hjfs could be
considered 'a backup' is if you have a separate one of it that you
dir/cp/hist into.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9front] Venti in 9front
  2021-09-05 10:43   ` Stuart Morrow
@ 2021-09-06  4:23     ` unobe
  2021-09-06  7:45       ` sirjofri
  0 siblings, 1 reply; 8+ messages in thread
From: unobe @ 2021-09-06  4:23 UTC (permalink / raw)
  To: 9front

Quoth Stuart Morrow <morrow.stuart@gmail.com>:
> > Not to be a downer, but I only use venti for backups.  I use hjfs, but
> > trust venti a bit more.
> 
> /n/dump isn't a backup anyway...it's the dump.  Only way hjfs could be
> considered 'a backup' is if you have a separate one of it that you
> dir/cp/hist into.

Right, sorry to imply that I was using hjfs for backups.  I use hjfs
yet don't have trust that it will always work.  That's where venti
comes in--I can restore (and have restored) to an hjfs partition from
a venti backup.  I trust venti more than hjfs.  I'd be interested in
using fossil + venti but that has already been brought up on this
list/9fans multiple times.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9front] Venti in 9front
  2021-09-06  4:23     ` unobe
@ 2021-09-06  7:45       ` sirjofri
  2021-09-06 23:43         ` james palmer
  0 siblings, 1 reply; 8+ messages in thread
From: sirjofri @ 2021-09-06  7:45 UTC (permalink / raw)
  To: 9front

I'd be interested in patching cwfs so I can have an alternative layout 
without a worm partition, but dump with a venti. I believe this is 
possible. What do people who touched cwfs (and/or venti) source code 
think about that?


06.09.2021 06:23:06 unobe@cpan.org:
> Quoth Stuart Morrow <morrow.stuart@gmail.com>:
>>> Not to be a downer, but I only use venti for backups.  I use hjfs, 
>>> but
>>> trust venti a bit more.
>>
>> /n/dump isn't a backup anyway...it's the dump.  Only way hjfs could be
>> considered 'a backup' is if you have a separate one of it that you
>> dir/cp/hist into.
>
> Right, sorry to imply that I was using hjfs for backups.  I use hjfs
> yet don't have trust that it will always work.  That's where venti
> comes in--I can restore (and have restored) to an hjfs partition from
> a venti backup.  I trust venti more than hjfs.  I'd be interested in
> using fossil + venti but that has already been brought up on this
> list/9fans multiple times.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9front] Venti in 9front
  2021-09-06  7:45       ` sirjofri
@ 2021-09-06 23:43         ` james palmer
  2021-09-07  8:04           ` sirjofri
  0 siblings, 1 reply; 8+ messages in thread
From: james palmer @ 2021-09-06 23:43 UTC (permalink / raw)
  To: 9front

Quoth <sirjofri+ml-9front@sirjofri.de>:
> I'd be interested in patching cwfs so I can have an alternative layout 
> without a worm partition, but dump with a venti. I believe this is 
> possible. What do people who touched cwfs (and/or venti) source code 
> think about that?


i dont know if you really need to patch cwfs, i ran cwfs with no dump and backed up to venti with a cron job for a while.

if you do feel like patching libventi is used by both venti clients and the server so you should be able to use that in cfws. i don't know about the on-disk format though.

though if you want a venti backed fs, you could always just import fossil :P perhaps from ants?

- james

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9front] Venti in 9front
  2021-09-06 23:43         ` james palmer
@ 2021-09-07  8:04           ` sirjofri
  2021-09-07 17:59             ` james palmer
  0 siblings, 1 reply; 8+ messages in thread
From: sirjofri @ 2021-09-07  8:04 UTC (permalink / raw)
  To: james palmer


07.09.2021 01:43:45 james palmer <james@biobuf.link>:

> Quoth <sirjofri+ml-9front@sirjofri.de>:
>> I'd be interested in patching cwfs so I can have an alternative layout
>> without a worm partition, but dump with a venti. I believe this is
>> possible. What do people who touched cwfs (and/or venti) source code
>> think about that?
>
> i dont know if you really need to patch cwfs, i ran cwfs with no dump 
> and backed up to venti with a cron job for a while.

That's also a solution. I assume you used vac? Did you change the 9fs 
script to fit the venti situation (9fs dump)?

> if you do feel like patching libventi is used by both venti clients and 
> the server so you should be able to use that in cfws. i don't know 
> about the on-disk format though.

Absolutely. I didn't look at cwfs dump code yet, but I can imagine it's 
just a matter of injecting libventi code there, together with some config 
stuff.

> though if you want a venti backed fs, you could always just import 
> fossil :P perhaps from ants?

That's exactly what I do _not_ want :). The reason is that fossil is not 
part of 9front and future changes might break compatibility and/or make 
the system unstable. I believe cwfs is becoming more stable, especially 
considering nobody wants to patch fossil code (which is the reason why 
it's removed). Therefore, a venti-driven backup solution for the standard 
pretty-stable supported cwfs is more tempting than installing fossil.

It would be great if you could share more details (and scripts?) for your 
venti backup solution with cwfs nodump.

sirjofri

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9front] Venti in 9front
  2021-09-07  8:04           ` sirjofri
@ 2021-09-07 17:59             ` james palmer
  0 siblings, 0 replies; 8+ messages in thread
From: james palmer @ 2021-09-07 17:59 UTC (permalink / raw)
  To: 9front

Quoth sirjofri+ml-9front@sirjofri.de:
> That's also a solution. I assume you used vac Did you change the 9fs 
> script to fit the venti situation (9fs dump)?

yes i did use vac.
i changed 9fs to do "vacfs -m /n/dump /sys/lib/vac/dump.vac".

> It would be great if you could share more details (and scripts?) for your 
> venti backup solution with cwfs nodump.

the script wasn't too complicated, pretty sure it was just:

#!/bin/rc
cd /root
vac -h fs -t -a /sys/lib/vac/dump.vac *

the cwfs with no dump is the same config as on the wiki. one thing to note is it uses the same code as the cache so it can't handle being full and you can't see how full it is.

- james

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-09-07 18:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-04 11:41 [9front] Venti in 9front sirjofri
2021-09-05  4:51 ` unobe
2021-09-05 10:43   ` Stuart Morrow
2021-09-06  4:23     ` unobe
2021-09-06  7:45       ` sirjofri
2021-09-06 23:43         ` james palmer
2021-09-07  8:04           ` sirjofri
2021-09-07 17:59             ` james palmer

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).