This document describes how to enable and use the new volatile adapter write cache feature for the integrated
SAS controllers in the #EL3T and #EL3V SAS backplanes on IBM Power 8247-21L and 8247-22L systems,
the integrated SAS controllers in the #EJ0N and #EJ0S SAS backplanes on the IBM Power 8247-42L,
and the PCIe3 x8 SAS RAID adapter low profile Quad Port 6Gb (#EJ0J and #EJ0M). Once the required
adapter firmware and Linux software prerequisites are installed, this feature is enabled by default, but can
be manually disabled on a per RAID array basis. This feature enables a volatile write cache in the SAS
RAID adapter into which data is written. This data is then later flushed to the underlying disks. This
allows the RAID adapter to combine multiple host writes into fewer writes to the disks. It also enables the
RAID adapter to issue stripe writes to RAID 5 or 6 arrays, when a full parity stripe of data is available in
the cache, which can eliminate read-xor write overhead that may occur when a write cache is not available.
This can provide a noticeable performance advantage for some write workloads.
The adapter firmware which implements this volatile write caching feature includes support for a SYNCHRONIZECACHE mechanism. This allows journaled filesystems in the Linux operating system to flush any previously
written data prior to updating the filesystem journal. This ensures the filesystem data stays coherent with
respect to the journal in the case of an unexpected power loss of the system. For use cases which access
the RAID array block devices directly and bypass any filesystems in Linux, it may be desireable to disable this feature, particularly if the software has not been written to issue SYNCHRONIZE CACHE commands.
Instructions on how to disable this feature are described later in this document.
3 of 15
IBM Power Systems 57D7/57B4 Adapter Write Cache
Version 1.3 dated May 19, 2016
Chapter 2
Software and Hardware Requirements
The required hardware, firmware, and software levels for this feature are described below.
• #EJ0M: PCIe3 x8 SAS RAID adapter low profile Quad Port 6Gb
1
1
2.0.3Supported Linux Operating System Releases & Configurations
• Bare Metal Systems (indicated by #EC16):
– Ubuntu Server 16.04, or later
• PowerKVM 3.1 Systems (indicated by #EC40) or PowerKVM 2.1 (#EC20)
– Not supported
• Other environments, such as PowerVM (not PowerKVM, not Bare Metal)
– Red Hat Enterprise Linux 6.5, or later
– Red Hat Enterprise Linux 7.2, little endian, or later
– Red Hat Enterprise Linux 7.2, big endian, or later
1
Single adapter configurations only, feature not supported for dual adapter, HA configurations
4 of 15
IBM Power Systems 57D7/57B4 Adapter Write Cache
– SUSE Linux Enterprise Server 11, Service Pack 4, or later
– SUSE Linux Enterprise Server 12, Service Pack 1, or later
– Ubuntu Server 16.04, or later
2.0.4Minimum SAS RAID Adapter Firmware Level
• 14511900
2.0.5Minimum Linux iprutils Package Level
• 2.4.11
Version 1.3 dated May 19, 2016
5 of 15
IBM Power Systems 57D7/57B4 Adapter Write Cache
Version 1.3 dated May 19, 2016
Chapter 3
Installation Instructions
3.1Linux Software Installation Instructions
3.1.1YUM Repository
Installing via the IBM Power Tools YUM repository is the preferred method for obtaining the required
2.4.11 version of the iprutils package. Use this method if your system has connectivity to the external
network and is able to download files direct from the internet. If you are using Ubuntu 16.04, the requisite
version of iprutils should be able to be installed using apt-get, like any other package that is part of the
Ubuntu distribution. In this case, you can skip ahead to section 3.2 on updating the adapter firmware.
First, configure the IBM Power Tools YUM repository. Go to the following page for instructions on how to
download the configuration RPM file and how to configure the repository: http://www14.software.ibm.
com/webapp/set2/sas/f/lopdiags/yum.html.
Once the repository is configured, upgrade the iprutils package to the 2.4.11 version from the newly
configured repository. During this process, you will be prompted to accept the GPG key for the newly added
YUM repository. Please allow this new GPG key to be accepted, otherwise the package installation will be
aborted.
3.1.1.1Red Hat
# yum update iprutils
3.1.1.2SUSE
# zypper update iprutils
The currently installed version of iprutils can be verified with the following command.
# iprconfig --version
iprconfig: 2.4.11.1
6 of 15
IBM Power Systems 57D7/57B4 Adapter Write Cache
Version 1.3 dated May 19, 2016
Ensure the iprutils daemons are enabled to start on the next boot. Please note, that the iprinit daemon
must be enabled and running for this write cache feature to get enabled at boot time.
# chkconfig iprinit on
# chkconfig iprupdate on
# chkconfig iprdump on
3.1.2Manual Installation
Use this method if either the YUM repository method fails or your system is unable to download files directly
from the internet. Download the iprutils package directly from one of the following locations, depending
on your OS level, and transfer to the server.
Next, remove the old iprutils package and then install the 2.4.11 version by running the following commands on the server to which you transferred the iprutils rpm package.
The currently installed version of iprutils can be verified with the following command.
# iprconfig --version
iprconfig: 2.4.11.1
7 of 15
IBM Power Systems 57D7/57B4 Adapter Write Cache
Version 1.3 dated May 19, 2016
Ensure the iprutils daemons are enabled to start on the next boot. Please note, that the iprinit daemon
must be enabled and running for this write cache feature to get enabled at boot time.
# chkconfig iprinit on
# chkconfig iprupdate on
# chkconfig iprdump on
3.2Adapter Firmware Installation Instructions
The required 14511900 version of SAS adapter firmware to enable this feature can be downloaded from IBM
Fix Central at the following URL: http://www.ibm.com/support/fixcentral/main/quickorder?parent=
Power%2BIO%2BFirmware&product=ibm/io/featurecode/EJ0T&release=all&platform=all&function=all&source=
fc. The pci.1014034A.51-14511900-1.Linux.noarch.rpm file should be downloaded. Once downloaded,
install to your Linux system with the rpm command.
To begin the process of installing the new adapter firmware, first login as root on the target server, then
run iprconfig.
You should see a screen similar to this:
IBM Power RAID Configuration Utility
Select one of the following:
1. Display hardware status
2. Work with disk arrays
3. Work with disk unit recovery
4. Work with configuration options
5. Work with microcode updates
6. Devices Statistics
7. Analyze log
Selection:
e=Exit
Select option 5.Work with microcode updates, and press Enter.
8 of 15
IBM Power Systems 57D7/57B4 Adapter Write Cache
Version 1.3 dated May 19, 2016
Select option 2.Download latest microcode to all devices, and press Enter.
Work with microcode updates
Select one of the following:
1. Download microcode
2. Download latest microcode to all devices
Selection:
e=Exitq=Cancel
You should then see a screen similar to the following screen, showing one or more adapters to be updated
with the pci.1014034A.51.14511900 firmware image.
Confirm Microcode Download
The following devices are going to be updated.
ATTENTION:System performance may be
affected during the microcode download process. Download may take some time.
The Firmware Version field should show 14511900. You should now see a Cache Protection field showing
a value of Synchronize Cache. Note, you may need to page down using ’f ’ in order to see this value.
11 of 15
IBM Power Systems 57D7/57B4 Adapter Write Cache
Version 1.3 dated May 19, 2016
Chapter 4
Feature Enablement
4.1Curses Interface
By default, the write cache should now be set to Write Back, indicating the adapter volatile write cache
is enabled. This can be confirmed by selecting option 4.Work with configuration options from the
main menu, then pressing Enter.
At this point you should see a screen like the following.
IBM Power RAID Configuration Utility
Select one of the following:
1. Work with SCSI bus configuration
2. Work with driver configuration
3. Work with disk configuration
4. Work with adapter configuration
Selection:
e=Exitq=Cancel
Next, select option 3.Work with disk configuration from the menu and press Enter.
12 of 15
IBM Power Systems 57D7/57B4 Adapter Write Cache
Version 1.3 dated May 19, 2016
You should now see a screen similar to the following.
Here, you will see all the physical disks as well as the logical RAID array devices as well. In this example,
we will choose the first RAID array, sda. Using the arrow keys, navigate to the desired RAID array, select
the device by entering ’1’, then press Enter.
Change Configuration of Disk
Current Disk configurations are shown. To change setting hit ’c’ for options
menu. Highlight desired option then hit Enter.
Here we can see the Device Write Cache Policy is set to Write Back, as expected. If it is desired to
disable the volatile adapter write cache for a specific RAID array, on this same screen, using the arrow keys,
select the Device Write Cache Policy field, then type ’c’ to display the possible options. Then use the
arrow keys to select the desired caching mode and press Enter. Press Enter again to confirm the change
13 of 15
IBM Power Systems 57D7/57B4 Adapter Write Cache
Version 1.3 dated May 19, 2016
4.2Command Line Interface
Alternatively, the iprconfig command line interface can be used to display and change the current caching
mode.
To list the current hardware RAID arrays current configured on the system use the following command: