ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzalm_5.4.0.1/rzalmbootpartition.htm

94 lines
6.0 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="task" />
<meta name="DC.Title" content="Recovering directly attached disks" />
<meta name="abstract" content="Read to learn how to recover directly attached disks." />
<meta name="description" content="Read to learn how to recover directly attached disks." />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzalmbootpartition" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Recovering directly attached disks</title>
</head>
<body id="rzalmbootpartition"><a name="rzalmbootpartition"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Recovering directly attached disks</h1>
<div><p>Read to learn how to recover directly attached disks.</p>
<div class="p">When you install Linux in a logical partition with directly attached
disk resources, the kernel is loaded to the A and B slots, not to *NWSSTG.
When you recover a Linux partition in this configuration (for example, when
you recover primary partition configuration data after you scratch the primary
partition), you must change the network server description of the Linux partition
in order to start from a kernel in the integrated file system (*STMF). After
you start the partition, you can use Linux commands to rewrite the Linux kernel
and enable the partition to be startable.</div>
<div class="section">To start a Linux partition on a directly attached disk and then write
the kernel so that you can start the system on subsequent re-starts, follow
these steps:</div>
<ol><li class="stepexpand"><span>Load a kernel in your integrated file system.</span></li>
<li class="stepexpand"><span>Run the Work with Configuration Status (WRKCFGSTS) command, and
specify network server (*NWS) as the configuration type. </span> A
list of network server descriptions appears.</li>
<li class="stepexpand"><span>Type <span class="uicontrol">8</span> to display the description in the
Option column next to the Linux partition you want to start. </span> A
description of that network server appears.</li>
<li class="stepexpand"><span>Type <span class="uicontrol">2</span> to edit in the Option column next
to Start source, Start stream file, and Start parameters.</span></li>
<li class="stepexpand"><span>Edit those fields so that they contain the following values:</span><ul><li>IPL source = *STMF</li>
<li>IPL stream file = <kbd class="userinput"><var class="varname">&lt;IFS path to your kernel&gt;</var></kbd>,
(for example, <kbd class="userinput">/home/kernels/vmlinux64</kbd>)</li>
<li>IPL parameters = <kbd class="userinput">root=/dev/sda<var class="varname">X</var></kbd>,
where <kbd class="userinput"><var class="varname">X</var></kbd> is equal to the disk partition
that your root file system is on. This is often sda1 or sda2.</li>
</ul>
</li>
<li class="stepexpand"><span>Save these changes.</span></li>
<li class="stepexpand"><span>Connect to the virtual console. Enter <kbd class="userinput">telnet <var class="varname">&lt;your
machine&gt;</var> 2301</kbd>.</span></li>
<li class="stepexpand"><span>Vary on the partition.</span></li>
<li class="stepexpand"><span>Log in to the partition.</span></li>
<li class="stepexpand"><span>If your server does not have a copy of the kernel that you want
to install, FTP it on to your server. You could even NFS share it off of the i5/OS<sup>®</sup>.</span></li>
<li class="stepexpand"><span>Write the kernel to your B slot by using the following command:
</span> <pre>dd if <var class="varname">&lt;path to your kernel name&gt;</var> = of=/proc/iSeries/mf/B/vmlinux bs=4096</pre>
This
command may take a while to complete.</li>
<li class="stepexpand"><span>Set the command line to the same value you used for the Start parameters
above. First, you may want to echo a large amount of space into the cmdline
file to make sure that any previous parameters are cleared. To do so, use
the following command: </span> <pre>echo root=/dev/sdax &gt; /proc/iSeries/mf/B/cmdline</pre>
</li>
<li class="stepexpand"><span>Echo your command line: </span> <pre>echo root=/dev/sdaX &gt; /proc/iSeries/mf/B/cmdline </pre>
</li>
<li class="stepexpand"><span>Verify that the command line was successfully entered by using
the following command: </span> <pre>cat /proc/iSeries/mf/B/cmdline</pre>
You
should see the same thing you echoed in above.</li>
<li class="stepexpand"><span>Shut down the partition by using the following command: </span> <pre>shutdown -h now</pre>
</li>
<li class="stepexpand"><span>Edit your network server description by using the Work with Configuration
Status (WRKCFGSTS) command as described in steps 2 and 3 above.</span></li>
<li class="stepexpand"><span>Set the Start source = <kbd class="userinput">B</kbd> and the Start stream
file = <kbd class="userinput">*NONE</kbd>.</span></li>
<li class="stepexpand"><span>Now you can vary on your partition and use the kernel installed
in the iSeries™ server
slot B.</span></li>
</ol>
</div>
</body>
</html>