I want to relocate tablespaces containers to a separate volume, I am using following procedure but unfortunately getting some error.
Method = db2relocatedb
-
Configuration File
$ cat relocatedb.cfg
DB_NAME=FUNDAMO
DB_PATH=/proddb
INSTANCE=db2inst1
STORAGE_PATH=/proddb/FUNDAMO/db2inst1/NODE0000/FUNDAMO/T0000005/C0000000.USR,/syslogs/FUNDAMO/db2inst1/NODE0000/FUNDAMO/T0000005/C0000000.USR -
Steps
-
shutdown database
-
move container to new volume
-
$ db2relocatedb -f relocatedb.cfg
DBT1006N The file/device “/syslogs/FUNDAMO/db2inst1/NODE0000/FUNDAMO/T0000005/C0000000.USR/db2inst1” could not be opened.
Following is the releven information.
$ db2 list active databases
** Active Databases**
Database name = FUNDAMO
Applications connected currently = 0
Database path = /proddb/db2inst1/NODE0000/SQL00001/
$ db2 list tablespace containers for 5
Tablespace Containers for Tablespace 5
** Container ID = 0**
** Name = /proddb/FUNDAMO/db2inst1/NODE0000/FUNDAMO/T0000005/C0000000.USR**
** Type = File**
** Tablespace ID = 5**
** Name = ALFPF**
** Type = Database managed space**
** Contents = All permanent data. Regular table space.**
** State = 0x4000**
** Detailed explanation:**
** Offline**