Re: sane-dasd-update

2008-08-20 Thread Adam Thornton

On Aug 18, 2008, at 7:11 AM, Mark Perry wrote:


Adam Thornton wrote:
SNIP

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


Hello Adam,
I had an old(er) system which still had by-id rather than by-path so I
downloaded your perl script and gave it a whirl - perfect! as shown
by a
diff and an ls command:



...


Thanks for a very useful tool :-)


Thanks.  Glad you find it useful!

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


Re: sane-dasd-update

2008-08-18 Thread Mark Perry
Adam Thornton wrote:
SNIP
 http://download.sinenomine.net/sane-dasd-update

Hello Adam,
I had an old(er) system which still had by-id rather than by-path so I
downloaded your perl script and gave it a whirl - perfect! as shown by a
diff and an ls command:


ihlscob0:~ # diff /etc/fstab /etc/fstab-by-path
1c1
 /dev/disk/by-id/ccw-IBM.7500029410.a840.04-part1 /
ext3   data=journal,noatime,acl,user_xattr1 1
---
 /dev/disk/by-path/ccw-0.0.1000-part1 /ext3
data=journal,noatime,acl,user_xattr1 1
10c10
 /dev/disk/by-id/ccw-IBM.7500029410.a840.04-part2 swap
swap   pri=200 0
---
 /dev/disk/by-path/ccw-0.0.1000-part2 swap swap
pri=200 0
ihlscob0:~ #

ihlscob0:~ # ls -la /dev/disk/by-path/ccw-0.0.1000-part1
lrwxrwxrwx 1 root root 12 2008-07-30 18:06
/dev/disk/by-path/ccw-0.0.1000-part1 - ../../dasda1
ihlscob0:~ # ls -la /dev/disk/by-path/ccw-0.0.1000-part2
lrwxrwxrwx 1 root root 12 2008-07-30 18:06
/dev/disk/by-path/ccw-0.0.1000-part2 - ../../dasda2
ihlscob0:~ #

Thanks for a very useful tool :-)

mark

--
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


sane-dasd-update

2008-08-15 Thread Adam Thornton

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