All of lore.kernel.org
 help / color / mirror / Atom feed
* Auto-assembling RAID6 over RAID0?
@ 2011-10-27 18:27 Michał Sawicz
  2011-10-27 18:59 ` Michał Sawicz
  2011-11-08 11:37 ` Michał Sawicz
  0 siblings, 2 replies; 3+ messages in thread
From: Michał Sawicz @ 2011-10-27 18:27 UTC (permalink / raw)
  To: linux-raid


[-- Attachment #1.1: Type: text/plain, Size: 1278 bytes --]

Hi,

I have a RAID6, one member of which is a RAID0 (see attached --examine
output). During boot the arrays don't get assembled properly. As soon as
the RAID0 is assembled, it seems it gets added to a separate
single-member array (as spare, btw...) and then when the RAID6 is
supposed to assemble, it's missing that member (shouldn't it start
anyway, btw?). I'm on gentoo, so I can have two separate mdadm.conf
files - one for the initramfs, the other for real root. Both are listed
below.

Does anyone have any pointers on how to configure stuff for that array
to assemble properly automagically? Without the mdadm.confs at all, if
possible?

/etc/mdadm-boot.conf:
> ARRAY /dev/md124 UUID=47ffcb36:cf06cacc:462a36bb:f8f383a4
> ARRAY /dev/md127 UUID=e2d1cc5f:561339ef:c44c77eb:7ee19756
> ARRAY /dev/md/root metadata=1.2
> UUID=2c9eac29:89fb6c84:43dc5e7f:2677af98 name=media:root

/etc/mdadm.conf:
> ARRAY /dev/md/substore metadata=1.2
> UUID=e4cbf6b5:dda6f29c:76971fde:d826f1b3 name=sysresccd:substore
> ARRAY /dev/md/live metadata=1.2
> UUID=b3432e2b:4c9979f3:b6e959e7:74cffa8a name=media:live
> ARRAY /dev/md/store metadata=1.2
> UUID=ff9e032c:446ed0bd:fc9473f3:f8e090ed name=media:store

Cheers,
-- 
Michał (Saviq) Sawicz <michal@sawicz.net>

[-- Attachment #1.2: examines.txt --]
[-- Type: text/plain, Size: 11964 bytes --]

/dev/sda1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : ff9e032c:446ed0bd:fc9473f3:f8e090ed
           Name : media:store  (local to host media)
  Creation Time : Tue Sep 13 21:36:43 2011
     Raid Level : raid6
   Raid Devices : 7

 Avail Dev Size : 3907024896 (1863.01 GiB 2000.40 GB)
     Array Size : 19535119360 (9315.07 GiB 10001.98 GB)
  Used Dev Size : 3907023872 (1863.01 GiB 2000.40 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : active
    Device UUID : b75b6b4f:902d3e16:693b3725:ec442cbd

    Update Time : Thu Oct 27 20:11:50 2011
       Checksum : 94c2f320 - correct
         Events : 225384

         Layout : left-symmetric
     Chunk Size : 512K

   Device Role : Active device 3
   Array State : AAAAAAA ('A' == active, '.' == missing)

======================

/dev/sdb1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : e4cbf6b5:dda6f29c:76971fde:d826f1b3
           Name : sysresccd:substore
  Creation Time : Sat Oct 22 10:28:47 2011
     Raid Level : raid0
   Raid Devices : 2

 Avail Dev Size : 1953517954 (931.51 GiB 1000.20 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : clean
    Device UUID : 1ce1639d:e4151a21:654296eb:aee92a0f

    Update Time : Sat Oct 22 10:28:47 2011
       Checksum : 13d9ffc1 - correct
         Events : 0

     Chunk Size : 512K

   Device Role : Active device 0
   Array State : AA ('A' == active, '.' == missing)

======================

/dev/sdc1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : ff9e032c:446ed0bd:fc9473f3:f8e090ed
           Name : media:store  (local to host media)
  Creation Time : Tue Sep 13 21:36:43 2011
     Raid Level : raid6
   Raid Devices : 7

 Avail Dev Size : 3907024896 (1863.01 GiB 2000.40 GB)
     Array Size : 19535119360 (9315.07 GiB 10001.98 GB)
  Used Dev Size : 3907023872 (1863.01 GiB 2000.40 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : active
    Device UUID : 549aa21b:d4244631:e71ad4bd:cbb9b5ce

    Update Time : Thu Oct 27 20:11:50 2011
       Checksum : 26287d5e - correct
         Events : 225384

         Layout : left-symmetric
     Chunk Size : 512K

   Device Role : Active device 2
   Array State : AAAAAAA ('A' == active, '.' == missing)

======================

/dev/sdd1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : e4cbf6b5:dda6f29c:76971fde:d826f1b3
           Name : sysresccd:substore
  Creation Time : Sat Oct 22 10:28:47 2011
     Raid Level : raid0
   Raid Devices : 2

 Avail Dev Size : 1953517954 (931.51 GiB 1000.20 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : clean
    Device UUID : 791d0e71:b350cdef:f65ef3a5:a27574d8

    Update Time : Sat Oct 22 10:28:47 2011
       Checksum : 39de1f74 - correct
         Events : 0

     Chunk Size : 512K

   Device Role : Active device 1
   Array State : AA ('A' == active, '.' == missing)

======================

mdadm: No md superblock detected on /dev/sde1.

======================

/dev/sde2:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : 47ffcb36:cf06cacc:462a36bb:f8f383a4 (local to host media)
  Creation Time : Wed Sep 21 08:26:16 2011
     Raid Level : raid1
  Used Dev Size : 129984 (126.96 MiB 133.10 MB)
     Array Size : 129984 (126.96 MiB 133.10 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 124

    Update Time : Sat Oct 22 11:00:08 2011
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : 9c6da6c6 - correct
         Events : 18


      Number   Major   Minor   RaidDevice State
this     0       8       66        0      active sync   /dev/sde2

   0     0       8       66        0      active sync   /dev/sde2
   1     1       8       82        1      active sync   /dev/sdf2

======================

/dev/sde3:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 2c9eac29:89fb6c84:43dc5e7f:2677af98
           Name : media:root  (local to host media)
  Creation Time : Wed Sep 21 08:57:41 2011
     Raid Level : raid10
   Raid Devices : 2

 Avail Dev Size : 62912512 (30.00 GiB 32.21 GB)
     Array Size : 62910464 (30.00 GiB 32.21 GB)
  Used Dev Size : 62910464 (30.00 GiB 32.21 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : clean
    Device UUID : e7d30ef3:5c1da519:5dc2a827:bff5a19b

    Update Time : Thu Oct 27 20:19:29 2011
       Checksum : bc0e1c55 - correct
         Events : 45

         Layout : far=2
     Chunk Size : 512K

   Device Role : Active device 0
   Array State : AA ('A' == active, '.' == missing)

======================

mdadm: No md superblock detected on /dev/sde4.

======================

/dev/sde5:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : b3432e2b:4c9979f3:b6e959e7:74cffa8a
           Name : media:live  (local to host media)
  Creation Time : Tue Sep 20 21:01:01 2011
     Raid Level : raid0
   Raid Devices : 2

 Avail Dev Size : 1888247183 (900.39 GiB 966.78 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : clean
    Device UUID : 7adc62d7:a7914213:31cfa6b2:8b517533

    Update Time : Tue Sep 20 21:01:01 2011
       Checksum : eb39aa40 - correct
         Events : 0

     Chunk Size : 512K

   Device Role : Active device 0
   Array State : AA ('A' == active, '.' == missing)

======================

mdadm: No md superblock detected on /dev/sdf1.

======================

/dev/sdf2:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : 47ffcb36:cf06cacc:462a36bb:f8f383a4 (local to host media)
  Creation Time : Wed Sep 21 08:26:16 2011
     Raid Level : raid1
  Used Dev Size : 129984 (126.96 MiB 133.10 MB)
     Array Size : 129984 (126.96 MiB 133.10 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 124

    Update Time : Sat Oct 22 11:00:08 2011
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : 9c6da6d8 - correct
         Events : 18


      Number   Major   Minor   RaidDevice State
this     1       8       82        1      active sync   /dev/sdf2

   0     0       8       66        0      active sync   /dev/sde2
   1     1       8       82        1      active sync   /dev/sdf2

======================

/dev/sdf3:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : 2c9eac29:89fb6c84:43dc5e7f:2677af98
           Name : media:root  (local to host media)
  Creation Time : Wed Sep 21 08:57:41 2011
     Raid Level : raid10
   Raid Devices : 2

 Avail Dev Size : 62912512 (30.00 GiB 32.21 GB)
     Array Size : 62910464 (30.00 GiB 32.21 GB)
  Used Dev Size : 62910464 (30.00 GiB 32.21 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : clean
    Device UUID : 1d2726d5:4a0c3c5b:597b3d53:6741c02f

    Update Time : Thu Oct 27 20:19:29 2011
       Checksum : 9f6f631e - correct
         Events : 45

         Layout : far=2
     Chunk Size : 512K

   Device Role : Active device 1
   Array State : AA ('A' == active, '.' == missing)

======================

mdadm: No md superblock detected on /dev/sdf4.

======================

/dev/sdf5:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : b3432e2b:4c9979f3:b6e959e7:74cffa8a
           Name : media:live  (local to host media)
  Creation Time : Tue Sep 20 21:01:01 2011
     Raid Level : raid0
   Raid Devices : 2

 Avail Dev Size : 1888247183 (900.39 GiB 966.78 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : clean
    Device UUID : 668bd8dc:5d0daf33:e804c7ed:ef63150f

    Update Time : Tue Sep 20 21:01:01 2011
       Checksum : 27dc1cff - correct
         Events : 0

     Chunk Size : 512K

   Device Role : Active device 1
   Array State : AA ('A' == active, '.' == missing)

======================

/dev/sdg1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : ff9e032c:446ed0bd:fc9473f3:f8e090ed
           Name : media:store  (local to host media)
  Creation Time : Tue Sep 13 21:36:43 2011
     Raid Level : raid6
   Raid Devices : 7

 Avail Dev Size : 3907024896 (1863.01 GiB 2000.40 GB)
     Array Size : 19535119360 (9315.07 GiB 10001.98 GB)
  Used Dev Size : 3907023872 (1863.01 GiB 2000.40 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : active
    Device UUID : e776f353:df8851af:409b08a6:584ce92d

    Update Time : Thu Oct 27 20:11:50 2011
       Checksum : 23ecd0e5 - correct
         Events : 225384

         Layout : left-symmetric
     Chunk Size : 512K

   Device Role : Active device 4
   Array State : AAAAAAA ('A' == active, '.' == missing)

======================

/dev/sdh1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : ff9e032c:446ed0bd:fc9473f3:f8e090ed
           Name : media:store  (local to host media)
  Creation Time : Tue Sep 13 21:36:43 2011
     Raid Level : raid6
   Raid Devices : 7

 Avail Dev Size : 3907024896 (1863.01 GiB 2000.40 GB)
     Array Size : 19535119360 (9315.07 GiB 10001.98 GB)
  Used Dev Size : 3907023872 (1863.01 GiB 2000.40 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : active
    Device UUID : 4bcee8e2:709419b6:fbeb3a8e:5c9bb68a

    Update Time : Thu Oct 27 20:11:50 2011
       Checksum : fea9d394 - correct
         Events : 225384

         Layout : left-symmetric
     Chunk Size : 512K

   Device Role : Active device 0
   Array State : AAAAAAA ('A' == active, '.' == missing)

======================

/dev/sdi1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : ff9e032c:446ed0bd:fc9473f3:f8e090ed
           Name : media:store  (local to host media)
  Creation Time : Tue Sep 13 21:36:43 2011
     Raid Level : raid6
   Raid Devices : 7

 Avail Dev Size : 3907024896 (1863.01 GiB 2000.40 GB)
     Array Size : 19535119360 (9315.07 GiB 10001.98 GB)
  Used Dev Size : 3907023872 (1863.01 GiB 2000.40 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : active
    Device UUID : ade80b47:8a54eedd:55363c8a:7c77b48c

    Update Time : Thu Oct 27 20:11:50 2011
       Checksum : 88a0d490 - correct
         Events : 225384

         Layout : left-symmetric
     Chunk Size : 512K

   Device Role : Active device 6
   Array State : AAAAAAA ('A' == active, '.' == missing)

======================

/dev/sdj1:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
     Array UUID : ff9e032c:446ed0bd:fc9473f3:f8e090ed
           Name : media:store  (local to host media)
  Creation Time : Tue Sep 13 21:36:43 2011
     Raid Level : raid6
   Raid Devices : 7

 Avail Dev Size : 3907024896 (1863.01 GiB 2000.40 GB)
     Array Size : 19535119360 (9315.07 GiB 10001.98 GB)
  Used Dev Size : 3907023872 (1863.01 GiB 2000.40 GB)
    Data Offset : 2048 sectors
   Super Offset : 8 sectors
          State : active
    Device UUID : 1ff1e946:e785056a:9c97ed8a:3444dfbb

    Update Time : Thu Oct 27 20:11:50 2011
       Checksum : 44723c59 - correct
         Events : 225384

         Layout : left-symmetric
     Chunk Size : 512K

   Device Role : Active device 1
   Array State : AAAAAAA ('A' == active, '.' == missing)

======================


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Auto-assembling RAID6 over RAID0?
  2011-10-27 18:27 Auto-assembling RAID6 over RAID0? Michał Sawicz
@ 2011-10-27 18:59 ` Michał Sawicz
  2011-11-08 11:37 ` Michał Sawicz
  1 sibling, 0 replies; 3+ messages in thread
From: Michał Sawicz @ 2011-10-27 18:59 UTC (permalink / raw)
  To: linux-raid

[-- Attachment #1: Type: text/plain, Size: 1169 bytes --]

Dnia 2011-10-27, czw o godzinie 14:27 -0400, Michał Sawicz pisze:
> I have a RAID6, one member of which is a RAID0 (see attached --examine
> output).

The missing examine for the raid0 array:
> /dev/md/substore:
>           Magic : a92b4efc
>         Version : 1.2
>     Feature Map : 0x0
>      Array UUID : ff9e032c:446ed0bd:fc9473f3:f8e090ed
>            Name : media:store  (local to host media)
>   Creation Time : Tue Sep 13 21:36:43 2011
>      Raid Level : raid6
>    Raid Devices : 7
> 
> Avail Dev Size : 3907033088 (1863.02 GiB 2000.40 GB)
>      Array Size : 19535119360 (9315.07 GiB 10001.98 GB)
>   Used Dev Size : 3907023872 (1863.01 GiB 2000.40 GB)
>     Data Offset : 2048 sectors
>    Super Offset : 8 sectors
>           State : active
>     Device UUID : 726ec7f2:23b9f207:21796e85:5300ccaf
> 
>     Update Time : Thu Oct 27 20:11:50 2011
>        Checksum : 7caaaa92 - correct
>          Events : 225384
> 
>          Layout : left-symmetric
>      Chunk Size : 512K
> 
>    Device Role : Active device 5
>    Array State : AAAAAAA ('A' == active, '.' == missing)

-- 
Michał (Saviq) Sawicz <michal@sawicz.net>

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Auto-assembling RAID6 over RAID0?
  2011-10-27 18:27 Auto-assembling RAID6 over RAID0? Michał Sawicz
  2011-10-27 18:59 ` Michał Sawicz
@ 2011-11-08 11:37 ` Michał Sawicz
  1 sibling, 0 replies; 3+ messages in thread
From: Michał Sawicz @ 2011-11-08 11:37 UTC (permalink / raw)
  To: linux-raid

[-- Attachment #1: Type: text/plain, Size: 380 bytes --]

Dnia 2011-10-27, czw o godzinie 14:27 -0400, Michał Sawicz pisze:
> Does anyone have any pointers on how to configure stuff for that array
> to assemble properly automagically? Without the mdadm.confs at all, if
> possible?

Sorry for bumping, but I can't believe nobody on this list has comments
on the issue?

Regards,
-- 
Michał (Saviq) Sawicz <michal@sawicz.net>

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-08 11:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-27 18:27 Auto-assembling RAID6 over RAID0? Michał Sawicz
2011-10-27 18:59 ` Michał Sawicz
2011-11-08 11:37 ` Michał Sawicz

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.