Re: ext3 kernel bug, was: Compiling a kernel on an UltraSparc?

2002-12-26 Thread Andrew Hurt
On 12/23/02 19:46, Nathan E Norman wrote:


'man mount' tells you what the options _are_ ... finding out what the
options _do_ is a bit more work :)  I haven't actually found a great
reference for ext3 yet.


Thank you.

So, 'data=ordered' (default) means that the data is written to the file system 
before the (meta)data is written to the journal.

And 'data=journal' means that the data is written to the journal before it is 
written to the file system.

. . . and the journal is kind of a marker-database (the 'meta' part of the 
data) that keeps track of the whats and the wheres of the actual data.

I guess I'd better be exploring this further ;-)
--
andrew


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: ext3 kernel bug, was: Compiling a kernel on an UltraSparc?

2002-12-23 Thread Vincent Lefevre
On Mon, Dec 23, 2002 at 18:46:07 -0600, Nathan E Norman wrote:
> On Mon, Dec 23, 2002 at 07:28:21PM -0500, Andrew Hurt wrote:
[data=journal, etc]
> > Where might I find more info on the types/benefits of these options?
> 
> 'man mount' tells you what the options _are_ ... finding out what the
> options _do_ is a bit more work :)  I haven't actually found a great
> reference for ext3 yet.

And what are the benefits?

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web:  - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: ext3 kernel bug, was: Compiling a kernel on an UltraSparc?

2002-12-23 Thread Nathan E Norman
On Mon, Dec 23, 2002 at 07:28:21PM -0500, Andrew Hurt wrote:
> On 12/23/02 18:57, Nathan E Norman wrote:
> >On Mon, Dec 23, 2002 at 06:31:30PM -0500, Andrew Hurt wrote:
> >
> >>How do I tell what type of mode I currently have
> >
> >Look in your fstab (or vgrep the output of 'mount') and look at the
> >options in parens after the "type ext3" bit: if you don't see
> >"data=journal" (or some other "data=" option) then you are running the
> >default which is "data=ordered", which means you are in the clear.
> >
> >[example snipped]
> >
> >HTH,
> 
> Yes; I have (rw) for all.
> 
> Where might I find more info on the types/benefits of these options?

'man mount' tells you what the options _are_ ... finding out what the
options _do_ is a bit more work :)  I haven't actually found a great
reference for ext3 yet.

-- 
Nathan Norman - Incanus Networking mailto:[EMAIL PROTECTED]
  I retract that silly statement.  Somebody slap me.
  -- Roy Smith


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: ext3 kernel bug, was: Compiling a kernel on an UltraSparc?

2002-12-23 Thread Andrew Hurt
On 12/23/02 18:57, Nathan E Norman wrote:

On Mon, Dec 23, 2002 at 06:31:30PM -0500, Andrew Hurt wrote:


How do I tell what type of mode I currently have


Look in your fstab (or vgrep the output of 'mount') and look at the
options in parens after the "type ext3" bit: if you don't see
"data=journal" (or some other "data=" option) then you are running the
default which is "data=ordered", which means you are in the clear.

[example snipped]

HTH,


Yes; I have (rw) for all.

Where might I find more info on the types/benefits of these options?
--
andrew


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: ext3 kernel bug, was: Compiling a kernel on an UltraSparc?

2002-12-23 Thread Nathan E Norman
On Mon, Dec 23, 2002 at 06:31:30PM -0500, Andrew Hurt wrote:
> On 12/21/02 20:52, Craig Dickson wrote:
> >Frank Copeland wrote:
> >
> >>AIUI, the problem with ext3 filesystems applies only if they are in
> >>journal mode, which isn't the default. I've also seen suggestions that
> >>the bug exists in several versions of the 2.4.x kernels prior to
> >>2.4.20.
> >
> >You mean "data journaling" mode -- ext3 is always journaling, so your
> >statement as written makes no sense, though what you meant to say is
> >correct. The default "ordered" mode is not affected by the bug in
> >2.4.20.
> 
> Just a small aside, guys:
> 
> How do I tell what type of mode I currently have (I'm with ext3, and still 
> using kernel-2.4.19).

Look in your fstab (or vgrep the output of 'mount') and look at the
options in parens after the "type ext3" bit: if you don't see
"data=journal" (or some other "data=" option) then you are running the
default which is "data=ordered", which means you are in the clear.

