* Re: xfs.fsck change that is unhelpful
2010-08-15 2:03 ` Linda Walsh
@ 2010-08-15 18:54 ` Hans-Peter Jansen
2010-08-15 22:43 ` Matthias Schniedermeyer
2010-08-16 1:55 ` Dave Chinner
2 siblings, 0 replies; 8+ messages in thread
From: Hans-Peter Jansen @ 2010-08-15 18:54 UTC (permalink / raw)
To: xfs
On Sunday 15 August 2010, 04:03:20 Linda Walsh wrote:
> Dave Chinner wrote:
> > On Sat, Aug 14, 2010 at 01:48:01PM -0700, Linda A. Walsh wrote:
> >> Some time ago, when I upgraded a system, I ran into problems when
> >> it hit a file system that was offline. It wasn't a critical
> >> partition, so it normally wouldn't have been an issue, but somewhere
> >> along the line
> >> someone mangled fsck.xfs.
> >
> > fsck.xfs is behaving identically to e2fsck when presented with an
> > invalid block device - it exits with an error of 8, which is defined
> > as "operational error" in the e2fsck man page.
>
> ---
> That may be fine for the ext2 fs, but I am asserting that in actual
> practice, with xfs, it does more harm than good.
Linda, you're barking at the wrong tree, IMHO.
If xfs would tolerate any configuration failure, a lot of people would
complain for a _good_ reason.
> > That sounds like a problem with the distro init scripts or you've
> > stuffed up your /etc/fstab config (i.e. fs_passno is wrong). Indeed,
> > setting fs_passno = 0 will cause the filesysetm fsck to be skipped
> > completely on boot, regardless of the fs type...
>
> ---
> Yes, you are right. They are setup to be check in the order
> I would want them mounted. But I don't see the benefit to being
> compliant with a checking mechanism for a file system that is
> actually needs fsck.
>
> It was long a *feature* of xfs, that xfs.fsck, was a noop.
>
> I don't see that making it fail in ways fsck does for a file
> system that *needs* fsck, is productive. Sure, it may be dotting i's
> and crossing t's, but in reality, is that a standard xfs should be
> living down to?
Of course, most of the attending audience is being bitten by such a
configuration failure, but to argue, that it is wrong behavior, if the init
code decides to stop booting, because some devices configured to mount on
boot failed to mount, is, hmm, incongruous..
By (current) definition, the init system has absolutely no business to
_weight_ the _severity_ of such a basic failure. Nowadays, there are enough
ways to delay the mount (noauto, autofs) for certain FS in order to avoid
such a failure - if that is what you want - but generally ignoring any fsck
failures, be them on journaling FS or not is not acceptable. And making xfs
special in the regard is even more incongruous.
Pete
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: xfs.fsck change that is unhelpful
2010-08-15 2:03 ` Linda Walsh
2010-08-15 18:54 ` Hans-Peter Jansen
@ 2010-08-15 22:43 ` Matthias Schniedermeyer
2010-08-16 1:55 ` Dave Chinner
2 siblings, 0 replies; 8+ messages in thread
From: Matthias Schniedermeyer @ 2010-08-15 22:43 UTC (permalink / raw)
To: Linda Walsh; +Cc: xfs-oss
On 14.08.2010 19:03, Linda Walsh wrote:
>
>
> Dave Chinner wrote:
>> On Sat, Aug 14, 2010 at 01:48:01PM -0700, Linda A. Walsh wrote:
>>> Some time ago, when I upgraded a system, I ran into problems when
>>> it hit a file system that was offline. It wasn't a critical
>>> partition, so it normally wouldn't have been an issue, but somewhere
>>> along the line
>>> someone mangled fsck.xfs.
>>
>> fsck.xfs is behaving identically to e2fsck when presented with an
>> invalid block device - it exits with an error of 8, which is defined
>> as "operational error" in the e2fsck man page.
> ---
> That may be fine for the ext2 fs, but I am asserting that in actual
> practice, with xfs, it does more harm than good.
I would suggest using autofs, so that you can keep fstab to an absolut
minimum.
Except for devices related to booting, i personally mount everything
either with autofs or manually(In that case it's normaly a one-shot
thing).
In my case that are all "non boot related" devices, DVD-drive, network
filesystems, some "tmpfs"es for playing, removable-devices, etc.
Bis denn
--
Real Programmers consider "what you see is what you get" to be just as
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated,
cryptic, powerful, unforgiving, dangerous.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: xfs.fsck change that is unhelpful
2010-08-15 2:03 ` Linda Walsh
2010-08-15 18:54 ` Hans-Peter Jansen
2010-08-15 22:43 ` Matthias Schniedermeyer
@ 2010-08-16 1:55 ` Dave Chinner
2010-08-16 2:26 ` Linda Walsh
2 siblings, 1 reply; 8+ messages in thread
From: Dave Chinner @ 2010-08-16 1:55 UTC (permalink / raw)
To: Linda Walsh; +Cc: xfs-oss
On Sat, Aug 14, 2010 at 07:03:20PM -0700, Linda Walsh wrote:
>
>
> Dave Chinner wrote:
> >On Sat, Aug 14, 2010 at 01:48:01PM -0700, Linda A. Walsh wrote:
> >>Some time ago, when I upgraded a system, I ran into problems when
> >>it hit a file system that was offline. It wasn't a critical
> >>partition, so it normally wouldn't have been an issue, but somewhere
> >>along the line
> >>someone mangled fsck.xfs.
> >
> >fsck.xfs is behaving identically to e2fsck when presented with an
> >invalid block device - it exits with an error of 8, which is defined
> >as "operational error" in the e2fsck man page.
> ---
> That may be fine for the ext2 fs, but I am asserting that in actual
> practice, with xfs, it does more harm than good.
For whom?
> >That sounds like a problem with the distro init scripts or you've
> >stuffed up your /etc/fstab config (i.e. fs_passno is wrong). Indeed,
> >setting fs_passno = 0 will cause the filesysetm fsck to be skipped
> >completely on boot, regardless of the fs type...
> ---
> Yes, you are right. They are setup to be check in the order
> I would want them mounted. But I don't see the benefit to being
> compliant with a checking mechanism for a file system that is
> actually needs fsck.
>
> It was long a *feature* of xfs, that xfs.fsck, was a noop.
It wasn't a feature - it was simply to ensure that initscripts
worked. There was simply no reason for it to do anything else until
someone discovered that their booot problems were caused by
non-standard behaviour. i.e. fsck wasn't catching non-existent
devices and telling the init scripts...
Fundamentally, a filesystem should integrate with common
infrastructure as best as possible, and if that means behaving like
other fsck programs for missing block devices, then IMO we
absolutely should be doing that.
> I don't see that making it fail in ways fsck does for a file
> system that *needs* fsck, is productive. Sure, it may be dotting i's
> and crossing t's, but in reality, is that a standard xfs should be
> living down to?
Being different for the sake of being different is misguided at
best. There's a time and place for differentiation between
filesystems, but interactions with init scripts is definitely
not that place.
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: xfs.fsck change that is unhelpful
2010-08-16 1:55 ` Dave Chinner
@ 2010-08-16 2:26 ` Linda Walsh
2010-08-16 9:44 ` Stan Hoeppner
0 siblings, 1 reply; 8+ messages in thread
From: Linda Walsh @ 2010-08-16 2:26 UTC (permalink / raw)
To: Dave Chinner; +Cc: xfs-oss
Dave Chinner wrote:
> On Sat, Aug 14, 2010 at 07:03:20PM -0700, Linda Walsh wrote:
>> It was long a *feature* of xfs, that xfs.fsck, was a noop.
>
> It wasn't a feature - it was simply to ensure that initscripts
> worked. There was simply no reason for it to do anything else until
> someone discovered that their booot problems were caused by
> non-standard behaviour. i.e. fsck wasn't catching non-existent
> devices and telling the init scripts...
----
Fine. If it's required to be break at the slightest
provocation, then great. (*fume*)
I'd love to see that logic applied to any system that's
supposed to be reliable -- like the human body. Scrape a finger.
Sorry -- can't gain consciousness. Must forever remain dormant until
someone fixes my scraped finger.
I found the computer coming up to a point where I could
remotely log into it and fix the problem to be useful far more often
than I've found it to be when it demands I sit at the console using
a limited tool set to repair some damage left over after some upgrade
or installation.
It's a pathological condition in either case. My preference
is to have it "do it's best", and not give up like a petulant child if
all the t's are not crossed and all the i's are not dotted just so.
That's why computers break so easily. I feel it is better design to have
them try to do what is intended -- even if limpingly.
But it is required for 'init'(5) scripts -- which, apparently
are on their way out and possibly won't be used to start the machine in
the next SuSE release. Perhaps the 'fall over and die' mentality is
part of that decision -- and FWIW, please don't take any of my words as
directed against *people*, involved in implementing the maladaptive behavior.
I realize there is a job that must be done. I just don't always agree
with a 1970's - 1980's era computer design philosphy that says give up at the
first error.
It only bites me when I've done some measure upgrade or install and haven't
patched fsck -> /bin/true yet -- which I only do for XFS, because for XFS, it's
the best possible action to take. If the device isn't there. It won't be mounted.
If it really is critical to the system booting up, then the system will be stopped
later. But on the off chance that /usr, /etc, /tmp...etc, are ok, the system might
come up into some state where it can be remotely diagnosed and fixed.
I *LOVE* XFS, because I know it won't leave me hung out to dry during a
boot due to a failed fsck. So if init scripts need such broken mentality, I
just need to remember to 1) patch it, and 2) as others have pointed out -- make changes
in the system state, so that a missing file system won't prevent bootup.
That said -- how many people, who have their /home or /usr/people partition
'local' to their machine, automount it? I admit to thinking of the fsck field as having
some meaning in the order in which file systems are mounted. I guess that order is
random now, though how I'm supposed to tell mount that '/home needs to be mounted
only after "/", but need to be mounted before /home/share, without some ordering
in fstab is something that is supposed to be specified....where?
I.e. isn't that field also the order in which file systems are mounted, or
is there some other place that order is maintained other than in fstab?
Sorry, am definitely showing my ignorance in this area.
Linda
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: xfs.fsck change that is unhelpful
2010-08-16 2:26 ` Linda Walsh
@ 2010-08-16 9:44 ` Stan Hoeppner
0 siblings, 0 replies; 8+ messages in thread
From: Stan Hoeppner @ 2010-08-16 9:44 UTC (permalink / raw)
To: xfs
Linda Walsh put forth on 8/15/2010 9:26 PM:
> That said -- how many people, who have their /home or /usr/people
> partition
> 'local' to their machine, automount it?
I do. Who wouldn't? And why not?
/dev/sda6 /home xfs defaults 0 0
/dev/sda7 /samba xfs defaults 0 0
> I admit to thinking of the fsck
> field as having
> some meaning in the order in which file systems are mounted. I guess
> that order is
> random now, though how I'm supposed to tell mount that '/home needs to
> be mounted
> only after "/", but need to be mounted before /home/share, without some
> ordering
> in fstab is something that is supposed to be specified....where?
The device mount order is defined by the lines in the fstab file. Devices are
mounted in order, top to bottom, as each line is read.
> I.e. isn't that field also the order in which file systems are
> mounted, or
> is there some other place that order is maintained other than in fstab?
> Sorry, am definitely showing my ignorance in this area.
No need to apologize. This is easily remedied by learning. Start here:
In general, file system mount order is determined by the order in which
the file systems appear in the fstab file. The exceptions to this ordering are
file systems mounted with the _netdev flag or filesystems that have their own
init scripts.
A file system with its own init script is mounted later in the
initialization process, after the file systems in the fstab file.
File systems mounted with the _netdev flag are mounted when the network
has been enabled on the system.
--
Stan
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 8+ messages in thread