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 > Backup File Size Limit

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-18-04, 00:00
redwolf redwolf is offline
Registered User
 
Join Date: Apr 2004
Posts: 179
Backup File Size Limit

What would cause there to be a limit of 1 GiG on the backup file size of the db2 backup command. I issued the command 'db2 backup db records to /workspace'. I expected this command to create 1 backup file, however when the file reached 1G I got he message 'SQL2059W A device full warning was encountered on device "/workspace" '. Do you want to continue(c), terminate this device only(d), abort the utility(t) ? (c/d/t)' I answered 'c' and another 1G file was created, then the same message appeared. The same thing happened after I answered 'c' again.

Does anyone have an idea of what maybe happening?
Reply With Quote
  #2 (permalink)  
Old 05-18-04, 00:27
cgprakash cgprakash is offline
Registered User
 
Join Date: Feb 2002
Posts: 96
You can set the 'file size limit' to unlimited. If your /workspace is not having enough space to accomodate the backup file, then obviously you will get an error.

Still if you want to restrict each backup file to smaller sizes, you can use multiple directories, eg,'db2 backup db to /workspace/d1, /workspace/d2. /workspace/d3.....'

Regards
Prakash
Reply With Quote
  #3 (permalink)  
Old 05-18-04, 05:06
redwolf redwolf is offline
Registered User
 
Join Date: Apr 2004
Posts: 179
db2 value for 'file size limit'

I don't see any config value that looks like 'file size limit'. What is the DB2 config value ?

Quote:
Originally Posted by cgprakash
You can set the 'file size limit' to unlimited. If your /workspace is not having enough space to accomodate the backup file, then obviously you will get an error.

Still if you want to restrict each backup file to smaller sizes, you can use multiple directories, eg,'db2 backup db to /workspace/d1, /workspace/d2. /workspace/d3.....'

Regards
Prakash
Reply With Quote
  #4 (permalink)  
Old 05-18-04, 05:47
cgprakash cgprakash is offline
Registered User
 
Join Date: Feb 2002
Posts: 96
Its not a db2 config value. Its a Server side file system setting. So you should change ulimit value (and/or) /etc/security/limits file parameter. You should have root to do this. (i hope you are working on AIX).
Reply With Quote
  #5 (permalink)  
Old 05-18-04, 06:19
nkelly nkelly is offline
Registered User
 
Join Date: May 2004
Posts: 8
Hello,

I came across this problem too. After changing the file-size limit for db2inst1 (or whatever the instance owner is) you need to bounce the instance for the change to take effect.

Regards,
Noel.
Reply With Quote
  #6 (permalink)  
Old 05-18-04, 06:22
sathyaram_s sathyaram_s is online now
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
The backup file will be owned by the instance owner irrespective of who you invoke the command as ... So the file size limit should be 'ulimited' for the instance owner ...

To know this , logon as instance owner and issue

ulimit -a

Check the value againt 'file size' parameter ... I remember the value is the number of 512 k blocks

If the value is not 'unlimited', request you system admin to change this

HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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