Hi,
I am working on MySQL EE 5.5 RHEL 5.
I have a Master/Slave replication (1 to 1 mapping) and just have a question as how do i add a new datafile to the innodb tablespace? i am thinking following should do it
1) Stop the Slave on Slave server (stop slave)
2) Shutdown the master & slave server (mysqladmin -u root shutdown)
3) Edit the /etc/my.cnf to add the new datafile and its size (rounding up the last DF autoextensible bytes) on both MASTER & SLAVE
Current configuration:
innodb_data_file_path = /opt/mysql/data01/ibdata1:4G;/opt/mysql/data01/ibdata2:2G:autoextend
Updated configuration:
innodb_data_file_path = /opt/mysql/data01/ibdata1:4G;/opt/mysql/data01/ibdata2:3G;/opt/mysql/data01/ibdata3:10G:autoextend
4) Start the Master & Slave server (nohup mysqld_safe & )
5) Start the Replication (start slave)
Are the above steps the right way to do it?
I have one more question as to whether i can place the innodb data files in different mount points. I do not have "innodb_data_home_dir" setup but gave the
absolute paths in the "innodb_data_file_path". If i want to add the next datafile in location "/opt/mysql/data02", can i just go ahead and add it to this variable or is there any other check i should perform?
Thanks in advance for your input.
Thanks,
Shiva
5)
I am working on MySQL EE 5.5 RHEL 5.
I have a Master/Slave replication (1 to 1 mapping) and just have a question as how do i add a new datafile to the innodb tablespace? i am thinking following should do it
1) Stop the Slave on Slave server (stop slave)
2) Shutdown the master & slave server (mysqladmin -u root shutdown)
3) Edit the /etc/my.cnf to add the new datafile and its size (rounding up the last DF autoextensible bytes) on both MASTER & SLAVE
Current configuration:
innodb_data_file_path = /opt/mysql/data01/ibdata1:4G;/opt/mysql/data01/ibdata2:2G:autoextend
Updated configuration:
innodb_data_file_path = /opt/mysql/data01/ibdata1:4G;/opt/mysql/data01/ibdata2:3G;/opt/mysql/data01/ibdata3:10G:autoextend
4) Start the Master & Slave server (nohup mysqld_safe & )
5) Start the Replication (start slave)
Are the above steps the right way to do it?
I have one more question as to whether i can place the innodb data files in different mount points. I do not have "innodb_data_home_dir" setup but gave the
absolute paths in the "innodb_data_file_path". If i want to add the next datafile in location "/opt/mysql/data02", can i just go ahead and add it to this variable or is there any other check i should perform?
Thanks in advance for your input.
Thanks,
Shiva
5)