xp12000 for linux conf guide rootsan technologies pvt ltd

39
HP StorageWorks Disk Array XP operating system conguration guide: Linux XP12000 XP10000 SVS200 Part number: A5951–96095 Eighth edition: June 2006

Upload: prasanna3980

Post on 03-Jul-2015

59 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

HP StorageWorks Disk Array XP operatingsystem configuration guide: LinuxXP12000

XP10000

SVS200

Part number: A5951–96095Eighth edition: June 2006

Page 2: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Legal and notice information

© Copyright 2003-2006 Hewlett-Packard Development Company, L.P.

Confidential computer software. Valid license from HP required for possession, use or copying. Consistent with FAR 12.211 and12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items arelicensed to the U.S. Government under vendor’s standard commercial license.

The information contained herein is subject to change without notice. The only warranties for HP products and services are set forthin the express warranty statements accompanying such products and services. Nothing herein should be construed as constitutingan additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein.

Microsoft, Windows, Windows XP, and Windows NT are U.S. registered trademarks of Microsoft Corporation.

Linux is a U.S. registered trademark of Linus Torvalds.

Page 3: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Contents

Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5About this guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Intended audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Disk arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Related documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Document conventions and symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6HP technical support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7Subscription service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7Other HP web sites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7Documentation feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

1 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Features and requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Fibre Channel interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10Device emulation types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10Partitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10Failover . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10SNMP configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11RAID Manager command devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11Installation procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12Install and configure the disk array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12Setting the host mode and host group mode for the disk array ports . . . . . . . . . . . . . . . . 13Setting the System Option Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14Configuring the Fibre Channel ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

Fibre Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Fabric and Connection parameter settings . . . . . . . . . . . . . . . . . . . . . . . . . 15

Install and configure the host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Loading the OS and software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Installing and configuring the HBAs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Clustering and fabric zoning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16Fabric zoning and LUN security for multiple operating systems . . . . . . . . . . . . . . . . . . 16Connect the disk array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17Restarting the Linux server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17Defining the paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18Verifying new device recognition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19Configure disk array devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20Partitioning the devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20Creating the file systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

Creating file systems with ext2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21Creating the mount directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21Creating the mount table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22Verifying file system operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

2 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . 23Error conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24Calling the HP support center . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

Contact information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25Before you call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25

HP StorageWorks Disk Array XP operating system configuration guide: Linux 3

Page 4: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

A Path worksheet . . . . . . . . . . . . . . . . . . . . . . . . . 27

B Disk array supported emulations . . . . . . . . . . . . . . . . . . 29Supported emulations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29Emulation specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

4

Page 5: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Preface

About this guideThis guide provides information about:

• Requirements and procedures for connecting an XP disk array or SVS200 to a host system• Configuring the disk array for use with the Linux operating system

Intended audienceThis guide is intended for system administrators with knowledge of:

• The host hardware• Linux operating system• XP disk arrays and/or the SVS200

Disk arraysUnless otherwise noted, the term “disk array” refers to these systems:• HP StorageWorks XP10000 Disk Array• HP StorageWorks XP12000 Disk Array• HP StorageWorks 200 Storage Virtualization System

Related documentationThe following documents provide related information:

• HP StorageWorks XP10000 Disk Array: Owner's Guide• HP StorageWorks XP12000 Disk Array: Owner's Guide• HP StorageWorks 200 Storage Virtualization System: Owner’s Guide

You can find these documents from the Manuals page of the HP Business Support Center web site:

http://www.hp.com/support/manuals

In the Storage section, click Storage array systems and then select your product.

HP StorageWorks Disk Array XP operating system configuration guide: Linux 5

Page 6: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Document conventions and symbolsConvention Element

Blue text: Document conventions andsymbols

Cross-reference links and e-mail addresses

Blue, underlined text: http://www.hp.com

Web site addresses

Italic text Text emphasis and book titles

Bold text • Keys that are pressed• Text typed into a GUI element, such as a box• GUI elements that are clicked or selected, such as menu and

list items, buttons, tabs, and check boxes

Monospace text • File and directory names• System output• Code• Commands, their arguments, and argument values

Monospace, italictext • Code variables• Command variables

Monospace, bold text Emphasized monospace text

WARNING!Indicates that failure to follow directions could result in bodily harm or death.

CAUTION:Indicates that failure to follow directions could result in damage to equipment or data.

IMPORTANT:Provides clarifying information or specific instructions.

NOTE:Provides additional information.

TIP:Provides helpful hints and shortcuts.

6 Preface

Page 7: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

HP technical supportTelephone numbers for worldwide technical support are listed on the HP support web site:http://www.hp.com/support/.

Collect the following information before calling:

• Technical support registration number (if applicable)• Product serial numbers• Product model names and numbers• Error messages• Operating system type and revision level• Detailed questions

For continuous quality improvement, calls may be recorded or monitored.

Subscription serviceHP recommends that you register your product at the Subscriber’s Choice for Business web site:http://www.hp.com/go/e-updates.

After registering, you will receive e-mail notification of product enhancements, new driver versions,firmware updates, and other product resources.

Other HP web sitesFor additional information, see the following HP web sites:

• http://www.hp.com• http://www.hp.com/go/storage• http://www.hp.com/service_locator• http://www.hp.com/support/manuals

Documentation feedbackHP welcomes your feedback.

To make comments and suggestions about product documentation, please send a message [email protected]. All submissions become the property of HP.

HP StorageWorks Disk Array XP operating system configuration guide: Linux 7

Page 8: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

8 Preface

Page 9: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

1 Installation

You and your HP service representative each play a role in installation. Your HP service representativeis responsible for installing the disk array and formatting the disk devices. You are responsible forconfiguring the host server for the new devices with assistance from your HP service representative.

Features and requirementsAsk your HP service representative about the latest supported hardware and software.

The disk array has the following features:

• Storage capacity: The storage capacity for each model is listed below:XP10000: Up to 240 drives for up to 69.2 TB, 48 FC portsXP12000: Up to 1152 drives for up to 332 TB, 128 FC portsSVS200: Up to 127 TB in external storage, 48 FC ports

• Server support: Server supported by HP to run Linux. Consult your HP representative for a listof supported servers.

• Operating system support: Red Hat, SuSE, and United Linux are supported.

Before installing the disk array, ensure the following requirements are met:

• Fibre Channel Port configuration: Configure each Fibre Channel port on the disk array so it has aunique Fibre Channel loop ID. (All ports are set to 0 by default at the factory.)

• Linux version: Confirm you are using Red Hat, SuSE, or United Linux.• Superuser access: Make sure you have superuser (root) login access to the Linux system.• Host Bus Adapters (HBAs): Install HBAs and all utilities and drivers. Refer to the adapter

documentation for installation details• (Recommended) HP StorageWorks Remote Web Console XP, Command View XP Advanced

Edition or Command View XP with LUN management feature for configuring disk array portsand paths

• (Recommended) HP StorageWorks LUN Configuration and Security Manager XP• (Optional) Other available XP software (some may not be supported by your system):

HP StorageWorks Business Copy XPHP StorageWorks Continuous Access XPHP StorageWorks Continuous Access Extension XPHP StorageWorks Continuous Access XP JournalHP StorageWorks Auto LUN XPHP StorageWorks Data Exchange XPHP StorageWorks RAID Manager XPHP StorageWorks Cache LUN XPHP StorageWorks Auto Path XPHP StorageWorks Cluster Extension XPHP StorageWorks Performance Advisor XP SoftwareHP StorageWorks External Storage XPHP StorageWorks XP Disk/Cache Partition SoftwareHP StorageWorks Flex Copy XPHP StorageWorks XP Data Shredder SoftwareHP StorageWorks Performance Control XP

HP StorageWorks Disk Array XP operating system configuration guide: Linux 9

Page 10: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Fibre Channel interfaceThe XP family of disk arrays and the SVS200 support these Fibre Channel elements:

• Connection speeds of 1 Gbps, 2 Gbps, and 4 Gbps (XP12000/XP10000 only)• Short-wave non-OFC (open fiber control) optical interface• Multimode optical cables with SC or LC connectors• Public or private arbitrated loop (FC-AL) or direct fabric attach• Fibre Channel switches

Even though the interface is Fibre Channel, this guide uses the term “SCSI disk” because disk arraydevices are defined to the host as SCSI disks.

Device emulation typesThe XP family of disk arrays and the SVS200 support these device emulation types:

• OPEN-x devices: OPEN-x logical units represent disk devices. Except for OPEN-V, these devicesare based on fixed sizes. OPEN-V is a user-defined size. Supported emulations include OPEN-3,OPEN-8, OPEN-9, OPEN-E, OPEN-L, and OPEN-V devices.

• LUSE devices (OPEN-x*n): Logical Unit Size Expansion (LUSE) devices combine 2 to 36 OPEN-xdevices to create expanded LDEVs larger than standard OPEN-x disk devices. For example, anOPEN-x LUSE volume created from ten OPEN-x volumes is designated as OPEN-x*10.

• CVS devices (OPEN-x CVS): Volume Size Configuration (VSC) defines custom volumes (CVS) thatare smaller than normal fixed-sized logical disk devices (volumes). (OPEN-V is a CVS-basedcustom disk size that you determine. OPEN-L does not support CVS.)

• LUSE (expanded) CVS devices (OPEN-x*n CVS): LUSE CVS combines CVS devices to create anexpanded device. This is done by first creating CVS custom-sized devices and then using LUSE tocombine from 2 to 36 CVS devices. For example, if three OPEN-9 CVS volumes are combined tocreate an expanded device, this device is designated as OPEN-9*3-CVS.

NOTE:For the SVS200, and the XP12000/XP10000 when connected to external storage devices, HPrecommends using OPEN-V as the emulation the array makes visible to the host. This allows externalstorage LDEVs to be configured without losing data. Using any other emulation may cause data lossin the external storage LUNs.

PartitionsIn a Linux environment, one LUN can be divided into a maximum of four primary partitions (using fdisk)or maximum of one extended partition.

FailoverThe disk arrays support many standard software products that provide host, application, or I/O pathfailover and management.

10 Installation

Page 11: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

SNMP configurationThe XP family of disk arrays and the SVS200 support standard Simple Network Management Protocol(SNMP) for remotely managing arrays. The SNMP agent on the service processor (SVP) performserror-reporting operations requested by the SNMP manager. SNMP properties are usually set from theSVP but they can also be set remotely using Remote Web Console, Command View (XP arrays only), orCommand View XP Advanced Edition. Refer to the applicable user's guide for procedures.

