Obviously the by-id/by-path debate has been of fairly major concern on
this list over the last week or so.

Clearly, also, no distributor is interested in fixing it for the
currently-shipping distributions.

So I wrote a little tool to run post-install, which does nothing but
identify whether you have by-id disk paths in your fstab or zipl.conf.

If you do, it rewrites them to be by-path disk paths.  If you use the -
d option, it just prints the changed files to the screen.  Normal
operation is to leave it in /etc/whatever-by-path.  If you're feeling
brave, you can run it with -r and actually *replace* the files (this
will also invoke zipl if it needs to), and if you're feeling
*suicidal* you can run it with -c and -r together, and clean up all
the old files.  Please don't do this, and if you do it, don't tell me
about it.

Anyway: the current tool only exists for SLES10/s390x; it should be
easily adapted to any other distro's s390 or s390x release, and it
makes no sense whatsoever for non-s390(x) distros.  There's an RPM
package, the Perl script itself, and the spec file used to generate
the RPM package from the Perl script.

Don't use this as a model for either how to write Perl or spec files.
My Perl is dumb and ugly, and my spec files are created my randomly
flailing at the keyboard until it works.  However, the current package
works for me.

That said: NO WARRANTY EXPRESS OR IMPLIED.  Even if it's Friday and
you've had plenty of cough syrup, don't run this in replace mode
without trying it a couple times and making sure you like the output
you get, and don't run it with -c -r, period.  And if you replace
zipl.conf by hand, don't forget to actually *run* zipl before you
reboot.

http://download.sinenomine.net/sane-dasd-update

Enjoy!

Adam

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to