9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] Fossil fs recovery
@ 2011-08-10 16:21 Bernd Maier
  2011-08-10 17:46 ` David du Colombier
  2011-08-10 21:58 ` Steve Simon
  0 siblings, 2 replies; 20+ messages in thread
From: Bernd Maier @ 2011-08-10 16:21 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Wed, 10 Aug 2011 17:25:53 +0200 Steve Simon <steve@quintile.net>
wrote:


>This is only valid if you are running venti and have have fossil
>and venti on seperate physical disks of course.

Good point. I did an installation with Fossil only. I will try to
add
a disk with Venti next. I am not sure if this works without loosing
all data on the Fossil filesystem. Acutally I am working in a
virtualbox enviroment for testing purpose. When I am ready to
switch
to real hardware I would like to use backup to blue ray media too.

Regards,
Bernd




^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: [9fans] Fossil fs recovery
@ 2011-08-14 14:49 Bernd Maier
  0 siblings, 0 replies; 20+ messages in thread
From: Bernd Maier @ 2011-08-14 14:49 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Done with real hardware today. Works fine.

-Bernd


On Fri, 12 Aug 2011 11:53:09 +0200 Bernd Maier <bema@hush.com>
wrote:
>Many thanks! I will try it this weekend.
>
>One additional question:
>
>How much RAM needs the Fossil+Venti Fileserver in total?
>
>-Bernd
>
>On Thu, 11 Aug 2011 10:11:27 +0200 David du Colombier
><0intro@gmail.com> wrote:
>>In fact, it's pretty straightforward.
>>
>>In the following example, I consider you have a disk sdE0
>>with Fossil, and you want to add a disk sdE1 with Venti.
>>
>>Create the Venti partitions:
>>
>>disk/fdisk -baw /dev/sdE1/data
>>disk/prep -bw -a^(isect arenas bloom) /dev/sdE1/plan9
>>
>>Format the Venti file systems:
>>
>>venti/fmtisect isect /dev/sdE1/isect
>>venti/fmtarenas arenas /dev/sdE1/arenas
>>venti/fmtbloom /dev/sdE1/bloom
>>
>>Since the bloom filter requires memory equal to its size
>>on disk, you could need to pass the parameter -s to fmtbloom
>>to specify its size or directly adjust the partition size.
>>Keep in mind that Venti use 20% total memory by default, and
>>1/3 of it is allocated to the bloom filter.
>>For example, with 1 GB of memory, you cannot have a bloom filter
>>larger than 64 MB (which is sufficient) with the default
>settings.
>>Of course, the bloom filter is optional anyway.
>>
>>Configure Venti:
>>
>>echo 'index main
>>isect /dev/sdE1/isect
>>arenas /dev/sdE1/arenas
>>bloom /dev/sdE1/bloom' | venti/conf -w /dev/sdE1/arenas
>>
>>Initialize the index sections:
>>
>>venti/fmtindex /dev/sdE1/arenas
>>
>>Read your current Fossil configuration:
>>
>>fossil/conf /dev/sdE0/fossil > fossil.conf
>>
>>Edit fossil.conf, it should look like something like:
>>
>>fsys main config /dev/sdE0/fossil
>>fsys main open -V -c 3000
>>
>>Remove -V to open and srv if needed, then
>>add the following line to enable automatic
>>snapshots:
>>
>>fsys main snaptime -s 60 -a 0530 -t 2880
>>
>>(snapshot at 05:30, temporary snapshot each
>> hour and discarded after two days)
>>
>>Write your new Fossil configuration:
>>
>>fossil/conf -w /dev/sdE0/fossil < fossil.conf
>>
>>Mount your 9fat file system, then add the following line
>>to the file /n/9fat/plan9.ini:
>>
>>venti=#S/sdE1/arenas
>>
>>After rebooting, the current Fossil content will be dumped
>>to Venti.
>>
>>--
>>David du Colombier




