You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My blockdevice
root@U2004Firebird4Test:~# ls -lh /dev/sda1
brw-rw---- 1 firebird firebird 8, 0 Apr 15 20:53 /dev/sda1
root@U2004Firebird4Test:~# time /opt/firebird/bin/gbak -C -user sysdba -pas 'XXXXXXX' /DB/MATest.fbk /dev/sda1
gbak: ERROR:I/O error during "open O_CREAT" operation for file "/dev/sda1" <---- why error on open/create File ??
gbak: ERROR: Error while trying to create file
gbak: ERROR: Device or resource busy
gbak: ERROR:failed to create database /dev/sda1
gbak:Exiting before completion due to errors
brw-rw---- 1 firebird firebird 8, 0 Apr 15 20:53 /dev/sda1
root@U2004Firebird4Test:~# time dd if=/dev/zero of=/dev/sda1 bs=32k count=1000 oflag=sync
1000+0 records in
1000+0 records out
32768000 bytes (33 MB, 31 MiB) copied, 0.154765 s, 212 MB/s
I have not found any other syntax for "raw devices", is there something new/different here ?
Sascha Michel added a comment - 24/Apr/21 03:41 PM
/opt/firebird/bin/gbak -v -C -user sysdba -pas 'XXXXX' /DB/MATest.fbk /dev/sda1
gbak:opened file /DB/MATest.fbk
gbak:transportable backup -- data in XDR format
gbak: backup file is compressed
gbak:backup version is 10
gbak: ERROR:I/O error during "open O_CREAT" operation for file "/dev/sda1"
gbak: ERROR: Error while trying to create file
gbak: ERROR: Device or resource busy
gbak: ERROR:failed to create database /dev/sda1
gbak:Exiting before completion due to errors
Even if there is no data in the RawDevice, the switch "-Rep" must be used. Is that the way it is supposed to be?
fbs3 /usr/home/firebird/HEAD/gen/Debug/firebird/bin # ./gbak -v -C -user sysdba -pas masterkey e.gbak /dev/sdb3
gbak:opened file e.gbak
gbak:transportable backup -- data in XDR format
gbak: backup file is compressed
gbak:backup version is 11
gbak:created database /dev/sdb3, page_size 8192 bytes
gbak:started transaction
gbak:restoring domain FIRSTNAME
..................
gbak:finishing, closing, and going home
gbak:adjusting the ONLINE and FORCED WRITES flags
fbs3 /usr/home/firebird/HEAD/gen/Debug/firebird/bin #
I can find particular place in code where error
gbak: ERROR:I/O error during "open O_CREAT" operation for file "/dev/sda1"
is raised but I have no idea why does engine reach that line on your box.
Submitted by: Sascha Michel (datiscum1)
My blockdevice
root@U2004Firebird4Test:~# ls -lh /dev/sda1
brw-rw---- 1 firebird firebird 8, 0 Apr 15 20:53 /dev/sda1
root@U2004Firebird4Test:~# time /opt/firebird/bin/gbak -C -user sysdba -pas 'XXXXXXX' /DB/MATest.fbk /dev/sda1
gbak: ERROR:I/O error during "open O_CREAT" operation for file "/dev/sda1" <---- why error on open/create File ??
gbak: ERROR: Error while trying to create file
gbak: ERROR: Device or resource busy
gbak: ERROR:failed to create database /dev/sda1
gbak:Exiting before completion due to errors
brw-rw---- 1 firebird firebird 8, 0 Apr 15 20:53 /dev/sda1
root@U2004Firebird4Test:~# time dd if=/dev/zero of=/dev/sda1 bs=32k count=1000 oflag=sync
1000+0 records in
1000+0 records out
32768000 bytes (33 MB, 31 MiB) copied, 0.154765 s, 212 MB/s
I have not found any other syntax for "raw devices", is there something new/different here ?
Commits: d5bcc64 2dd7b3f
The text was updated successfully, but these errors were encountered: