Comment 3 for bug 1692844

Revision history for this message
saintlee (saintlee) wrote :

Then ,I change a new way to create a raw device.I add a new disk to my virtual machine and reboot my vm.
Then I get a new clear disk: sdb.
I bind it to the raw device.
raw /dev/raw/raw1 /dev/sdb
chown mysql:mysql /dev/raw/raw1
chmod 660 /dev/raw/raw1

vim /etc/my.cnf
  innodb_data_file_path=/dev/raw/raw1:2Gnewraw

#start the bootstrap node
 service mysql@bootstrap start

I got these errors:
[ERROR] InnoDB: The size of tablespace file /dev/raw/raw1 is only 0, should be at least 65536!
2017-05-24 17:35:18 0x7f7bf4847880 InnoDB: Assertion failure in thread 140170360027264 in file fil0fil.cc line 795
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.
09:35:18 UTC - mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.
Please help us make Percona XtraDB Cluster better by reporting any
bugs at https://bugs.launchpad.net/percona-xtradb-cluster