LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-19-2012, 08:51 AM   #1
Alexrkkl
LQ Newbie
 
Registered: Jun 2011
Location: Birmingham, England
Distribution: RedHat Enterprise 5.6
Posts: 27

Rep: Reputation: Disabled
Problems relocating MySQL Binlog files errcode :13 when restarting service


Hi guys,

What I am trying to do is relocate my binary logs to get written to a new drive as my default drive is becoming full, I have mounted to the /home folder. I am using RHEL6.

When I try restart the server the error log comes up with:

'/home/mysql-bin.~rec~' not found (Errcode: 13)
I have heard errorcode 13 is permissions but, I have moved my bin-log.index here and all my binlogs and I have issued chmod -R 777 on the files and chown -R mysql:mysql. When I issue ls -l you can see that the files all have the read,write,excute permissions and are owned by mysql but still no luck starting the service.

The steps to move the binlogs I have taken so far also include changing the bin-log.index file so changing ./bin-log.000001 to /new/location/bin-log.000001. Is this the correct thing to do ?

Also my replication is configured as a single master to many slaves, are there any changes I need to make to the slaves when I move the binary log files?

Thanks in advance.

Alex
 
Old 07-19-2012, 07:18 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,289

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
You don't mention editing the mysql.cnf file to match, so the prog knows where to find them...
 
Old 07-20-2012, 03:02 AM   #3
Alexrkkl
LQ Newbie
 
Registered: Jun 2011
Location: Birmingham, England
Distribution: RedHat Enterprise 5.6
Posts: 27

Original Poster
Rep: Reputation: Disabled
Sorry, Yeah I have changed the my.cnf file entry from log-bin=mysql-bin to log-bin=/home/mysql-bin.

Quote:
Originally Posted by chrism01 View Post
You don't mention editing the mysql.cnf file to match, so the prog knows where to find them...
 
  


Reply

Tags
mysql, redhat, replication


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL error: Error writing file '/tmp/MYrZo6Qh' (Errcode: 28) bruxelles2010 Linux - Software 6 11-17-2010 02:16 PM
restarting the sound service htamayo Linux - Newbie 2 01-19-2009 03:10 PM
squid service not restarting celebnavin Linux - Server 1 11-22-2007 07:45 AM
Remotely restarting a service seefor Linux - Networking 3 02-15-2007 12:52 AM
MYSQL on Slackware9.0 ./mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 13) Litn Linux - Software 2 09-02-2003 09:00 PM


All times are GMT -5. The time now is 10:49 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration