Linux Raid software
Linux Raid software
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.
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.
Re: Linux Raid software
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)
Error getting authority: Error initializing authority: Could not connect: No such file or directory(g-io-error-quark,1)
-
- Posts: 107
- Joined: 2016/05/23 11:57:12
Re: Linux Raid software
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.
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 /
-
- Posts: 107
- Joined: 2016/05/23 11:57:12
Re: Linux Raid software
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 /
-
- Posts: 107
- Joined: 2016/05/23 11:57:12
Re: Linux Raid software
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
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 /
Re: Linux Raid software
"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
"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.
Re: Linux Raid software
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
The 2 unmounted are seen like RAID 0, the others are correcly seen as RAID 1
-
- Posts: 107
- Joined: 2016/05/23 11:57:12
Re: Linux Raid software
RAID0 = no protection. If you had a drive die here and it contained the partitions that would not load then they are basically gone.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
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 /
Re: Linux Raid software
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?
-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?
-
- Posts: 107
- Joined: 2016/05/23 11:57:12
Re: Linux Raid software
Congratulations!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?
Glad to hear you got it fixed.
Ryzen x1800 * Asus x370 Pro * CentOS 7.4 64bit / Icewarp /