[SOLVED] Problem installing CentOS with a RAID 1

General support questions
pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Problem installing CentOS with a RAID 1

Post by pschaff » 2012/05/16 14:42:59

It appears that both disks are present but the arrays for md0 and md2 are degraded. Only sda is active so sdb1 and sdb3 are not being updated. Exactly what is your testing procedure, and what errors or symptoms are you encountering?

Lisandro1987
Posts: 33
Joined: 2012/04/25 17:37:40

Re: Problem installing CentOS with a RAID 1

Post by Lisandro1987 » 2012/05/16 17:33:54

This is the procedure:

(1 and 2 are random numbers)

- Shut down the computer
- Disconnect disk 1
- Turn on the computer
- Result > Black screen with blinking cursor = Not boot CentOS :(

- Shut down the computer
- Connect disk 1
- Turn on the computer
- Result > Boot CentOS perfectly

- Shut down the computer
- Disconnect disk 2
- Turn on the computer
- Result > Boot CentOS perfectly

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Problem installing CentOS with a RAID 1

Post by TrevorH » 2012/05/16 18:24:49

[quote]
- Result > Black screen with blinking cursor = Not boot CentOS :(
[/quote]

That sounds more like your BIOS is confused and is still waiting for a non-existent disk to respond.

Lisandro1987
Posts: 33
Joined: 2012/04/25 17:37:40

Re: Problem installing CentOS with a RAID 1

Post by Lisandro1987 » 2012/05/17 20:22:36

:( So... What can I do? I don't know what else to try... :(

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Problem installing CentOS with a RAID 1

Post by pschaff » 2012/05/17 20:44:24

Did you first fix the issues with the degraded arrays so all mdX devices show both disks present? Did you try changing the boot device in the BIOS after disconnecting the first disk? If still having problems then try to [url=http://wiki.centos.org/TipsAndTricks/ReinstallGRUB]reinstall GRUB[/url] with only the second disk present.

Lisandro1987
Posts: 33
Joined: 2012/04/25 17:37:40

Re: Problem installing CentOS with a RAID 1

Post by Lisandro1987 » 2012/05/21 17:12:39

Thanks you again :(

Let's see... I install CentOS following the steps in section one. In section two I do the next:

[code]su
grub
grub> find /grub/stage1
(hd0,0)
(hd1,0)
grub> device (hd0) /dev/sda
grub> device (hd1) /dev/sdb
grub> root (hd0,0)
grub> setup (hd0)
grub> root (hd1,0)
grub> setup (hd1)
grub> quit
reboot[/code]

[code]su
yum list updates
yum update
reboot[/code]

I think that the next step is what I am doing wrong..... Can you tell me what to do line to line?

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Problem installing CentOS with a RAID 1

Post by pschaff » 2012/05/21 20:39:58

Not without being there at your system or having better information. You need to check the current status of the RAID devices, and if there are devices missing restore them.

[b]man mdadm[/b]

Lisandro1987
Posts: 33
Joined: 2012/04/25 17:37:40

Re: Problem installing CentOS with a RAID 1

Post by Lisandro1987 » 2012/05/22 13:05:28

Here is the information for disk problems:

http://pastebin.com/YVzzYnPX

Thanks!

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Problem installing CentOS with a RAID 1

Post by pschaff » 2012/05/22 13:26:40

The RAIDs look fine except md2 is in the process of re-syncing. What happens if you disconnect disk 1 and switch disk 2 to the connector that previously had disk 1?

Lisandro1987
Posts: 33
Joined: 2012/04/25 17:37:40

Re: Problem installing CentOS with a RAID 1

Post by Lisandro1987 » 2012/05/22 14:23:41

To my surprise: It works!

Unlike other installations I only change ext3 instead of ext4, and I disconnect the others disk that I have in LVM...

Thanks so much!!!

Post Reply