ผมใช้คำำสั่ง innobackupex-1.5.1 /mysqlbackup มี error ครับ
to /mysqlbackup/2010-07-29_13-41-20/hos/fp_women.ibd
xtrabackup: Error: xtrabackup_copy_datafile() failed.
xtrabackup: Warining: failed to copy, but continuing.
Copying ./hos/anc_ill_history.ibd
to /mysqlbackup/2010-07-29_13-41-20/hos/anc_ill_history.ibd
xtrabackup: Error: xtrabackup_copy_datafile() failed.
xtrabackup: Warining: failed to copy, but continuing.
Copying ./hos/icd10tm_operation.ibd
to /mysqlbackup/2010-07-29_13-41-20/hos/icd10tm_operation.ibd
xtrabackup: Error: xtrabackup_copy_datafile() failed.
xtrabackup: Warining: failed to copy, but continuing.
Copying ./hos/community_house.ibd
to /mysqlbackup/2010-07-29_13-41-20/hos/community_house.ibd
xtrabackup: Error: xtrabackup_copy_datafile() failed.
xtrabackup: Warining: failed to copy, but continuing.
Copying ./hos/dtapp.ibd
to /mysqlbackup/2010-07-29_13-41-20/hos/dtapp.ibd
xtrabackup: Error: xtrabackup_copy_datafile() failed.
xtrabackup: Warining: failed to copy, but continuing.
Copying ./hos/adr_continue_rechallenge.ibd
to /mysqlbackup/2010-07-29_13-41-20/hos/adr_continue_rechallenge.ibd
xtrabackup: Error: xtrabackup_copy_datafile() failed.
xtrabackup: Warining: failed to copy, but continuing.
Copying ./hos/operation_time_type.ibd
to /mysqlbackup/2010-07-29_13-41-20/hos/operation_time_type.ibd
xtrabackup: Error: xtrabackup_copy_datafile() failed.
xtrabackup: Warining: failed to copy, but continuing.
100729 13:41:59 InnoDB: Operating system error number 9 in a file operation.
InnoDB: Error number 9 means 'Bad file descriptor'.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/operating-system-error-codes.html
InnoDB: File operation call: 'close'.
InnoDB: Cannot continue operation.
innobackupex-1.5.1: Error: ibbackup child process has died at /usr/bin/innobackupex-1.5.1 line 478.
ลองลง mysql ใหม่แบบของผมดูครับ ผมลงแบบนี้แล้วไม่มีปัญหาอะไร
แก้ xxx เป็นเลขเวอร์ชั่นด้วยนะครับ
useradd mysql
export TMP=/tmp
export TMPDIR=/tmp
rm -fr /var/lib/mysql
rm -f /etc/init.d/mysql*
cp my.cnf /etc/my.cnf
chmod 744 /etc/my.cnf
echo 'root soft nofile 30000' >> /etc/security/limits.conf
echo 'root hard nofile 30000' >> /etc/security/limits.conf
echo 'mysql soft nofile 30000' >> /etc/security/limits.conf
echo 'mysql hard nofile 30000' >> /etc/security/limits.conf
rpm -ivh Percona-XtraDB-client-
xxx.rpm --nodeps --force
rpm -ivh Percona-XtraDB-shared-
xxx.rpm --nodeps --force
rpm -ivh Percona-XtraDB-
xxx.rpm --nodeps --force
rpm -ivh Percona-XtraDB-server-
xxx.rpm --nodeps --force
rpm -ivh xtrabackup-
xxx.rpm --nodeps --force
service mysql stop
echo 'ulimit -n 30000' >> /etc/init.d/mysql
service mysql start
mysql -e "create database hos"
mysql -e "grant all privileges on hos.* to sa@'%' identified by 'sa'"
mysql -e "grant all privileges on *.* to sa@'%' identified by 'sa' with grant option"
mkdir /mysqlbackup
chown mysql:mysql /var/lib/mysql/* -R
echo 'ulimit -n 30000' >> /etc/rc.conf