quick start guide hp 11

Upload: alaa75

Post on 10-Apr-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/8/2019 Quick Start Guide HP 11

    1/28

    Revised 1/25/01

    Quick Start Guidefor Easy Setuphp-ux 11.0

    For more information, go to:

    www.hp.com/go/easy-setup

    If you have comments, suggestions,or questions, send email to:

    [email protected]

    We respond to all email.

    http://www.hp.com/go/easy-setuphttp://www.hp.com/go/easy-setup
  • 8/8/2019 Quick Start Guide HP 11

    2/28

  • 8/8/2019 Quick Start Guide HP 11

    3/28

    Revised 1/25/01

    Quick Start Guide for

    Easy Setup hp-ux 11.0

    Printed in USA

    Manufacturing Part Number: B5532-90001

    Copyright 2001 Hewlett-Packard Company

  • 8/8/2019 Quick Start Guide HP 11

    4/28

    4

    Legal Notice

    The information in this document is subject to change without notice. Hewlett-Packard makes no

    warranty of any kind with regard to this manual, including, but not limited to, the implied warranties of

    merchantability and fitness for a particular purpose. Hewlett-Packard shall not be held liable for errors

    contained herein or direct, indirect, special, incidental or consequential damages in connection with the

    furnishing, performance, or use of this material.

    Warranty

    A copy of the specific warranty terms applicable to your Hewlett-Packard product and replacement parts

    can be obtained from your local Sales and Service Office. Restricted Rights Legend. Use, duplication or

    disclosure by the U.S. Government is subject to restrictions as set forth in subparagraph (c) (1) (ii) of theRights in Technical Data and Computer Software clause at DFARS 252.227-7013 for DOD agencies,

    and subparagraphs (c) (1) and (c) (2) of the Commercial Computer Software Restricted Rights clause at

    FAR 52.227-19 for other agencies.

    HEWLETT-PACKARD COMPANY

    3000 Hanover Street

    Palo Alto, California 94304

    U.S.A.

    Use of this manual and media supplied for this pack is restricted to this product only. Additional copies

    of the programs may be made for security and back-up purposes only. Resale of the programs in their

    present form or with alterations, is expressly prohibited.

  • 8/8/2019 Quick Start Guide HP 11

    5/28

    5

    Copyright Notices

    Copyright 1983-2001 Hewlett-Packard Company, all rights reserved.

    Reproduction, adaptation, or translation of this document without prior written permission is prohibited,except as allowed under the copyright laws.

    Copyright 1979, 1980, 1983, 1985-99 Regents of the University of California

    This software is based in part on the Fourth Berkeley Software Distribution under license from the

    Regents of the University of California.

    Copyright 1980, 1984, 1986 Novell, Inc.

    Copyright 1986-1992 Sun Microsystems, Inc.

    Copyright 1985, 1986, 1988 Massachusetts Institute of Technology.

    Copyright 1989-1993 The Open Software Foundation, Inc.

    Copyright 1986 Digital Equipment Corporation.

    Copyright 1990 Motorola, Inc.

    Copyright 1990-1995 Cornell University

    Copyright 1989-1991 The University of Maryland

    Copyright 1988 Carnegie Mellon University

    Copyright 1991-1999 Mentat, Inc.

    Copyright 1996 Morning Star Technologies, Inc.

    Copyright 1996 Progressive Systems, Inc.

    Copyright 1997-2000 Isogon Corporation, All Rights Reserved

    Trademark Notices

    UNIX is a registered trademark in the United States and other countries, licensed exclusively through

    The Open Group.

    X Window System is a trademark of the Massachusetts Institute of Technology.

    OSF/Motif is a trademark of the Open Software Foundation, Inc. in the U.S. and other countries.

  • 8/8/2019 Quick Start Guide HP 11

    6/28

    6

    Open Source Software

    Some open source software is also provided with easy setup hp-ux 11.0. HP is providing this Open

    Source (Open Source Materials) solely as a customer convenience, at no charge. The Open Source

    Materials pre-installed on this system is provided to HP by third parties. HP has not tested and does not

    endorse, certify, or support any of the Open Source Materials. The Open Source Materials are provided

    as is.

    HEWLETT-PACKARD COMPANY MAKES NO WARRANTY OF ANY KIND WITH REGARD

    TO THE OPEN SOURCE MATERIALS, INCLUDING, BUT NOT LIMITED TO, ANY IMPLIED

    WARRANTY OF NON-INFRINGEMENT MERCHANTABILITY AND FITNESS FOR A

    PARTICULAR PURPOSE. HEWLETT-PACKARD COMPANY SHALL NOT BE LIABLE FOR

    ANY DIRECT, INDIRECT, GENERAL, INCIDENTAL, SPECIAL OR CONSEQUENTIAL

    DAMAGES IN CONNECTION WITH THE FURNISHING, PERFORMANCE OR USE OF THE

    OPEN SOURCE MATERIALS WHETHER BASED ON WARRANTY, CONTRACT OR OTHER

    LEGAL THEORY.

    HP is providing no support, error corrections, updates or new versions of the Open Source Materials. In

    no event, shall the Open Source Materials be provided to customer as an HP product or services pursuant

    to the terms of the customer purchase agreement, if any.

    Revision History

    January 2001, Edition 1.

  • 8/8/2019 Quick Start Guide HP 11

    7/28

    7

    Preface

    Quick Start Guide for Easy Setup hp-ux 11.0 describes how to set up your system with the pre-loaded

    operating system.

    This manual assumes that you have unpacked your system and connected the hardware as described in

    the instructions shipped with your product.

    Related Information Included with Your System

    For more information, refer to:

    CD Install for Easy Setup hp-ux 11.0

    HP Instant Information CD

    Problems, Questions, and Suggestions

    For more information, go to:

    www.hp.com/go/easy-setup

    If you have comments, suggestions, or questions, send email to:

    [email protected]

    We respond to all email.

    Documentation Conventions

    Unless otherwise noted in the text, this guide uses the following symbolic conventions.

    user-supplied values Italic words or characters in syntax and command descriptions represent values you

    must supply.

    screen display Information that the system displays, commands that you must use literally, and

    path names appear in this typeface.

    Enter Keycaps and user interface elements appear in this typeface.

  • 8/8/2019 Quick Start Guide HP 11

    8/28

    8

  • 8/8/2019 Quick Start Guide HP 11

    9/28

    9

    Contents

    Using the Easy Setup Instant Ignition System .................................................................................... 11Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

    Decide How to Proceed. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

    Instant Ignition Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

    For More Information on Easy Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

    Task A: Connect the System to the Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

    Whats Next?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

    Task B: Modify the File System Layout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

    Understanding the File System and Logical Volumes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

    For More Details on File System Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

    Understanding Swap Space. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

    Swap Priority. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17The Default File System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

    Using the System Administration Manager (SAM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

    Working with Logical Volumes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

    Creating a Logical Volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

    Modifying or Removing a Logical Volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

    Extending a Logical Volume with SAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

    Extending a Logical Volume in Single-User Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

    Working with Volume Groups. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

    Creating a Volume Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

    Extending or Removing a Volume Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

    Task C: Configure for Your NFS File System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23Understanding AutoFS and automounter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

    About the -hosts Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

    Configuring Automounting Using AutoFS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

    Configuring Automounting Using automounter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

    Configuring the nsswitch.conf File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

    Using Static Mounts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

    Task D: Perform Optional Modifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

  • 8/8/2019 Quick Start Guide HP 11

    10/28

    10

  • 8/8/2019 Quick Start Guide HP 11

    11/28

    11

    Using the Easy Setup Instant Ignition System

  • 8/8/2019 Quick Start Guide HP 11

    12/28

    Using the Easy Setup Instant Ignition System

    Introduction

    12

    Introduction

    Your Easy Setup hp-ux workstation comes with hp-ux preinstalled and configured. You can use

    this default setup, called Easy Setup Instant Ignition, or cold install the software yourself from the CD.

    The benefit of installing the system yourself is that you have more control over the file system layout.

    On the default system:

    The two disks are placed in one volume group (meaning they appear to the system as one disk).

    The disks are striped (meaning they are accessed simultaneously to improve performance).

    There is equal swap on both disks (which gives the same performance benefits as striping).

    This setup is explained in detail in The Default File System on page 18.

    Decide How to Proceed

    If you can use the default setup, go to the Instant Ignition Overview on page 13 in this manual.

    If you want to install from CD, go to CD Install Overview on page 11 in CD Install for EasySetup hp-ux 11.0.

    If you need to learn more, use the following tables to determine which method to use.

    Install from CD if you want to... Because... Refer to...

    Keep persistent data on one disk and

    system files on the other disk.

    You can organize your file system

    in a way that will make maintaining

    the system easier.

    CD Install for Easy

    Setup hp-ux 11.0.

    You do not need to

    use this guide.Delete or substantially change the

    preconfigured file system layout.

    You must do this prior to installing

    the system.

    Specify which software will be

    loaded on the system.

    You can tailor the software load to

    your environment.

    Use the default system if you... Because... Refer to...

    Want to get the system up as quickly

    as possible.

    The systems defaults let you get

    the system up fast.

    This guide.

    You may need to

    refer to CD Install

    for Easy Setup

    hp-ux 11.0.

    Had additional software preinstalled

    (such as compilers), but did not

    order a media kit.

    Installing from CD overwrites your

    preinstalled software. To reinstall

    the compilers and other add-on

    software, you need your media kit.

    MAKE A

    DECISION

    http://../cd_install/get_start.pdfhttp://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://../cd_install/get_start.pdf
  • 8/8/2019 Quick Start Guide HP 11

    13/28

    Using the Easy Setup Instant Ignition System

    Instant Ignition Overview

    13

    Instant Ignition Overview

    If youve chosen Easy Setup Instant Ignition, you will do the following:

    You may need to refer to CD Install for Easy Setup hp-ux 11.0 in certain situations.

    For More Information on Easy Setup

    For additional technical references and the most current version of this document, visit:

    www.hp.com/go/easy-setup

    If you questions, comments, or suggestions, please send email to:

    [email protected]

    We respond to all email.

    A Connect the systemto the network.

    Youll be connected in five easy steps. See Task A: Connect the System

    to the Network on page 14.

    B Modify your filesystem layout.

    The system can be used as soon as it is connected to

    the network. However, you will probably want to

    make some modifications to your file system.

    Note: If you want to increase the size of/, you must

    install from CD.

    See Task B: Modify the File

    System Layout on page 16.

    C Choose how tomount your NFS

    file system.

    You can mount NFS file systems two ways:

    With automounting. You can use either AutoFS

    (default) or automounter. AutoFS offers several

    advantages over automounter; however, someapplications may have problems with AutoFS.

    The older automounteris slower than AutoFS and

    limits data files to a maximum of 2 GB.

    With static mounts (using /etc/fstab). In

    some situations, static mounts are the best

    solution.

    See Task C: Configure for Your

    NFS File System on page 23.

    D Perform optional,but recommended,

    modifications to

    the setup.

    You may want to:

    Set up NIS+ client services.

    Add local users.

    Modify kernel parameters.

    See CD Install for Easy Setup

    hp-ux 11.0.

    http://cd_install_easy_setup.pdf/http://appendix.pdf/http://appendix.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://appendix.pdf/http://appendix.pdf/
  • 8/8/2019 Quick Start Guide HP 11

    14/28

    Using the Easy Setup Instant Ignition System

    Task A: Connect the System to the Network

    14

    Task A: Connect the System to the Network

    1. Gather system information.

    You need the:

    Hostname. The hostname must be 8 characters or fewer (for example, snoopy). The fully

    qualified domain name must be 64 characters or fewer (for example: snoopy.hp.com).

    IP address

    Subnetwork mask

    Gateway IP address

    DNS domain name (for example, hp.com)

    DNS server IP address

    NIS domain name if using NIS (for example, hp.com)

    Time

    Time zone

    New root password

    Network settings. Check with your network administrator to verify the duplex setting (full,

    half, or auto) and speed (10 or 100 Mbits/sec) of your network connection.

    2. Check connections and settings.

    If you are using a graphics monitor, make sure the keyboard, mouse, and monitor are attached

    properly.

    If you are using a serial (RS-232/terminal) console, you must disconnect the keyboard, mouse,

    and monitor from the system. Use common settings (baud rate = 9600, data bits = 8, parity =none, stop bits = 1, flow control = none). To connect from a Windows system or Sun system,

    see Working with Consoles and Serial Terminal Emulators on page 44 in CD Install for Easy

    Setup hp-ux 11.0 for more information.

    3. Turn on the system and check for activity.

    The LCD display on the system indicates various system checks, then displays either:

    Console is SER_1 for terminal (for example, DEC VT100 on serial port 1)

    Console is GRAPHx for graphics, where x is the slot number of the graphics card

    Shortly after this message appears, you should see activity on your monitor or terminal. Note the

    following:

    If there is no activity on your graphics monitor, press Tab. The system cycles through variousmonitor settings at 20-second intervals. When you see activity, press Enterto save the setting.

    If your graphics monitor still shows no activity, try connecting with a serial line. See Working

    with Consoles and Serial Terminal Emulators on page 44 in CD Install for Easy Setup hp-ux

    11.0.

    If you still do not see console activity, power off the workstation, verify your connections and

    settings, and try again.

    http://../cd_install/appendix.pdfhttp://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://../cd_install/appendix.pdfhttp://../cd_install/appendix.pdfhttp://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://../cd_install/appendix.pdfhttp://../cd_install/appendix.pdfhttp://../cd_install/appendix.pdf
  • 8/8/2019 Quick Start Guide HP 11

    15/28

    Using the Easy Setup Instant Ignition System

    Task A: Connect the System to the Network

    15

    4. Configure your network connection.

    You must perform this step if you are using the built-in network interface. For PCI LAN interfaces,

    see Setting Up an Optional Network Card on page 52 in CD Install for Easy Setup hp-ux 11.0.

    a. When prompted, press any key to stop the boot process.

    b. Execute the appropriate command:

    If your network uses auto detect, execute:

    co lanconfig auto

    If your network uses full or half duplex, execute:

    co lanconfig speed/duplex_setting

    wherespeedis 10 or100 (Mbits/sec), and duplex_settingis full_dx orhalf_dx.

    For example:

    co lanconfig 100/full_dx

    Check with your network administrator for the proper settings. Note that this only affects the

    built-in LAN interface.

    c. Execute the boot command to restart the boot process:

    bo

    d. When the system asks if you want to interact with IPL (initial program loader), press N.

    NOTE This is a very important step that will affect your system performance. If you did not stop the boot

    process in time, perform these steps by rebooting after you complete the system setup.

    5. Enter networking information when prompted.

    When you select the NIS server, enter a dot (.) in the NIS server field to indicate that you want to

    locate the NIS server automatically. You must enter the NIS domain name to allow the system toautodetect and use either the master or slave servers. After you enter the dot (.), the install

    interface will say (not set). Ignore this message.

    Whats Next?

    You can use the system as soon as it is connected to the network. However, you will likely want to:

    Modify the file system. The first two pages of the next section (Task B: Modify the File System

    Layout on page 16) explain how to set up and manage the file system.

    Configure NFS. See Task C: Configure for Your NFS File System on page 23 for a description

    of the two configuration methods.

    For example, if you are mounting /home using NFS, you may want to perform both of these tasks. Inthis case, you would comment out the mounting of/home in /etc/fstab. Then you could delete the

    corresponding logical volume used for/home locally, which would turn the disk space used by

    /home into unallocated space.

    http://../cd_install/appendix.pdfhttp://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://../cd_install/appendix.pdf
  • 8/8/2019 Quick Start Guide HP 11

    16/28

    Using the Easy Setup Instant Ignition System

    Task B: Modify the File System Layout

    16

    Task B: Modify the File System Layout

    Understanding the File System and Logical Volumes

    On hp-ux, disk space is managed through logical volumes. Logical volumes are implemented by the

    Logical Volume Manager (LVM), a set of commands for handling your system's entire disk storage.

    LVM combines one or more physical disk devices into a complete disk management system, allowing

    you to allocate disk space according to current need.

    Before you plan your disk layout, understand the following terms:

    Physical Volume a hard disk.

    Volume Group a collection of one or more physical volumes. Each collection appears to the

    operating system as a single disk. A physical volume can belong to only one volume group.

    Logical Volume a slice of a volume group (similar to a Sun Slice).

    Like disks, logical volumes can hold file systems, raw data areas, dump areas, or swap areas.Unlike disks, logical volumes let you choose their size when you create them and later expand that

    size. You can also spread logical volumes across multiple disks.

    Physical/LogicalExtents the smallest unit of space that LVM can allocate.

    Physical extent is the breakdown of the physical volume. Logical extent is the break-down of the

    Logical Volume. The default size for each of these is 4 MB. When you create file systems, swap,

    or raw slices, the system rounds to multiple of 4 MB.

    For More Details on File System Layout

    Go to docs.hp.com and search for striped or swap to access a wealth of information on these

    topics and on file system layout.

  • 8/8/2019 Quick Start Guide HP 11

    17/28

    Using the Easy Setup Instant Ignition System

    Task B: Modify the File System Layout

    17

    Understanding Swap Space

    Swap space is initially allocated when you configure your disks. There are three types of swap space:

    Device Swap This type of swap space occupies a logical volume (slice), which is then reserved

    expressly for paging and swapping.

    File System Swap You can use available space in a file system for swap space. Setting up such

    file system swap space allows for extra swap if there is occasional need for more than the allocated

    device swap space. It is used only when device swap space is insufficient.

    Pseudo-Swap You can use system memory as a third type of swap space. In hp-ux, swap space

    can consist of up to seven-eighths (87.5%) of system memory capacity.

    By default, pseudo-swap space is configured to be available. If you do not want to use it, re-set the

    tunable system parameter, swapmem_on, to 0 (off).

    Swap Priority

    When you add swap areas, you can assign a priority to each. Priorities range from 0 to 10:

    The system uses the swap areas with higher priority first. The system gives device swap priority over

    file system swap when each has the same priority.

    Follow these guidelines:

    If you have multiple swap devices on different physical hard disks and the swap devices have

    similar performance, assign each an identical priority. This allows the system to use each of them

    on an interleaved basis, which enhances performance.

    Assign higher priorities to the swap areas that have faster performance and lower priorities to areas

    that are slower.

    File system swap should only be used as an overflow to device swap.

    0 (highest priority)1 (default)

    10 (lowest priority)

  • 8/8/2019 Quick Start Guide HP 11

    18/28

    Using the Easy Setup Instant Ignition System

    Task B: Modify the File System Layout

    18

    The Default File System

    NOTE The CD Install for Easy Setup hp-ux 11.0 manual explains file system configuration in detail.

    Looking at the default file system layout will help you decide how to lay out your own file system.

    The pre-loaded system is configured as follows:

    The two hard disks are set up in one volume group.

    The two disks are grouped in a way that makes them appear to the system as one disk.

    The two disks are striped.

    Disk striping can increase the performance of applications that read and write large, sequentially

    accessed files. Data access is performed over the two disks simultaneously, resulting in a

    decreased amount or read/write time as compared to the same operation on a single disk.

    There is equal swap space on both disks.

    This allows the system to access swap areas on the two disks simultaneously, giving the same

    performance benefits as striping.

    Below are approximate file system sizes for a default system with two 18 GB disks striped and 4 GB

    RAM. Additionally, lvol2 and lvol4 are each 4096 MB and are used as swap space. About 22.8

    GB of disk space is unallocated.

    File system kbytes used avail %used Mounted on

    /dev/vg00/lvol3 143360 24837 111180 18% /

    /dev/vg00/lvol1 82480 18456 55776 25% /stand

    /dev/vg00/lvol9 827392 413053 388543 52% /var

    /dev/vg00/lvol8 811008 586050 210910 74% /usr

    /dev/vg00/lvol5 262114 1354 244557 1% /tmp

    /dev/vg00/lvol7 811008 499424 292132 63% /opt

    /dev/vg00/lvol6 24576 1114 22002 5% /home

    Figure 1 shows how this file system is managed with LVM.

    Figure 1 Default File System as Managed with LVM

    Disks 1 and 2 combine to

    create volume group 00.

    Disk 1

    18 GB

    Disk 218 GB

    Volume Group 00

    36 GB

    Volume group 00 is divided

    into 9 logical volumes.

    Logical Volume 2set up as swap space

    Logical Volume 1mounted on /stand

    (logicalvolumes5 through 9are mountedas described

    above)

    some diskspace isunallocated

    Logical Volume 3mounted on /

    Logical Volume 4set up as swap space

    http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/
  • 8/8/2019 Quick Start Guide HP 11

    19/28

    Using the Easy Setup Instant Ignition System

    Task B: Modify the File System Layout

    19

    Using the System Administration Manager (SAM)

    HPs System Administration Manager (SAM) helps you perform most system administration tasks.

    For example, SAM lets you add, modify, or delete file systems, logical volumes, or volume groups.

    To start SAM, login as root, then execute sam.

    The X-Windows version of SAM uses a graphical user interface. If you are using a terminal(non-graphics monitor), you will have the text version of SAM. Use the Tab and Arrow keys to

    navigate in the text version.

    Working with Logical Volumes

    Creating a Logical Volume

    You have at least one volume group: vg00. You may have created other volume groups during

    installation. You can use SAM to create, modify, or delete logical volumes within your volume

    groups.

    1. Start SAM. Go to Disks and File Systems, then go to Logical Volumes.

    2. Select Actions > Create.

    3. Click Select Volume Group.

    4. Select one of the existing volume groups, then clickOK.

    5. Create the logical volume. Go to Define New Logical Volume(s) and set the following:

    LV Name: the default naming convention is lvol1, lvol2, lvol3, etc.

    LV Size in MB: the approximate free MB remaining on the disk(s) is noted below the LV Size

    field.

    Usage: select File System, Swap Device, orNone (Raw) from the drop-down list, then

    specify the necessary information.

    If you select File System, specify the:

    Mount Directory (for example, /scratch or/project)

    Modify FS Defaults: VxFS (journaled) is the default. It is a Veritas file system, which can

    handle large volumes of data. HFS (non-journaled) is a plain UNIX file system (UFS). Set

    the following:

    Access: read/write or read only

    Allow Large Files: allows files larger than 2 GB (by default, this option is off; we

    recommend you turn it on)

    When to Mount: select Now and Every System Boot

    VxFS Options: use the defaults (see the online help for more information)

    If you select Swap Device, specify:

    Swap Priority

    Enablestatus

  • 8/8/2019 Quick Start Guide HP 11

    20/28

    Using the Easy Setup Instant Ignition System

    Task B: Modify the File System Layout

    20

    6. Go to Modify LV Defaults. Note the following:

    General: When you set up a swap device, select Use Contiguous Allocation for best

    performance (recommended, but not required). You can turn it off, however, if the LVM

    system cannot allocate that much contiguous space.

    Mirroring: Available only when you install the optional Mirror Disk System software package,which lets you create a mirror of the working disk. For more information, see the Mirror-UX

    documentation.

    Striping: Available if you have two or more disks in your volume group. If you use striping,

    we recommend you set the stripe size to 64 KB.

    7. Select Add and OK to exit the screens.

    The logical volume is now created.

    Modifying or Removing a Logical Volume

    Do not delete any logical volumes that hold standard hp-ux file systems, such as /, /opt, /stand,

    /tmp, /usr, or/var.

    1. Start SAM. Go to Disks and File Systems, then go to Volume Groups.

    2. Select the logical volume you want to modify or remove.

    3. Select either:

    Actions > Modify. Make your changes, then clickOK.

    Actions > Remove. ClickOK.

    Extending a Logical Volume with SAM

    You must unmount a logical volume before you extend it. Keep in mind that certain file systems

    cannot be unmounted while the system is in multiuser mode; you may need to boot to single-user

    mode.

    The / file system cannot be extended unless you have On-Line VxFS.

    If you purchased the On-Line VxFS software, you can extend a file system while it is mounted.

    For unmounted or advanced VxFS file systems, do the following:

    1. Start SAM. Go to Disks and File Systems, then go to Logical Volumes.

    2. Select the logical volume to extend.

    3. Select Actions > Increase Size. Enter the new size, then clickOK.

    NOTE You cannot decrease the size of a logical volume. To make a logical volume smaller, you must back

    up the data in the logical volume, remove the logical volume, recreate the volume with the reducedsize, and restore the data. (Make sure the reduced size is large enough to hold the data you need

    to restore.)

  • 8/8/2019 Quick Start Guide HP 11

    21/28

    Using the Easy Setup Instant Ignition System

    Task B: Modify the File System Layout

    21

    Extending a Logical Volume in Single-User Mode

    1. Boot the system to single-user mode:

    a. Boot the system. When prompted, press any key to stop the boot process.

    b. Restart the boot process. Execute:

    bo

    c. When asked if you want to interact with IPL (initial program loader), pressY.

    d. At the ISL prompt, execute:

    hpux -is

    2. After the system boots, execute the logical volume extend command:

    lvextend -L size_in_MB /dev/volume_group/logical_volume

    Example:

    lvextend -L 600 /dev/vg00/lvol5

    NOTE If you do not know the logical volume name, use cat to list /etc/fstab. This shows the logical

    volume names.

    3. Execute the extend file system command:

    extendfs -F FS_type /dev/volume_group/logical_volume

    Example:

    extendfs -F vxfs /dev/vg00/lvol5

    4. Reboot the system or execute:

    init 3 (to switch to multi-user mode)

  • 8/8/2019 Quick Start Guide HP 11

    22/28

    Using the Easy Setup Instant Ignition System

    Task B: Modify the File System Layout

    22

    Working with Volume Groups

    You can create new volume groups or extend existing volume groups if you have additional disks.

    Creating a Volume Group

    1. Start SAM. Go to Disks and File Systems, then go to Volume Groups.

    2. Select Actions > Create. The Create New Volume screen appears.

    3. Create the volume group. Use the interface to:

    Select New Volume Group Name. The default naming convention is: vg00 (root volume),

    vg01, vg02, vg03, etc.

    Select the disk(s) you want to add to the volume group.

    4. If desired, create logical volumes. Go to Define New Logical Volume(s) and specify the

    information required (see Creating a Logical Volume on page 19).

    5. Select OK and Add to exit the screens.

    Extending or Removing a Volume Group

    You can extend a volume group only if you have additional disks.

    You cannot remove the root volume group (vg00).

    1. Start SAM. Go to Disks and File Systems, then go to Volume Groups.

    2. Select the volume group you want to extend or remove.

    3. Select either:

    Actions > Extend, then Select the Disk(s) to add to the volume group. ClickOK.

    Actions > Remove. ClickOK.

  • 8/8/2019 Quick Start Guide HP 11

    23/28

  • 8/8/2019 Quick Start Guide HP 11

    24/28

    Using the Easy Setup Instant Ignition System

    Task C: Configure for Your NFS File System

    24

    Configuring Automounting Using AutoFS

    AutoFS is the default for both the HP factory preinstalled system and the CD-installed system. Follow

    these steps if you are using automounter and want to change to AutoFS.

    1. In /etc/rc.config.d/nfsconf, the following activates AutoFS:

    AUTOMOUNT=1AUTOFS=1

    2. Modify any scripts you have that kill and restart your automount (AutoFS rarely needs to be

    restarted). If you need to make changes to your automounting maps, run the

    /usr/sbin/automount program after modifying the maps.

    NOTE Make sure none of your maps are executable. If the x permission bit is set on any automounting

    map file, the system hangs when a mount is attempted. Set permissions to 644 (rw for owner, r for

    group and others).

    3. Increase the block transfer size to improve performance:

    a. On the HP client, increase the read and write block sizes from the default value of 8192 to

    32768:

    i. Create the /etc/auto_home file with the contents:

    * NFSServername:ExportDirectory/&

    For example:

    * dragon:/export/home/&

    ii. In the /etc/auto_master file, add the following line:

    /home auto_home -rsize=32768,wsize=32768

    NOTE Do not use tabs use only spaces. If you use a tab, AutoFS will not work.

    b. Make sure the /etc/nsswitch.conf file has the following:

    automount: files [NOTFOUND=continue] nis

    c. Restart AutoFS. Execute:

    /usr/sbin/automount

    NOTE AutoFS creates any nonexistent directories between the root directory and the configured mount point.

    For example, if you attempt to mount a remote file system on /dir1/dir2, AutoFS creates /dir1

    and /dir1/dir2, then mounts the remote file system on it.

  • 8/8/2019 Quick Start Guide HP 11

    25/28

    Using the Easy Setup Instant Ignition System

    Task C: Configure for Your NFS File System

    25

    Configuring Automounting Using automounter

    Follow these steps if you are using AutoFS and want to change to automounter.

    1. Stop the Automount daemon:

    /sbin/init.d/nfs.client stop

    2. In /etc/rc.config.d/nfsconf, set the following:

    AUTOMOUNT=1

    AUTOFS=0

    3. On the HP client, add the following line to /etc/auto_master:

    /home auto_home

    4. Specify the servers:

    a. Create /etc/auto_home.

    b. Add the following line to /etc/auto_home:

    * servername:/path/&If you have multiple servers, you must add this line for each server. For example:

    * dragon:/export/home/&

    * laser:/export/home/&

    5. Reboot the system.

    Configuring the nsswitch.conf File

    The nsswitch.conf file is put into place by Easy Setup. It must be set up according to your needs.

    The default file is commented for your guidance.

    Using Static Mounts

    To add a static NFS mount:

    1. Export the file system on the server.

    2. Login as root and execute: sam

    3. Go to Disk and File Systems, then to File Systems.

    4. Select Actions > Add A Remote File System > Using NFS.

    5. Enter the information, then clickOK.

    This mounts the remote file system and updates the /etc/fstab file to always mount on boot up

    (assuming you left when to mount defaults checked).

  • 8/8/2019 Quick Start Guide HP 11

    26/28

    Using the Easy Setup Instant Ignition System

    Task D: Perform Optional Modifications

    26

    Task D: Perform Optional Modifications

    The system is ready to be used. However, you may want to perform the following optional tasks,

    which are explained in CD Install for Easy Setup hp-ux 11.0.

    Set up NIS+ client services

    Add local users

    Modify kernel parameters

    http://cd_install_easy_setup.pdf/http://cd_install_easy_setup.pdf/http://appendix.pdf/http://appendix.pdf/http://cd_install_easy_setup.pdf/http://appendix.pdf/http://appendix.pdf/
  • 8/8/2019 Quick Start Guide HP 11

    27/28

  • 8/8/2019 Quick Start Guide HP 11

    28/28