A P P E N D I X I |
Configuring an HP Server Running the HP-UX Operating System |
This appendix provides platform-specific host installation and configuration information to use when you connect a Sun StorEdge 3510 FC array or Sun StorEdge 3511 SATA array to an HP server running the HP-UX operating system.
For a list of supported host bus adapters, refer to the Sun StorEdge 3000 Family Release Notes for your array.
The Sun StorEdge 3510 FC array and Sun StorEdge 3511 SATA array support the HP-UX operating system Level 11.0 and Level 11.i in dual-path configurations using Sun StorEdge Traffic Manager 3.0 failover drivers for the HP-UX operating system.
Refer to the Sun StorEdge Traffic Manager 3.0 Installation and User's Guide for the Hewlett Packard HP-UX Operating System for detailed instructions about setting up the device driver on the server and for additional information about configuring your HP server.
Customers interested in Sun StorEdge Traffic Manager 3.0 for multiplatform support should contact Sun Sales or visit:
For more information about multiplatform support, refer to:
http://www.sun.com/storage/san/multiplatform_support.html
The information in this appendix covers the following steps:
The RAID controller can be configured by means of a host system running a VT100 terminal emulation program or by a Microsoft Windows terminal emulation program such as Hyperterminal.
If you are planning to access your array over an IP network or through a terminal server and only want to connect through a serial port for the initial configuration of the array, it is not necessary to configure a serial port connection from your HP host. For convenience, installers frequently perform the initial array configuration using a serial port on a portable computer.
If you want to use a Microsoft Windows portable computer for this initial array configuration, see Section F.1, Setting Up the Serial Port Connection for Windows 2000 systems.
If you prefer to connect through a serial port on your HP server, consult the hardware information for your HP host system to locate a serial port you can use for configuring the Sun StorEdge disk array. The system documentation also tells you what device file to use to access that port. Then set the serial port parameters on the server. See Section 4.9.2, Configuring the RS-232 Serial Port Connection for the parameters to use.
Note - The next section also shows how to use the Kermit utility to set these parameters. |
Once you have configured your serial port, follow the instructions in the next section.
The RAID controller can be configured from the host system by means of terminal emulators such as cu or Kermit. These instructions show the use of Kermit. For information about cu, refer to cu(1).
Note - You can also monitor and configure a RAID array over an IP network with Sun StorEdge Configuration Service after you assign an IP address to the array. For details, see Section 4.10, Setting Up Out-of-Band Management Over Ethernet and refer to the Sun StorEdge 3000 Family Configuration Service User's Guide. |
To access the controller firmware through the serial port, perform the following steps:
1. Use a null modem serial cable to connect the COM port of the RAID array to an unused serial port on your host system.
A null modem cable has serial signals swapped for connecting to a standard serial interface.
Note - A DB9-to-DB25 serial cable adapter is included in your package contents for connecting the serial cable to a DB25 serial port on your host if you do not have a DB9 serial port. |
3. After the array is powered up, power on the HP server and log in as root, or become superuser if you are logged in as a user.
4. Start the Kermit program and set the parameters as shown.
Use the device-specific name for the serial port you are using. In the example, the serial port being configured is /dev/tty0p1.
Note - To return to the Kermit prompt, type Ctrl \ and then C. To exit Kermit, first return to the Kermit prompt and then type exit. |
The simplest way to configure a disk array is to use System Administration Manager (SAM), HP-UX's system administration tool. If SAM is not installed on your system, or if you prefer to use the command-line interface, the following procedures guide you through the task. For more information please consult the HP document, Configuring HP-UX for Peripherals.
1. Use the ioscan command to determine what addresses are available on the HBA to which you will be attaching the array.
2. Access the firmware application on the array and set the SCSI IDs of the host channels you will be using.
3. Map the partitions containing storage that you want to use to the appropriate host channels.
Partitions must be assigned to LUNs in sequential order, beginning at LUN 0.
4. Halt the operating system using the shutdown command.
5. Turn off all power to peripheral devices and then to the server.
6. Attach one or more host channels of the Sun StorEdge 3510 FC array or Sun StorEdge 3511 SATA array to the SCSI interface cards in the host using the fiber cables or optical cables that are provided.
7. Turn on the power to the Sun StorEdge 3510 FC array or Sun StorEdge 3511 SATA array and all other peripheral devices. After they are initialized, power on the server and boot HP-UX. During the boot process, the operating system recognizes the new disk devices and builds device files for them.
8. Verify that you can see the new storage resources by running the ioscan command. You are now ready to use the storage.
The Logical Volume Manager (LVM) is a disk management system provided by HP in all versions of HP-UX 11. The LVM allows you to manage storage as logical volumes. This section describes some concepts used by the LVM and explains how to create logical volumes on your Sun StorEdge Fibre Channel Array. For more detailed information about the LVM, please consult lvm(7) and the HP publication Managing Systems and Workgroups: Guide for HP-UX System Administration (HP part number B2355-90742).
As with many system administration tasks, you can use SAM to create and maintain logical volumes. However, some functions can only be performed with HP-UX commands. The procedures in this appendix are performed using the command-line interface rather than SAM.
Volume groups are HP-UX's method for dividing and allocating disk storage capacity. Volume groups can be used to subdivide a large partition of storage into smaller units of usable space called logical volumes.
Each volume group is divided into logical volumes, which are seen by the applications as individual disks. They can be accessed as either character or block devices and can contain their own file systems.
The underlying physical storage in a volume group consists of one or more physical volumes. A physical volume can be a single physical disk or a partition of a disk array.
Each physical volume is divided into units called physical extents. The default size of these units is 4 Mbyte, but can range in size from 1 Mbyte to 256 Mbyte. The maximum number of physical extents that a volume group can contain is 65,535. With the default size of 4 Mbyte, this limits the size of the volume group to 255 Gbyte.
To create a volume group larger than 255 Gbyte, you must increase the size of the physical extents when creating the volume group. Refer to vgcreate(1m) for further information.
To use a storage resource in the LVM, it must first be initialized into a physical volume (also called an LVM disk).
1. Log in as root, or become superuser if you are not logged in with root user privileges.
2. Select one or more partitions on the array that you want to use. The output of ioscan(1M) shows the disks attached to the system and their device names:
# ioscan -fnC disk Class I H/W Path Driver S/W State H/W Type Description disk 1 0/12/0/0.6.0 sdisk CLAIMED DEVICE Sun StorEdge 3510 /dev/dsk/c12t6d2 /dev/rdsk/c12t6d2 |
3. Initialize each partition as an LVM disk with the pvcreate command. For example, type:
Caution - This process results in the loss of any data that resides on the partition. |
The volume group contains the physical resources that you can use to create usable storage resources for your applications.
1. Create a directory for the volume group and a device file for the group in that directory:
The name of the directory is the name of the volume group. By default, HP-UX uses names of the format vgNN, but you can choose any name that is unique within the list of volume groups.
In the preceding example, the mknod command has the following arguments:
To associate the physical volume with a volume group, use the vgcreate command:
To verify the creation and view the volume group properties, use the vgdisplay command:
In the output of vgdisplay, the Total PE field displays the number of physical extents in the volume group.
The size of each physical extent is displayed in the PE Size field (the default is 4 Mbyte), so the total capacity of this volume group is 2167 x 4 Mbyte = 8668 Mbyte.
The Alloc PE field shows the number of physical extents allocated to logical volumes. At this point, the Alloc PE field is zero because we have not assigned any of this volume group's capacity to logical volumes.
To create a logical volume within the volume group, use the lvcreate command with the -L option to specify the size of the logical volume in megabytes. The logical volume size should be a multiple of the physical extent size. In this example, a logical volume of 4092 Mbyte is created:
Both character and block device files for the new logical volume are created in the volume group directory:
Applications should use these names to access the logical volumes. Unless you specify otherwise, HP-UX creates names in the form shown in the example. To specify custom names for logical volumes refer to vgcreate(1M).
The following command creates a file system on the logical volume created in the previous steps.
The process of incorporating a file system into the existing directory structure is known as "mounting the file system." The files, although present on the disk, are not accessible to users until they are mounted.
1. Create a directory to be the mount point for your new file system:
2. To mount your file system, type the following:
By placing information about your file system in the fstab file, you can have HP-UX mount the file system automatically during bootup. You can also use the name of the mount point in mount commands that you issue from the console.
1. Make a copy of the existing fstab file:
2. To include the file system created in the example, add the following line to the file /etc/fstab:
Refer to the entry for fstab(4) for details about creating /etc/fstab entries.
3. To check to see if fstab was set up correctly, type:
If the mount point and the fstab file are correctly set up, no errors are displayed.
4. To verify that the file system is mounted and list all mounted file systems, type:
5. To unmount the file system, type:
Before you can create host filters, you need to know the worldwide name (WWN) for the FC HBA that connects your host to your FC array.
For supported HP-UX host HBAs, follow these steps:
1. Determine the device name by typing the command:
Output similar to the following is displayed:
The Node worldwide name shown is the WWN you use when configuring the RAID controller.
Copyright © 2004, Sun Microsystems, Inc. All rights reserved.