9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Growing a venti
@ 2005-02-22 21:21 Dave Eckhardt
  2005-02-22 23:54 ` Steve Simon
  0 siblings, 1 reply; 12+ messages in thread
From: Dave Eckhardt @ 2005-02-22 21:21 UTC (permalink / raw)
  To: 9fans

It seems as if the steps to add data arenas are:

1. Format them with fmtarenas
2. Append them to the arena list in venti.conf
3. fmtindex -a

And the steps for adding index sections are:

1. Format with fmtisect
2. Add them to the list in venti.conf
3. fmtindex
4. buildindex

I assume that fmtindex and buildindex need to
be run with venti shut down... how do people
usually do this?  Boot against some other
file server, such as a TIP9UG account?

What size should be given to buildindex -B?
More or less all of physical memory?

Dave Eckhardt


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

* Re: [9fans] Growing a venti
  2005-02-22 21:21 [9fans] Growing a venti Dave Eckhardt
@ 2005-02-22 23:54 ` Steve Simon
  2005-02-23  0:36   ` [9fans] dosmnt arisawa
  0 siblings, 1 reply; 12+ messages in thread
From: Steve Simon @ 2005-02-22 23:54 UTC (permalink / raw)
  To: 9fans

What you describe is what what I understand you should do.

When I rebuilt my index I booted from cdrom; The ISO on sources
can boot as an install CD or as a standalone live system.
I didn't use the -B option to buildindex though it may
have completed faster if I had.

I wrote about my experiences in:

/n/sources/steve/Venti-rescue.tbl
http://www.quintile.net/Venti-rescue.html

-Steve


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

* [9fans] dosmnt
  2005-02-22 23:54 ` Steve Simon
@ 2005-02-23  0:36   ` arisawa
  2005-02-24 23:37     ` Russ Cox
  0 siblings, 1 reply; 12+ messages in thread
From: arisawa @ 2005-02-23  0:36 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

dosmnt does not work correctly.
because
term% echo /dev/sd*/dos*
/dev/sdC0/dos /dev/sdC0/dos /dev/sdD0/dos /dev/sdD0/dos

current codes are:

term% cat /bin/dosmnt
#!/bin/rc

rfork e
if(! ~ $#* 2){
         echo 'usage: dosmnt N mntpt' >[1=2]
         exit usage
}

x=(`{echo /dev/sd??/dos*})
if(test $#x -lt $1){
         echo 'not that many dos disks' >[1=2]
         exit usage
}

if(! test -f /srv/dos)
         dossrv >/dev/null </dev/null >[2]/dev/null

mount -c /srv/dos $2 $x($1)
term%


The fix is to replace last line
         mount -c /srv/dos $2 $x($1)
to
         g=$x(1)
         for(f in $x)
                 if(! ~ $f $g) g=($g $f)
         mount -c /srv/dos $2 $g($1)


Kenji Arisawa



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

* Re: [9fans] dosmnt
  2005-02-23  0:36   ` [9fans] dosmnt arisawa
@ 2005-02-24 23:37     ` Russ Cox
  2005-02-25  7:38       ` arisawa
  0 siblings, 1 reply; 12+ messages in thread
From: Russ Cox @ 2005-02-24 23:37 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> The fix is to replace last line

the real fix is not to bind '#S' onto /dev twice.
but i changed dosmnt anyway.

russ


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

* Re: [9fans] dosmnt
  2005-02-24 23:37     ` Russ Cox
@ 2005-02-25  7:38       ` arisawa
  0 siblings, 0 replies; 12+ messages in thread
From: arisawa @ 2005-02-25  7:38 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

> the real fix is not to bind '#S' onto /dev twice.

I agree.
But why Kernel shows same things twice?

Kenji Arisawa



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

* Re: [9fans] dosmnt
  2005-02-25 12:49       ` arisawa
@ 2005-02-25 15:51         ` Russ Cox
  0 siblings, 0 replies; 12+ messages in thread
From: Russ Cox @ 2005-02-25 15:51 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

ls /dev/sd*/dos | uniq
gives you a list of dos partitions.
the first is c:, the second is d:, etc.

russ


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

* Re: [9fans] dosmnt
  2005-02-25 10:42     ` Charles Forsyth
@ 2005-02-25 12:49       ` arisawa
  2005-02-25 15:51         ` Russ Cox
  0 siblings, 1 reply; 12+ messages in thread
From: arisawa @ 2005-02-25 12:49 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

> you might have imported devices from somewhere else
> to the local /dev

we have this problem...

term% cpu -h hera
hera% ls -l /dev
....
d-r-xr-xr-x M 8967 arisawa arisawa       0 Feb 16 12:57 /dev/sdC0
d-r-xr-xr-x S    0 bootes  bootes        0 Dec 28 14:07 /dev/sdC0
d-r-xr-xr-x M 8967 arisawa arisawa       0 Feb 16 12:57 /dev/sdC0
d-r-xr-xr-x M 8967 arisawa arisawa       0 Feb 16 12:57 /dev/sdC1
d-r-xr-xr-x M 8967 arisawa arisawa       0 Feb 16 12:57 /dev/sdC1
d-r-xr-xr-x M 8967 arisawa arisawa       0 Feb 16 12:57 /dev/sdD0
d-r-xr-xr-x S    0 bootes  bootes        0 Dec 28 14:07 /dev/sdD0
d-r-xr-xr-x M 8967 arisawa arisawa       0 Feb 16 12:57 /dev/sdD0
d-r-xr-xr-x M 8967 arisawa arisawa       0 Feb 16 12:57 /dev/sdD1
d-r-xr-xr-x M 8967 arisawa arisawa       0 Feb 16 12:57 /dev/sdD1
...
hera%

we see mixed devices.

what do we expect by
hera% c:
or by
hera% d:
?

Kenji Arisawa





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

* Re: [9fans] dosmnt
@ 2005-02-25 11:02 Aharon Robbins
  0 siblings, 0 replies; 12+ messages in thread
From: Aharon Robbins @ 2005-02-25 11:02 UTC (permalink / raw)
  To: 9fans

Maybe use    sort -u     to remove duplicates?

Arnold


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

* Re: [9fans] dosmnt
  2005-02-25 10:40   ` arisawa
@ 2005-02-25 10:42     ` Charles Forsyth
  2005-02-25 12:49       ` arisawa
  0 siblings, 1 reply; 12+ messages in thread
From: Charles Forsyth @ 2005-02-25 10:42 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 186 bytes --]

