echo '*** create /var/lib/mysql2 for slave' 2>>/root/g24list > /root/g24list echo '*** remove mysql2 at slave db server' 2>>/root/g24list >&2 rm -rf /var/lib/mysql2 2>>/root/g24list >&2 ls -l /var/lib/mysql2 2>>/root/g24list >&2 echo '*** create slave from master' 2>>/root/g24list >&2 cp -LRp /var/lib/mysql /var/lib/mysql2 2>>/root/g24list >&2 echo '*** delete old server log files' 2>>/root/g24list >&2 ls -l /var/lib/mysql2/it312-* 2>>/root/g24list >&2 rm -rf /var/lib/mysql2/it312-* 2>>/root/g24list >&2 ls -l /var/lib/mysql2/it312-* 2>>/root/g24list >&2 rm -rf /var/lib/mysql2/hostname.pid* 2>>/root/g24list >&2 ls -l /var/lib/mysql2/hostname.pid* 2>>/root/g24list >&2 echo '*** ensure mysql2 is created' 2>>/root/g24list >&2 ls -l /var/lib/mysql2 2>>/root/g24list >&2 cat /root/g24list >> /root/createbuglist