We have Db2 10.5.0.7 on centos 6.9 and TSAMP 3.2 as our high availability solution, when we create a tablespace in primary database we encounter the following errors in the standby:
2019-08-31-08.47.32.164952+270 I87056E2779 LEVEL: Error (OS) PID : 4046 TID : 47669095425792 PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : SAMDB APPHDL : 0-8 APPID: *LOCAL.DB2.190725231126 HOSTNAME: samdb-b EDUID : 155 EDUNAME: db2redom (SAMDB) 0 FUNCTION: DB2 Common, OSSe, ossGetDiskInfo, probe:130 MESSAGE : ECF=0x90000001=-1879048191=ECF_ACCESS_DENIED Access denied CALLED : OS, -, fopen OSERR: EACCES (13) DATA #1 : String, 12 bytes /proc/mounts DATA #2 : String, 25 bytes /dbdata1/samdbTsContainer DATA #3 : unsigned integer, 8 bytes
2019-08-31-08.47.32.185625+270 E89836E494 LEVEL: Error PID : 4046 TID : 47669095425792 PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : SAMDB APPHDL : 0-8 APPID: *LOCAL.DB2.190725231126 HOSTNAME: samdb-b EDUID : 155 EDUNAME: db2redom (SAMDB) 0 FUNCTION: DB2 UDB, high avail services, sqlhaGetLocalDiskInfo, probe:9433 MESSAGE : ECF=0x90000001=-1879048191=ECF_ACCESS_DENIED Access denied
2019-08-31-08.47.32.186258+270 E90331E484 LEVEL: Error PID : 4046 TID : 47669095425792 PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : SAMDB APPHDL : 0-8 APPID: *LOCAL.DB2.190725231126 HOSTNAME: samdb-b EDUID : 155 EDUNAME: db2redom (SAMDB) 0 FUNCTION: DB2 UDB, high avail services, sqlhaCreateMount, probe:9746 RETCODE : ZRC=0x827300AA=-2106392406=HA_ZRC_FAILED "SQLHA API call error"
2019-08-31-08.47.32.186910+270 I90816E658 LEVEL: Error PID : 4046 TID : 47669095425792 PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : SAMDB APPHDL : 0-8 APPID: *LOCAL.DB2.190725231126 HOSTNAME: samdb-b EDUID : 155 EDUNAME: db2redom (SAMDB) 0 FUNCTION: DB2 UDB, buffer pool services, sqlbDMSAddContainerRequest, probe:812 MESSAGE : ZRC=0x827300AA=-2106392406=HA_ZRC_FAILED "SQLHA API call error" DATA : String, 36 bytes Cluster add mount operation failed: DATA #2 : String, 37 bytes /dbdata1/samdbTsContainer/TSPKGCACH.1 DATA #3 : String, 8 bytes SAMDB
2019-08-31-08.47.32.190537+270 E113909E951 LEVEL: Error PID : 4046 TID : 47669095425792 PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : SAMDB APPHDL : 0-8 APPID: *LOCAL.DB2.190725231126 HOSTNAME: samdb-b EDUID : 155 EDUNAME: db2redom (SAMDB) 0 FUNCTION: DB2 UDB, buffer pool services, sqlblog_reCreatePool, probe:3134 MESSAGE : ADM6106E Table space "TSPKGCACH" (ID = "49") could not be created during the rollforward operation. The most likely cause is that there is not enough space to create the containers associated with the table space. Connect to the database after the rollforward operation completes and use the SET TABLESPACE CONTAINERS command to assign containers to the table space. Then, issue another ROLLFORWARD DATABASE command to complete recovery of this table space.
2019-08-31-08.47.32.200949+270 E114861E592 LEVEL: Error PID : 4046 TID : 47669095425792 PROC : db2sysc 0 INSTANCE: db2inst1 NODE : 000 DB : SAMDB APPHDL : 0-8 APPID: *LOCAL.DB2.190725231126 HOSTNAME: samdb-b EDUID : 155 EDUNAME: db2redom (SAMDB) 0 FUNCTION: DB2 UDB, buffer pool services, sqlbIncPoolState, probe:4628 MESSAGE : ADM12512W Log replay on the HADR standby has stopped on table space "TSPKGCACH" (ID "49") because it has been put into "ROLLFORWARD PENDING" state.
There is free space available for the database and the specified path (/dbdata1/samdbTsContainer) exists on the server and we can create file manually on it . all settings are equivalent on the primary and standby. db2inst1 is the owner of /dbdata1/samdbTsContainer and permission is drwxr-xr-x, the result of su - db2inst1 “ulimit -Hf” is unlimited and ext3 is file system type and create tablespace statement is as follows:
CREATE LARGE TABLESPACE TSPKGCACH IN DATABASE PARTITION GROUP IBMDEFAULTGROUP PAGESIZE 8 K MANAGED BY DATABASE USING (FILE '/dbdata1/samdbTsContainer/TSPKGCACH.1' 5120) ON DBPARTITIONNUM (0) EXTENTSIZE 64 PREFETCHSIZE 64 BUFFERPOOL BP8KPKGCACH OVERHEAD 10.5 TRANSFERRATE 0.14 DATA TAG NONE NO FILE SYSTEM CACHING;
SELinux is disabled and the sector size is 512 bytes. The mount options are as follws:
/dev/sdf1 /dbdata1 ext3 rw,relatime,errors=continue,barrier=1,data=ordered 0 0
We can not recreate the problem sometimes this problem occur and we don't know the reason of it, but the problem remains until server reboot. When we restart the standby server problem solves but we need to drop the tablespace and recreate it, is there any idea for this problem?
/dbdata1/samdbTsContainerdirectory on the standby? What’s the result ofsu - db2inst1 “ulimit -Hf”on the standby? What’s the exactcreate tablespacestatement? - Mark Barinstein