For example:

  nnorman@aglarond:~ $ mount
  /dev/sda1 on / type ext3 (rw,errors=remount-ro)
  proc on /proc type proc (rw)
  /dev/sda2 on /usr type ext3 (rw,data=journal)
  /dev/sda4 on /var type ext3 (rw,data=journal)
  /dev/sda5 on /tmp type ext3 (rw)
  /dev/sda6 on /var/tmp type ext3 (rw)
  /dev/sda7 on /home type ext3 (rw)

HTH,

-- 
Nathan Norman - Incanus Networking mailto:[EMAIL PROTECTED]
  If you don't know what your program is supposed to do, you'd
  better not start writing it.
  -- Edsger Dijkstra


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: ext3 kernel bug, was: Compiling a kernel on an UltraSparc?

2002-12-23 Thread Andrew Hurt
On 12/21/02 20:52, Craig Dickson wrote:

Frank Copeland wrote:


AIUI, the problem with ext3 filesystems applies only if they are in
journal mode, which isn't the default. I've also seen suggestions that
the bug exists in several versions of the 2.4.x kernels prior to
2.4.20.


You mean "data journaling" mode -- ext3 is always journaling, so your
statement as written makes no sense, though what you meant to say is
correct. The default "ordered" mode is not affected by the bug in
2.4.20.


Just a small aside, guys:

How do I tell what type of mode I currently have (I'm with ext3, and still 
using kernel-2.4.19).

Thanks!
--
andrew


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: ext3 kernel bug, was: Compiling a kernel on an UltraSparc?

2002-12-21 Thread Craig Dickson
Frank Copeland wrote:

> AIUI, the problem with ext3 filesystems applies only if they are in
> journal mode, which isn't the default. I've also seen suggestions that
> the bug exists in several versions of the 2.4.x kernels prior to
> 2.4.20.

You mean "data journaling" mode -- ext3 is always journaling, so your
statement as written makes no sense, though what you meant to say is
correct. The default "ordered" mode is not affected by the bug in
2.4.20.

Craig




msg20446/pgp0.pgp
Description: PGP signature


ext3 kernel bug, was: Compiling a kernel on an UltraSparc?

2002-12-21 Thread Frank Copeland
On 21 Dec 02 19:15:50 GMT, Nathan E Norman <[EMAIL PROTECTED]> wrote:

> BTW, 2.4.20 is not the kernel you want if you run ext3 filesystems.

AIUI, the problem with ext3 filesystems applies only if they are in
journal mode, which isn't the default. I've also seen suggestions that
the bug exists in several versions of the 2.4.x kernels prior to
2.4.20.

-- 
Frank Copeland
Home Page: http://thingy.apana.org.au/~fjc/> 
Not the Scientology Home Page: http://xenu.apana.org.au/ntshp/>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Compiling a kernel on an UltraSparc?

2002-12-21 Thread Nathan E Norman
On Sat, Dec 21, 2002 at 01:36:53PM -0600, Gerald V. Livingston II wrote:
> Where did you see text regarding 2.4.20 problems with ext3? The box
> has ext2 right now but I was going to convert some time after the
> kernel upgrade.

See Herbert Xu's reply to my earlier post; 2.4.20 only barfs if you
are using "data=journal" on your ext3 filesystems.  Most people
aren't.

Best,

-- 
Nathan Norman - Incanus Networking mailto:[EMAIL PROTECTED]
  You see, the best way to solve a problem is to rigorously define
  it in terms of other people's problems and then run away quickly.
  -- Roland McGrath


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Compiling a kernel on an UltraSparc?

2002-12-21 Thread Nathan E Norman
On Sun, Dec 22, 2002 at 11:40:27AM +1100, Herbert Xu wrote:
> Nathan E Norman <[EMAIL PROTECTED]> wrote:
> > 
> > BTW, 2.4.20 is not the kernel you want if you run ext3 filesystems.
> > OTOH, 2.4.19 seems to not want to provide DRM support for the Creator.
> 
> 2.4.20 ext3 is OK as long as you don't enable data=journal (the default
> is data=ordered).

Hmm, you're absolutely correct.  Thank you!  I can now rest easier
running 2.4.20 on my workstations.  I'll have to stick with 2.4.19 on
the servers.

Best,

-- 
Nathan Norman - Incanus Networking mailto:[EMAIL PROTECTED]
  No.
  > Should I include quotations after my reply?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Compiling a kernel on an UltraSparc?

2002-12-21 Thread Herbert Xu
Nathan E Norman <[EMAIL PROTECTED]> wrote:
> 
> BTW, 2.4.20 is not the kernel you want if you run ext3 filesystems.
> OTOH, 2.4.19 seems to not want to provide DRM support for the Creator.

2.4.20 ext3 is OK as long as you don't enable data=journal (the default
is data=ordered).
-- 
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Compiling a kernel on an UltraSparc?

2002-12-21 Thread Gerald V. Livingston II
Nathan E Norman said:

> On Sat, Dec 21, 2002 at 01:40:51AM -0600, Gerald V. Livingston II
> wrote:
>> Is there any special info on getting a 2.4.20 kernel to compile
>> under
>> woody on a Sun UltraSparc-1 Creator.
>>
>> Yes, the Debian Way (tm) -- or not, I don't care. Right now it fails
>> at the "make dep" stage using either method. First it was some
>> missing
>> header files. Figured out where they were and got that fixed.
>>
>> Then it was "cannot execute cc1 -- no such file". Found it, linked
>> it
>> into /usr/bin. Now it an "invalid option to "cc1":
>>
>> "cc1   --mmedlow  no such option"
>>
>> Cascading errors, yuck.
>
> Did you follow the instructions found at
>
>   http://www.debian.org/ports/sparc/#kernelsun4u
>
> ?
>
> Note that you need to install package 'egcs64'.
>
> You should undo the link you created, and I'm nervous about whatever
> you did regarding "missing header files".  Please post the exact
> commands you issued and the errors you received.
>
> BTW, 2.4.20 is not the kernel you want if you run ext3 filesystems.
> OTOH, 2.4.19 seems to not want to provide DRM support for the Creator.
>
> I'm running 2.4.20 on an Ultra 30 w/Creator 3D, and 2.4.19 on an Ultra
> 60 headless.  Both compiled "the debian way" using source from
> kernel.org.
>

I'm working through the sparc page instructions again right now.
Appears to be a case of too many hands in the pot. The gentleman who
owns the box has been a RH user forever. He was alone with the system
overnight and it appears he was playing with aptitude and trying to
compile the kernel by hand the i386 way.

We had gcc packages from all over the place and links to who knows
what. egcs64 (which I HAD installed) was there, but not really.

I went through and --purge removed every gcc package I could without
removing the whole system. Reinstalled egcs64 then gcc-3* (which
pulled a lot of 2.95 back in). the compile of 2.4.20 is running now
and don't think I even saw any warnings.

Gotta love ssh though. I was getting really tired of running back and
forth between offices trying to fix that box. Now if the happy meal
driver will just hold up for a bit longer.

Where did you see text regarding 2.4.20 problems with ext3? The box
has ext2 right now but I was going to convert some time after the
kernel upgrade.

Thank you,

Gerald

-- 
Gerald
http://www.phorce1.com
http://www.buskatiers.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Compiling a kernel on an UltraSparc?

2002-12-21 Thread Nathan E Norman
On Sat, Dec 21, 2002 at 12:02:33AM -0800, nate wrote:
> I don't have personal experience with linux on sparc yet, Downloading
> the woody ISOs for it now and plan to install it on my ultra 1 probably
> tomorrow though.

Don't waste time with the ISOs.  Set up a RARP server and TFTP server
on an existing debian box, and do the netboot thing (details at the
debian website).  It's easy, fast, and works great.

-- 
Nathan Norman - Incanus Networking mailto:[EMAIL PROTECTED]
  For myself, I can only say that I am astonished and somewhat terrified at
  the results of this evening's experiments.  Astonished at the wonderful
  power you have developed, and terrified at the thought that so much hideous
  and bad music may be put on record forever.
  -- Sir Arthur Sullivan, message to Edison, 1888


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Compiling a kernel on an UltraSparc?

2002-12-21 Thread Nathan E Norman
On Sat, Dec 21, 2002 at 01:40:51AM -0600, Gerald V. Livingston II wrote:
> Is there any special info on getting a 2.4.20 kernel to compile under
> woody on a Sun UltraSparc-1 Creator.
> 
> Yes, the Debian Way (tm) -- or not, I don't care. Right now it fails
> at the "make dep" stage using either method. First it was some missing
> header files. Figured out where they were and got that fixed.
> 
> Then it was "cannot execute cc1 -- no such file". Found it, linked it
> into /usr/bin. Now it an "invalid option to "cc1":
> 
> "cc1   --mmedlow  no such option"
> 
> Cascading errors, yuck.

