Issue Details (XML | Word | Printable)

Key: CORE-2394
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Votes: 0
Watchers: 1

If you were logged in you would be able to see more operations.
Firebird Core

Muti-files restore fails under Vista 64 or Windows 2008 64bits (not under 32 bits)

Created: 27/Mar/09 06:03 PM   Updated: 04/Apr/09 01:57 PM
Component/s: GBAK
Affects Version/s: 2.1.1
Fix Version/s: None

Environment: Vista 64 bits or Windows Server 2008 64 bits 4 Gb RAM

 Description  « Hide
I try to restore a 5 gb gbk file with FB 2.1 (WI-V6.3.1.17910 Firebird 2.1) under Vista or Windows 2008 server both 64 bits. I want to restore to as many 2 gb files as needed. So I launch the following command line:
gbak -r -p 8192 -v -user SYSDBA -pas masterkey "H:\OBS 2008.gbk" "H:\OBS01.DB" 250000 "H:\OBS02.DB" 250000 "H:\OBS03.DB" 250000 "H:\OBS04.DB"
But the restored files are not corrects, I get : 3 files of 2gb and the last one is only 24 kb....
If I launch the same command but under Windows 2003 32 bits, this time I got as expected 3 2gb files and the fourth file is 1965 kb and not 24 kb as under 64 bits....

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Sean Leyne added a comment - 27/Mar/09 06:19 PM
Have you confirmed that the size of the last file using the Properties viewer, or are you using the values that Windows Explorer is showing?

(This really should be discussed in the support list until the issue is confirmed)

FRANCIS PARLANT added a comment - 27/Mar/09 06:33 PM
Not sure what you mean, but the size are the same within Properties viewer or Windows Explorer (expressed as bytes I mean)... The problem is that the last file looks like it is truncated under 64 bits OSes....

FRANCIS PARLANT added a comment - 04/Apr/09 01:57 PM
I have been kindly asked to precise the problem I faced :-)

- with FB 32 bits and/or FB 64 bits under a 64 bits OS (Vista or Windows 2008 server) I face the following problem : when restoring a FB 2.1 backup to a multi-files restore, the last file show a wrong size : its size is 24 kb while it should be around 1.8 GB... This problem doesn't happen under a 32 bits OS...

Having made further tests, I have realized that this problem doesn't happen any longer if instead of 0 fort the last file, I ask for the same size as for the first files, I mean 250000.

Thus, contrary to what happens under 32 bits OS, under 64 bits we know have to set a non zero file size for the last file of a multi-files restore....

Doesn't work: gbak -r -p 8192 -v -user SYSDBA -pas masterkey "H:\OBS 2008.gbk" "H:\OBS01.DB" 250000 "H:\OBS02.DB" 250000 "H:\OBS03.DB" 250000 "H:\OBS04.DB"

Works correctly : gbak -r -p 8192 -v -user SYSDBA -pas masterkey "H:\OBS 2008.gbk" "H:\OBS01.DB" 250000 "H:\OBS02.DB" 250000 "H:\OBS03.DB" 250000 "H:\OBS04.DB" 250000