Table does not exist even if there is one
I have MySQL master-slave replication setup in Amazon EC2. For the sake of resilience, I have set up LVM on RAID 10 array, on both master as well as slave. I have been using ec2-consistent-snapshot for some time now to take the snapshot from the slave instance.
So, I tried to create the disks from those snapshots and attach them to a new MySQL installation. Since the new installation would not recognise the LVM and RAID setup, I reactivated the LVM and RAID in the new instance using the following commands.
Scan the disks for RAID array members:
mdadm --examine --scan <comprising disks>
Reactivate the RAID array:
mdadm -A -s
Reactivate the lvm:
vgchange -ay
Since snapshotting took the backup of the ibdata
and iblogfiles
, I removed them for the fresh installation. MySQL would start normal.
Help me out of this
mysql replication amazon-ec2
bumped to the homepage by Community♦ 13 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have MySQL master-slave replication setup in Amazon EC2. For the sake of resilience, I have set up LVM on RAID 10 array, on both master as well as slave. I have been using ec2-consistent-snapshot for some time now to take the snapshot from the slave instance.
So, I tried to create the disks from those snapshots and attach them to a new MySQL installation. Since the new installation would not recognise the LVM and RAID setup, I reactivated the LVM and RAID in the new instance using the following commands.
Scan the disks for RAID array members:
mdadm --examine --scan <comprising disks>
Reactivate the RAID array:
mdadm -A -s
Reactivate the lvm:
vgchange -ay
Since snapshotting took the backup of the ibdata
and iblogfiles
, I removed them for the fresh installation. MySQL would start normal.
Help me out of this
mysql replication amazon-ec2
bumped to the homepage by Community♦ 13 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
You haven't really asked a question, or explained what errors or problems you're having - only described steps you've taken. Please elaborate on the issue by editing the question.
– Sami Kuhmonen
Sep 1 '15 at 12:13
add a comment |
I have MySQL master-slave replication setup in Amazon EC2. For the sake of resilience, I have set up LVM on RAID 10 array, on both master as well as slave. I have been using ec2-consistent-snapshot for some time now to take the snapshot from the slave instance.
So, I tried to create the disks from those snapshots and attach them to a new MySQL installation. Since the new installation would not recognise the LVM and RAID setup, I reactivated the LVM and RAID in the new instance using the following commands.
Scan the disks for RAID array members:
mdadm --examine --scan <comprising disks>
Reactivate the RAID array:
mdadm -A -s
Reactivate the lvm:
vgchange -ay
Since snapshotting took the backup of the ibdata
and iblogfiles
, I removed them for the fresh installation. MySQL would start normal.
Help me out of this
mysql replication amazon-ec2
I have MySQL master-slave replication setup in Amazon EC2. For the sake of resilience, I have set up LVM on RAID 10 array, on both master as well as slave. I have been using ec2-consistent-snapshot for some time now to take the snapshot from the slave instance.
So, I tried to create the disks from those snapshots and attach them to a new MySQL installation. Since the new installation would not recognise the LVM and RAID setup, I reactivated the LVM and RAID in the new instance using the following commands.
Scan the disks for RAID array members:
mdadm --examine --scan <comprising disks>
Reactivate the RAID array:
mdadm -A -s
Reactivate the lvm:
vgchange -ay
Since snapshotting took the backup of the ibdata
and iblogfiles
, I removed them for the fresh installation. MySQL would start normal.
Help me out of this
mysql replication amazon-ec2
mysql replication amazon-ec2
edited Sep 1 '15 at 13:30
miracle173
6,5161837
6,5161837
asked Sep 1 '15 at 11:28
sameergautamsameergautam
564
564
bumped to the homepage by Community♦ 13 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 13 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
You haven't really asked a question, or explained what errors or problems you're having - only described steps you've taken. Please elaborate on the issue by editing the question.
– Sami Kuhmonen
Sep 1 '15 at 12:13
add a comment |
1
You haven't really asked a question, or explained what errors or problems you're having - only described steps you've taken. Please elaborate on the issue by editing the question.
– Sami Kuhmonen
Sep 1 '15 at 12:13
1
1
You haven't really asked a question, or explained what errors or problems you're having - only described steps you've taken. Please elaborate on the issue by editing the question.
– Sami Kuhmonen
Sep 1 '15 at 12:13
You haven't really asked a question, or explained what errors or problems you're having - only described steps you've taken. Please elaborate on the issue by editing the question.
– Sami Kuhmonen
Sep 1 '15 at 12:13
add a comment |
1 Answer
1
active
oldest
votes
Removed ibdata1? You can* remove iblogfiles but not the ibdata1!!
They're system tablespaces storing tables, indexes, metadata, undologs....
*=> Removing iblogs is okay once you stop mysql but not while it's running!
Update: Removing iblogs is okay only after shutting down mysql with innodb_fast_shutdown disabled.
You might like to review this answer to understand what is wrong! You might want to do a restore from the snapshot may be.
1
Don't remove iblogs either -- unless you have made a clean shutdown withinnodb_fast_shutdown
turned off. LVM is equivalent to a power failure.
– Rick James
Sep 1 '15 at 17:08
Yep... that's why the STAR is after "can" ;) & was told later on
– mysql_user
Sep 1 '15 at 18:25
* andinnodb_fast_shutdown
turned off. -- My added qualification.
– Rick James
Sep 2 '15 at 5:37
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "182"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f112816%2ftable-does-not-exist-even-if-there-is-one%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Removed ibdata1? You can* remove iblogfiles but not the ibdata1!!
They're system tablespaces storing tables, indexes, metadata, undologs....
*=> Removing iblogs is okay once you stop mysql but not while it's running!
Update: Removing iblogs is okay only after shutting down mysql with innodb_fast_shutdown disabled.
You might like to review this answer to understand what is wrong! You might want to do a restore from the snapshot may be.
1
Don't remove iblogs either -- unless you have made a clean shutdown withinnodb_fast_shutdown
turned off. LVM is equivalent to a power failure.
– Rick James
Sep 1 '15 at 17:08
Yep... that's why the STAR is after "can" ;) & was told later on
– mysql_user
Sep 1 '15 at 18:25
* andinnodb_fast_shutdown
turned off. -- My added qualification.
– Rick James
Sep 2 '15 at 5:37
add a comment |
Removed ibdata1? You can* remove iblogfiles but not the ibdata1!!
They're system tablespaces storing tables, indexes, metadata, undologs....
*=> Removing iblogs is okay once you stop mysql but not while it's running!
Update: Removing iblogs is okay only after shutting down mysql with innodb_fast_shutdown disabled.
You might like to review this answer to understand what is wrong! You might want to do a restore from the snapshot may be.
1
Don't remove iblogs either -- unless you have made a clean shutdown withinnodb_fast_shutdown
turned off. LVM is equivalent to a power failure.
– Rick James
Sep 1 '15 at 17:08
Yep... that's why the STAR is after "can" ;) & was told later on
– mysql_user
Sep 1 '15 at 18:25
* andinnodb_fast_shutdown
turned off. -- My added qualification.
– Rick James
Sep 2 '15 at 5:37
add a comment |
Removed ibdata1? You can* remove iblogfiles but not the ibdata1!!
They're system tablespaces storing tables, indexes, metadata, undologs....
*=> Removing iblogs is okay once you stop mysql but not while it's running!
Update: Removing iblogs is okay only after shutting down mysql with innodb_fast_shutdown disabled.
You might like to review this answer to understand what is wrong! You might want to do a restore from the snapshot may be.
Removed ibdata1? You can* remove iblogfiles but not the ibdata1!!
They're system tablespaces storing tables, indexes, metadata, undologs....
*=> Removing iblogs is okay once you stop mysql but not while it's running!
Update: Removing iblogs is okay only after shutting down mysql with innodb_fast_shutdown disabled.
You might like to review this answer to understand what is wrong! You might want to do a restore from the snapshot may be.
edited Apr 13 '17 at 12:42
Community♦
1
1
answered Sep 1 '15 at 12:13
mysql_usermysql_user
1,58468
1,58468
1
Don't remove iblogs either -- unless you have made a clean shutdown withinnodb_fast_shutdown
turned off. LVM is equivalent to a power failure.
– Rick James
Sep 1 '15 at 17:08
Yep... that's why the STAR is after "can" ;) & was told later on
– mysql_user
Sep 1 '15 at 18:25
* andinnodb_fast_shutdown
turned off. -- My added qualification.
– Rick James
Sep 2 '15 at 5:37
add a comment |
1
Don't remove iblogs either -- unless you have made a clean shutdown withinnodb_fast_shutdown
turned off. LVM is equivalent to a power failure.
– Rick James
Sep 1 '15 at 17:08
Yep... that's why the STAR is after "can" ;) & was told later on
– mysql_user
Sep 1 '15 at 18:25
* andinnodb_fast_shutdown
turned off. -- My added qualification.
– Rick James
Sep 2 '15 at 5:37
1
1
Don't remove iblogs either -- unless you have made a clean shutdown with
innodb_fast_shutdown
turned off. LVM is equivalent to a power failure.– Rick James
Sep 1 '15 at 17:08
Don't remove iblogs either -- unless you have made a clean shutdown with
innodb_fast_shutdown
turned off. LVM is equivalent to a power failure.– Rick James
Sep 1 '15 at 17:08
Yep... that's why the STAR is after "can" ;) & was told later on
– mysql_user
Sep 1 '15 at 18:25
Yep... that's why the STAR is after "can" ;) & was told later on
– mysql_user
Sep 1 '15 at 18:25
* and
innodb_fast_shutdown
turned off. -- My added qualification.– Rick James
Sep 2 '15 at 5:37
* and
innodb_fast_shutdown
turned off. -- My added qualification.– Rick James
Sep 2 '15 at 5:37
add a comment |
Thanks for contributing an answer to Database Administrators Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f112816%2ftable-does-not-exist-even-if-there-is-one%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
You haven't really asked a question, or explained what errors or problems you're having - only described steps you've taken. Please elaborate on the issue by editing the question.
– Sami Kuhmonen
Sep 1 '15 at 12:13