Did you follow the instructions found at

  http://www.debian.org/ports/sparc/#kernelsun4u

?

Note that you need to install package 'egcs64'.

You should undo the link you created, and I'm nervous about whatever
you did regarding "missing header files".  Please post the exact
commands you issued and the errors you received.

BTW, 2.4.20 is not the kernel you want if you run ext3 filesystems.
OTOH, 2.4.19 seems to not want to provide DRM support for the Creator.

I'm running 2.4.20 on an Ultra 30 w/Creator 3D, and 2.4.19 on an Ultra
60 headless.  Both compiled "the debian way" using source from
kernel.org.

-- 
Nathan Norman - Incanus Networking mailto:[EMAIL PROTECTED]
  See, if you were allowed to keep the money, you wouldn't create
  jobs with it. You'd throw it in the bushes or something.  But
  the government will spend it, thereby creating jobs.
  -- Dave Barry


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Compiling a kernel on an UltraSparc?

2002-12-21 Thread Gerald V. Livingston II

nate said:

> Gerald V. Livingston II said:
>> Is there any special info on getting a 2.4.20 kernel to compile
>> under
>> woody on a Sun UltraSparc-1 Creator.
>
>
> I'm not sure how closely you track the kernel but I've read several
> places that the "generic" kernel is rarely the choice for anything
> other then x86. the non x86 stuff is not always in sync, doesn't
> always
> work etc ...that said, where did you get the sources? I would expect
> the source package for whatever kernels debian has to build on the
> sparc. But if your getting a kernel directly from kernel.org it may
> not(without some patches).
>
> I don't have personal experience with linux on sparc yet, Downloading
> the woody ISOs for it now and plan to install it on my ultra 1
> probably
> tomorrow though.
>
> nate
>

I'll have to check to see if there are 2.4.20 source packages for
sparc. I know the kernel-image packages only go up to 2.4.19 so I had
grabbed the kernel source from kernel.org.

Be aware that anything less than 2.4.19 (woody installs 2.4.18) has
some problems with the happy meal ethernet interface. I googled around
and it seems it it a kernel problem that was solved at around
2.4.19.pre4 or so. I saw no reason to install a 2.4.19 kernel when
2.4.20 is out. Besides, I want to build a lean kernel with everything
we don't need stripped out.

Woody seems to have kernel-image up to 2.4.19 but kernel-source only
up to 2.4.18 for sparc. Guess I'll have to look in Sarge for the
kernel-source package.

I'll report progress.

Gerald

-- 
Gerald
http://www.phorce1.com
http://www.buskatiers.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Compiling a kernel on an UltraSparc?

2002-12-20 Thread nate
Gerald V. Livingston II said:
> Is there any special info on getting a 2.4.20 kernel to compile under
> woody on a Sun UltraSparc-1 Creator.


I'm not sure how closely you track the kernel but I've read several
places that the "generic" kernel is rarely the choice for anything
other then x86. the non x86 stuff is not always in sync, doesn't always
work etc ...that said, where did you get the sources? I would expect
the source package for whatever kernels debian has to build on the
sparc. But if your getting a kernel directly from kernel.org it may
not(without some patches).

I don't have personal experience with linux on sparc yet, Downloading
the woody ISOs for it now and plan to install it on my ultra 1 probably
tomorrow though.

nate




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Compiling a kernel on an UltraSparc?

2002-12-20 Thread Gerald V. Livingston II
Is there any special info on getting a 2.4.20 kernel to compile under
woody on a Sun UltraSparc-1 Creator.

Yes, the Debian Way (tm) -- or not, I don't care. Right now it fails
at the "make dep" stage using either method. First it was some missing
header files. Figured out where they were and got that fixed.

Then it was "cannot execute cc1 -- no such file". Found it, linked it
into /usr/bin. Now it an "invalid option to "cc1":

"cc1   --mmedlow  no such option"

Cascading errors, yuck.

Gerald

-- 
Gerald
http://www.phorce1.com
http://www.buskatiers.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]