Solved

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

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why VNC doesn't work in Redhat? 11 61
Fetching data from Multiple Linux Server using Shell Scripting 55 138
windows 7 starter missing password 21 78
centos commands 6 54
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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…
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.

823 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