All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomka Gergely <tomka@avaxio.net>
To: "Linux, Raid lista" <linux-raid@vger.kernel.org>
Subject: spare group
Date: Mon, 11 Jun 2007 15:45:18 +0200	[thread overview]
Message-ID: <466D51EE.7030509@avaxio.net> (raw)

Good day!

I have problems with spare-groups. The problem: spare groups dont work 
for me. How can i use ths function?

The test :

# mdadm26 -D /dev/md0
/dev/md0:
         Version : 01.02.03
   Creation Time : Mon Jun 11 15:25:23 2007
      Raid Level : raid5
      Array Size : 19534720 (18.63 GiB 20.00 GB)
   Used Dev Size : 19534720 (9.31 GiB 10.00 GB)
    Raid Devices : 3
   Total Devices : 3
Preferred Minor : 0
     Persistence : Superblock is persistent

     Update Time : Mon Jun 11 16:05:21 2007
           State : clean, degraded
  Active Devices : 2
Working Devices : 2
  Failed Devices : 1
   Spare Devices : 0

          Layout : left-symmetric
      Chunk Size : 64K

            Name : ursula:T1  (local to host ursula)
            UUID : 3e420024:281f9bb1:fd9ef39b:c18153b1
          Events : 10

     Number   Major   Minor   RaidDevice State
        0       0        0        0      removed
        1       8       17        1      active sync   /dev/sdb1
        3       8       33        2      active sync   /dev/sdc1

        0       8        1        -      faulty spare   /dev/sda1

# mdadm26 -D /dev/md1
/dev/md1:
         Version : 01.02.03
   Creation Time : Mon Jun 11 15:35:40 2007
      Raid Level : raid5
      Array Size : 19534720 (18.63 GiB 20.00 GB)
   Used Dev Size : 19534720 (9.31 GiB 10.00 GB)
    Raid Devices : 3
   Total Devices : 4
Preferred Minor : 1
     Persistence : Superblock is persistent

     Update Time : Mon Jun 11 15:38:23 2007
           State : clean
  Active Devices : 3
Working Devices : 4
  Failed Devices : 0
   Spare Devices : 1

          Layout : left-symmetric
      Chunk Size : 64K

            Name : ursula:T2  (local to host ursula)
            UUID : fb8ece28:9a6a31f8:700f37f6:7ee91bcf
          Events : 6

     Number   Major   Minor   RaidDevice State
        0       8       49        0      active sync   /dev/sdd1
        1       8       65        1      active sync   /dev/sde1
        3       8       81        2      active sync   /dev/sdf1

        4       8       97        -      spare   /dev/sdg1

# cat /etc/mdadm/mdadm.conf
DEVICE /dev/sd[a-g]1

HOMEHOST ursula

ARRAY /dev/md1 level=raid5 devices=/dev/sd[defg]1 num-devices=3 
spares=1 spare-group=ubul name=ursula:T2 
UUID=fb8ece28:9a6a31f8:700f37f6:7ee91bcf
ARRAY /dev/md0 level=raid5 devices=/dev/sd[abc]1 num-devices=3 
spare-group=ubul name=ursula:T1 UUID=3e420024:281f9bb1:fd9ef39b:c18153b1

According to the source:

* If an array has active < raid && spare == 0 && spare_group !=NULL
* Look for another array with spare > 0 and active == raid and same 
spare_group
* if found, choose a device and hotremove/hotadd

This is not happening. What is my mistake?

tg


             reply	other threads:[~2007-06-11 13:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-11 13:45 Tomka Gergely [this message]
2007-06-11 23:47 ` spare group Neil Brown
2007-06-12  6:34   ` Tomka Gergely
2007-06-12  6:59     ` Neil Brown
2007-06-12  7:57       ` Tomka Gergely
2007-06-12  9:54         ` Neil Brown
2007-06-13  7:25           ` Tomka Gergely

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=466D51EE.7030509@avaxio.net \
    --to=tomka@avaxio.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.