Score:0

Raid 5 disk replace Centos6

us flag

I have centos 6.6 with a 4 disk raid 5. One disk is bad.

I removed the bad disk by serial number (it was sdc1).

When i rebooted with a new disk the sd labels changed.

My new disk is now sdb.

Mdadm shows my raid inactive.

Before i do anything else i wanted to know how important are the device names.

Does the same disk need to show up as sdb sdc etcc?

My mdadm conf lists them by name: sdb sdc sdd sde

George Shuklin avatar
cn flag
Linux raid can assemble disks in the same raid even their names changed. Linux raid uses internal ids to identify arrays.
RookieBeotch avatar
us flag
George , thanks. Looks like i have another drive close to failing to it also didnt get added. Imaging now.
Score:0
br flag

In my opinion, it would be useful to provide the following information:

Any raid-related messages from /var/log/messages.

Content of configuration file /etc/mdadm.conf

Content of /proc/mdstat

Have you marked the disk sdc1 as faulty via mdadm before replacing hardware?

Are all disk connected to the same controller?

Does controller detect the replaced disk properly, i.e same way as other ones?

Have you connected the new disk to the same controller port as the failed one?

Also please check /var/log/messages to see whether something happens with naming of disks what could case changing of disk names.

If device names has been used instead of UUID then I'd suggest to find out why device names got changed.

RookieBeotch avatar
us flag
That helped. Turned out i copied the wrong serial number and ended up removing a good drive. So i replaced the actual bad drive and now its all normal.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.