RAID Manager command devicesRAID Manager manages Business Copy (BC) or Continuous Access (CA) operations from a host server.To use RAID Manager you must designate at least one LDEV as a command device. This can be donewith Remote Web Console, Command View (XP arrays only), or Command View XP Advanced Edition.Refer to the applicable user guide for information about how to designate a command device.

HP StorageWorks Disk Array XP operating system configuration guide: Linux 11

Page 12: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Installation proceduresPerform these actions to install and configure the disk array:

1. Install and configure the disk array

• Setting the host mode and host group mode• Setting the System Option Modes• Configuring the Fibre Channel ports

2. Install and configure the host

• Loading the OS and software• Installing and configuring the HBAs• Clustering and fabric zoning• Fabric zoning and LUN security

3. Connect the disk array

• Restarting the Linux server• Defining the paths• Verifying new device recognition

4. Configure disk array devices

• Partitioning the devices• Creating the file systems• Creating the mount directories• Creating the mount table

Install and configure the disk arrayThe HP service representative performs these tasks:

• Assembling hardware and installing software• Loading the microcode updates• Installing and formatting devices

After these tasks are finished, you will use Remote Web Console, Command View (XP arrays only),Command View XP Advanced Edition, or LUN Configuration and Security Manager to complete theremaining tasks listed below. If you do not have these programs, your HP service representative canperform these tasks for you.

12 Installation

Page 13: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Setting the host mode and host group mode for the disk arrayports

After the disk array is installed, you must set the host mode for each disk array port to match the host OS.Set the host mode using LUN Manager in Remote Web Console (shown), Command View XP (XP arraysonly), or Command View XP Advanced Edition. If these are not available, the HP service representativecan set the host mode using the SVP. The host mode setting for Linux is 00.

CAUTION:The correct host mode must be set for all new installations (newly connected ports) to Linux hosts. Donot select a mode other than 00 for Linux. Changing a host mode after the host has been connected isdisruptive and requires the server to be rebooted.

When a new host group is added, additional host group modes (options) may be configured. Thestorage administrator must verify if an additional host group mode is required for the host group.

HP StorageWorks Disk Array XP operating system configuration guide: Linux 13

Page 14: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

The following host group mode is available for Linux:

HostGroupMode Function Default Comments

7 Reporting Unit Attention when adding LUN Inactive Previously MODE249

CAUTION:Changing host group modes for ports where servers are already installed and configured is disruptiveand requires the server to be rebooted.

Setting the System Option ModesThe HP service representative sets the System Option Mode(s) based on the operating system andsoftware configuration of the host.

Configuring the Fibre Channel portsConfigure the disk array Fibre Channel ports by using Remote Web Console (shown), Command View(XP arrays only), or Command View XP Advanced Edition. Select the settings for each port based onyour storage area network topology. Use switch zoning if you connect different types of hosts to thearray through the same switch.

14 Installation

Page 15: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Fibre AddressIn fabric environments, the port addresses are assigned automatically. In arbitrated loop environments,set the port addresses by selecting a unique arbitrated loop physical address (AL-PA) or loop ID for eachport. For specific values, refer to the HP StorageWorks LUN Configuration and Security Manager XPUser Guide applicable to your array

Fabric and Connection parameter settingsSet each array port to FABRIC ON or OFF with connections of POINT-TO-POINT or FC-AL as shown inthe following figures and table. For detailed topology information, refer to the HP StorageWorks SANDesign Reference Guide on the www.hp.com web site.

Fabric parameter Connection parameter Provides

ON FC-AL Not supported

OFF FC-AL FL-port (private arbitrated loop;direct connect without a SAN)

ON Point-to-Point N-port (SAN fabric port)

OFF Point-to-Point Not supported

Install and configure the hostThis section explains how to install and configure the host and host bus adapters (HBAs) that connect thehost to the disk array.

Loading the OS and softwareFollow the manufacturer's instructions to load the operating system and software onto the host. Load allOS patches and configuration utilities supported by HP and the HBA manufacturer.

Installing and configuring the HBAsInstall and configure the host bus adapters using the HBA manufacturer's instructions.

On Linux systems, the disk array only supports QLogic and Emulex adapters. Contact your HP servicerepresentative for the latest information about supported HBAs.

HP StorageWorks Disk Array XP operating system configuration guide: Linux 15

Page 16: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Clustering and fabric zoningIf you plan to use clustering, install and configure the clustering software on the servers.

Clustering is the organization of multiple servers into groups. Within a cluster, each server is a node.Multiple clusters compose a multi-cluster environment. The following example shows a multi-clusterenvironment with three clusters, each containing two nodes. The nodes share access to the disk array.

Within the Storage Area Network (SAN), the clusters may be homogeneous (all the same operatingsystem) or they may be heterogeneous (mixed operating systems). How you configure LUN security andfabric zoning depends on the operating system mix and the SAN configuration.

Fabric zoning and LUN security for multiple operating systemsYou can connect multiple clusters of various operating systems to the same switch and fabric usingappropriate zoning and LUN security as follows:

• Storage port zones may overlap if more than one operating system needs to share an array port.• Heterogeneous operating systems may share an XP array port if you use Secure Manager and set

the appropriate host group and mode. All others must connect to a dedicated XP array port.• Use Secure Manager for LUN isolation when multiple hosts connect through a shared array

port. Secure Manager provides LUN security by allowing you to restrict which LUNs each hostcan access.

Environment OS mix Fabric zoning LUN security

homogeneous (a singleOS type present in theSAN)

Not requiredStandalone SAN(non-clustered)Clustered SANMulti-Cluster SAN

