Sylvain Robitaille <
s...@alcor.concordia.ca> writes:
>Please tell me you'll use "shutdown -h" from now on! Is it really worth
>all that aggravation to attempt to save a dozen keystrokes?
See below. :-)
>> ... software raid, and RAID-0 especially is hardly a recipe for
>> reliability.
>It begs the question, of course, "then why use it?" Now that said, I
>admire your perseverance and determination to find a working solution
>that would not risk losing your data.
There is a level of convenience involved in using RAID to map my
various hard drives together, together with the minor, but extant
speed benefits that I gain from using it. Together with an active
backup plan that will cover me in the case of a catastrophic failure
and the general personal experience of never having Software RAID be
at the actual point of failure (though I hold no illusions as to the
safety of software raid), I find it to be a convenient and workable
solution to the dual hard drive laptop that I a running.
This would be in contrast to the bcache system which I would really
like to use (this laptop has a third, smaller SSD drive meant for
caching), but which is far from reliable enough to let me consider
it. Software RAID, while hardly server-class reliable, is reliable
enough for use on my personal development workstation, provided
the appropriate backup plan is in place.
>> ... I was able to mount up the 14.0 slackware DVD and mount the drive
>> using an older 3.2.29 kernel in RW mode, rather than RO mode. This
>> replayed the journal logs, after which I was able to do a safer
>> xfs_repair without the -L option.
>Excellent solution. I've found the installation disk to be absolutely
>invaluable at times when a system isn't booting (for any of various
>reasons).
It is indeed. However, I was somewhat suprised to discover that
the xfs_repair program is not included in the initrd image. This
probably would have made it possible to accomplish this all from
the 3.2.29 kernel that I have on my hard drive, rather than using
the DVD disk/USB stick.
>Think you'll reconsider using the front panel ("power") button for
>shutting the system down, using a disk layout that you believe has
>a tendency towards unreliability, or even using a perhaps finnicky
>filesystem?
Well, I like the convenience of using the power button, but
after this experience, I went to figure out what command the
power button was actually triggering. As it turns out, it was
triggering an exact '/sbin/init 0' rather than what I would have
expected, namely, the standard '/sbin/shutdown -h now' command.
Given this, one of the things I will likely do in response to this
is to change it so that the power button will trigger a shutdown(1)
call rather than a direct 'init' call.
As for the disk layout, I think I mostly addressed that above, but
the short answer is that I will probably continue to use RAID-0 as it
has worked well and is reliable enough given the use case.
As for the file system, I am a big fan of the XFS file system. It has
been and I think still is quite reliable, and this fluke I think has
more to do with the power button behavior of my system than the
XFS file system. At any rate, the behavior that was triggered appears
to have a simple patch and I believe that patch will probably find
its way into the kernels, so I don't think this will be an issue in
the future. Moreover, I am quite happy with the performance and
behavior of the XFS file system, and Slackware provides explicit
and good support for it with its various tools. It's certainly one
of the workhorse file systems of Linux, with a lot of nice tools
around it. The same cannot be said for BTRFS, and EXT4 is sort of
weird in some ways. I think for the most part EXT4 is a nice file
system now, but I guess I still just like the XFS. In my experience,
the EXT4 file system has been much more finnicky than the XFS
filesystem, but on most of my systems I have not had a lot of file
system problems. I've been relatively blessed or lucky in the
absence of very serious filesystem or hard drive issues, and
careful enough that I have never lost critical data because of the
issues that I did have.
> What would you have done if the installation disk's
>huge.s kernel didn't have support for XFS? (I suppose the obvious
>answer would be to find a different "rescue" disk that does support
>it; never mind that question ... ;-)
So, if Slackware's system didn't have default support for XFS,
I probably would not be using it. However, it does, and I do. :-)
The installer supports XFS, as do the initrd generation scripts,
the init program itself, and all the userland tools for XFS are
shipped by default and included in the installation disk. If this
were not the case, then I would be much less likely to use it.
Slackware is actually really great about this, providing tools for
file systems like JFS, which I like, but which many other Linux
distributions do not support. The support for file systems throughout
the whole Slackware "life cycle" is really quite great, and one of
the nicer things about Slackware.