Documente Academic
Documente Profesional
Documente Cultură
5: Installation
Getting Started
DB2 pureScale Installation Methods
Pre-installation checks for pureScale AIX/Linux
Installing using the db2setup command 图形界面
Installing using the db2_install command
DB2 pureScale Instance - db2icrt
Extending an Instance using db2iupdt – Adding a member of CF
Dropping Instances using db2iupdt – Dropping a member or CF
Post Installation checks
Maintenance
Removing pureScale Feature – db2_deinstall, db2idrop
http://www.ibm.com/systems/power/software/aix/expansionpack/index.html
• Create the id_dsa.pub for each of the other servers and add to the authorized_keys file
# cat id_dsa.pub.svr2 >> authorized_keys
• Copy the authorized_keys file to each of the other servers $HOME/.ssh directory
Path: /etc/objrepos
bos.mp64 7.1.3.16 COMMITTED Base Operating System 64-bit Multiprocessor Runtime
devices.chrp.IBM.lhca.rte 7.1.3.15 COMMITTED Infiniband Logical HCA Runtime Environment
devices.common.IBM.ib.rte 7.1.3.15 COMMITTED Infiniband Common Runtime Environment
devices.pciex.b3154a63.rte 7.1.3.15 COMMITTED 4X PCI-E DDR Infiniband Device Driver
devices.pciex.b315506714101604.rte 7.1.3.15 COMMITTED RoCE Host Bus Adapter (b315506714101604)
udapl.rte 7.1.3.15 COMMITTED uDAPL
• The IP Address must match the hostname in /etc/hosts that is used in the /etc/dat.conf
• Reference: http://www.ibm.com/developerworks/aix/library/au-infiniband/
• E.g:
# IP4 network hosts
192.168.159.223 lpar212ps1 ps1
192.168.159.224 lpar213ps2 ps2
192.168.159.225 lpar214ps3 ps3
192.168.159.226 lpar215ps4 ps4
192.168.152.234 lpar102ps1 ps5
192.168.152.158 lpar103ps2 ps6
192.168.152.219 lpar104ps3 ps7
192.168.152.240 lpar105ps4 ps8
# Pseudo hosts for ROCE must match /etc/dat.conf
10.222.1.1 lpar212ps1-en1-1.ibm.com lpar212ps1-en1-1 # member 0
10.222.1.2 lpar213ps2-en1-1.ibm.com lpar213ps2-en1-1 # member 1
10.222.2.1 lpar212ps1-en1-2.ibm.com lpar212ps1-en1-2 # CF 0
10.222.2.2 lpar213ps2-en1-2.ibm.com lpar213ps2-en1-2 # CF 1
• Edit the /etc/dat.conf to match the IP Adress to the RoCE card and port
hca0 u2.0 nonthreadsafe default /usr/lib/libdapl/libdapl2.a(shr_64.o) IBM.2.0 "/dev/roce0 1 lpar212ps1-en1-1"
""
hca1 u2.0 nonthreadsafe default /usr/lib/libdapl/libdapl2.a(shr_64.o) IBM.2.0 "/dev/roce0 2 lpar212ps1-en1-2"
""
# validateUdaplPing Host-Hca
100 bytes from 10.222.1.1: seq=0 time=53
100 bytes from 10.222.1.1: seq=1 time=27
100 bytes from 10.222.1.1: seq=2 time=29
100 bytes from 10.222.1.1: seq=3 time=25
100 bytes from 10.222.1.1: seq=4 time=28
round-trip average: 32
uDAPL ping from lpar212ps1-en1-1 (client) to lpar212ps1-en1-1 (server) was successful
100 bytes from 10.222.1.1: seq=0 time=61
100 bytes from 10.222.1.1: seq=1 time=24
100 bytes from 10.222.1.1: seq=2 time=23
100 bytes from 10.222.1.1: seq=3 time=23
100 bytes from 10.222.1.1: seq=4 time=22
round-trip average: 30
Then on each of the servers in the PureScale cluster relod the hdisks
# rmdev -dl <disk>
# cfgmgr
# lspv
hdisk0 00f8c66193782fd6 rootvg active
hdisk1 00f8c661da77f1a9 None
hdisk2 00f8c661da78064a None
• http://pic.dhe.ibm.com/infocenter/db2luw/v10r5/index.jsp?topic=
%2Fcom.ibm.db2.luw.qb.server.doc%2Fdoc%2Fr0056077.html
OFED-IBM-DB2-pureScale-PTF-1.5.2
•
Open SSH – 4.5.0.5302 and libstdc++.so in /usr/lib and /usr/lib64 required
• Manual installation
• e.g. db2_install -b DB2DIR -p ese_dsf -t /tmp/db2_install.trc -l
/tmp/db2_install.log
• db2setup
• Method:
- download db2 product, then uncompress install package to get the ese_dsf
(enterprise server edition_data sharing feature) folder
• Installation Checks:
Verify install logs for DB2 along with TSA MP and GPFS installed (default under /tmp )
- lslpp -L sam*, /usr/sbin/rsct/install/bin/ctversion , /usr/sbin/rsct/bin/samversion
- lslpp -L gpfs* or rpm –qa | grep -i gpfs
- Check global.reg for install entries like db2, TSA MP and GPFS
• Example:
db2icrt -d -instance_shared_dev /dev/hdisk2 –tbdev /dev/hdisk4 \
-cf coralpib101 -cfnet coralpib101-ib0 -m coralpib99 -mnet coralpib99-ib0 \
-u db2v105 db2v105
• Notes:
- Option “–d“ turns on debugging, check /tmp/db2icrt.trc.ProcessID
- Use “bootinfo –s hdisk2“ to check the size of disk for Cluster Filesystem and Tiebreaker (MByte).
- In case of user pre-defined cluster filesystem (GPFS) use the „-instance_shared_dir“ option and
file system path. TSA tiebreaker still needs to be passed into db2icrt command.
This type of GPFS is called “USER DEFINED GPFS“ and is not written in the global registry. When
dropping the instance we will not remove the GPFS.
• Method:
- db2iupdt command can be used to add a member server or CF
- adding can only be done when the instance is in offline state in v10.5.
- the instance can remain online when adding a member or CF in v11.1.
• Example:
db2iupdt -d -add -m coralpib100 -mnet coralpib100-ib0 -u db2v105 db2v105
• Notes:
- Option “–d“ turns on debugging
- Topology changes - check “lssam“ for new ressources added, db2diag.log and db2nodes.cfg
• Method:
- db2iupdt command can be used to drop a member server or CF
- dropping can only be done when the instance is in offline state in v10.5
- in v11.1, instance can be online while dropping CF. For dropping member,
instance has to be stopped.
- Instance will be removed and even peer domain and node from the GPFS
cluster but db2 will not be uninstalled on the remote host.
• Example:
db2iupdt -d -drop -m coralpib100 db2v105
• Notes:
- Option “–d“ turns on debugging
- Topology changes - check "lssam“ for new ressources added, db2diag.log and db2nodes.cfg
• In cases of adding extra disk to the existing GPFS , increasing user space, this
can be done online.
- db2cluster –cfs –list –filesystem
FILE SYSTEM NAME MOUNT_POINT
--------------------------------- -------------------------
svtfs0 /db2fs/svtfs0
svtfs1 /db2fs/svtfs1
- db2cluster –cfs –add –filesystem svtfs0 –disk /dev/dm-0
• In cases of using same TSA domain and you want to create new resource model
db2cluster –cm –verify -resources
db2cluster -cm -delete -resources
db2cluster -cm -create –resources
• db2_deinstall –a: will uninstall db2 along with db2 and TSA MP and GPFS
• db2_deinstall –a –s TSAMP –s GPFS: will uninstall db2 but not TSAMP and
GPFS
• Check for db2_deinstall.log in /tmp for components uninstalled and also, run
lslpp -L sam* and lslpp -L gpfs* for filesets related to the components
Note: If TSAMP and GPFS were not getting uninstalled, it means these entries
were not added to /var/db2/global.reg, so check your global.reg before you
uninstall or vice versa.
http://pic.dhe.ibm.com/infocenter/db2luw/v10r5/index.jsp?topic=
%2Fcom.ibm.db2.luw.qb.server.doc%2Fdoc%2Ft0055379.html
• DB2 installs everything on remote hosts as well – not a bad idea to check for prereqs
before starting that process as it can be very time consuming! .. db2prereqcheck
executable.
• Adding members to a cluster entails many steps. Carefully review where the error is
including:
• Extending TSAM/RSCT cluster
• Extending GPFS cluster
• lssam : After starting the members, check that the TSAM resources are Online and
ready to go (if one member has resources terminated, may not be able to see
anything – sometimes helps to run from a different node)
• Verify the installation and instance creation logs (ie. /tmp/db2icrt.*). It is possible DB2
reports successful, even if something “small” has failed. Cause lots of grief moving
forward!
• db2ckgpfs / db2cktsa : On the DB2 image (ie. DVD), find these commands and verify
the level that's installed.
• Important areas:
• Global registry / helper files: /var/db2
• Global shared sqllib : /db2_instance/dtw/sqllib_shared
• uDAPL configuration : /etc/rdma/dat.conf; /etc/dat.conf
• RoCE
• Infiniband
• Sockets
• /etc/dat.conf file
• Installation methods:
db2setup