an102lsg

Upload: ssuresh19747745

Post on 02-Jun-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/10/2019 an102lsg

    1/20

    AIX Basics

    (Course code AN10)

    Lab Setup Guide forClassroom DeliveryERC 2.0

    6.0

    over

    Front cover

  • 8/10/2019 an102lsg

    2/20

    Lab Setup Guide for Classroom Delivery

    August 2011 edition

    The information contained in this document has not been submitted to any formal IBM test and is distributed on an as is basis without

    any warranty either express or implied. The use of this information or the implementation of any of these techniques is a customer

    responsibility and depends on the customers ability to evaluate and integrate them into the customers operational environment. While

    each item may have been reviewed by IBM for accuracy in a specific situation, there is no guarantee that the same or similar results will

    result elsewhere. Customers attempting to adapt these techniques to their own environments do so at their own risk.

    Copyright International Business Machines Corporation 2010, 2011.

    This document may not be reproduced in whole or in part without the prior written permission of IBM.

    Note to U.S. Government Users Documentation related to restricted rights Use, duplication or disclosure is subject to restrictions

    set forth in GSA ADP Schedule Contract with IBM Corp.

    Trademarks

    The reader should recognize that the following terms, which appear in the content of this

    training document, are official trademarks of IBM or other companies:

    IBM is a registered trademark of International Business Machines Corporation.

    The following are trademarks of International Business Machines Corporation in the United

    States, or other countries, or both:

    Adobe is either a registered trademark or a trademark of Adobe Systems Incorporated in

    the United States, and/or other countries.

    Intel is a trademark or registered trademark of Intel Corporation or its subsidiaries in the

    United States and other countries.

    Linux is a registered trademark of Linus Torvalds in the United States, other countries, orboth.

    Windows is a trademark of Microsoft Corporation in the United States, other countries, or

    both.

    UNIX is a registered trademark of The Open Group in the United States and other

    countries.

    Java and all Java-based trademarks and logos are trademarks or registered trademarks of

    Oracle and/or its affiliates.

    Other product and service names might be trademarks of IBM or other companies.

    AIX 5L AIX 6 AIX

    AS/400 MVS Power

    POWER System p

  • 8/10/2019 an102lsg

    3/20

    Lab Setup Guide for Classroom Delivery

    6.0

    OC

    Course materials may not be reproduced in whole or in part

    without the prior written permission of IBM.

    Copyright IBM Corp. 2010, 2011 Contents iii

    Contents

    Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v

    Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii

    Requirements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Hardware requirements for a full class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Hardware required whatever the number of students: . . . . . . . . . . . . . . . . . . . . . . . . . 1Hardware requirements for one team lab set (2 students) . . . . . . . . . . . . . . . . . . . . . . 2

    Setup instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3Configuration information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3Software requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3AIX installation instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6AIX configuration tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

    Verification procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

    Course image information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Image information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

  • 8/10/2019 an102lsg

    4/20

    Lab Setup Guide

    Course materials may not be reproduced in whole or in part

    without the prior written permission of IBM.

    iv AIX Basics Copyright IBM Corp. 2010, 2011

  • 8/10/2019 an102lsg

    5/20

    Lab Setup Guide for Classroom Delivery

    Course materials may not be reproduced in whole or in part

    without the prior written permission of IBM.

    Copyright IBM Corp. 2010, 2011 Trademarks v

    6.0

    MK Trademarks

    The reader should recognize that the following terms, which appear in the content of this

    training document, are official trademarks of IBM or other companies:

    IBM is a registered trademark of International Business Machines Corporation.

    The following are trademarks of International Business Machines Corporation in the United

    States, or other countries, or both:

    Adobe is either a registered trademark or a trademark of Adobe Systems Incorporated in

    the United States, and/or other countries.

    Intel is a trademark or registered trademark of Intel Corporation or its subsidiaries in the

    United States and other countries.Linux is a registered trademark of Linus Torvalds in the United States, other countries, or

    both.

    Windows is a trademark of Microsoft Corporation in the United States, other countries, or

    both.

    UNIX is a registered trademark of The Open Group in the United States and other

    countries.

    Java and all Java-based trademarks and logos are trademarks or registered trademarks of

    Oracle and/or its affiliates.

    Other product and service names might be trademarks of IBM or other companies.

    AIX 5L AIX 6 AIX

    AS/400 MVS Power

    POWER System p

  • 8/10/2019 an102lsg

    6/20

    Lab Setup Guide for Classroom Delivery

    Course materials may not be reproduced in whole or in part

    without the prior written permission of IBM.

    vi AIX Basics Copyright IBM Corp. 2010, 2011

  • 8/10/2019 an102lsg

    7/20

    Lab Setup Guide for Classroom Delivery

    Course materials may not be reproduced in whole or in part

    without the prior written permission of IBM.

    Copyright IBM Corp. 2010, 2011 Purpose vii

    6.0

    SGp Purpose

    This Lab Set Up Guideprovides directions for installing, preparing, and verifying the lab

    hardware and software in preparation for conducting a class of course AN10.

    The Requirements sections of this document can also be used to determine the specific

    hardware and software needed to conduct a class.

  • 8/10/2019 an102lsg

    8/20

    Lab Setup Guide for Classroom Delivery

    Course materials may not be reproduced in whole or in part

    without the prior written permission of IBM.

    viii AIX Basics Copyright IBM Corp. 2010, 2011

  • 8/10/2019 an102lsg

    9/20

    Lab Setup Guide for Classroom Delivery

    Course materials may not be reproduced in whole or in part

    without the prior written permission of IBM.

    Copyright IBM Corp. 2010, 2011 Requirements 1

    6.0

    SG Requirements

    The following tables list the hardware, software, and other materials needed to set up a lab

    to conduct a class of course AN10.

    Hardware requirements for a full class

    Table 1lists the number of machines, HMCs, and the resources required to conduct the

    class for the course class size (8 students)

    Hardware required whatever the number of students:

    Table 2: Hardware for running the class whatever number of student.

    Table 1: Power System(s) and HMCs for a full class of 8 students

    Number of

    machines

    Number of

    Teams per

    machine

    System

    Firmware

    level

    HMC level Number of

    HMCs

    Features

    1 4 AL710_099or late r

    7.7.2 SP0or later

    1

    Physical

    Ethernet

    Adapters

    Physical

    Fiber

    Channel

    Adapters

    Memory CPUs HEA MCS

    value

    (always 1?)

    HEA

    logical

    ports

    External

    Storage

    size

    1 1 2G 1 N/A N/A N/A

    VIO orAIX LPAR

    Logicalpartition

    name

    MemoryMin/Des/Max

    #VPMin/Des/Max

    CEMin/Des/Max/Cap/Uncap

    PhysicalEthernetAdapters

    FiberChannelAdapters

    VIO vios1 768/768/768 1/1/1/UnCap 1.0/1.0/1.0Uncap

    1 1

    Table 3: Storage LUNs required for the class whatever number of students

    LUN size

    LUN type

    (shared/

    not shared)

    Shared

    between:If not shared, zoned to: Function

    36 GB not shared N/A vios1(physical FC) rootvg of vios1

  • 8/10/2019 an102lsg

    10/20

    Lab Setup Guide for Classroom Delivery

    Course materials may not be reproduced in whole or in part

    without the prior written permission of IBM.

    2 AIX Basics Copyright IBM Corp. 2010, 2011

    Hardware requirements for one team lab set (2 students)

    Table 4 andTable 5 list the POWER system configuration needed to prepare one team

    lab set.When preparing for a class, multiply the items below by the number of lab sets

    needed for the class.

    Table 4: Hardware required for one Team lab set

    LPARs MemoryCE

    Min/Des/MaxCap/Uncap

    #VPMin/Des/Max

    PCIeEthernet

    Adapters

    FiberChannel

    Adapters

    HEA logical

    ports

    lpar1 768/768/768 0.2/.4/.4/Uncap 1/2/2/ N/A N/A N/A

    Table 5: Storage LUNs for one team lab set

    LUN size

    LUN type

    (shared/

    not shared)

    Shared between: zoned to: Function

    8GB not shared N/A vios1(physical FC) lpar1 rootvg

  • 8/10/2019 an102lsg

    11/20

    Lab Setup Guide for Classroom Delivery

    Course materials may not be reproduced in whole or in part

    without the prior written permission of IBM.

    Copyright IBM Corp. 2010, 2011 Setup instructions 3

    6.0

    SG Setup instructions

    Configuration information

    The following table describes the configurations of the team lab set.

    Table 6: LPARs virtual Storage Adapters configuration for one class lab set

    Note: If the Client LPAR/slot numberis not specified, then the connection will be Any.

    Virtual SCSI slots are indicated for information only. The CLP team might change that slots

    number to facilitate courses integration.

    Table 7lists the virtual Network Adapters configuration for one class lab set LPARs on the

    managed system(s). Duplicate the table if more than one managed system.Table 7: LPARs virtual Network Adapters configuration for one class lab set

    Note: The CLP team might change the adapter slots number and VLAN IDs to facilitate

    courses integration.

    Software requirements

    Table 8lists the images required for the course.

    Table 9lists the tools and software needed at the student workstation (usually a remotefacility such as citrix). When preparing for a class, be sure you have the correct number of

    licensed copies of any non-IBM software.

    LogicalPartition

    name

    Client LPAR name/Virtual SCSI slot #

    VIO server name /Virtual SCSI slot #

    vFCServer

    slot

    ClientLPAR /

    vFC slot

    VIO / FCadapter

    vios1 lpar1/33 vios1/33 N/A N/A N/A

    Logical Partitonname

    VirtualEthernet

    slot

    VLANID

    AccessExternalnetwork

    IEEE802.1Q

    HEAPhysicalPort ID

    HEAPort

    Group

    HEAlogicalPort ID

    vios1 11 1 Yes No N/A N/A N/Alpar1 12 1 No No N/A N/A N/A

    Table 8: mksysb image requirements

    Software image name Version (oslevel or ioslevel) lpar

    mk_an10_erc2_lpars_71TL0SP1 7100-00-01-xxx lpar1

    mk_an10_erc2_vios_2113FP23 2.1.1.3-FP-23 vios1

    Table 9: Software for one student lab set

    Software product Version Licensing requirement

    Firefox latest

    Putty recent

    VNC Viewer latest

  • 8/10/2019 an102lsg

    12/20

    Lab Setup Guide for Classroom Delivery

    Course materials may not be reproduced in whole or in part

    without the prior written permission of IBM.

    4 AIX Basics Copyright IBM Corp. 2010, 2011

    Table 10 lists the software needed to prepare the host or server machine. Those software

    are required to be in the mksysb image(s).

    Customization scripts requirements

    Table 11lists the scripts required for customizing the mksysb image during the lab setup.

    Those scripts are available in the CLP and used during image deployment. .

    Customization scripts code

    Scripts codes detail

    #!/bin/ksh

    LOGFILE=/tmp/an10_lpar.logexec 1>>$LOGFILE 2>&1

    print Begin run for $* on $(date)

    echo $course_code >/etc/course_code

    echo "$(date '+%Y/%m/%d %H:%M:%S') : Start of customization script for

    $course_code course"

    echo "

    # Create the .vnc directory and xstartup script within it

    mkdir $1/.vnc

    chown $2 $1/.vnc

    chgrp $3 $1/.vnc

    cat > $1/.vnc/xstartup

  • 8/10/2019 an102lsg

    13/20

    Lab Setup Guide for Classroom Delivery

    Course materials may not be reproduced in whole or in part

    without the prior written permission of IBM.

    Copyright IBM Corp. 2010, 2011 Setup instructions 5

    6.0

    SG chown $2 $1/.vnc/xstartup

    chgrp $3 $1/.vnc/xstartup

    chmod +x $1/.vnc/xstartup

    " >> /etc/security/mkuser.sys

    # The file /usr/share/man/whatis needs to be created

    catman -w

  • 8/10/2019 an102lsg

    14/20

    Lab Setup Guide for Classroom Delivery

    Course materials may not be reproduced in whole or in part

    without the prior written permission of IBM.

    6 AIX Basics Copyright IBM Corp. 2010, 2011

    AIX installation instructions

    Use the following information, in addition to the normal software installation procedures, to

    set up the lab software. Once the hardware is connected, you can begin software

    installation.

    Instructions on installing AIX can be obtained from the AIX Installation and Migration

    Guide. An online copy of the guide is available at:

    http://publib.boulder.ibm.com/infocenter/aix/v7r1/index.jsp

    When going through the AIX Installation Menus, verify that the AIXWindows and CDE

    filesets will be installed. Ensure that the Graphics Softwareoption is set to yes, and the

    Desktopoption is set to CDE.

    AIX configuration tasks

    __ 1. A series of normal user accounts now needs to be created, one for each student. If

    the number of students is known ahead of time, you can just create enough to

    satisfy the class size, plus two extra accounts. Otherwise create at least 24 user

    accounts. When creating the accounts divide them evenly across both AIX systems.

    Create the user accounts in the following manner:

    # mkuser team01

    A password will also have to be set for each user account. To set the password

    for the new user type:

    # passwd team01

    on the command line and press Enter. You will be prompted to enter a new

    password twice. Use the user name as the password.(team01/team01).

    Clear the ADMCHGflag that is set on the user account when the root user

    assigns the initial password for the user:

    # pwdadm -c team01

    Repeat the instructions until all users have been created and passwords set.

    Verification procedures

    Use the following information to verify the installation and configurations of the AIX

    systems.

    __ 1. Start up a terminal emulation application on one of the student PCs and connect to

    the IP address of the AIX system.

    __ 2. Login as one of the user accounts with the appropriate password.

  • 8/10/2019 an102lsg

    15/20

    Lab Setup Guide for Classroom Delivery

    Course materials may not be reproduced in whole or in part

    without the prior written permission of IBM.

    Copyright IBM Corp. 2010, 2011 Setup instructions 7

    6.0

    SG __ 3. To test the VNC server, run the vncservercommand from the userid. The program

    will ask you to enter a password (twice) for the VNC session, then exit. Run

    vncserveragain, and it will start the VNC server session and display the name and

    session number. (typically of the form hostname:1).

    Start a VNC client from the student PC and connect to the VNC session you just set

    up. The client should ask you for your password (the one you just set up), then

    display a window with the AIXWindows environment in it (large aixterm and xclock).

    Close the VNC client session by closing the window, then return to your terminal

    emulator application, and kill the VNC server by typing vncserver -kill

    where is the VNC session number. (for example, vncserver -kill :1)

    Log out of the user account.

    __ 4. Open a new terminal emulator window, and login as rootwith password ibmaix.

    __ 5. Display the contents of /etc/passwdto ensure the other user IDs were created by

    issuing the following command from the command line:

    # more /etc/passwd

    __ 6. Access online man pages.

    # man tar

    This should present information about the tarcommand if the documentation

    was installed correctly.

    __ 7. Log out of the rootaccount.

    __ 8. Verify Internet connectivity from the student PCs.

    Open a Web browser, and connect to the AIX 7.1 Infocenter located at:http://publib.boulder.ibm.com/infocenter/aix/v7r1/index.jsp

  • 8/10/2019 an102lsg

    16/20

    Lab Setup Guide for Classroom Delivery

    Course materials may not be reproduced in whole or in part

    without the prior written permission of IBM.

    8 AIX Basics Copyright IBM Corp. 2010, 2011

  • 8/10/2019 an102lsg

    17/20

    Lab Setup Guide for Classroom Delivery

    Course materials may not be reproduced in whole or in part

    without the prior written permission of IBM.

    Copyright IBM Corp. 2010, 2011 Course image information 9

    6.0

    SG Course image information

    Complete this section if a standard course image is being created for use during delivery of

    the course. Document information about the course image that will be needed by IT

    support, classroom providers, and instructors to install and verify the image for a class.

    Image information

    Platform: Intel [ ]

    AIX [X]

    AS/400 [ ]

    MVS/Host [ ]

    Network access: Intranet

    Network IP configuration: Static

    Image login information: User ID: rootPassword: ibmaix

  • 8/10/2019 an102lsg

    18/20

    Lab Setup Guide for Classroom Delivery

    Course materials may not be reproduced in whole or in part

    without the prior written permission of IBM.

    10 AIX Basics Copyright IBM Corp. 2010, 2011

  • 8/10/2019 an102lsg

    19/20

    6.0

    ackpgBack page

  • 8/10/2019 an102lsg

    20/20