heterogeneous (morethan one OS type presentin the SAN)

Required

Must be used whenmultiple hosts or clusternodes connect through ashared port

16 Installation

Page 17: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Connect the disk arrayThe HP service representative connects the disk array to the host by:

• Verifying operational status of the disk array channel adapters, LDEVs, and paths.• Connecting the Fibre Channel cables between the disk array and the fabric switch or host.• Verifying the ready status of the disk array and peripherals.

Restarting the Linux serverTo recognize the new device(s), restart the Linux server as follows:

1. Power on the display of the Linux server.

2. Power on all devices other than the Linux server.

3. Confirm ready status of all devices.

4. Power on the Linux server.

HP StorageWorks Disk Array XP operating system configuration guide: Linux 17

Page 18: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Defining the pathsUse Remote Web Console (shown), Command View (XP arrays only), or Command View XP AdvancedEdition to define paths (LUNs) between hosts and volumes in the disk array.

This process is also called “LUN mapping.” In Remote Web Console and Command View, LUN mappingincludes:

• Configuring ports• Enabling LUN security on the ports• Creating host groups• Assigning host bus adapter WWNs to host groups• Mapping volumes to host groups (by assigning LUNs)

In Command View XP Advanced Edition, LUN mapping includes:

• Configuring ports• Creating storage groups• Mapping volumes and WWN/host access permissions to the storage groups

For details see LUN Configuration and Security Manager User's Guide or Command View XP AdvancedEdition Device Manager Web Client User's Guide. Note the LUNS and their ports, WWNs, nicknames,and LDEVs for later use in verifying host and device configuration.

18 Installation

Page 19: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Verifying new device recognition1. Verify that the HBA driver is installed using the lsmod command.

2. View the device information in the the /proc/scsi/scsi file.

Example

#cat /proc/scsi/scsiAttached devices:Host: scsi0 Channel: 00 Id: 00 Lun: 00

Vendor: HP Model: OPEN-9 Rev: 2105Type: Direct-Access ANSI SCSI revision: 02

Host: scsi0 Channel: 00 Id: 00 Lun: 01Vendor: HP Model: OPEN-9 Rev: 2105Type: Direct-Access ANSI SCSI revision: 02

Host: scsi0 Channel: 00 Id: 00 Lun: 02Vendor: HP Model: OPEN-9 Rev: 2105Type: Direct-Access ANSI SCSI revision: 02

Host: scsi0 Channel: 00 Id: 00 Lun: 03Vendor: HP Model: OPEN-9 Rev: 2105Type: Direct-Access ANSI SCSI revision: 02

3. Verify that the system recognizes the disk array partitions by viewing the /proc/partitions file.

Example

#cat /proc/partitionsmajor minor #blocks name rio rmerge rsect ...8 0 7211520 sda 1 3 8 ...8 1 7181087 sda1 0 0 0 ...8 2 28272 sda2 0 0 0 ...8 16 7211520 sdb 1 3 8 ...8 17 7181087 sdb1 0 0 0 ...8 18 28272 sdb2 0 0 0 ...8 32 7211520 sdc 1 3 8 ...8 33 7181087 sdc1 0 0 0 ...8 34 28272 sdc2 0 0 0 ...8 48 7211520 sdd 1 3 8 ...8 49 7181087 sdd1 0 0 0 ...8 50 28272 sdd2 0 0 0 ...8 64 7211520 sde 1 3 8 ...8 65 7181087 sde1 0 0 0 ...8 66 28272 sde2 0 0 0 ...8 80 7211520 sdf 1 3 8 ...8 81 7173022 sdf1 0 0 0 ...8 82 32130 sdf2 0 0 0 ...8 96 7211520 sdg 1 3 8 ...8 97 7173022 sdg1 0 0 0 ...104 0 17776560 cciss/c0d0 168200 352184 4166792...104 1 257024 cciss/c0d0p1 1 3 8 ...104 2 1048560 cciss/c0d0p2 2 3 16 ...104 3 16470960 cciss/c0d0p3 168193 352166 4166736...

In the above example, the “sd” devices represent the XP disk partitions and the “cciss” devicesrepresent the internal hard drive partitions on an HP Proliant system.

HP StorageWorks Disk Array XP operating system configuration guide: Linux 19

Page 20: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Configure disk array devicesDisks in the disk array are configured using the same procedure for configuring any new disk on the host.This includes the following procedures:

1. Partitioning the devices

2. Creating the file systems

3. Creating the mount directories

4. Creating the mount table

5. Verifying file system operation

Creating scripts to configure all devices at once may save you considerable time.

Partitioning the devicesAfter the device parameters have been set, the next step is to set the partitions. To partition the devices:

1. Enter fdisk/dev/device_name.

Example

# fdisk/dev/sda

2. Select p to display the present partitions.

3. Select n to make a new partition. You can make up to four primary partitions or you can make oneextended partition. The extended partition can be divided into a maximum of 11 logical partitions,which can be assigned partition numbers from 5 to 15.

4. Select w to write the partition information to disk and complete the fdisk command.

5. Other commands that you might want to use include:

d to remove partitions

q to stop a change

6. Repeat the above steps for each device.

20 Installation

Page 21: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Creating the file systemsThe supported file system for Linux is ext2.

Creating file systems with ext21. Enter mkfs –t ext2 /dev/device_name.

Example

# mkfs –t ext2 /dev/sdd

