[xen-tools-discuss] Installing mysql-server and mysql-client in role
Bubba Sour
bubbasour at gmail.com
Sat Oct 6 20:02:21 CEST 2012
Hi all,
I try to install mysql-server and mysql-client in a role, but fail to do so
because the mysqld seem to be restarted during debian squeeze install, and
for some reason it start outside the chrooted environment rather than in
there.
This causes the whole xen-create-image process to fail at the end when one
try to umount the tmp folder.
PACKAGES="mysql-client mysql-server make php5-mysql php5-curl php5-gd
php5-mcrypt php5-mhash php5-cli php5-dev"
chroot ${prefix} /bin/bash -x -e <<EOF
echo "mysql-server-5.0 mysql-server/root_password password p" >>
/tmp/pre_install
echo "mysql-server-5.0 mysql-server/root_password_again password p" >>
/tmp/pre_install
echo "mysql-server-5.0 mysql-server/root_password seen true" >>
/tmp/pre_install
echo "mysql-server-5.0 mysql-server/root_password_again seen true" >>
/tmp/pre_install
debconf-set-selections /tmp/pre_install
apt-get install -y ${PACKAGES}
EOF
The log gives:
Setting up libmysqlclient16 (5.1.63-0+squeeze1) ...
Setting up libdbd-mysql-perl (4.016-1) ...
Setting up mysql-client-5.1 (5.1.63-0+squeeze1) ...
Setting up psmisc (22.11-1) ...
Setting up mysql-server-core-5.1 (5.1.63-0+squeeze1) ...
Setting up mysql-server-5.1 (5.1.63-0+squeeze1) ...
Stopping MySQL database server: mysqld.
121006 19:23:41 [Note] Plugin 'FEDERATED' is disabled.
121006 19:23:41 InnoDB: Initializing buffer pool, size = 8.0M
121006 19:23:41 InnoDB: Completed initialization of buffer pool
121006 19:23:41 InnoDB: Started; log sequence number 0 44233
121006 19:23:41 InnoDB: Starting shutdown...
121006 19:23:46 InnoDB: Shutdown completed; log sequence number 0 44233
df: Warning: cannot read table of mounted file systems: No such file or
directory <---?
Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade needing tables..
At the very end of the log I get:
Role script completed.
Creating Xen configuration file
Done
Setting up root password
Generating a password for the new guest.
All done
umount: /tmp/y0xvaEUOOn: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
Running command 'umount /tmp/y0xvaEUOOn 2>&1' failed with exit code 256.
Aborting
For some reason three processes are now running on the dom0:
18887 pts/0 S 0:00 /bin/sh /usr/bin/mysqld_safe
18998 pts/0 Sl 0:00 /usr/sbin/mysqld --basedir=/usr
--datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid
--soc
18999 pts/0 S 0:00 logger -t mysqld -p daemon.error
and one cannot umount the directory. The domU is not bootable since there
are initramfs issues and kernel panic.
Is there any way to prevent the mysql from starting up during install, or
other way working around this issue?
thanks a bunch!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://xen-tools.org/pipermail/xen-tools-discuss/attachments/20121006/8e3434c4/attachment.html>
More information about the xen-tools-discuss
mailing list