LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-03-2017, 10:18 AM   #1
asincero
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Rep: Reputation: 0
RAID1 is degraded, but shouldn't I still be able to use the array?


I have a logical volume group named "vg01". It consists of four RAID1 arrays: md0, md1, md2, and md3. Each array consists of two drives.

Arrays md0 and md2 are both in a degraded state; one drive in each array has failed. Subsequently, they have a "[U_]" in their respective entries in "/proc/mdstat". But, they are still marked as "active" so presumably they are still useable.

However, when I try to activate logical volume "srv" that resides on "vg01", I get two errors saying that it is unable to locate devices with particular UUIDs and then a error saying that it's refusing partial activation of LV vg01/srv. It also says I can specify "--activationmode partial" to override.

I'm going to guess those two UUID messages are corresponding to the two degraded RAID1 arrays. But aren't those arrays active and therefore should appear to the LVM subsystem as healthy drives?

What happens if it do specify "--activationmode partial"? Will I hose the data on "/dev/vg01/srv"?

Does anybody have suggestions on how I can save the data on "/dev/vg01/srv"?
 
Old 09-04-2017, 10:22 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hi:

I'm not a Raid expert but I did find a link if you'd like to do a backup.

https://linoxide.com/how-tos/how-to-...tion-on-linux/

Quote:
I get two errors saying that it is unable to locate devices with particular UUIDs and then a error saying that it's refusing partial activation of LV vg01/srv. It also says I can specify "--activationmode partial" to override.
When you can please post the exact error messages. Knowing what they are will help.


Quote:
But aren't those arrays active and therefore should appear to the LVM subsystem as healthy drives?
I'm not sure. Unable to locate devices by UUID's might mean that the HDD can't be read. If the drive or drives are failing the array dies with it. That's what I've learned so far.

I think you will need some kind of Raid Recovery Software. mdadm?

https://www.linuxquestions.org/quest...-drive-925485/
https://serverfault.com/questions/37...-of-its-server

I'm still learning Raid so I'm afraid my help is very limited:-
 
Old 09-04-2017, 10:27 PM   #3
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
https://access.redhat.com/solutions/400173

There may be a way to rebuild a degraded Raid but I'm sorry I don't know how.

IF you are running RH you might want to give them a call.
1-888-733-4281

Hope you have a backup.

Last edited by Ztcoracat; 09-04-2017 at 10:55 PM.
 
Old 09-05-2017, 07:10 AM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
This is something Which Should Not Happen. Provided you have build your RAID and LVM the standard and recommended way.

You build your RAID array and it is presented as /dev/md0, /dev/md1 to LVM. If there is something wrong with the underlying RAID, LVM simply does not see it. The RAID driver puts a layer over disk failures and the disappearance of partitions like /dev/sda1 etc. LVM does not even know the existence of /dev/sda1, /dev/sdb1. LVM only deals with /dev/md0, /dev/md1 and they still fully exist and unchanged. Therefor you need the /proc/mdstat output to know if everything is still right.

I suspect that somehow you built the LVM not on /dev/md0 but on /dev/sda1 or so. You still can access the disk partitions when a RAID is built on top!

Read this article very carefully: https://wiki.archlinux.org/index.php...e_RAID_and_LVM. And see if what you observe is in line with what is described here.

jlinkels
 
Old 09-05-2017, 04:44 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Thanks for joining the thread jlinkels.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID1 - Degraded Array, but hardware appears fine mpyusko Linux - Server 6 04-03-2014 10:36 AM
Help Raid1 degraded haloway13 Linux - Hardware 2 07-06-2013 10:52 PM
Help with degraded RAID1 jimjxr Linux - Server 3 03-26-2013 11:44 AM
raid1 mdadm repair degraded array with used good hard drive catbird Linux - Hardware 7 07-09-2009 12:31 AM
Degraded raid1 array problem on slack 12.0.0 / mdadm slack-12.0.0 Slackware 5 10-12-2007 06:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration