Solved

Ubuntu Mirror (RAID-1) State: DEGRADED

Posted on 2013-11-14
5
852 Views
Last Modified: 2013-11-15
Hey Guys,

I have a virtual machine server I put together a few years ago and I had some trouble with it today and the RAID-1 is showing "DEGRADED".  

The OS is Ubuntu 10.04 and I've got 2 500GB SATA drives in a RAID-1 software RAID.  In "Disk Utility" it looks like this (picture is worth 1000 words):
Pg1Pg2Pg3Pg4In case it helps "watch -n3 cat /proc/mdstat"
Anyway - this morning I was getting a bunch of delayed write errors on the Windows VM's that are running on it and I rebooted it via ssh (I'm not local to the box).  After the reboot I couldn't get SSH so I had a local user connect a monitor to it and it said something about disk errors and we told it to check and fix (I don't know what the exact language was).  

So now it's back up and running but it seems sluggish and the raid is showing as degraded.    

I tried using the "Check Array" button to check and repair but I get a "Permission Denied" error.  

Looking at the SMART status (Disk has a few bad sectors with a green light) I'm assuming that the disks are OK - is that a bad assumption?  

What can I do to fix the DEGRADED status?  

Thanks for your help!

:)
0
Comment
Question by:ttist25
  • 3
  • 2
5 Comments
 
LVL 21

Accepted Solution

by:
Mazdajai earned 500 total points
ID: 39650186
Looking at the SMART status (Disk has a few bad sectors with a green light) I'm assuming that the disks are OK - is that a bad assumption?  

"Delayed write errors" are unreadable sectors, it is possible the number can increase or you may never see them again.

I don't think it is possible to clear the DEGRADED because Raid check the SMART status, in order to do that you will need to clear the SMART values which is built-in onto the hard drive. It is green because the bad sectors have been marked by the OS not usable.

This is an indication that your hard drive is failing and I highly recommend you to replace the hard drives before DATA LOSS occur.

Are you root when you trying to check the array?
0
 
LVL 1

Author Comment

by:ttist25
ID: 39650204
Hi Mazdajai,

Thanks for the response!  I'm definitely going to replace the drives in this box.  In fact I'd like to load it up with ProxMox (something I found after I built this one).  

Thanks for your help.
0
 
LVL 1

Author Closing Comment

by:ttist25
ID: 39650208
PS - I can't figure out how to run Disk Utility as sudo.  Thanks again!
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39650222
I can't stress how important SMART values is, please do not ignore them!

If you are using version 12 and above, I think you can call the the disk utility in terminal  -

sudo gnome-disks

Open in new window

0
 
LVL 1

Author Comment

by:ttist25
ID: 39651000
Gotcha.  Again, this box is a target for an upgrade anyway so I will definitely move forward with the replacement.  Fortunately the VM's are used only to connect to an MIS system at a remote site and no data is stored on them.  I would like to avoid any downtime though so replacement will be high on the priority list.  

Thanks again for all of your help Mazdajai.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Many businesses neglect disaster recovery and treat it as an after-thought. I can tell you first hand that data will be lost, hard drives die, servers will be hacked, and careless (or malicious) employees can ruin your data.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question