Solved

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

Posted on 2012-04-08
4
462 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
  • 2
  • 2
4 Comments
 
LVL 76

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 76

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

747 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now