E:\ 100MB Available free space
But here the size of our database (SAMPLE) is aprox. 250MB. Now how can we take the backup image, because neither of the drive can accomodate the complete backup image of 250MB due to lack of free space.
For this reason, there is a remedy for this. Instead of going for a single drive, we take the backup into all the 3 drives as given below:
db2 BACKUP DATABASE Sample TO c:\backups,d:\backups,e:\backups WITH 2 BUFFERS BUFFER 1024 WITHOUT PROMPTING
This cmd, partitions the database image into parts. All the 3 images in the 3 drives are created at once & each image is written in a round robin fashion to ensure that data is distibuted equally among all the images.
Now, the images will have the names as :
C:\backups\SAMPLE.0\DB2\NODE0000\CATN0000\20071026\123632.001
D:\backups\SAMPLE.0\DB2\NODE0000\CATN0000\20071026\123632.002
E:\backups\SAMPLE.0\DB2\NODE0000\CATN0000\20071026\123632.003
Now, to check the integrity of these backup images using db2ckbkp:
db2ckbkp <path of 1st bkp image> <path of 2nd bkp image> ......
(each fully qualified image name seperated by SPACES)
Ex: db2ckbkp C:\backups\SAMPLE.0\DB2\NODE0000\CATN0000\20071026\123632.001 D:\backups\SAMPLE.0\DB2\NODE0000\CATN0000\20071026\123632.002 E:\backups\SAMPLE.0\DB2\NODE0000\CATN0000\20071026\123632.003
[1] Buffers processed: ##################################
[2] Buffers processed: ##################################
[3] Buffers processed: #############################
Image Verification Complete - successful.
Now, if u want to restore from the partitioned backup images:
db2 RESTORE DB Sample FROM c:\backups,d:\backups,e:\backups
TAKEN AT 20071026123632 REPLACE HISTORY FILE WITHOUT PROMPTING
Now, the Restore operation fetches the data from all the images mentioned above round-robin
fashion and restores the database.
I guess this info. answers the question asked.
If you have any questions reg. this concept feel free to put them up.