^ permalink raw reply	[flat|nested] 20+ messages in thread
* Re: [9fans] Fossil fs recovery
@ 2011-08-12  9:53 Bernd Maier
  2011-08-12 12:03 ` David du Colombier
  0 siblings, 1 reply; 20+ messages in thread
From: Bernd Maier @ 2011-08-12  9:53 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Many thanks! I will try it this weekend.

One additional question:

How much RAM needs the Fossil+Venti Fileserver in total?

-Bernd

On Thu, 11 Aug 2011 10:11:27 +0200 David du Colombier
<0intro@gmail.com> wrote:
>In fact, it's pretty straightforward.
>
>In the following example, I consider you have a disk sdE0
>with Fossil, and you want to add a disk sdE1 with Venti.
>
>Create the Venti partitions:
>
>disk/fdisk -baw /dev/sdE1/data
>disk/prep -bw -a^(isect arenas bloom) /dev/sdE1/plan9
>
>Format the Venti file systems:
>
>venti/fmtisect isect /dev/sdE1/isect
>venti/fmtarenas arenas /dev/sdE1/arenas
>venti/fmtbloom /dev/sdE1/bloom
>
>Since the bloom filter requires memory equal to its size
>on disk, you could need to pass the parameter -s to fmtbloom
>to specify its size or directly adjust the partition size.
>Keep in mind that Venti use 20% total memory by default, and
>1/3 of it is allocated to the bloom filter.
>For example, with 1 GB of memory, you cannot have a bloom filter
>larger than 64 MB (which is sufficient) with the default settings.
>Of course, the bloom filter is optional anyway.
>
>Configure Venti:
>
>echo 'index main
>isect /dev/sdE1/isect
>arenas /dev/sdE1/arenas
>bloom /dev/sdE1/bloom' | venti/conf -w /dev/sdE1/arenas
>
>Initialize the index sections:
>
>venti/fmtindex /dev/sdE1/arenas
>
>Read your current Fossil configuration:
>
>fossil/conf /dev/sdE0/fossil > fossil.conf
>
>Edit fossil.conf, it should look like something like:
>
>fsys main config /dev/sdE0/fossil
>fsys main open -V -c 3000
>
>Remove -V to open and srv if needed, then
>add the following line to enable automatic
>snapshots:
>
>fsys main snaptime -s 60 -a 0530 -t 2880
>
>(snapshot at 05:30, temporary snapshot each
> hour and discarded after two days)
>
>Write your new Fossil configuration:
>
>fossil/conf -w /dev/sdE0/fossil < fossil.conf
>
>Mount your 9fat file system, then add the following line
>to the file /n/9fat/plan9.ini:
>
>venti=#S/sdE1/arenas
>
>After rebooting, the current Fossil content will be dumped
>to Venti.
>
>--
>David du Colombier




^ permalink raw reply	[flat|nested] 20+ messages in thread
* [9fans] Fossil fs recovery
@ 2011-08-10 12:35 Bernd Maier
  2011-08-10 15:25 ` Steve Simon
  0 siblings, 1 reply; 20+ messages in thread
From: Bernd Maier @ 2011-08-10 12:35 UTC (permalink / raw)
  To: 9fans

Hello,

today there were problems with the Fossil FS on my Plan9 test
installation. I got first something like:

"iostate is 2 in blockwrite"

I did than the following steps.

I would like to ask if this is the right way to fix a Fossil FS? I
am new to
Plan9 but I come from the Unix world and this was close to my Unix
experience.

Regards,
Bernd


What I did:

con -l /srv/fossil
prompt: fsys main
main: check

main: check
checking epoch 1...
check: visited 1/1377184 blocks (0%)
check: visited 13772/1377184 blocks (1%)
check: visited 27543/1377184 blocks (2%)
check: visited 41314/1377184 blocks (3%)
check: visited 55085/1377184 blocks (4%)
fsys blocks: total=1377184 used=63411(4.6%) free=1308340(95.0%)
lost=5433(0.4%)

error: source has been removed: /active/sys/src/fs/wrens/wrens.8 ->
72
error: source has been removed: /active/sys/src/fs/wrens/uidgid.8 -
> 47
error: source has been removed: /active/sys/src/fs/wrens/udp.8 ->
62
error: source has been removed: /active/sys/src/fs/wrens/trap.8 ->
25
error: source has been removed: /active/sys/src/fs/wrens/toy.8 ->
24
error: source has been removed: /active/sys/src/fs/wrens/timezone.h
-> 46
error: source has been removed: /active/sys/src/fs/wrens/time.8 ->
71
error: source has been removed: /active/sys/src/fs/wrens/sub.8 ->
45
error: source has been removed: /active/sys/src/fs/wrens/sntp.8 ->
61
error: source has been removed: /active/sys/src/fs/wrens/rawcopy.8 -
> 44
error: source has been removed: /active/sys/src/fs/wrens/proc.8 ->
43
error: source has been removed: /active/sys/src/fs/wrens/print.8 ->
42
error: source has been removed: /active/sys/src/fs/wrens/pci.8 ->
23
error: source has been removed: /active/sys/src/fs/wrens/pc.8 -> 22
error: source has been removed: /active/sys/src/fs/wrens/part.8 ->
54
...

