Vous êtes sur la page 1sur 7

HP LeftHand SAN Solutions

Support Document

Best Practices
Best Practices - AIX Configuration

Legal Notices
Warranty The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein. The information contained herein is subject to change without notice. Restricted Rights Legend Confidential computer software. Valid license from HP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license. Copyright Notices Copyright 2009 Hewlett-Packard Development Company, L.P.

Best Practices: AIX Configuration

HP Lefthand SAN/IQ Configuration


Configure the storage modules as desired then configure a Management Group, Cluster (including VIP), Volume(s), Server(s) and Volume List. Consult the SAN/iQ Users Manual for configuration questions.

Configuring and Connecting to the HP Lefthand ISCSI SAN


To configure connectivity, first you need to find the default iSCSI initiator and make sure it is configured. Run the following command: 'smit iscsi' ________________________________________________________________________ Move cursor to desired item and press Enter. Configure iSCSI Protocol Device Remove iSCSI Protocol Device F1=Help F2=Refresh F3=Cancel Enter=Do Esc+8=Image

Esc+9=Shell Esc+0=Exit

________________________________________________________________________ Make sure you have 'Configure iSCSI Protocol Device' highlighted and press enter. The system will respond with: Configure iSCSI Protocol Device Move cursor to desired item and press Enter. Change / Show Characteristics of an iSCSI Protocol Device Generate Error Report

Trace iSCSI Protocol Device F1=Help Esc+9=Shell F2=Refresh Esc+0=Exit F3=Cancel Enter=Do Esc+8=Image

Make sure that 'Change / Show Characteristics of an iSCSI Protocol Device' is highlighted and press enter. The system will respond with: Change / Show Characteristics of iSCSI Protocol Device Type or select values in entry fields. Press Enter AFTER making all desired changes.
[Entry Fields] iSCSI protocol device Description Status iSCSI Initiator Name Maximum number of commands to queue to driver Discovery Policy Maximum Targets Allowed Apply change to DATABASE only iscsi0 iSCSI Protocol Device Available [iqn.ibm01.aix52.7f010> [200] files [16] yes +# + +# +

F1=Help Esc+5=Reset Esc+9=Shell

F2=Refresh Esc+6=Command Esc+0=Exit

F3=Cancel Esc+7=Edit Enter=Do

F4=List Esc+8=Image

You may enter an alternate iSCSI Initiator Name, once you are done making changes, press 'Enter' to commit and then exit 'smit'. Note: If an alternate iSCSI Initiator Name is entered, remember to use this updated name when creating the Server in SAN/iQ Edit the /etc/iscsi/targets file and add an entry for the storage cluster. The entry will look like this: 10.160.32.30 3260 iscsi

The above fields represent:


<IP address of Virtual IP> 10.160.32.30 <port number (3260 is the standard for iSCSI)> 3260 <either the Targets iSCSI name OR just iscsi to discover all targets at this IP address> iscsi

Confirm that the system can access the iLUNS (LeftHand iSCSI targets). Issue the following command: cfgmgr l iscsi0 The system will not return anything if everything is working. Next, issue the following command: lsdev C c disk If the iLUNs are available, the output will look like this: hdisk0 Available hdisk1 Available hdisk2 Available hdisk3 Available hdisk4 Available hdisk5 Available hdisk6 Available hdisk7 Available hdisk8 Available hdisk9 Available hdisk10 Available hdisk11 Available 10-60-00-8,0 16 Bit SCSI Disk Drive 10-60-00-9,0 16 Bit SCSI Disk Drive 10-88-00-8,0 16 Bit SCSI Disk Drive 10-88-00-9,0 16 Bit SCSI Disk Drive Other iSCSI Disk Drive Other iSCSI Disk Drive Other iSCSI Disk Drive Other iSCSI Disk Drive Other iSCSI Disk Drive Other iSCSI Disk Drive Other iSCSI Disk Drive Other iSCSI Disk Drive

Determine which hdisk represents which iSCSI volume on the LeftHand SAN. In order to match the hdisk with the LeftHand volume, issue the following command against each hdisk instance: lsattr -El <hdisk>

This will return:


clr_q no host_addr 10.20.50.95 location lun_id 0x0 max_transfer 0x40000 port_num 0xcbc pvid 00c4601e6bcdf88e0000000000000000 q_err yes q_type simple queue_depth 1 reassign_to 120 rw_timeout 30 start_timeout 60 Device CLEARS its Queue on error Hostname or IP Address Location Label Logical Unit Number ID Maximum TRANSFER Size PORT Number Physical volume identifier Use QERR bit Queuing TYPE Queue DEPTH REASSIGN time out value READ/WRITE time out value START unit time out value True False True False True False False True True True True True True

target_name iqn.2003-10.com.lefthandnetworks:jkim-lb:221:ii1 Target NAME False

Where host_addr is the VIP of the SAN/iQ Cluster and target_name is the target iqn of the SAN/iQ volume. Once the volume and hdisk association has been determined, proceed to either utilizing the raw volume or using Logical Volume Manager (LVM) to create logical volumes and filesystems.

Logical Volume Manager (LVM)


Unless RAW devices will be used for applications, AIX requires the use of Logical Volume Manager in order to format and write to filesystems. Please consult the AIX Logical Volume Manager Users Guide. http://publib-b.boulder.ibm.com/Redbooks.nsf/RedbookAbstracts/ sg245432.html?Open

Performance Considerations (From IBM)


To ensure the best performance: Enable the TCP Large Send, TCP send and receive flow control, and Jumbo Frame features of the AIX Gigabit Ethernet Adapter and the iSCSI Target interface.

Tune network options and interface parameters for maximum iSCSI I/O throughput on the AIX system Enable the RFC 1323 network option. Set up the tcp_sendspace, tcp_recvspace, sb_max, and mtu_size network options and network interface options to appropriate values. The iSCSI Software Initiator's maximum transfer size is 256KB. Assuming that the system maximums for tcp_sendspace and tcp_recvspace are set to 262144 bytes, an ifconfig command used to configure a gigabit Ethernet interface might look like the following: ifconfig en2 10.1.2.216 mtu 9000 tcp_sendspace 262144 tcp_recvspace 262144

Set the sb_max network option to at least 524288, and preferably 1048576. Set the mtu_size to 9000 (Remember to set this on the storage modules as well)

Note: For information on setting network options, see the no command description in AIX 5L Version 5.3 Commands Reference, Volume 4.

Vous aimerez peut-être aussi