If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Error in redirect restore

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-10-12, 03:25
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
Red face Error in redirect restore

Hi, When i try to do redirect restore i end up with "filesystem full error"

[ctginst1@linux-server2 StgBackup]$ db2 -tvf ABC.sql
UPDATE COMMAND OPTIONS USING S ON Z ON MAXDB71_NODE0000.out V ON
DB20000I The UPDATE COMMAND OPTIONS command completed successfully.

SET CLIENT ATTACH_DBPARTITIONNUM 0
DB20000I The SET CLIENT command completed successfully.

SET CLIENT CONNECT_DBPARTITIONNUM 0
DB20000I The SET CLIENT command completed successfully.

RESTORE DATABASE MAXDB71 FROM '/StgBackup/' TAKEN AT 20120109113635 ON '/db_bkp' INTO MAXDB71 REDIRECT
SQL2523W Warning! Restoring to an existing database that is different from
the database on the backup image, but have matching names. The target database
will be overwritten by the backup version. The Roll-forward recovery logs
associated with the target database will be deleted.
Do you want to continue ? (y/n) y
SQL1277W A redirected restore operation is being performed. Table space
configuration can now be viewed and table spaces that do not use automatic
storage can have their containers reconfigured.
DB20000I The RESTORE DATABASE command completed successfully.

SET TABLESPACE CONTAINERS FOR 3 USING ( FILE 'CTGDAT/MAXDATA/container1' 600000 )
SQL0968C The file system is full. SQLSTATE=57011


I use db29.1 fp6,

I have 40Gb available in the path where i am restoring, where db is just 16 gb.

Please help me... thanks
Reply With Quote
  #2 (permalink)  
Old 01-10-12, 03:48
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
check the diag.log
it is possible that the home directory is full - that is where the db is created
on xxx is for datapath for automatic storage
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 01-10-12, 03:53
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
hey thanks for your reply..

i have given the DBPATH in script or do i need to specify the same in Target directory?

RESTORE DATABASE MAXDB71
-- USER <username>
-- USING '<password>'
FROM '/StgBackup/'
TAKEN AT 20120109113635
ON '/db_bkp'
-- , '/opt/ctginst1'
-- , '/opt/ctginst1/ctginst1/MAX_Container'
-- DBPATH ON '<target-directory>'
INTO MAXDB71
-- NEWLOGPATH '/opt/ctginst1/ctginst1/NODE0000/SQL00001/SQLOGDIR/'
-- WITH <num-buff> BUFFERS
-- BUFFER <buffer-size>
-- REPLACE HISTORY FILE
-- REPLACE EXISTING
REDIRECT
-- PARALLELISM <n>
-- COMPRLIB '<lib-name>'
-- COMPROPTS '<options-string>'
-- WITHOUT ROLLING FORWARD
-- WITHOUT PROMPTING

i get this error when restoring a particular Tablepace...
Reply With Quote
  #4 (permalink)  
Old 01-10-12, 04:02
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
on is for datapath for automatic storage
dbpath is for the config files and others
this is displayed when doing db2 list db directory
check infocenter/doc for details of each option
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #5 (permalink)  
Old 01-10-12, 08:40
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by alwayssathya View Post
SET TABLESPACE CONTAINERS FOR 3 USING ( FILE 'CTGDAT/MAXDATA/container1' 600000 )
SQL0968C The file system is full. SQLSTATE=57011[/B]
Looks like you're specifying a relative path, not absolute, so it is being created in the database directory (/db_bkp).

Check also ulimit and/or disk quotas.
Reply With Quote
  #6 (permalink)  
Old 01-10-12, 23:39
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
Issue got resolved...

problem i had was "disk full issue", which is because one of the tablespace not able to restore. when i check it in source db it was having 51gb. But i don have enough space in target db.

Then i altered the number pages to a value close to High water Mark.

Then the tablespace got restored.

I don know it is a correct way.. but it worked for me.

thanks for all your sugestions...
Reply With Quote
  #7 (permalink)  
Old 01-11-12, 08:13
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by alwayssathya View Post
when i check it in source db it was having 51gb.
That's not what you said initially:

Quote:
Originally Posted by alwayssathya
I have 40Gb available in the path where i am restoring, where db is just 16 gb.
So, you've just wasted everybody's time (including your own) by not providing full information.
Reply With Quote
  #8 (permalink)  
Old 01-11-12, 22:57
alwayssathya alwayssathya is offline
Registered User
 
Join Date: Aug 2010
Location: Chennai India
Posts: 161
No, please don say that...

I still stand to my point, I found the db size was 16GB
And one of the TBS is around 12GB size, But the capacity of the TBS was
51GB. I had 40GB space in my Target DB path.

So i told what i faced, Changing the capacity value came just as a luck.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On