2. Repeat step 1 for each device on the disk array.

Creating the mount directoriesCreate mount directories using the mkdir command. Choose names for the mount directories whichidentify both the logical volume and partition.

1. Enter mkdir /mnt/mount_point.

Example

# mkdir /mnt/A5700F_LU00

2. Repeat step 1 for each device on the disk array.

HP StorageWorks Disk Array XP operating system configuration guide: Linux 21

Page 22: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Creating the mount tableAdd the new devices to the /etc/fstab file to specify the automount parameters for each device.

1. Edit the /etc/fstab file to add one line for each device to be automounted.

Each line of the file contains: (A) device name, (B) mount point, (C) file system type (“ext2”), (D)mount options (“defaults”), (E) enhance parameter (“1”), and (F) fsck pass 2.

Example

/dev/sdb /A5700F_ID08 ext2 defaults 1 2/dev/sdc /A5700F_ID09 ext2 defaults 1 2/dev/sdd /A5700F_ID10 ext2 defaults 1 2

A B C D E F

Make an entry for each device. After all the entires are made, save the file and exit the editor.

2. Reboot the system.

3. Display the mounted devices using the df –h command and verify that the devices were automounted.

Example

# df -hFilesystem Size Used Avail Used% Mounted on/dev/sda1 1.8G 890M 866M 51% //dev/sdb1 1.9G 1.0G 803M 57% /usr/dev/sdc1 2.2G 13k 2.1G 0% /A5700F-LU00#

Verifying file system operationVerify file system operation by copying a file to each device.

22 Installation

Page 23: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

2 Troubleshooting

This section provides resolutions for various error conditions you may encounter.

If you are unable to resolve an error condition, ask your HP support representative for assistance. SeeCalling the HP support center.

HP StorageWorks Disk Array XP operating system configuration guide: Linux 23

Page 24: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Error conditionsDepending on your system configuration, you may be able to view error messages (R-SIMS) as follows:

• In Remote Web Console (Status tab)• In Command View Advanced Edition (“Alerts” panel).• In Command View (Event History or Event Notification panels) (XP arrays only)

Error condition Recommended action

The logical devices are not recognized by the host. Verify that the READY indicator lights on the diskarray are ON. Verify that fiber cables are correctlyinstalled and firmly connected.Verify that the target IDs are properly configured.The LUNs for each TID must start at 0 and continuesequentially without skipping any numbers.Verify that the TIDs/WWNs on each bus are unique.Do not install two devices with the same ID on thesame bus. Recheck the buses for new devices.Verify that LUSE devices are not intermixed withnormal LUNs on the same port.Verify that the maximum number of LUSE devices perport has not been exceeded.Verify that the disk array host mode is set correctly.

The host does not reboot properly after hardshutdown.

If you power off the host without executing theshutdown process, wait three minutes to allow thedisk array's internal timeout process to purge queuedcommands. If the host restarts while the disk arrayis processing queued commands, the host may notreboot successfully.

Physical volumes cannot be created. Verify that the disk array logical devices are correctlyformatted.

Logical volumes cannot be created. Verify that the volume capacity for OPEN-x volumes isnot greater than the maximum capacity allowed. Seethe Emulation specifications table.Verify that the capacity of the volume group is notless than the total capacity of the partitioned logicalvolume.

A file system is not mounted after rebooting. Verify that the host was restarted correctly.Verify that the file system attributes are correct.

The disk array performs a self reboot because thedisk array was busy or it logged a panic message.

Reboot the host.

The disk array responds “Not Ready” or the diskarray has displayed “Not Ready” and timed out.

Contact HP.

The host detects a parity error. Check the HBA and make sure it was installedproperly.Reboot the host.

The host hangs or devices are declared and the hosthangs.

Make sure there are no duplicate disk array TIDs andthat disk array TIDs do not conflict with any host TIDs.

24 Troubleshooting

Page 25: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Calling the HP support centerIf you are unable to resolve an error condition, contact the HP support center for assistance.

Contact informationTelephone numbers for worldwide technical support are listed on the HP support web site:http://www.hp.com/support/.

Before you callBe sure to have the following information available:

• Technical support registration number (if applicable)• Product serial numbers• Product model names and numbers• Applicable error messages• Operating system type and revision level• Detailed, specific questions

For continuous quality improvement, calls may be recorded or monitored.

HP StorageWorks Disk Array XP operating system configuration guide: Linux 25

Page 26: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

26 Troubleshooting

Page 27: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

A Path worksheet

LDEV (CU:LDEV) (CU =control unit)

Device Type SCSI BusNumber

Path 1 Alternate Paths

0:00 TID:LUN:

TID:LUN:

TID:LUN:

0:01 TID:LUN:

TID:LUN:

TID:LUN:

0:02 TID:LUN:

TID:LUN:

TID:LUN:

0:03 TID:LUN:

TID:LUN:

TID:LUN:

0:04 TID:LUN:

TID:LUN:

TID:LUN:

0:05 TID:LUN:

TID:LUN:

TID:LUN:

0:06 TID:LUN:

TID:LUN:

TID:LUN:

0:07 TID:LUN:

TID:LUN:

TID:LUN:

0:08 TID:LUN:

TID:LUN:

TID:LUN:

0:09 TID:LUN:

TID:LUN:

TID:LUN:

0:10 TID:LUN:

TID:LUN:

TID:LUN:

0:11 TID:LUN:

TID:LUN:

TID:LUN:

