Re: Why doesn't background fsck work ?

2003-06-22 Thread Alexander Leidinger
On Thu, 19 Jun 2003 00:25:22 -0700
Terry Lambert <[EMAIL PROTECTED]> wrote:

> Then you reboot.
> 
> Then you start BG fsck again.
> 
> Then you panic again.
> 
> Repeat this until a human intervenes and manually runs a full FG
> fsck on the disk before letting it be used, and/or someone adds
> a count-down counter to the superblock,

I have a dejá vue... I think there was already a discussion on this
topic (and you participated in it)... and I think someone pointed out,
that we already have a mechanism which does a fg-fsck instead of a
bg-fsck in such a situation... but maybe someone just changed the Matrix
around me...

Bye,
Alexander.

-- 
   Reboot America.

http://www.Leidinger.net   Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Why doesn't background fsck work ?

2003-06-19 Thread Terry Lambert
[ ... BG fsck ... ]

> > I haven't got softupdates enabled, but I didn't want to enable it,
> > because I've heard that it isn't 100% reliable and I didn't want to lose
> > data
> 
> Theer have been no problems with softupdates in regard to data
> integrity in either 5.0 or 5.1 release. I do recall a couple of
> glitches at various times in current, probably prior to 5.0-Release.

If you end up with real disk corruption as a result of power
failure, a BG fsck will potentially not correct it.  The CG
bitmaps that are set that shouldn't be are effectively read-only,
and the snapshot permits you to fsck in the background.

However, this assumes that the only thing that's blown is the CG
bitmap.

If anything else is blowm then it's likely your system will panic
when it tries to use corrupt data in some pointer math or some
other use in the implementation of the FS in the kernel.  At this
point you panic.

Then you reboot.

Then you start BG fsck again.

Then you panic again.

Repeat this until a human intervenes and manually runs a full FG
fsck on the disk before letting it be used, and/or someone adds
a count-down counter to the superblock, and the on disk FS layout
changes yet again and becomes incompatible with older versions of
the kernel and fsck, both, and requires a fsck with a special flag
to "upgrade" the FS.

-- Terry
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Why doesn't background fsck work ?

2003-06-18 Thread Kevin Oberman
> From: Juan Rodriguez Hervella <[EMAIL PROTECTED]>
> Date: Wed, 18 Jun 2003 17:51:00 +0200
> Sender: [EMAIL PROTECTED]
> 
> On Wednesday 18 June 2003 17:39, Bernd Walter wrote:
> > On Wed, Jun 18, 2003 at 04:54:44PM +0200, Juan Rodriguez Hervella wrote:
> > > Hello!:
> > >
> > > I tried to make my Nvidia video card work yesterday, and everytime
> > > I launched the X system my computer hang up. So I had to
> > > make a hard reboot.
> > > (I think I will fix the Xs problem this night at home)
> > >
> > > But I've got another weird problem. :)
> > >
> > > The fsck of my partitions is always made on the foregroud,
> > > although I've heard about something like a delayed/background
> > > file system checker.
> > >
> > > Why is it always made on the foreground ?
> >
> > No softupdates enabled?
> 
> yes, you've got it !
> 
> I haven't got softupdates enabled, but I didn't want to enable it,
> because I've heard that it isn't 100% reliable and I didn't want to lose
> data

Theer have been no problems with softupdates in regard to data
integrity in either 5.0 or 5.1 release. I do recall a couple of
glitches at various times in current, probably prior to 5.0-Release.

There is an issue of combining softupdate and write cache. In the
event of a power failure, this could lead to a loss of data integrity.
But write-cache is dangerous even without softupdate.

In addition, because of the nature of softupdate, it is possible that
a file is created/updated shortly before a system failure. While data
corruption should not be an issue, the file may simply not be there
after the system re-boots or may be in an earlier (but still
consistent) state.

You should probably turn off write cache on any system that you think
might lose power. (And just how reliable is that UPS? Batteries (DC)
are probably much safer.) But I don't think soft updates are a
significant issue. (Others can feel free to tell me I'm an idiot.)

You should probably read Kirk's Usnix paper on soft updates. It's very
good.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]   Phone: +1 510 486-8634
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Why doesn't background fsck work ?

2003-06-18 Thread Bernd Walter
On Wed, Jun 18, 2003 at 05:51:00PM +0200, Juan Rodriguez Hervella wrote:
> On Wednesday 18 June 2003 17:39, Bernd Walter wrote:
> > On Wed, Jun 18, 2003 at 04:54:44PM +0200, Juan Rodriguez Hervella wrote:
> > > Hello!:
> > >
> > > I tried to make my Nvidia video card work yesterday, and everytime
> > > I launched the X system my computer hang up. So I had to
> > > make a hard reboot.
> > > (I think I will fix the Xs problem this night at home)
> > >
> > > But I've got another weird problem. :)
> > >
> > > The fsck of my partitions is always made on the foregroud,
> > > although I've heard about something like a delayed/background
> > > file system checker.
> > >
> > > Why is it always made on the foreground ?
> >
> > No softupdates enabled?
> 
> yes, you've got it !
> 
> I haven't got softupdates enabled, but I didn't want to enable it,
> because I've heard that it isn't 100% reliable and I didn't want to lose
> data

Softupdates works reliable from what I can tell.
Snapshots might have some issues and background fsck uses snapshots.

-- 
B.Walter   BWCThttp://www.bwct.de
[EMAIL PROTECTED]  [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Why doesn't background fsck work ?

2003-06-18 Thread Juan Rodriguez Hervella
On Wednesday 18 June 2003 17:39, Bernd Walter wrote:
> On Wed, Jun 18, 2003 at 04:54:44PM +0200, Juan Rodriguez Hervella wrote:
> > Hello!:
> >
> > I tried to make my Nvidia video card work yesterday, and everytime
> > I launched the X system my computer hang up. So I had to
> > make a hard reboot.
> > (I think I will fix the Xs problem this night at home)
> >
> > But I've got another weird problem. :)
> >
> > The fsck of my partitions is always made on the foregroud,
> > although I've heard about something like a delayed/background
> > file system checker.
> >
> > Why is it always made on the foreground ?
>
> No softupdates enabled?

yes, you've got it !

I haven't got softupdates enabled, but I didn't want to enable it,
because I've heard that it isn't 100% reliable and I didn't want to lose
data

Do you recommend me to switch it on ?

Thanks!

-- 
JFRH

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Why doesn't background fsck work ?

2003-06-18 Thread Bernd Walter
On Wed, Jun 18, 2003 at 04:54:44PM +0200, Juan Rodriguez Hervella wrote:
> Hello!:
> 
> I tried to make my Nvidia video card work yesterday, and everytime
> I launched the X system my computer hang up. So I had to 
> make a hard reboot.
> (I think I will fix the Xs problem this night at home)
> 
> But I've got another weird problem. :)
> 
> The fsck of my partitions is always made on the foregroud,
> although I've heard about something like a delayed/background
> file system checker.
> 
> Why is it always made on the foreground ?

No softupdates enabled?

-- 
B.Walter   BWCThttp://www.bwct.de
[EMAIL PROTECTED]  [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Why doesn't background fsck work ?

2003-06-18 Thread Juan Rodriguez Hervella
Hello!:

I tried to make my Nvidia video card work yesterday, and everytime
I launched the X system my computer hang up. So I had to 
make a hard reboot.
(I think I will fix the Xs problem this night at home)

But I've got another weird problem. :)

The fsck of my partitions is always made on the foregroud,
although I've heard about something like a delayed/background
file system checker.

Why is it always made on the foreground ?

-- 
JFRH

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"