Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.6.8
-
OS: Debian GNU/Linux 11 (bullseye)
Software platform: debian-live-11.3.0-amd64-standard.iso
Filesystem: overlay
QEMU: qemu-system-x86_64 -enable-kvm -cpu host -m 4G -smp 2
Download: mariadb-10.6.8-linux-systemd-x86_64.tar.gz
Description
Following INSTALL-BINARY instructions,
scripts/mysql_install_db --user=mysql
failed:
$ sudo scripts/mysql_install_db --user=mysql
|
Installing MariaDB/MySQL system tables in './data' ...
|
2022-06-06 4:17:03 0 [Warning] InnoDB: Retry attempts for writing partial data failed.
|
2022-06-06 4:17:03 0 [ERROR] InnoDB: Write to file ./ibdata1 failed at offset 0, 1048576 bytes should have been written, only 0 were written. Operating system error number 22. Check that your OS and file system support files of this size. Check also that the disk is not full or a disk quota exceeded.
|
2022-06-06 4:17:03 0 [ERROR] InnoDB: Error number 22 means 'Invalid argument'
|
2022-06-06 4:17:03 0 [ERROR] InnoDB: Could not set the file size of './ibdata1'. Probably out of disk space
|
2022-06-06 4:17:03 0 [ERROR] InnoDB: Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again.
|
2022-06-06 4:17:04 0 [ERROR] Plugin 'InnoDB' init function returned error.
|
2022-06-06 4:17:04 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
|
2022-06-06 4:17:04 0 [ERROR] Unknown/unsupported storage engine: InnoDB
|
2022-06-06 4:17:04 0 [ERROR] Aborting
|
|
Installation of system tables failed!
|
Attachments
Issue Links
- relates to
-
MDEV-27593 Crashing on I/O error is unhelpful
-
- Closed
-
-
MDEV-28100 reiserfs O_DIRECT unsupported: Assertion `p == pages.end() || p->first > page_id' failed in recv_sys_t::apply
-
- Stalled
-
Activity
Field | Original Value | New Value |
---|---|---|
Link | This issue relates to MDEV-28100 [ MDEV-28100 ] |
Link |
This issue relates to |
Attachment | strace.log.gz [ 64068 ] |
Assignee | Daniel Black [ danblack ] |
Description |
Following INSTALL-BINARY instructions,
scripts/mysql_install_db --user=mysql failed: $ sudo scripts/mysql_install_db --user=mysql Installing MariaDB/MySQL system tables in './data' ... 2022-06-06 4:17:03 0 [Warning] InnoDB: Retry attempts for writing partial data failed. 2022-06-06 4:17:03 0 [ERROR] InnoDB: Write to file ./ibdata1 failed at offset 0, 1048576 bytes should have been written, only 0 were written. Operating system error number 22. Check that your OS and file system support files of this size. Check also that the disk is not full or a disk quota exceeded. 2022-06-06 4:17:03 0 [ERROR] InnoDB: Error number 22 means 'Invalid argument' 2022-06-06 4:17:03 0 [ERROR] InnoDB: Could not set the file size of './ibdata1'. Probably out of disk space 2022-06-06 4:17:03 0 [ERROR] InnoDB: Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again. 2022-06-06 4:17:04 0 [ERROR] Plugin 'InnoDB' init function returned error. 2022-06-06 4:17:04 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2022-06-06 4:17:04 0 [ERROR] Unknown/unsupported storage engine: InnoDB 2022-06-06 4:17:04 0 [ERROR] Aborting Installation of system tables failed! ... |
Following INSTALL-BINARY instructions,
scripts/mysql_install_db --user=mysql failed: {noformat} $ sudo scripts/mysql_install_db --user=mysql Installing MariaDB/MySQL system tables in './data' ... 2022-06-06 4:17:03 0 [Warning] InnoDB: Retry attempts for writing partial data failed. 2022-06-06 4:17:03 0 [ERROR] InnoDB: Write to file ./ibdata1 failed at offset 0, 1048576 bytes should have been written, only 0 were written. Operating system error number 22. Check that your OS and file system support files of this size. Check also that the disk is not full or a disk quota exceeded. 2022-06-06 4:17:03 0 [ERROR] InnoDB: Error number 22 means 'Invalid argument' 2022-06-06 4:17:03 0 [ERROR] InnoDB: Could not set the file size of './ibdata1'. Probably out of disk space 2022-06-06 4:17:03 0 [ERROR] InnoDB: Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again. 2022-06-06 4:17:04 0 [ERROR] Plugin 'InnoDB' init function returned error. 2022-06-06 4:17:04 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2022-06-06 4:17:04 0 [ERROR] Unknown/unsupported storage engine: InnoDB 2022-06-06 4:17:04 0 [ERROR] Aborting Installation of system tables failed! {noformat} |
Fix Version/s | 10.6 [ 24028 ] |
Labels | crash innodb not-10.5 | crash foundation innodb not-10.5 |
Sorry, Jira refuses to let me set the Priority to Normal.
I used strace and found the following difference:
10.5.16:
openat(AT_FDCWD, "./ibdata1", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0660) = 9
fstat(9, \{st_mode=S_IFREG|0660, st_size=0, ...\}) = 0
fallocate(9, 0, 0, 12582912) = 0
close(9) = 0
10.6.8:
openat(AT_FDCWD, "./ibdata1", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0660) = 9
*fcntl(9, F_SETFL, O_RDONLY|O_DIRECT) = 0*
fstat(9, \{st_mode=S_IFREG|0660, st_size=0, ...\}) = 0
fallocate(9, 0, 0, 12582912) = *-1 EINVAL (Invalid argument)*
MariaDB 10.6.0 Release Notes say:
innodb_flush_method=O_DIRECT is enabled by default (MDEV-24854)
Perhaps the overlay filesystem does not support O_DIRECT ?
Thank you!
Daniel Lewart
Urbana, Illinois