0:12 TID:LUN:

TID:LUN:

TID:LUN:

0:13 TID:LUN:

TID:LUN:

TID:LUN:

0:13 TID:LUN:

TID:LUN:

TID:LUN:

0:14 TID:LUN:

TID:LUN:

TID:LUN:

0:15 TID:LUN:

TID:LUN:

TID:LUN:

0:16 TID:LUN:

TID:LUN:

TID:LUN:

0:17 TID:LUN:

TID:LUN:

TID:LUN:

HP StorageWorks Disk Array XP operating system configuration guide: Linux 27

Page 28: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

28 Path worksheet

Page 29: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

B Disk array supported emulations

This appendix provides information about supported emulations and device type specifications. Someparameters may not be relevant to your array. Consult your HP representative for information aboutsupported configurations for your system.

Supported emulations

XP Model EmulationEmulationsupported LUSE CVS LUSE & CVS

OPEN-3 Yes Yes Yes Yes

OPEN-8 Yes Yes Yes Yes

XP10000 OPEN-9 Yes Yes Yes Yes

XP12000 OPEN-E Yes Yes Yes Yes

SVS200 OPEN-K

OPEN-L Yes Yes

OPEN-M

OPEN-V Yes Yes

NOTE:For the SVS200, and the XP12000/XP10000 when connected to external storage devices, HPrecommends using OPEN-V as the emulation the array makes visible to the host. This allows externalstorage LDEVs to be configured without losing data. Using any other emulation may cause data lossin the external storage LUNs.

HP StorageWorks Disk Array XP operating system configuration guide: Linux 29

Page 30: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Emulation specificationsEmulation (Note

1)Category(Note 2)

Blocks (512bytes )

SectorSize(bytes)

# ofCylinders

Heads Sectorspertrack

CapacityMB* (Note

3)

OPEN-3 SCSI disk 4806720 512 3338 15 96 2347

OPEN-8 SCSI disk 14351040 512 9966 15 96 7007

OPEN-9 SCSI disk 14423040 512 10016 15 96 7042

OPEN-E SCSI disk 28452960 512 19759 15 96 13893

OPEN-L SCSI disk 71192160 512 49439 15 96 34761

OPEN-V SCSI disk max=125827200 512 Note 5 15 128 Note 6

LUSE

OPEN-3*n SCSI disk 4806720*n 512 3338*n 15 96 2347*n

OPEN-8*n SCSI disk 14351040*n 512 9966*n 15 96 7007*n

OPEN-9*n SCSI disk 14423040*n 512 10016*n 15 96 7042*n

OPEN-E*n SCSI disk 28452960*n 512 19759*n 15 96 13893*n

OPEN-L*n SCSI disk 71192160*n 512 49439*n 15 96 34761*n

OPEN-V*n SCSI disk max=125827200Note 4

512 Note 5 15 128 Note 6

CVS

OPEN-3 CVS SCSI disk Note 4 512 Note 5 15 96 Note 6

OPEN-8 CVS SCSI disk Note 4 512 Note 5 15 96 Note 6

OPEN-9 CVS SCSI disk Note 4 512 Note 5 15 96 Note 6

OPEN-E CVS SCSI disk Note 4 512 Note 5 15 96 Note 6

CVS LUSE

OPEN-3*n CVS SCSI disk Note 4 512 Note 5 15 96 Note 6

OPEN-8*n CVS SCSI disk Note 4 512 Note 5 15 96 Note 6

OPEN-9*n CVS SCSI disk Note 4 512 Note 5 15 96 Note 6

OPEN-E*n CVS SCSI disk Note 4 512 Note 5 15 96 Note 6

OPEN-V*n SCSI disk Note 4 512 Note 5 15 128 Note 6

*Capacity = (512 x number of blocks) ÷ 10242

Note 1:The availability of a disk type depends on the disk array.

Note 2:The devices are defined to the host as SCSI disk devices, even though the interface is Fibre Channel.

Note 3:The device capacity can sometimes be changed by the BIOS or host adapter board. This may makeactual capacity different from that listed in the table.

30 Disk array supported emulations

Page 31: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Note 4:The number of blocks for a CVS volume is calculated as follows:

# of blocks = (# of cylinders) × (# of heads) × (# of sectors per track)

Example

For an OPEN-3 CVS volume with capacity = 37 MB:# of blocks = (53 cylinders–see Note 5) × (15 heads) ×(96 sectors per track) = 76320

Example

For an OPEN-V CVS volume with capacity = 49 MB:# of blocks = (53 cylinders–see Note 5) × (15 heads) ×(128 sectors per track) = 101760

Note 5:The number of cylinders for a CVS volume is calculated as follows (↑…↑ means that the value should berounded up to the next integer):

OPEN-3/8/9/E: The number of cylinders for a CVS volume = # of cylinders = ↑ (capacity (MB) specifiedby user) × 1024/720 ↑

ExampleFor an OPEN-3 CVS volume with capacity = 37 MB:# of cylinders = ↑37 × 1024/720↑ = ↑52.62↑(rounded up to next integer) = 53 cylinders

OPEN-V: The number of cylinders for a CVS volume = # of cylinders = ↑ (capacity (MB) specified byuser) × 16/15 ↑

Example

For an OPEN-V CVS volume with capacity = 49 MB:# of cylinders = ↑49 × 16/15↑ = ↑52.26↑(rounded up to next integer) = 53 cylinders

