All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Liontooth <lionteeth@cogweb.net>
To: linux-raid@vger.kernel.org
Subject: Add a spare to a poorly defined raid1
Date: Wed, 15 Feb 2012 17:51:12 +0530	[thread overview]
Message-ID: <4F3BA338.6030204@cogweb.net> (raw)


Not knowing what I was doing, I created a RAID1 with a single drive and 
a spare, as below.

I'd like to add the spare to the array. How do I do this without rebooting?

Cheers,
Dave


# definitions of existing MD arrays
ARRAY /dev/md0 level=raid1 num-devices=1 
UUID=9921faab:5d93510e:0db287f1:dc103b07
    spares=1

# mdadm --detail /dev/md0
/dev/md0:
         Version : 0.90
   Creation Time : Fri Jul 18 14:57:40 2008
      Raid Level : raid1
      Array Size : 104320 (101.89 MiB 106.82 MB)
   Used Dev Size : 104320 (101.89 MiB 106.82 MB)
    Raid Devices : 1
   Total Devices : 2
Preferred Minor : 0
     Persistence : Superblock is persistent

     Update Time : Wed Feb 15 03:37:11 2012
           State : clean
  Active Devices : 1
Working Devices : 2
  Failed Devices : 0
   Spare Devices : 1

            UUID : 9921faab:5d93510e:0db287f1:dc103b07
          Events : 0.218

     Number   Major   Minor   RaidDevice State
        0       8        1        0      active sync   /dev/sda1

        1       8       17        -      spare   /dev/sdb1

             reply	other threads:[~2012-02-15 12:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-15 12:21 David Liontooth [this message]
2012-02-15 12:44 ` Add a spare to a poorly defined raid1 Robin Hill
2012-02-15 14:22   ` David Liontooth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F3BA338.6030204@cogweb.net \
    --to=lionteeth@cogweb.net \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.