27.12.2012 Views

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

==> #cp vi vmsg 0 1<br />

In single user mode, you are logged in as the root user. You can use the passwd command to<br />

set the root password. All of the file systems in /etc/fstab are mounted, but networking has<br />

not been started. To exit single user mode, you can type reboot, or enter init 3 to continue<br />

booting normally.<br />

13.5.2 Entering a rescue environment<br />

If you encounter errors mounting the root file system, or have other problems that prevent you<br />

from entering single user mode, you can enter a rescue environment. This environment loads<br />

a Linux image in memory, and does not attempt to mount the root file system.<br />

To enter a rescue environment, initiate an interactive Linux installation. Per<strong>for</strong>m the following<br />

steps to enter a rescue environment on the LINUX023 user ID:<br />

► Logon to LNXMAINT. Copy the RHEL6 EXEC file to a new file named RESCUE EXEC, and copy<br />

the user’s PARM-RH6 file to a new file (LINUX02 RESCUE in this example):<br />

==> copy rhel6 exec d rescue = =<br />

==> copy linux02 parm-rh6 d = rescue =<br />

► Edit RESCUE EXEC to point to the new RESCUE file:<br />

==> x rescue exec<br />

/* EXEC to punch a RHEL 6 install system to reader and IPL from it */<br />

Address 'COMMAND'<br />

'CP SPOOL PUN *'<br />

'CP CLOSE RDR'<br />

'CP PURGE RDR ALL'<br />

'PUNCH RHEL6 KERNEL * (NOHEADER'<br />

'PUNCH' Userid() 'RESCUE * (NOHEADER'<br />

'PUNCH RHEL6 INITRD * (NOHEADER'<br />

'CP CHANGE RDR ALL KEEP'<br />

'CP IPL 00C CLEAR'<br />

► Edit the LINUX02 RESCUE file, replacing any kickstart or VNC lines with the rescue<br />

command line option:<br />

==> x linux02 rescue d<br />

root=/dev/ram0 ro ip=off ramdisk_size=40000<br />

CMSDASD=191 CMSCONFFILE=LINUX02.CONF-RH6<br />

rescue<br />

► Logoff of LNXMAINT<br />

► Logon to LINUX02 and answer no to IPL from <strong>10</strong>0 question.<br />

► Increase the memory to 1 GB:<br />

==> def stor 1g<br />

00: STORAGE = 1G<br />

00: Storage cleared - system reset.<br />

► uIPL CMS and again answer no to IPL from <strong>10</strong>0 question.<br />

==> ipl cms<br />

z/<strong>VM</strong> V6.1.0 20<strong>10</strong>-09-23 11:31<br />

DMSACP723I A (191) R/O<br />

DMSACP723I C (592) R/O<br />

DIAG swap disk defined at virtual address 300 (64989 4K pages of swap space)<br />

DIAG swap disk defined at virtual address 301 (129981 4K pages of swap space)<br />

Do you want to IPL Linux from minidisk <strong>10</strong>0? y/n<br />

206 <strong>The</strong> <strong>Virtualization</strong> <strong>Cookbook</strong> <strong>for</strong> RHEL 6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!