Linux Raid software

General support questions
Regular
Posts: 8
Joined: 2016/05/30 09:24:51

Linux Raid software

Post by Regular » 2016/05/30 09:31:26

I have installed server on a software RAID 1. It works fine.
If I replace a disk without restart the server I'm able to do everithing.
The problem is, if I have a disk failed e I restart the server I cant't mount all the patitions. I have message tell me that the raid is degraded but I don't know how to start the server and have a business continuity waiting for the disk replacement. I hope to be clear.

Regular
Posts: 8
Joined: 2016/05/30 09:24:51

Re: Linux Raid software

Post by Regular » 2016/05/30 11:43:06

The system after restart go in emergency mode and the error is:
Error getting authority: Error initializing authority: Could not connect: No such file or directory(g-io-error-quark,1)

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

Re: Linux Raid software

Post by northpoint » 2016/05/30 11:47:44

Disk replacement should work in the background.

What is the output of mdadm --detail /dev/<your raid dev> ?

I am assuming that you setup the software raid thru mdadm and not the machine bios?

I am not an expert but will try to help.
Ryzen x1800 * Asus x370 Pro * CentOS 7.4 64bit / Icewarp /

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

Re: Linux Raid software

Post by northpoint » 2016/05/30 11:50:31

The error message you speak of is because in the /etc/fstab file it is pointing to a device that is no longer available.
Ryzen x1800 * Asus x370 Pro * CentOS 7.4 64bit / Icewarp /

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

Re: Linux Raid software

Post by northpoint » 2016/05/30 12:03:09

Some further thoughts on this:

Since these are mirrored drives, Boot into rescue mode and see if you can mount one of the partitions of one of the raid members. If you can, Backup your /etc/fstab to something like /etc/fstab.back and then edit your fstab to change your boot, / , home to just the drive that you have mounted. (/dev/sd*) then reboot and see if you can get the system up as quick as possible. Then work with mdadm to try and figure out what is wrong with the raid setup.

I am sure there are more knowledgeable members here but I was just the first at the crash scene :)

northpoint
Ryzen x1800 * Asus x370 Pro * CentOS 7.4 64bit / Icewarp /

Regular
Posts: 8
Joined: 2016/05/30 09:24:51

Re: Linux Raid software

Post by Regular » 2016/05/30 12:40:46

"Inactive" for the md /home and /swap that are the problem, they are not mounted
"cleand, degraded" for / and /boot

All of this are RAID1 I can't undertand why / and /boot can be mounted and not the others


northpoint wrote:Disk replacement should work in the background.

What is the output of mdadm --detail /dev/<your raid dev> ?

I am assuming that you setup the software raid thru mdadm and not the machine bios?

I am not an expert but will try to help.

Regular
Posts: 8
Joined: 2016/05/30 09:24:51

Re: Linux Raid software

Post by Regular » 2016/05/30 13:05:30

mdadm --detail /dev/md127 say that the part is RAID 0
The 2 unmounted are seen like RAID 0, the others are correcly seen as RAID 1

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

Re: Linux Raid software

Post by northpoint » 2016/05/30 13:21:07

Regular wrote:mdadm --detail /dev/md127 say that the part is RAID 0
The 2 unmounted are seen like RAID 0, the others are correcly seen as RAID 1
RAID0 = no protection. If you had a drive die here and it contained the partitions that would not load then they are basically gone.

That would account for your error message. Could you post the output of mdadm --detail /dev/md* to get a better idea of your setup?
* = the raid devices
Ryzen x1800 * Asus x370 Pro * CentOS 7.4 64bit / Icewarp /

Regular
Posts: 8
Joined: 2016/05/30 09:24:51

Re: Linux Raid software

Post by Regular » 2016/05/30 15:15:59

I solved in this way
-Done mdadm --detail --scan to see the devices
and than
mdadm --run <device>
for all the device not mounted
Then Ctrd-d (we are in emergency mode) or reboot
It works: the system start with all the partitions "clean, degraded"

Now, there is a way to avoid those steps?

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

Re: Linux Raid software

Post by northpoint » 2016/05/30 16:35:08

Regular wrote:I solved in this way
-Done mdadm --detail --scan to see the devices
and than
mdadm --run <device>
for all the device not mounted
Then Ctrd-d (we are in emergency mode) or reboot
It works: the system start with all the partitions "clean, degraded"

Now, there is a way to avoid those steps?
Congratulations!

Glad to hear you got it fixed. :)
Ryzen x1800 * Asus x370 Pro * CentOS 7.4 64bit / Icewarp /

Post Reply

Return to “CentOS 7 - General Support”