you might have imported devices from somewhere else
to the local /dev

generally it's best to avoid using # names unless it's
essentially to know you're dealing with a local thing.

[-- Attachment #2: Type: message/rfc822, Size: 2589 bytes --]

From: arisawa@ar.aichi-u.ac.jp
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] dosmnt
Date: Fri, 25 Feb 2005 19:40:26 +0900
Message-ID: <1d7da70b9aac8ec0df2c333c9c69d300@ar.aichi-u.ac.jp>

Hello,

I said:

> Kernel shows ghosts -- just my impression.

I considered the problem.
My conclusion is:
/dev is a virtual place.
therefore dosmnt should be fixed as bellow:
simply replace
x=(`{echo /dev/sd??/dos*})
to
x=(`{echo '#S'^/sd??/dos*})

Kenji Arisawa

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

* Re: [9fans] dosmnt
  2005-02-25  9:11 ` arisawa
@ 2005-02-25 10:40   ` arisawa
  2005-02-25 10:42     ` Charles Forsyth
  0 siblings, 1 reply; 12+ messages in thread
From: arisawa @ 2005-02-25 10:40 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

I said:

> Kernel shows ghosts -- just my impression.

I considered the problem.
My conclusion is:
/dev is a virtual place.
therefore dosmnt should be fixed as bellow:
simply replace
x=(`{echo /dev/sd??/dos*})
to
x=(`{echo '#S'^/sd??/dos*})

Kenji Arisawa



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

* Re: [9fans] dosmnt
  2005-02-25  7:58 YAMANASHI Takeshi
@ 2005-02-25  9:11 ` arisawa
  2005-02-25 10:40   ` arisawa
  0 siblings, 1 reply; 12+ messages in thread
From: arisawa @ 2005-02-25  9:11 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

>>> the real fix is not to bind '#S' onto /dev twice.
>> But why Kernel shows same things twice?
>
> This thread might be helpful:
> 	http://lists.cse.psu.edu/archives/9fans/2003-March/023167.html
>

Thanks. Great help! In the article Russ says:

> Ls tells the truth!  I see no value in causing it to lie.

I agree completely !
Ls should show as kernel told ls.
Therefore the problem is not in ls.
Kernel shows ghosts -- just my impression.

Kenji Arisawa



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

* Re: [9fans] dosmnt
@ 2005-02-25  7:58 YAMANASHI Takeshi
  2005-02-25  9:11 ` arisawa
  0 siblings, 1 reply; 12+ messages in thread
From: YAMANASHI Takeshi @ 2005-02-25  7:58 UTC (permalink / raw)
  To: arisawa, 9fans

> > the real fix is not to bind '#S' onto /dev twice.
> But why Kernel shows same things twice?

This thread might be helpful:
	http://lists.cse.psu.edu/archives/9fans/2003-March/023167.html
--




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

end of thread, other threads:[~2005-02-25 15:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-22 21:21 [9fans] Growing a venti Dave Eckhardt
2005-02-22 23:54 ` Steve Simon
2005-02-23  0:36   ` [9fans] dosmnt arisawa
2005-02-24 23:37     ` Russ Cox
2005-02-25  7:38       ` arisawa
2005-02-25  7:58 YAMANASHI Takeshi
2005-02-25  9:11 ` arisawa
2005-02-25 10:40   ` arisawa
2005-02-25 10:42     ` Charles Forsyth
2005-02-25 12:49       ` arisawa
2005-02-25 15:51         ` Russ Cox
2005-02-25 11:02 Aharon Robbins

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