Perform the following preinstallation steps and verify them on each host before installing the IBM® DB2® pureScale® Feature.
The following steps must be performed on all hosts:
cat /etc/SuSE-release
SUSE Linux Enterprise Server 10 (x86_64)
VERSION = 10
PATCHLEVEL = 3
Enter the following command:cat /proc/version
Linux version 2.6.16.60-0.69.1-smp (geeko@buildhost)(gcc version 4.1.2 20070115 (SUSE Linux)) #1 SMP Fri May 28 12:10:21 UTC 2010
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.1 (Santiago)
and
for RHEL 5.7:cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.7 (Tikanga)
Enter
the following command for RHEL 6.1:cat /proc/versionLinux version
2.6.32-131.0.15.el6.x86_64 (mockbuild@x86-007.build.bos.redhat.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Tue May 10 15:42:40 EDT 2011
and
for RHEL 5.7:cat /proc/versionLinux version
2.6.18-274.7.1.el5 (mockbuild@x86-004.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)) #1 SMP Mon Oct 17 11:57:14 EDT 2011
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.1 (Santiago)
Enter
the following command:cat /proc/version
Linux version
yum list | grep package_name
[root]# for i in `cat /tmp/list`; do yum list | grep $i; done
libibcm.i686 1.0.5-2.el6 @rhel-x86_64-server-6
libibverbs-rocee.i686 1.1.4-4.el6 @rhel-x86_64-server-hpn-6
librdmacm.i686 1.0.10-2.el6 @rhel-x86_64-server-6
libcxgb3.i686 1.3.0-1.el6 @rhel-x86_64-server-6
libibmad.i686 1.3.4-1.el6 @rhel-x86_64-server-6
libibumad.i686 1.3.4-1.el6 @rhel-x86_64-server-6
libmlx4-rocee.i686 1.0.1-8.el6 @rhel-x86_64-server-hpn-6
libmthca.i686 1.0.5-7.el6 @rhel-x86_64-server-6
# chkconfig --list | grep -i openibd
openibd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
The openibd service
must be enabled. To enable the service: # chkconfig openibd on
# chkconfig --list | grep -i openibd
openibd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
For 10GE
network on RHEL 6.1, ensure that the rdma service
is enabled:chkconfig --list | grep -i rdma
rdma 0:off 1:off 2:off 3:off 4:off 5:off 6:off
The rdma service
must be enabled. To enable the service:# chkconfig rdma on
# chkconfig --list | grep -i rdma
rdma 0:on 1:on 2:on 3:on 4:off 5:off 6:off
ls /usr/lib/libstdc++.so.6*
ls /usr/lib64/libstdc++.so.6*
Use the grep command on the /etc/services file to ensure that a contiguous range of ports is available.
root@host1:/> netstat -i
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0 1500 0 6876034 0 0 0 5763121 0 0 0 BMRU
ib0 65520 0 106972 0 0 0 9 0 0 0 BMRU
lo 16436 0 180554 0 0 0 180554 0 0 0 LRU
$ ssh host1 hostname
host1
/usr/lpp/mmfs/bin/mmlscluster
Remote shell command: /var/db2/db2ssh/db2locssh
Remote file copy command: /var/db2/db2ssh/db2scp
To ensure correct synchronization, check that all hosts are listed in the .update file with the following format: hostname=install path. If incorrectly formatted, update the file. For example: machineA=/opt/IBM/db2/V9.8, where hostname=machineA and install path=/opt/IBM/db2/V9.8.
$ cd /tmp
$ df -k .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda7 2035606 164768 1870838 9% /tmp
host1:~ # /opt/mpp/lsvdev
Array Name Lun sd device
-------------------------------------
DS5300SVT1 0 -> /dev/sdc
DS5300SVT1 1 -> /dev/sdd
DS5300SVT1 2 -> /dev/sde
DS5300SVT1 3 -> /dev/sdf
DS5300SVT1 4 -> /dev/sdg
host1:~ # /usr/sbin/mppUtil -a
Hostname = host1
Domainname = N/A
Time = GMT 08/06/2010 16:27:59
---------------------------------------------------------------
Info of Array Module's seen by this Host.
---------------------------------------------------------------
ID WWN Type Name
---------------------------------------------------------------
0 600a0b800012abc600000000402756fc FC FASTSVT1
1 600a0b800047bf3c000000004a9553b8 FC DS5300SVT1
---------------------------------------------------------------
host1:~ # /usr/sbin/mppUtil -a DS5300SVT1 | awk '/Status/ || /NumberOfPaths/'
Controller 'A' Status:
NumberOfPaths: 1 FailoverInProg: N
Controller 'B' Status:
NumberOfPaths: 1 FailoverInProg: N
When
the disk is of single path setup, only one controller is listed, and
the value of NumberOfPaths is 1.[root@host1 ~]# lsscsi
[3:0:1:0] disk IBM 2107900 .450 /dev/sdk
[3:0:1:2] disk IBM 2107900 .450 /dev/sdl
[3:0:1:3] disk IBM 2107900 .450 /dev/sdm
[3:0:1:4] disk IBM 2107900 .450 /dev/sdn
[3:0:2:0] disk IBM 2107900 .450 /dev/sdo
[3:0:2:2] disk IBM 2107900 .450 /dev/sdp
[3:0:2:3] disk IBM 2107900 .450 /dev/sdq
[3:0:2:4] disk IBM 2107900 .450 /dev/sdr
[4:0:0:0] disk IBM 2107900 .450 /dev/sdc
[4:0:0:2] disk IBM 2107900 .450 /dev/sdd
[4:0:0:3] disk IBM 2107900 .450 /dev/sde
[4:0:0:4] disk IBM 2107900 .450 /dev/sdf
[4:0:1:0] disk IBM 2107900 .450 /dev/sdg
[4:0:1:2] disk IBM 2107900 .450 /dev/sdh
[4:0:1:3] disk IBM 2107900 .450 /dev/sdi
[4:0:1:4] disk IBM 2107900 .450 /dev/sdj
[root@host1 ~]# sg_map -x
/dev/sg9 4 0 0 0 0 /dev/sdc
/dev/sg10 4 0 0 2 0 /dev/sdd
/dev/sg11 4 0 0 3 0 /dev/sde
/dev/sg12 4 0 0 4 0 /dev/sdf
/dev/sg13 4 0 1 0 0 /dev/sdg
/dev/sg14 4 0 1 2 0 /dev/sdh
/dev/sg15 4 0 1 3 0 /dev/sdi
/dev/sg16 4 0 1 4 0 /dev/sdj
/dev/sg17 3 0 1 0 0 /dev/sdk
/dev/sg18 3 0 1 2 0 /dev/sdl
/dev/sg19 3 0 1 3 0 /dev/sdm
/dev/sg20 3 0 1 4 0 /dev/sdn
/dev/sg21 3 0 2 0 0 /dev/sdo
/dev/sg22 3 0 2 2 0 /dev/sdp
/dev/sg23 3 0 2 3 0 /dev/sdq
/dev/sg24 3 0 2 4 0 /dev/sdr
[root@host1 ~]# multipath -l
mpath2 (36005076304ffc21f000000000000111f) dm-0 IBM,2107900
' ' ' '-- Vendor,Product
' ' '------------- device-mapper or
' ' disk name
' '
' '------------------------------------------ WWID
'
'---------------------------------------------------------- user friendly
name
[size=100G][features=1 queue_if_no_path][hwhandler=0][rw]
' ' '
' ' '--------------- hardware handler,
' ' if any (seen in
' ' cases of FastT,EMC)
' '
' '------------------------------------ features supported
' or configured
'
'---------------------------------------------------------- Size of the disk
\_ round-robin 0 [prio=0][active]
' ' ' '------------------------------- Path Group State
' ' '--------------------------------------- Path Group Priority
' '
' '-------------------------------------------------- Path Selector and
' repeat count
'
'--------------------------------------------------------- Path Group Level
\_ 4:0:0:0 sdc 8:32 [active][ready]
------- --- ---- ------- ------
' ' ' ' '--------------------------- Physical Path State
' ' ' '--------------------------------- Device Mapper State
' ' '----------------------------------------- Major, Minor number
' ' of disk
' '--------------------------------------------- Linux SCSI device name
'
'---------------------------------------------------- SCSI Information:
Host_ID, Channel_ID,
SCSI_ID, LUN_ID
\_ 4:0:1:0 sdg 8:96 [active][ready]
\_ 3:0:1:0 sdk 8:160 [active][ready]
\_ 3:0:2:0 sdo 8:224 [active][ready]
mpath6 (36005076304ffc21f0000000000001123) dm-3 IBM,2107900
[size=100G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 4:0:0:4 sdf 8:80 [active][ready]
\_ 4:0:1:4 sdj 8:144 [active][ready]
\_ 3:0:1:4 sdn 8:208 [active][ready]
\_ 3:0:2:4 sdr 65:16 [active][ready]
mpath5 (36005076304ffc21f0000000000001122) dm-2 IBM,2107900
[size=1.0G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=0][enabled]
\_ 4:0:0:3 sde 8:64 [active][ready]
\_ 4:0:1:3 sdi 8:128 [active][ready]
\_ 3:0:1:3 sdm 8:192 [active][ready]
\_ 3:0:2:3 sdq 65:0 [active][ready]
mpath4 (36005076304ffc21f0000000000001121) dm-1 IBM,2107900
[size=100G][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=0][active]
\_ 4:0:0:2 sdd 8:48 [active][ready]
\_ 4:0:1:2 sdh 8:112 [active][ready]
\_ 3:0:1:2 sdl 8:176 [active][ready]
\_ 3:0:2:2 sdp 8:240 [active][ready]
host1:~ # powermt display dev=all
Pseudo name=emcpowerd
Symmetrix ID=000194900547
Logical device ID=0040
state=alive; policy=BasicFailover; priority=0; queued-IOs=0
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
3 qla2xxx sdg FA 7eB active alive 0 0
Pseudo name=emcpowerc
Symmetrix ID=000194900547
Logical device ID=0041
state=alive; policy=BasicFailover; priority=0; queued-IOs=0
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
3 qla2xxx sdh FA 7eB active alive 0 0
Pseudo name=emcpowerb
Symmetrix ID=000194900547
Logical device ID=0126
state=alive; policy=BasicFailover; priority=0; queued-IOs=0
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
3 qla2xxx sdi FA 7eB active alive 0 0
Pseudo name=emcpowera
Symmetrix ID=000194900547
Logical device ID=013C
state=alive; policy=BasicFailover; priority=0; queued-IOs=0
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
3 qla2xxx sdj FA 7eB active alive 0 0
echo "options mlx4_core log_mtts_per_seg=7" >> /etc/modprobe.conf.local
echo "options mlx4_core log_mtts_per_seg=7" >> /etc/modprobe.d/modprobe.conf
options mlx4_core log_mtts_per_seg=7
<host-name>/sys/module/mlx4_core/parameters # cat /sys/module/mlx4_core/parameters/log_mtts_per_seg
7
lsmod | grep -i iTCO_wdt; lsmod | grep -i iTCO_vendor_support
# RSCT hatsd
blacklist iTCO_wdt
blacklist iTCO_vendor_support
add
blacklist iTCO_wdt
blacklist iTCO_vendor_support
Optional. If you are doing a root installation of the DB2 pureScale Feature, you must set the ulimit value of filesize to unlimited. You must also set the value of umask to 022. If you do not set the values of ulimit and umask correctly, your DB2 pureScale Feature installation might fail.
You can view the current values of ulimit and umask by issuing the following command:
id root; ulimit -f; umask
You must have root authority to use these commands.
The DB2 cluster services tiebreaker is used in a recovery scenario when your DB2 pureScale instance is split in half due to a communication failure. DB2 cluster services use the tiebreaker to determine which half of the DB2 pureScale instance will remain online. This partition must be at least 25 MB in size and accessible from all hosts.
Required Item | Your Value | Example |
---|---|---|
Instance owner/group name | db2sdin1/db2iadm1 | |
Fenced user/group name | db2sdfe1/db2fadm1 | |
Installation directory name | /opt/IBM/db2/V10.1 | |
Shared file system disk | /dev/hdisk12 | |
Hosts to include | db2_host01 - db2_host04. | |
Netname interconnect for each member and CF | InfiniBand network example: db2_<hostname>_ib0 10 Gigabit Ethernet network example: db2_<hostname>_en1 Note: db2_<hostname>_en1 does
not map to a regular ethernet adapter. It must map to the pseudo IP
address for the 10GE communication adapter port.
For multiple RoCE adapters configuration, ensure that the
third octet of the pseudo IP address to all RoCE adapters on the same
host are different.For example,
The pseudo IP address to all
RoCE adapters is stored in the /etc/hosts file. |
Optional Item | Your Value | Example |
---|---|---|
Tiebreaker disk | On AIX®: /dev/hdisk13 On Linux: /dev/dm-0 or /dev/sdc |
|
FCM port range | 60000 - 60004 | |
cluster caching facilities port range | 56000 - 56001 | |
DB2 communication port | 50001 | |
Hosts to set up as cluster caching facilities | db2_host03 and db2host04 | |
On InfiniBand, the cluster interconnect netnames of the cluster caching facilities | Primary: db2_<hostname1>_ib0,db2_<hostname1>_ib1,db2_<hostname1>_ib2,db2_<hostname1>_ib3 Secondary: db2_<hostname2>_ib0,db2_<hostname2>_ib1,db2_<hostname2>_ib2,db2_<hostname2>_ib3 |
|
On 10GE, the cluster interconnect netnames of the cluster caching facilities | Primary: db2_<hostname1>_en1,db2_<hostname1>_en2,db2_<hostname1>_en3,db2_<hostname1>_en4 Secondary: db2_<hostname2>_en1,db2_<hostname2>_en2,db2_<hostname2>_en3,db2_<hostname2>_en4 |
|
Hosts to set up as members | db2_host01 and db2host02 |