• No results found

This step will activate the partition and start a virtual terminal using the HMC graphical Web interface.

In document AN143XSTUDHINT (Page 73-84)

Exercise instructions with hints

__ 6. This step will activate the partition and start a virtual terminal using the HMC graphical Web interface.

If you do not already have a graphical connection to your assigned HMC, use the web browser on your student workstations to establish one now.

__ a. The URL will be:

https://<IPaddress of HMC>

(Note the use of the SSL secure https protocol.)

__ b. When prompted about certificates, accept and trust them. You will also need to permit pop-ups.

__ c. Log in using your assigned HMC user ID and password.

__ d. Click your assigned managed system in the HMC GUI to obtain a list of the partitions.

__ f. Click the Open a terminal window or console session check box on the Activate Logical Partition window.

__ g. Click the Advanced button to boot a partition into SMS mode. In the Advanced window, override the boot mode and set it to SMS. Then click OK, and OK again, to activate the partition. Respond positively to any pop-ups concerning

EXempty __ h. If this is the first time you have established the virtual terminal connection, you will need to respond to series of security pop-ups. Respond to allow the

connection to continue. Be careful and read each prompt; sometimes you will see a final prompt that requires an answer of No in order to continue.

__ i. A virtual console window opens (you might need to bring it to the foreground). You might be asked to press 0 to select it as your console. Eventually, the SMS menu will be shown.

__ 7. Skip this, and the next two steps, if you used the HMC graphical user interface. This step will activate your new partition and start a virtual terminal using the HMC command line interface.

__ a. If you do not currently have an interactive ssh session to the HMC, establish one at this point and log in with your assigned administrative user name.

__ b. If you do not already have a window with a virtual terminal to your new LPAR, start one now. From the HMC command line, access your new LPAR by opening a virtual console session, as follows:

~> mkvterm -m <managed system> -p <your new LPAR> -OR-

~> vtmenu

When presented with the Managed Systems list, enter the number for your

server.

When presented with the Partitions list, enter the number for your new LPAR.

Since the new LPAR is not yet active, we do not expect to see anything in this virtual terminal at this point.

Note

Only one console terminal can be open at a time. If there is a session is still active, for which you do not have a window on your workstation, type:

~> rmvterm -m <managed system> -p <your assigned LPAR> and then repeat your attempt to open a new session.

x

__ 8. Open a second terminal emulation window and connect to your HMC using ssh protocol. Log in with your assigned HMC user ID.

__ 9. In your new window, activate your newly defined LPAR into SMS mode, as follows: ~> chsysstate -m <managed system name> -r lpar -o on -n <lpar name> \ -f normal -b sms

Make sure that you are booting the LPAR that you created and not your originally assigned LPAR. If you continue with the network boot using the originally provided

LPAR, the resulting installation will overwrite (and thus lose) files which are needed for later exercises.

Return to the window running your virtual terminal session with your LPAR.

The following instructions are the same regardless of whether you started a virtual terminal and activated the partition using a graphical or using the command line interface. In either case, you will use the SMS menu in the window that has the virtual terminal.

__ 10. In your virtual console session, you should see the system boot up into system firmware with an SMS Main Menu being displayed. Interact with the SMS menu to configure and test the network boot IP parameters.

__ a. Type 2 (and press Enter) to select 2 Setup Remote IPL.

__ b. Select the Interpartition Logical LAN adapter (or it might be labeled as a Virtual Ethernet Adapter).

__ c. If prompted to Select Internet Protocol Version, select option 1: IPv4. __ d. If prompted to Select Network Service then select option 1: BOOTP. __ e. On the Network parameters screen, select 1 IP Parameters.

__ f. In the next screen are four options. Type the number of each option you want to alter. For example, type 1, then press Enter to alter the Client IP address. Type in the appropriate values and press Enter again to submit the update. This information should have been recorded in Step 1 of this exercise.

• Enter your partition’s IP address for the Client IP address.

EXempty • Enter the network gateway address for the Gateway IP Address. • Enter the subnet mask.

__ g. Press Esc to exit to the Network Parameters menu.

__ h. Type 2 to select 2 Adapter Configuration. Disable the Spanning tree. Press 2, then 2 again to disable. Press Esc repeatedly to go back to the Network

Parameters menu. (Note that the name of the option is Spanning Tree Enable,

this name is not any indication of whether it is enabled or disabled).

__ i. On the Network parameters screen, select 3 to select 3 Ping Test. Type 1 and press Enter to execute the ping test. After a moment or two, it should say Ping Success if the ping test succeeded. Press any key to return to the Ping Test screen. If the ping test fails, check your IP parameters.

__ j. Press Esc (repeatedly) to escape out of the Ping Test screen and go back to the Main Menu.

__ 11. Configure SMS to boot using the Virtual Ethernet Adapter. __ a. Select 5 Select Boot Options.

__ b. Select 1 Select Install/Boot Device. __ c. Select 6 Network, 1 BOOTP.

__ d. Select the Interpartition Logical LAN (or it might be labeled Virtual Ethernet Adapter).

__ e. Select 2 Normal Mode Boot.

__ f. Select 1 Yes when asked Are you sure you want to exit System Management Services to exit SMS.

__ g. You should see indications of a network boot, including a tftp transfer byte count. Do not worry if the tftp has to restart a few times; this is not uncommon. Once the network boot image has been transferred, you should see the LPAR booting - using that image. Be patient. The progress codes shown on the HMC will go through a sequence such as: C46, C40, C42, C31.

__ 12. On reboot, you should see the following, (example only):

IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM STARTING SOFTWARE IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM PLEASE WAIT... IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM TFTP BOOT --- Server IP...10.6.51.118 Client IP...10.6.51.119 Gateway IP...10.6.51.1 Subnet Mask...255.255.255.0 ( 1 ) Filename.../tftpboot/sys264_lpar2 TFTP Retries...5 Block Size...512 FINAL PACKET COUNT = 30181 FINAL FILE SIZE = 15452160 BYTES Elapsed time since release of system processors: 1383 mins 25 secs --- Welcome to AIX. boot image timestamp: 16:47 01/14 The current time and date: 19:28:37 04/19/2013

processor count: 1; memory size: 640MB; kernel size: 23461769 boot device: /vdevice/l-lan@30000002:speed=auto,duplex=auto,10.6.51.118,,10.6.52 ---

EXempty __ 13. At the Please define the System Console window, select 1 and press Enter to use this terminal as the system console.

At the next prompt, select 1 again and press Enter to use English during the install. __ 14. You will now be at the Welcome to Base Operating System Installation and

Maintenance main menu. Select option 2 to review the Change/Show Installation

Settings and Install options. » Select option 2 and press Enter.

__ 15. It is important that we do an overwrite install on hdisk0. (It should be the only disk available, in this exercise.)

Check that the system settings are set to:

Method of Installation...New and Complete Overwrite Disk Where You Want to Install...hdisk0

If they are not set as specified, you will have an opportunity to correct them in the next step.

__ 16. In a more realistic environment, you would have a list of disks to choose from, and you cannot be sure that the installation utility will name the disks in the same order as the AIX operating system does. We should verify that hdisk0 is the disk we think it is.

__ a. Type 1 and press Enter to examine the System Settings.

__ b. If an operating system is detected on the selected disk, you will be prompted for the method of installation. If presented with a Change Method of Installation

panel, select New and Complete Overwrite option and then press Enter. __ c. On the Change Disk(s) Where You Want to Install panel, you will note that there

is no AIX location code. That is because the disks are being provided by the Virtual I/O Server.

Note

If you see multiple disks to choose from, stop and ask for assistance from your instructor. In this exercise, you should see only one disk. If you see multiple disks, it is likely that you started the wrong logical partition.

__ d. Type 77 and press Enter to view the Alternate Disk Attributes.

__ e. The first alternate disk attribute is the PVID. We cannot use this because hdisk0 does not have a PVID at this point; or even if it does, we likely do not know how to associate it with a particular disk in this situation.

__ g. Now you can see the physical location codes. This is a good unique identifier of the disk we are about to use.

__ h. Type 99 and press Enter to return to the Installation and Settings menu. __ 17. On the Installation and Settings menu, select 4 to proceed to the More options

(Software install options) panel. On the next panel, entering the number of the

software install option toggles between a yes and a no response. Answer no to both the Graphics Software (AIX Windows) and the Enable System Backups to install on any system options. This will vastly speed up the installation.

Install Options

1. Graphics Software... no 2. System Management Client Software... yes 3. Create JFS2 File Systems... yes 4. Enable System Backups to install any system... no (Installs all devices)

Then type 99 and press Enter to return to the Installation and Settings menu. __ 18. On the Installation and Settings menu, select 0 to proceed to install using these

settings. This will display the Overwrite Installation Summary. Finally, select 1 to

confirm and install the system.

The system should install in approximately 20-30 minutes depending on the network speed and traffic on the network. Your instructor will likely suggest either a break or that you start on the next unit while waiting.

» From the Installation and Settings menu, select 0 and press Enter. » From the Overwrite Installation Summary, select 1 and press Enter.

__ 19. When the system has completed installing, log in as the root user. Run the lspv command to see that your disk is in the rootvg volume group.

» # lspv

Congratulations, you have successfully completed an AIX BOS install into a partition.

__ 20. At this point, we want to return to using your originally assigned LPAR.

Execute a fast shutdown of the LPAR which you just installed (do not reboot). » # shutdown -F

__ 21. When AIX has halted, exit the AIX console session. » If you are using the HMC command line interface:

EXempty » If you are using the HMC graphic interface: Close the virtual terminal emulation window.

__ 22. When the LPAR is in a Not Activated state, activate your originally assigned LPAR to a normal multi-user mode.

» One way to do this is to follow the HMC command line interface procedure you used at the end of Exercise 6 (System startup and shutdown).

» Alternatively, you could use the HMC web interface to select your LPAR and then specify the Operation task of Activate.

__ 23. Exit the HMC.

» If using the command line interface: # exit

» If using the HMC graphic interface:

Click Logoff in the upper right portion of the web page.

EXempty

Exercise 9. Working with LVM

(with hints)

What this exercise is about

The purpose of this exercise is to give students the opportunity to work with the facility that manages physical and logical data storage, the Logical Volume Manager (LVM).

What you should be able to do

At the end of the exercise, you should be able to: • Create and manipulate volume groups

• Create and manipulate logical volumes • Mirror rootvg

• Explore and document the LVM environment

Introduction

In this exercise, you work extensively with the Logical Volume

Manager. First, you will create and manipulate volume groups followed by logical volumes. When you are comfortable with working with the Logical Volume Manager you will mirror the root volume group. Finally, you will work with LVM commands to query and document the

environment you have just created.

Feel free to use the command line, SMIT or the IBM director console to perform the following steps.

Exercise instructions with hints

Preface

Two versions of these instructions are available: one with hints and one without. You can use either version to complete this exercise. Also, do not hesitate to ask the instructor if you have questions.

General notes, applicable to all exercises:

Your instructor will provide you with instructions for accessing the remote environment. For example, this might involve using a web browser or Virtual Private Network (VPN). Your instructor will further provide you with all the details and login IDs required.

Unless otherwise stated, log in to systems (HMC/LPAR) using a terminal window (for example through PuTTY or a Linux command line).

You have the option of using the command line interface or SMIT to accomplish the tasks in this exercise.

On some terminal emulations, the function keys are not operative and you might need to substitute escape sequences. For example, instead of pressing F3, you might need to press Esc+3 for the same function.

» All hints are marked with a >> sign.

» The output shown in the answers is an example. Your output and answers based on the output might be different.

In document AN143XSTUDHINT (Page 73-84)