main: check fix
...
error: source has been removed: /active/sys/src/fs/wrens/cga.8 ->
14
error: could not open source: /active/sys/src/fs/wrens/bootflp ->
75: corrupted file entry
error: source has been removed: /active/sys/src/fs/wrens/auth.8 ->
27
error: source has been removed: /active/sys/src/fs/wrens/ata.8 ->
13
error: source has been removed: /active/sys/src/fs/wrens/arp.8 ->
55
error: source has been removed: /active/sys/src/fs/wrens/aoe.8 ->
48
error: source has been removed:
/active/sys/src/fs/wrens/9wrensfs.gz -> 74
error: source has been removed: /active/sys/src/fs/wrens/9wrensfs -
> 73
error: source has been removed: /active/sys/src/fs/wrens/9p2.8 ->
26
error: source has been removed: /active/sys/src/fs/wrens/8253.8 ->
12
error: source has been removed: /active/sys/src/fs/wrens/8250.8 ->
11
fsck: 65 clri, 0 clre, 0 clrp, 5433 bclose


Next check:

main: check
checking epoch 1...
check: visited 1/1377184 blocks (0%)
check: visited 13772/1377184 blocks (1%)
check: visited 27543/1377184 blocks (2%)
check: visited 41314/1377184 blocks (3%)
check: visited 55085/1377184 blocks (4%)
fsys blocks: total=1377184 used=63411(4.6%) free=1313773(95.4%)
lost=0(0.0%)
error: non referenced entry in source /active/sys/src/fs/wrens[10]
error: non referenced entry in source /active/sys/src/fs/wrens[11]
error: non referenced entry in source /active/sys/src/fs/wrens[12]
error: non referenced entry in source /active/sys/src/fs/wrens[13]
error: non referenced entry in source /active/sys/src/fs/wrens[14]
error: non referenced entry in source /active/sys/src/fs/wrens[15]
error: non referenced entry in source /active/sys/src/fs/wrens[16]
error: non referenced entry in source /active/sys/src/fs/wrens[17]
error: non referenced entry in source /active/sys/src/fs/wrens[18]
error: non referenced entry in source /active/sys/src/fs/wrens[19]
error: non referenced entry in source /active/sys/src/fs/wrens[20]
error: non referenced entry in source /active/sys/src/fs/wrens[21]
error: non referenced entry in source /active/sys/src/fs/wrens[22]
error: non referenced entry in source /active/sys/src/fs/wrens[23]
error: non referenced entry in source /active/sys/src/fs/wrens[24]
error: non referenced entry in source /active/sys/src/fs/wrens[25]
error: non referenced entry in source /active/sys/src/fs/wrens[26]
error: non referenced entry in source /active/sys/src/fs/wrens[27]
error: non referenced entry in source /active/sys/src/fs/wrens[28]
error: non referenced entry in source /active/sys/src/fs/wrens[29]
error: non referenced entry in source /active/sys/src/fs/wrens[30]
error: non referenced entry in source /active/sys/src/fs/wrens[31]
...
error: non referenced entry in source /active/sys/src/fs/wrens[74]
fsck: 0 clri, 64 clre, 0 clrp, 0 bclose


Stop system

cpu% fshalt
syncing.../srv/fscons...
main: venti...
halting.../srv/fscons...fsys all sync
main sync: wrote 7 blocks
done halting

Restart again

cpu% con -l /srv/fscons
prompt: fsys main
main: check
checking epoch 1...
check: visited 1/1377184 blocks (0%)
check: visited 13772/1377184 blocks (1%)
check: visited 27543/1377184 blocks (2%)
check: visited 41314/1377184 blocks (3%)
check: visited 55085/1377184 blocks (4%)
fsys blocks: total=1377184 used=63217(4.6%) free=1313773(95.4%)
lost=194(0.0%)
fsck: 0 clri, 0 clre, 0 clrp, 194 bclose








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

end of thread, other threads:[~2011-08-14 17:55 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-10 16:21 [9fans] Fossil fs recovery Bernd Maier
2011-08-10 17:46 ` David du Colombier
2011-08-10 21:58 ` Steve Simon
2011-08-10 22:12   ` ron minnich
2011-08-11  8:11     ` David du Colombier
2011-08-11 13:46       ` David Leimbach
2011-08-11 13:56         ` Jack Norton
2011-08-11 15:37           ` David du Colombier
2011-08-11 15:15       ` Steve Simon
2011-08-11 15:30         ` David du Colombier
2011-08-13 19:12           ` geoff
2011-08-13 23:44             ` Lyndon Nerenberg (VE6BBM/VE7TFX)
2011-08-14  6:21               ` Steve Simon
2011-08-14 11:48                 ` Francisco J Ballesteros
2011-08-14 17:55                 ` David du Colombier
  -- strict thread matches above, loose matches on Subject: below --
2011-08-14 14:49 Bernd Maier
2011-08-12  9:53 Bernd Maier
2011-08-12 12:03 ` David du Colombier
2011-08-10 12:35 Bernd Maier
2011-08-10 15:25 ` Steve Simon

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