Restore backup on RawDevice  (error during "open O_CREAT" operation for file 
"/dev/sda1")
-----------------------------------------------------------------------------------------

                 Key: CORE-6541
                 URL: http://tracker.firebirdsql.org/browse/CORE-6541
             Project: Firebird Core
          Issue Type: Bug
          Components: GBAK
    Affects Versions: 4.0 RC 1, 3.0.7
         Environment: Ubuntu 20.04 x86_64 GNU/Linux
            Reporter: Sascha Michel


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 ?


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to