Find the answer to your Linux question:
Results 1 to 5 of 5
Hello Forum: I am learning about software RAID. I have setup RAD1 on one of my servers at home. This is what I have from the /procs/mdstat file: cat /proc/mdstat ...
  1. #1
    Linux Newbie
    Join Date
    Jun 2008
    Location
    Georgia, USA
    Posts
    117

    software RAID replacing hard disk

    Hello Forum:

    I am learning about software RAID. I have setup RAD1 on one of my servers at home. This is what I have from the /procs/mdstat file:

    cat /proc/mdstat
    Personalities : [raid1]
    md3 : active raid1 hdd3[1] hdb3[0]
    68364480 blocks [2/2] [UU]

    md2 : active raid1 hdd2[1] hdb2[0]
    78132032 blocks [2/2] [UU]

    md1 : active raid1 hdd1[1] hdb1[0]
    97667072 blocks [2/2] [UU]

    md0 : active raid1 sdb1[1] sda1[0]
    241665664 blocks [2/2] [UU]

    unused devices: <none>

    Now I need to fail one of the drives, and replace it. For example, let us say I purposely fail the hdd drive. Ok, that is not a problem. However, the problem for me is when I have to physically remove it from the server itself. I have two hard drives making up the software RAID1. How do I know which one of the two to remove?
    Thanks.
    --Willie
    If there was no Linux, my life would not be complete.

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Do you know which drive is which in your system? Looks like you only have 4 drives so you should know which is which.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Linux Newbie
    Join Date
    Jun 2008
    Location
    Georgia, USA
    Posts
    117
    Hello Lazydog:

    Thanks for your reply.

    Actually, I am just concerned about the md1, md2, and md3 arrays. I should had not posted the md0 array. Please disregard that one.
    Thanks.
    --Willie
    If there was no Linux, my life would not be complete.

  4. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    Well if you lose a disk all of those raids will be affected. Looking at the disc connections should tell you which disk is which.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  5. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Disconnect one of the candidate drives and see which one has gone off-line? If you run the disc utility, it will be pretty obvious which one is off.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...