On Thursday 25 January 2007 11:17, Jim Moling wrote:
>... If so, I was wondering if there is a way to update the zipl.conf
>from a VM-based display since I don't have IP connectivity to the server at
>this point to use putty and the like - or is this why I need to run a
>recovery system and chroot into the problem server environment - so I can
>make this update & issue the mkinitrd & zipl commands? If I can use the VI
>line editor to accomplish this from the VM display, for example, does
>someone know how to do this (what commands will work)?
Well, you don't have to rely on those new-fangled, "visually-oriented" tools
like vi, you can go old-school. :-) Edit your /etc/zipl.conf from the
console using sed(1) or ed(1). Neither of these need any character
positioning functionality from the terminal, so they work fine from the
console.
To use sed, try something like this (assuming there is no "dasd=" option in
your "parameters" line, but there is a parameters line):
# sed '/parameters[ \t]*=/s/"/"dasd=100-104 /' /etc/zipl.conf > /tmp/zipl.conf
# cat /tmp/zipl.conf # So you can see your change to make sure it worked.
# mv /tmp/zipl.conf /etc/zipl.conf
Or with ed (all but the first line are input to ed):
# ed /etc/zipl.conf
/parameters[ \t]*=
s/"/"dasd=100-104/p
w
q
You might have to tweak the regular expressions to match what is in your
zipl.conf, but the above works on my SLES9 box. Good luck!
- MacK.
-----
Edmund R. MacKenty
Software Architect
Rocket Software, Inc.
Newton, MA USA
----------------------------------------------------------------------
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