Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2012-04-08
4
Medium Priority
?
470 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 79

Assisted Solution

by:arnold
arnold earned 2000 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 79

Accepted Solution

by:
arnold earned 2000 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

730 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