Skip to content

Restore backup on RawDevice (error during "open O_CREAT" operation for file "/dev/sda1") [CORE6541] #6768

@firebird-automations

Description

@firebird-automations

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions