Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I set up a raid 1 array for my "swap", "/boot", and "/" partitions. "/boot" = md0 "/" = md1 "swap" = md2 This is the contents of /proc/mdstat: ...
  1. #1
    Just Joined!
    Join Date
    Jun 2005
    Posts
    40

    Raid 1 question

    Hi, I set up a raid 1 array for my "swap", "/boot", and "/" partitions.

    "/boot" = md0
    "/" = md1
    "swap" = md2

    This is the contents of /proc/mdstat:
    Code:
    Personalities : [raid1]
    md2 : active raid1 sda3[0] sdb3[1]
          8190968 blocks super 1.1 [2/2] [UU]
    
    md1 : active raid1 sdb2[1]
          460798844 blocks super 1.1 [2/1] [_U]
          bitmap: 4/4 pages [16KB], 65536KB chunk
    
    md0 : active raid1 sdb1[1]
          1023988 blocks super 1.0 [2/1] [_U]
    
    unused devices: <none>
    When looking at that it makes me think the raid isn't correct for md0 and md1. Shouldn't md0 also show sda1, and md0 should show sda2?

  2. #2
    Just Joined!
    Join Date
    Jun 2005
    Posts
    40
    I answered my own question by running:

    mdadm /dev/md0 --add /dev/sda1
    mdadm /dev/md1 --add /dev/sda2

Posting Permissions

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