Solved

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

Posted on 2012-04-08
4
464 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 77

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 77

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AWS EC2 Linux 1 54
AWS CLI issues with Tags 3 63
Which Linux flavors will this run on? 6 76
Remove a folder in Linux 9 90
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

911 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

20 Experts available now in Live!

Get 1:1 Help Now