Solved

How to know which device in  centos raid mirror to break ?

Posted on 2012-04-08
4
467 Views
Last Modified: 2012-04-08
Hi,

May raid status now as follows :


root@svr15 [~]# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdb1[0] sda1[1]
      200704 blocks [2/2] [UU]

md1 : active raid1 sdb2[0] sda2[1]
      8193024 blocks [2/2] [UU]

md2 : active raid1 sdb3[2] sda3[1]
      479989952 blocks [2/1] [_U]
      [>....................]  recovery =  0.7% (3739072/479989952) finish=3760.4min speed=2110K/sec

unused devices: <none>
root@svr15 [~]#


I would like to break mirror for md2 and leave only the device that having my recent/full data.

May i know which device should i set to fail if  i want to break mirror for md2 as above requirement  ?

Is it sda3 or sdb3 ?


Appreciates any assistant.

Thank you.
0
Comment
Question by:smksa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 78

Assisted Solution

by:arnold
arnold earned 500 total points
ID: 37821677
0
 
LVL 2

Author Comment

by:smksa
ID: 37822057
Hi,

The result are as follows :


root@svr15 [~]# mdadm --detail /dev/md2
/dev/md2:
        Version : 0.90
  Creation Time : Mon Sep 21 03:04:28 2009
     Raid Level : raid1
     Array Size : 479989952 (457.75 GiB 491.51 GB)
  Used Dev Size : 479989952 (457.75 GiB 491.51 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 2
    Persistence : Superblock is persistent

    Update Time : Mon Apr  9 08:10:43 2012
          State : clean, degraded, recovering
 Active Devices : 1
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 1

 Rebuild Status : 16% complete

           UUID : d3b0ba06:0193031d:e4002cd8:ea0960eb
         Events : 0.32003252

    Number   Major   Minor   RaidDevice State
       2       8       19        0      spare rebuilding   /dev/sdb3
       1       8        3        1      active sync   /dev/sda3
root@svr15 [~]#


So the one that i should remove is /dev/sdb3 right ?
0
 
LVL 78

Accepted Solution

by:
arnold earned 500 total points
ID: 37822138
Not sure why you want to go this route, but yes
 2       8       19        0      spare rebuilding   /dev/sdb3
Indicates that /dev/sdb3 is currently out of sync and is rebuilding.

This is a large partition with presumably a large amount of valuable data.  I'd recommend letting it rebuild.
0
 
LVL 2

Author Comment

by:smksa
ID: 37822178
Hi,

The reason i would like to remove the drive is because the rebuild never get completed.

Its almost a month already and the resync keep on restarting when reaching 67%++ .

I suspect this may be due to this drive and i want to replace it.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RHEL 6.7 Gnome Desktop on VMware 6 VM 9 143
pvcreate issue 5 101
python - find anything after $ question. 9 87
CentOs root password/fsck issue 7 61
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

752 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