RAID boot drive not found after mdadm upgrade
I was having trouble getting a new RAID array to assemble on startup, and before anyone responded to that post, I tried updating mdadm, but this ended up taking a very long time because of all the other dependencies. Somewhere in there it messed up something with my boot. I'm pretty sure grub was updated onto /dev/sda rather than the RAID array because I messed up (see below). But first, here is what is currently happening:
I have a RAID1 array, /dev/md1, that is mounted at /. I was able to boot until I ran the updates. Now when I boot I get
Gave up waiting for root device. Common problems:
-Boot args (cat /proc/cmdline) #unchanged, I checked
-Check rootdelay= (did the system wait long enough?)
-Check root= (did the system wait for the right device?) #yes, correct UUID
-Missing modules (cat /proc/modules; ls /dev) #think this is my error
ALERT! /dev/disk/by-uui/1d3... does not exist. Dropping to a shell!
and then I am dropped into ash. blikd shows that all my HDDs are there, and registered as raid members, but there are no RAID arrays.
This is super easy to fix. I can run
mdadm --assemble --scan
which will create the RAID arrays, and cat /proc/mdstat shows they are working fine. Then I merely give exit, and it boots like a champ.
The trouble is I can't get it to do this automatically. It's not trying to assemble the arrays before looking for them.
What I THINK happened: As I was upgrading mdadm I was prompted to update grub, and it told me that I needed to select where to install it as the UUID had changed. I, being an idiot, looked at my fstab and misread a comment that said #/ was on /dev/md1 during installation. I mistook this for .../dev/sda1.... Like I said, idiot (I've barely slept tyring to sort all this stuff out). Anyways, this seemed to make sense to me, so I selected /dev/sda1 (or just sda, I forget) in the prompt and it went on its merry way. Then I rebooted and this happened.
So it appears that I mistakenly put grub on a different partition, and so it's tyring to boot from there rather than creating the RAID arrays and then boot from /dev/md1. There are a bunch of posts about this generic error, but none of them seem relevant to what I'm trying to do. Any ideas?
boot grub mdadm
bumped to the homepage by Community♦ 3 hours 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 was having trouble getting a new RAID array to assemble on startup, and before anyone responded to that post, I tried updating mdadm, but this ended up taking a very long time because of all the other dependencies. Somewhere in there it messed up something with my boot. I'm pretty sure grub was updated onto /dev/sda rather than the RAID array because I messed up (see below). But first, here is what is currently happening:
I have a RAID1 array, /dev/md1, that is mounted at /. I was able to boot until I ran the updates. Now when I boot I get
Gave up waiting for root device. Common problems:
-Boot args (cat /proc/cmdline) #unchanged, I checked
-Check rootdelay= (did the system wait long enough?)
-Check root= (did the system wait for the right device?) #yes, correct UUID
-Missing modules (cat /proc/modules; ls /dev) #think this is my error
ALERT! /dev/disk/by-uui/1d3... does not exist. Dropping to a shell!
and then I am dropped into ash. blikd shows that all my HDDs are there, and registered as raid members, but there are no RAID arrays.
This is super easy to fix. I can run
mdadm --assemble --scan
which will create the RAID arrays, and cat /proc/mdstat shows they are working fine. Then I merely give exit, and it boots like a champ.
The trouble is I can't get it to do this automatically. It's not trying to assemble the arrays before looking for them.
What I THINK happened: As I was upgrading mdadm I was prompted to update grub, and it told me that I needed to select where to install it as the UUID had changed. I, being an idiot, looked at my fstab and misread a comment that said #/ was on /dev/md1 during installation. I mistook this for .../dev/sda1.... Like I said, idiot (I've barely slept tyring to sort all this stuff out). Anyways, this seemed to make sense to me, so I selected /dev/sda1 (or just sda, I forget) in the prompt and it went on its merry way. Then I rebooted and this happened.
So it appears that I mistakenly put grub on a different partition, and so it's tyring to boot from there rather than creating the RAID arrays and then boot from /dev/md1. There are a bunch of posts about this generic error, but none of them seem relevant to what I'm trying to do. Any ideas?
boot grub mdadm
bumped to the homepage by Community♦ 3 hours 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 was having trouble getting a new RAID array to assemble on startup, and before anyone responded to that post, I tried updating mdadm, but this ended up taking a very long time because of all the other dependencies. Somewhere in there it messed up something with my boot. I'm pretty sure grub was updated onto /dev/sda rather than the RAID array because I messed up (see below). But first, here is what is currently happening:
I have a RAID1 array, /dev/md1, that is mounted at /. I was able to boot until I ran the updates. Now when I boot I get
Gave up waiting for root device. Common problems:
-Boot args (cat /proc/cmdline) #unchanged, I checked
-Check rootdelay= (did the system wait long enough?)
-Check root= (did the system wait for the right device?) #yes, correct UUID
-Missing modules (cat /proc/modules; ls /dev) #think this is my error
ALERT! /dev/disk/by-uui/1d3... does not exist. Dropping to a shell!
and then I am dropped into ash. blikd shows that all my HDDs are there, and registered as raid members, but there are no RAID arrays.
This is super easy to fix. I can run
mdadm --assemble --scan
which will create the RAID arrays, and cat /proc/mdstat shows they are working fine. Then I merely give exit, and it boots like a champ.
The trouble is I can't get it to do this automatically. It's not trying to assemble the arrays before looking for them.
What I THINK happened: As I was upgrading mdadm I was prompted to update grub, and it told me that I needed to select where to install it as the UUID had changed. I, being an idiot, looked at my fstab and misread a comment that said #/ was on /dev/md1 during installation. I mistook this for .../dev/sda1.... Like I said, idiot (I've barely slept tyring to sort all this stuff out). Anyways, this seemed to make sense to me, so I selected /dev/sda1 (or just sda, I forget) in the prompt and it went on its merry way. Then I rebooted and this happened.
So it appears that I mistakenly put grub on a different partition, and so it's tyring to boot from there rather than creating the RAID arrays and then boot from /dev/md1. There are a bunch of posts about this generic error, but none of them seem relevant to what I'm trying to do. Any ideas?
boot grub mdadm
I was having trouble getting a new RAID array to assemble on startup, and before anyone responded to that post, I tried updating mdadm, but this ended up taking a very long time because of all the other dependencies. Somewhere in there it messed up something with my boot. I'm pretty sure grub was updated onto /dev/sda rather than the RAID array because I messed up (see below). But first, here is what is currently happening:
I have a RAID1 array, /dev/md1, that is mounted at /. I was able to boot until I ran the updates. Now when I boot I get
Gave up waiting for root device. Common problems:
-Boot args (cat /proc/cmdline) #unchanged, I checked
-Check rootdelay= (did the system wait long enough?)
-Check root= (did the system wait for the right device?) #yes, correct UUID
-Missing modules (cat /proc/modules; ls /dev) #think this is my error
ALERT! /dev/disk/by-uui/1d3... does not exist. Dropping to a shell!
and then I am dropped into ash. blikd shows that all my HDDs are there, and registered as raid members, but there are no RAID arrays.
This is super easy to fix. I can run
mdadm --assemble --scan
which will create the RAID arrays, and cat /proc/mdstat shows they are working fine. Then I merely give exit, and it boots like a champ.
The trouble is I can't get it to do this automatically. It's not trying to assemble the arrays before looking for them.
What I THINK happened: As I was upgrading mdadm I was prompted to update grub, and it told me that I needed to select where to install it as the UUID had changed. I, being an idiot, looked at my fstab and misread a comment that said #/ was on /dev/md1 during installation. I mistook this for .../dev/sda1.... Like I said, idiot (I've barely slept tyring to sort all this stuff out). Anyways, this seemed to make sense to me, so I selected /dev/sda1 (or just sda, I forget) in the prompt and it went on its merry way. Then I rebooted and this happened.
So it appears that I mistakenly put grub on a different partition, and so it's tyring to boot from there rather than creating the RAID arrays and then boot from /dev/md1. There are a bunch of posts about this generic error, but none of them seem relevant to what I'm trying to do. Any ideas?
boot grub mdadm
boot grub mdadm
edited Apr 13 '17 at 12:36
Community♦
1
1
asked Jun 18 '15 at 2:07
barriboybarriboy
47128
47128
bumped to the homepage by Community♦ 3 hours 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♦ 3 hours 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 |
add a comment |
1 Answer
1
active
oldest
votes
This answer, provided by roaima, solved this problem. I had upgraded mdadm before using this solution, as stated in this post, but I recommend avoiding that if possible, as it obviously led to other errors.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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%2funix.stackexchange.com%2fquestions%2f210436%2fraid-boot-drive-not-found-after-mdadm-upgrade%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
This answer, provided by roaima, solved this problem. I had upgraded mdadm before using this solution, as stated in this post, but I recommend avoiding that if possible, as it obviously led to other errors.
add a comment |
This answer, provided by roaima, solved this problem. I had upgraded mdadm before using this solution, as stated in this post, but I recommend avoiding that if possible, as it obviously led to other errors.
add a comment |
This answer, provided by roaima, solved this problem. I had upgraded mdadm before using this solution, as stated in this post, but I recommend avoiding that if possible, as it obviously led to other errors.
This answer, provided by roaima, solved this problem. I had upgraded mdadm before using this solution, as stated in this post, but I recommend avoiding that if possible, as it obviously led to other errors.
edited Apr 13 '17 at 12:37
Community♦
1
1
answered Jun 18 '15 at 16:16
barriboybarriboy
47128
47128
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux 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%2funix.stackexchange.com%2fquestions%2f210436%2fraid-boot-drive-not-found-after-mdadm-upgrade%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