Steve's Power Systems BlogPower BlogContactLog inRegister
  • Power Blog
  • Contact

  • Register

IBM Power Systems Blog

Power Systems
  • Front Page
  • Categories
  • Archives
  • Latest comments
  • « Format or Erase Data from a hard disk
  • VIO Server Command Line »

Tuning vSCSI Disk Settings

Posted by steve on 17 Oct 2012 in AIX Tuning, AIX Tips

There are several settings that can be tuned for vSCSI Disks in AIX and this is understanding of these tuning options and the various settings allowed per attribute.

 

What is algorithm?

The algorithm setting tells the device driver which load balancing and/or failover algorithms to use.  With vSCSI disks, only fail_over is supported.

 

What is hcheck_cmd?

The hcheck_cmd settings tells device driver which health check command to use to verify if the disk is still active and alive.  The two valid options are test_unit_rdy and inquiry.  If you have reservation locks on your disks, use the inquiry option, as the test_unit_rdy option will fail and log an error on the client.

 

What is hcheck_interval?

The hcheak_interval is the interval in seconds between health check polls to the disk using the hcheck_cmd above.  If an MPIO disks failed path is polled and found to be responding, the failed path will automatically be re-enabled.  A value of 0 (zero) disable the auto polling feature.  This value should always be greater than the rw_timeout value of the parent adapter.  Having a small value may add aditional IO load to the adapter and disk drivers, especially if you have a large number of disk and paths per adapter.

 

What is hcheck_mode?

The hcheck_mode determines which types of device paths are health checked.  The PCM checks the continuity of a path and the ability of the target device to process commands.  If this check is successful, the path will be enabled. If the check fails, the path is left in its current state or failed.

Select "enabled" to check only paths that are in the enabled state and have no active I/O.

Select "failed" to check only paths that are in the failed state only.

Select "nonactive" to check only paths with no active I/O, these paths can be in a failed state.

 

What is queue_depth?

The queue_depth settings determines how many pending IOs are allowed per disk device, allowable range is 1 to 256.  It is generally recommended to leave this setting at the default value as per the vendors recommendation, unless advised by IBM or the vendor support teams.  The number of concurrent outstanding I⁄O requests that can be queued on the disk with additional requests being blocked and the 'sqfull' value shown with 'iostat -DR' will increase.

 

What is reserve_policy?

The reserve_policy is the disk reservation policy in force.  This provides support for applications that are enabled to use SCSI-2 reserve functions. Typically clustering software will require the 'single_path' reserve option to be set.

 

What is max_transfer?

The max_transfer setting determines the amount of data that can be transfered to the disk in a single I/O operation.  By increasing this value for all disks in a volume group, then the 'LTG size' value for a volume group can be increased.  You may want increase this value so that the AIX I/O size is equal to (or greater than) your array stripe size.  Below is the size each hex value relates to.

0x20000 =  128KB

0x40000 =  256KB    <== Generally the Default value.

0x80000 =  512KB

0x100000 =   1MB

The following may not be support by AIX/LVM

0x200000 =   2MB

0x400000 =   4MB

0x800000 =   8MB

0x1000000 = 16MB

 

Load Balance with Multiple Paths

By default, when you run cfgmgr on an AIX LPAR with MPIO, all vSCSI disks will be set with a path priority of 1.  This means that all your disk I/O (by default) will go to the first VIO server configured to service your disks.  For best performance and to balance across multiple VIO servers, use the chpath command.  I suggest all even number disks have priority 1 to the first VIO Server and priority 2 to the second VIOS, and all odd numbered disks have priority 1 to the second VIOS and priority 2 to the first VIOS, as per the following example.

chpath -l hdisk0 -p vscsi0 -a priority=1

chpath -l hdisk0 -p vscsi1 -a priority=2

chpath -l hdisk1 -p vscsi0 -a priority=2

chpath -l hdisk1 -p vscsi1 -a priority=1

 

 

Tags: AIXdelayed_failfast_failrw_timeoutvSCSIvscsi_err_recovvscsi_path_to

No feedback yet


Form is loading...

July 2026
Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
 << <   > >>

IBM Power Systems Blog

IBM Power Systems - Administration, Tuning and Optimisation. These posts are my own personal opinions and comments only.

Search

Categories

  • All
  • AIX Tips
  • AIX Tuning
  • Command Line Tips
  • HMC Tips
  • LPM Information
  • NIM Tips
  • Performance Testing
  • Power System Affinity
  • PowerHA Tips
  • SRIOV and vNIC
  • Scripts and One Liners
  • VIO Server Tips

Recent Posts

  • AIX NIM Hints and Tips
  • Finding Multiple Install Sources for AIX
  • PowerHA and EMC Busy Devices
  • AIX Random Password Generation
  • VIO Server 3.1.0 and ssh host keys
  • VIO Server 3.1.0 Items to Review
  • Just when you thought you understood idle CPU time!!
  • 40Gbit Adapter Performance Testing
  • LPM Copy Time Statistics
  • IBM HMC Upgrades

Recent Comments

  • steve on How to configure IBM SRIOV Adapters
  • Howard Coles on How to configure IBM SRIOV Adapters
  • steve on AIX mpstat and lssrad part 1
  • Charin Kumjudpai on AIX mpstat and lssrad part 1
  • Gagandeep on LPM and multiple vSwitches
  • Fant Steele on VIO Server 3.1.0 and ssh host keys
  • steve on AIX NIM Hints and Tips
  • alan wilcox on AIX NIM Hints and Tips
  • steve on AIX buf_mode attribute for Virtual Ethernet Adapters
  • Bernhar on AIX buf_mode attribute for Virtual Ethernet Adapters
  • Gery on Reading VLANs from the SEA Adapter
  • steve on Reading VLANs from the SEA Adapter
  • patrice on Reading VLANs from the SEA Adapter
  • steve on Reading VLANs from the SEA Adapter
  • steve on AIX buf_mode attribute for Virtual Ethernet Adapters
  • Chris K. on AIX buf_mode attribute for Virtual Ethernet Adapters
  • jovi on AIX or VIOS Errors: 29FA8C20 and 7BFEEA1F
  • steve on AIX or VIOS Errors: 29FA8C20 and 7BFEEA1F
  • jovi on AIX or VIOS Errors: 29FA8C20 and 7BFEEA1F
  • steve on Creating EtherChannel Devices from Command Line

This collection ©2026 by Stephen Diwell • Contact • Help • Free CMS

Social CMS engine
Cookies are required to enable core site functionality.