From efed7f2b66bf004bb1ce6ab3fd3bbe81f9ab92d8 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 12 Feb 2013 18:39:21 +0000 Subject: [PATCH] move db2 routines from tools directory to scripts directory git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15147 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/scripts/createdb.sql | 34 ++++++++++++++++++++ xCAT-server/share/xcat/scripts/updateDBM.sql | 10 ++++++ xCAT-server/share/xcat/scripts/xcatfmcd.conf | 15 +++++++++ 3 files changed, 59 insertions(+) create mode 100755 xCAT-server/share/xcat/scripts/createdb.sql create mode 100755 xCAT-server/share/xcat/scripts/updateDBM.sql create mode 100644 xCAT-server/share/xcat/scripts/xcatfmcd.conf diff --git a/xCAT-server/share/xcat/scripts/createdb.sql b/xCAT-server/share/xcat/scripts/createdb.sql new file mode 100755 index 000000000..3db313167 --- /dev/null +++ b/xCAT-server/share/xcat/scripts/createdb.sql @@ -0,0 +1,34 @@ +create db xcatdb; +connect to xcatdb; +CREATE BUFFERPOOL BP16K SIZE 2000 PAGESIZE 16K; +Create tablespace xcattbs16k pagesize 16k managed by system using('/var/lib/db2/ts16') BUFFERPOOL BP16K; +CREATE BUFFERPOOL BP32K SIZE 2000 PAGESIZE 32K; +Create tablespace xcattbs32k pagesize 32k managed by system using('/var/lib/db2/ts32') BUFFERPOOL BP32K; +update db cfg for xcatdb using MAXLOCKS AUTOMATIC; +update db cfg for xcatdb using LOCKLIST AUTOMATIC; +update db cfg for xcatdb using APPGROUP_MEM_SZ 40000; +update db cfg for xcatdb using GROUPHEAP_RATIO 80; +update db cfg for xcatdb using NUM_IOCLEANERS AUTOMATIC; +update db cfg for xcatdb using NUM_IOSERVERS AUTOMATIC; +update db cfg for xcatdb using SOFTMAX 120; +update db cfg for xcatdb using APP_CTL_HEAP_SZ 512; +update db cfg for xcatdb using DBHEAP AUTOMATIC; +update db cfg for xcatdb using SORTHEAP AUTOMATIC; +update db cfg for xcatdb using STMTHEAP AUTOMATIC; +update db cfg for xcatdb using APPLHEAPSZ AUTOMATIC; +update db cfg for xcatdb using DATABASE_MEMORY AUTOMATIC; +update db cfg for xcatdb using PCKCACHESZ AUTOMATIC; +update db cfg for xcatdb using SHEAPTHRES_SHR AUTOMATIC; +update db cfg for xcatdb using APPL_MEMORY AUTOMATIC; +update db cfg for xcatdb using STAT_HEAP_SZ AUTOMATIC; +update db cfg for xcatdb using DFT_PREFETCH_SZ AUTOMATIC; +update db cfg for xcatdb using MAXAPPLS AUTOMATIC; +update db cfg for xcatdb using AVG_APPLS AUTOMATIC; +update db cfg for xcatdb using LOGBUFSZ 98; +update db cfg for xcatdb using LOGFILSIZ 40048; +update db cfg for xcatdb using LOGPRIMARY 10; +update db cfg for xcatdb using LOGSECOND 20; +update db cfg for xcatdb using AUTO_RUNSTATS ON; +update db cfg for xcatdb using AUTO_TBL_MAINT ON; +update db cfg for xcatdb using AUTO_MAINT ON; +update db cfg for xcatdb using CATALOGCACHE_SZ 50; diff --git a/xCAT-server/share/xcat/scripts/updateDBM.sql b/xCAT-server/share/xcat/scripts/updateDBM.sql new file mode 100755 index 000000000..9bdbc70b6 --- /dev/null +++ b/xCAT-server/share/xcat/scripts/updateDBM.sql @@ -0,0 +1,10 @@ +update dbm cfg using MON_HEAP_SZ AUTOMATIC; +update dbm cfg using INSTANCE_MEMORY AUTOMATIC; +update dbm cfg using NUM_POOLAGENTS AUTOMATIC; +update dbm cfg using MAX_COORDAGENTS AUTOMATIC; +update dbm cfg using MAX_CONNECTIONS AUTOMATIC; +update dbm cfg using FENCED_POOL AUTOMATIC; +update dbm cfg using FCM_NUM_BUFFERS AUTOMATIC; +update dbm cfg using FCM_NUM_CHANNELS AUTOMATIC; +update dbm cfg using DIAGSIZE 1024; +update dbm cfg using AUTHENTICATION CLIENT IMMEDIATE; diff --git a/xCAT-server/share/xcat/scripts/xcatfmcd.conf b/xCAT-server/share/xcat/scripts/xcatfmcd.conf new file mode 100644 index 000000000..1b5b13e1c --- /dev/null +++ b/xCAT-server/share/xcat/scripts/xcatfmcd.conf @@ -0,0 +1,15 @@ +# DB2 fault monitor +# +# Starts xcatfmcd + +description "Fault Monitor is the DB2 database facility that automatically starts an instance after a crash" +version "9.7.0.4" + +start on runlevel [2345] +stop on runlevel [016] + +console output +respawn +respawn limit 10 120 + +exec /opt/ibm/db2/V9.7/bin/db2fmcd