OPEN-3/8/9/E: The number of cylinders for a CVS LUSE volume = # of cylinders = ↑ (capacity (MB)specified by user) × 1024/720 ↑ × n

Example

For a CVS LUSE volume with capacity = 37 MB and n = 4:# of cylinders = ↑37 × 1024/720↑ × 4 = ↑52.62↑× 4 = 53 × 4 = 212

OPEN-V: The number of cylinders for a CVS LUSE volume = # of cylinders = ↑ (capacity (MB) specifiedby user) × 16/15 ↑ × n

Example

For an OPEN-V CVS LUSE volume with capacity = 49 MB and n = 4:# of cylinders = ↑49 × 16/15↑ × 4 = ↑52.26↑× 4 = 53 × 4 = 212

Note 6:The capacity of an OPEN-3/8/9/E CVS volume is specified in MB, not number of cylinders. Thecapacity of an OPEN-V CVS volume can be specified in MB or number of cylinders. You set the volumesize using Remote Web Console, Command View (XP arrays only), or Command View Advanced Edition.

HP StorageWorks Disk Array XP operating system configuration guide: Linux 31

Page 32: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

32 Disk array supported emulations

Page 33: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Glossary

AL Arbitrated loop.

AL-PA Arbitrated loop physical address.

array group A group of 4 or 8 physical hard disk drives (HDDs) installed in an XP disk arrayand assigned a common RAID level. RAID1 array groups consist of 4 (2D+2D)or 8 HDDs (4D+4D). RAID5 array groups include a parity disk but also consistof 4 (3D+1P) or 8 HDDs (7D+1P). All RAID6 array groups are made up of 8HDDs (6D+2P).

BC HP StorageWorks Business Copy XP. BC lets you maintain up to nine localcopies of logical volumes on the disk array.

CA HP StorageWorks Continuous Access XP. CA lets you create and maintainduplicate copies of local logical volumes on a remote disk array.

Command View(CVXP)

HP StorageWorks Command View XP, a software product for managing XParrays. Command View runs on a Windows-based management workstation.

Command ViewXP Advanced Edi-tion (CVXP AE)

HP StorageWorks Command View XP Advanced Edition, installs on theuser-provided Device Manager server and provides a browser-based platformfrom which you can manage the SVS200 and the XP family of disk arrays—evenglobally distributed arrays.

command device A volume on the disk array that accepts Continuous Access or Business Copycontrol operations which are then executed by the disk array.

CU Control Unit. Contains LDEVs and is approximately equivalent to SCSI Target ID.

CVS Custom volume size. CVS devices (OPEN-x CVS) are custom volumes configuredusing array management software to be smaller than normal fixed-size OPENsystem volumes. Synonymous with volume size customization (VSC).

DKC The array cabinet that houses the channel adapters and service processor (SVP).

DKU (disk cabinetunit)

The array cabinets that house the disk array physical disks.

emulation modes The logical devices (LDEVs) associated with each RAID group are assigned anemulation mode that makes them operate like OPEN system disk drives. Theemulation mode determines the size of an LDEV:OPEN-3: 2.46 GBOPEN-8: 7.38 GBOPEN-9: 7.42 GBOPEN-E: 13.56 GBOPEN-L: 36 GBOPEN-V: User-defined custom size

failover Disconnecting a failed unit or path and replacing it with an alternative unit orpath in order to continue functioning.

FC Fibre Channel.

FC-AL Fibre Channel arbitrated loop.

FCP Fibre Channel Protocol.

GB Gigabytes.

HP StorageWorks Disk Array XP operating system configuration guide: Linux 33

Page 34: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

HBA Host bus adapter.

host mode Each port can be configured for a particular host type. These modes arerepresented as two-digit hexadecimal numbers. For example, host mode 08represents an HP-UX host.

LDEV Logical device. An LDEV is created when a RAID group is carved into piecesaccording to the selected host emulation mode (that is, OPEN-3, OPEN-8,OPEN-L). The number of resulting LDEVs depends on the selected emulationmode. The term LDEV is often used synonymously with the term volume.

LUN Logical unit number. A LUN results from mapping a SCSI logical unit number,port ID, and LDEV ID to a RAID group. The size of the LUN is determined by theemulation mode of the LDEV and the number of LDEVs associated with the LUN.For example, a LUN associated with two OPEN-3 LDEVs has a size of 4,693 MB.

LUSE A LUN is normally associated with only a single LDEV. The LUSE feature allowsa LUN to be associated with 1 to 36 LDEVs. Essentially, LUSE makes it possiblefor applications to access a single large pool of storage. The LUSE feature isavailable when the HP StorageWorks LUN Configuration Manager product isinstalled.

OFC Open Fibre Control.

OPEN-x A general term describing any one of the supported OPEN emulation modes(for example, OPEN-L).

OS Operating system.

PA Physical address.

path “Path” and “LUN” are synonymous. Paths are created by associating a port, atarget, and a LUN ID with one or more LDEVs.

port A physical connection that allows data to pass between a host and the diskarray. The number of ports on an XP disk array depends on the number ofsupported I/O slots and the number of ports available per I/O adapter. TheXP family of disk arrays supports Fibre Channel (FC) ports as well as otherport types. Ports are named by port group and port letter, such as CL1-A. CL1is the group, and A is the port letter.

RAID Redundant array of independent disks.

remote console PC The PC running HP StorageWorks Remote Control XP.

Remote Control(RC)

