centos 5.9 raid1 software with issues

General support questions including new installations
Post Reply
praetorianwls
Posts: 1
Joined: 2018/03/16 19:47:50

centos 5.9 raid1 software with issues

Post by praetorianwls » 2018/03/16 19:56:37

Hi
i saw a few days ago some issues and checked the status of mdadm

[root@doppler /]# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdb1[1] sda1[0]
1020032 blocks [2/2] [UU]

md0 : active raid1 sdb3[1] sda3[0]
2457856 blocks [2/2] [UU]

md2 : active raid1 sda2[2](S) sdb2[1]
973281856 blocks [2/1] [_U]

unused devices: <none>
***************************
[root@doppler /]# mdadm --detail /dev/md2
/dev/md2:
Version : 0.90
Creation Time : Wed Oct 4 08:40:20 2017
Raid Level : raid1
Array Size : 973281856 (928.19 GiB 996.64 GB)
Used Dev Size : 973281856 (928.19 GiB 996.64 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 2
Persistence : Superblock is persistent

Update Time : Fri Mar 16 21:54:54 2018
State : clean, degraded
Active Devices : 1
Working Devices : 2
Failed Devices : 0
Spare Devices : 1

UUID : c712ef6d:0bf35c3e:ab21d71a:d447dcce
Events : 0.6234132

Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 18 1 active sync /dev/sdb2

2 8 2 - spare /dev/sda2

*****************************
[root@doppler /]# mdadm --examine /dev/sda2
/dev/sda2:
Magic : a92b4efc
Version : 0.90.00
UUID : c712ef6d:0bf35c3e:ab21d71a:d447dcce
Creation Time : Wed Oct 4 08:40:20 2017
Raid Level : raid1
Used Dev Size : 973281856 (928.19 GiB 996.64 GB)
Array Size : 973281856 (928.19 GiB 996.64 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 2

Update Time : Fri Mar 16 21:53:07 2018
State : clean
Active Devices : 1
Working Devices : 2
Failed Devices : 0
Spare Devices : 1
Checksum : eadd3e4d - correct
Events : 6234100


Number Major Minor RaidDevice State
this 2 8 2 2 spare /dev/sda2

0 0 0 0 0 removed
1 1 8 18 1 active sync /dev/sdb2
2 2 8 2 2 spare /dev/sda2


[root@doppler /]# mdadm --examine /dev/sdb2
/dev/sdb2:
Magic : a92b4efc
Version : 0.90.00
UUID : c712ef6d:0bf35c3e:ab21d71a:d447dcce
Creation Time : Wed Oct 4 08:40:20 2017
Raid Level : raid1
Used Dev Size : 973281856 (928.19 GiB 996.64 GB)
Array Size : 973281856 (928.19 GiB 996.64 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 2

Update Time : Fri Mar 16 21:53:07 2018
State : clean
Active Devices : 1
Working Devices : 2
Failed Devices : 0
Spare Devices : 1
Checksum : eadd3e61 - correct
Events : 6234100


Number Major Minor RaidDevice State
this 1 8 18 1 active sync /dev/sdb2

0 0 0 0 0 removed
1 1 8 18 1 active sync /dev/sdb2
2 2 8 2 2 spare /dev/sda2
You have mail in /var/spool/mail/root

Please advice what to do.
Thank you

northpoint
Posts: 63
Joined: 2016/05/23 11:57:12

Re: centos 5.9 raid1 software with issues

Post by northpoint » 2018/03/16 23:08:19

What is the status of /dev/md0 and /dev/md1 ?

From what you posted it shows that your /dev/md2 is degraded and /dev/sdb2 /dev/sda2 is listed as a spare. If md0 and md1 are not degraded then you have to remove sdb2 sda2 as a spare and add it to /dev/md0 /dev/md2 as a member of the raid.
Last edited by northpoint on 2018/03/17 12:57:03, edited 2 times in total.
Ryzen x1800 * Asus x370 Pro * CentOS 7.4 64bit / Icewarp /

User avatar
TrevorH
Forum Moderator
Posts: 22798
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: centos 5.9 raid1 software with issues

Post by TrevorH » 2018/03/17 01:35:26

That's wrong, it's /dev/sda2 that's listed as spare and /dev/sdb2 that is active.

Look at your logs for the last few days/weeks and see when it happened. There will be log entries for the drive dropping out of the array and you need to work out if it did because the disk is dying or something else. If the disk is OK then you probably need to remove /dev/sda2 from the md device and add it back again and let it rebuild. Reading man mdadm could be useful.

Also, please note that CentOS 5 is dead and should not be used. You should be planning your migration to a newer version of the operating system as CentOS 5 went EOL about a year ago and has received no updates, not even security ones, since then. 5.9 is not the most recent version in any case, you should, at minimum, point your yum repos at vault.centos.org at the 5.11 directories there and run yum update to get as up to date as you can.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

northpoint
Posts: 63
Joined: 2016/05/23 11:57:12

Re: centos 5.9 raid1 software with issues

Post by northpoint » 2018/03/17 12:55:47

I corrected my post. Sorry about that and thank you for correcting me.
Ryzen x1800 * Asus x370 Pro * CentOS 7.4 64bit / Icewarp /

Post Reply