HP StorageWorks Remote Control XP. A software product used for managingXP arrays.

Remote Web Con-sole (RWC)

HP StorageWorks XP Remote Web Console. A browser-based program installedon the SVP that allows you to configure and manage the disk array.

R-SIM Remote service information message.

SCSI Small computer system interface.

SIM Service information message.

SNMP Simple Network Management Protocol.

SVP Service processor, which is the PC built into the disk controller. The SVPprovides a direct interface into the disk array. SVP use is reserved for HPsupport representatives only.

SVS Storage Virtualization System, an appliance that manages multiple disk arraystorage systems.

34 Glossary

Page 35: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

TB Terabyte.

TID Target ID.

Volume On the XP array, a volume is a uniquely identified virtual storage devicecomposed of a control unit (CU) component and a logical device (LDEV)component separated by a colon. For example 00:00 and 01:00 are twouniquely identified volumes; one is identified as CU = 00 and LDEV = 00, andthe other as CU = 01 and LDEV = 00; they are two unique separate virtualstorage devices within the XP array.

VSC Volume size customization. Synonymous with CVS.

WWN World Wide Name. A unique identifier assigned to a Fibre Channel device.

HP StorageWorks Disk Array XP operating system configuration guide: Linux 35

Page 36: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

36 Glossary

Page 37: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

Index

Aadapters, host bus, 15AL-PA, 15arbitrated-loop physical address, 15audience, 5Auto LUN XP, 9Auto Path XP, 9

BBusiness Copy XP, 9, 11

CCache LUN XP, 9Cluster Extension XP, 9clustering, 16command device(s)

designate at least one LDEV as a, 11RAID Manager, 11

Command View, 9, 11, 12, 18Command View XP Advanced Edition, 9, 11,12, 18configuration

device, 20emulation types, 10recognition, 19

Fibre Channel ports, 14HBAs, 15host, 15host mode, setting, 13port, 14System Option Mode, 14

Continuous Access Extension XP, 9Continuous Access XP, 9, 11Continuous Access XP Journal, 9conventions

document, 6text symbols, 6

CVS devices, 10

DData Exchange XP, 9device(s)

configuration, 20emulation types, 10emulations, supported, 29logical, not recognized by host, 24partitioning, 20recognition, 19type specifications, 30

disk array(s)connecting, 17device emulations, 29features, 9installation overview, 12Not Ready error message, 24operating system versions, 9requirements, 9self reboots, 24server support, 9storage capacity, 9

documentconventions, 6related documentation, 5

documentationHP web site, 5providing feedback, 7

Eemulation(s)

device emulation types, 10supported, 29, 30

error conditions, 24External Storage XP, 9

Ffabric environment

parameter settings, 15zoning, 16

failover, 10features and requirements, 9Fibre Channel

adapters, configuring, 15connection speed, 10interface, 10parameter settings, 15ports, configuring, 14supported elements, 10topology example, 15

file system(s)creating, 21not mounted after rebooting, 24verifying, 22

Flex Copy XP, 9

Gglossary, 33

HP StorageWorks Disk Array XP operating system configuration guide: Linux 37

Page 38: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

HHBA(s), 9

configuring, 15supported, 15verify driver installation, 19

helpobtaining, 7

hostconfiguration, 15doesn’t reboot properly, 24hangs up, 24

host bus adapters, see "HBAs", 9host mode, setting, 13HP

service representative tasks, 12technical support, 7, 25

Iinstallation

connecting disk array, 17HP service representative tasks, 12overview, 12procedures, 12

interface, Fibre Channel, 10

LLDEV(s)

designate at least one as a command device,11

Linuxpartitions, 10server, restarting, 17supported versions, 9

logical volumes, cannot be created, 24LUN Configuration and Security Manager XP,9, 12, 18LUN(s)

creating, 18mapping, 18security, 16

LUSE devices, 10

Mmount directories, creating, 21mount table(s), creating, 22multi-cluster environment, 16

OOPEN-x devices, 10operating system(s)

loading, 15LUN security for, 16multiple, fabric zoning for, 16supported versions of Linux, 9

Pparity error, 24path(s)

defining, 18worksheet, 27

Performance Advisor XP Software, 9Performance Control XP, 9physical volumes, cannot be created, 24port(s)

Fibre Channel, 14host mode, setting, 13

RR-SIMS, 24RAID Manager command devices, 11RAID Manager XP, 9related documentation, 5Remote Web Console, 9, 11, 12, 18requirements and features, 9

SSCSI disk, Fibre Channel interface and term"SCSI disk", 10Secure Manager XP, 16security, LUN, 16server

restarting, 17support, 9

SNMP configuration, 11software, optional, 9storage capacity, 9Subscriber’s Choice, HP, 7symbols in text, 6System Option Mode, setting, 14

Ttechnical support, 25

HP, 7service locator web site, 7

text symbols, 6topology, fabric, 15troubleshooting, 23

error conditions, 24technical support, 25

Vvolume(s)

logical, cannot be created, 24physical, cannot be created, 24

Wweb sites

HP, 7HP Subscriber’s Choice for Business, 7product manuals, 5

38

Page 39: XP12000 for Linux Conf Guide Rootsan technologies Pvt Ltd

worksheet, path, 27

XXP Data Shredder SW, 9XP Disk/Cache Partition SW, 9XP family

optional software, 9storage capacity, 9

Zzoning, fabric, 16

HP StorageWorks Disk Array XP operating system configuration guide: Linux 39