udev doesn't detect ddf-format raid array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

I have an adaptec hostraid controller (fakeraid) with 2 drives connected in a 
RAID1 array (metadata is in DDF format) which is nicely detected and enabled 
by dmraid, there is no problem with it after it's enabled.

Recently debian's dmraid-booter has switched to use udev. But udev does not 
detect my drives as raid type, ID_FS_USAGE is missing from the drive info (it 
should be "raid"), so the result is that dmraid does not called at boot. Also 
vol_id sees the partitions as normal partitions.

I've recognised that one of my disks has a HPA, the other hasn't. I'm not sure 
if this has any effect, but because of this, the DDF1-headers are not at the 
same position on the 2 drives.

Below are some outputs. The last one is a 'dmraid -n' output, and what is 
strange for me at first sight is that both drives has 2 DDF1-headers. Is this 
normal? Or do you think I should try to rebuild the raid array with the bios 
utility (maybe after some bios upgrade)? Or is this rather an udev problem?

Thanks,
Peter

$ udevinfo --query=all --name=sda
P: /block/sda
N: sda
S: disk/by-id/ata-SAMSUNG_SP2004C_S07GJ1LYB11332
S: disk/by-id/scsi-SATA_SAMSUNG_SP2004CS07GJ1LYB11332
S: disk/by-path/pci-0000:03:00.0-scsi-0:0:0:0
E: ID_VENDOR=ATA
E: ID_MODEL=SAMSUNG_SP2004C
E: ID_REVISION=VM10
E: ID_SERIAL=SATA_SAMSUNG_SP2004CS07GJ1LYB11332
E: ID_SERIAL_SHORT=S07GJ1LYB11332
E: ID_TYPE=disk
E: ID_BUS=scsi
E: ID_ATA_COMPAT=SAMSUNG_SP2004C_S07GJ1LYB11332
E: ID_PATH=pci-0000:03:00.0-scsi-0:0:0:0

$ udevinfo --query=all --name=sdb
P: /block/sdb
N: sdb
S: disk/by-id/ata-SAMSUNG_SP2004C_S07GJ1LYB11326
S: disk/by-id/scsi-SATA_SAMSUNG_SP2004CS07GJ1LYB11326
S: disk/by-path/pci-0000:03:00.0-scsi-1:0:0:0
E: ID_VENDOR=ATA
E: ID_MODEL=SAMSUNG_SP2004C
E: ID_REVISION=VM10
E: ID_SERIAL=SATA_SAMSUNG_SP2004CS07GJ1LYB11326
E: ID_SERIAL_SHORT=S07GJ1LYB11326
E: ID_TYPE=disk
E: ID_BUS=scsi
E: ID_ATA_COMPAT=SAMSUNG_SP2004C_S07GJ1LYB11326
E: ID_PATH=pci-0000:03:00.0-scsi-1:0:0:0

# vol_id /dev/sda
/dev/sda: unknown volume type

# vol_id /dev/sdb
/dev/sdb: unknown volume type

# vol_id /dev/sda2
ID_FS_USAGE=filesystem
ID_FS_TYPE=ext3
ID_FS_VERSION=1.0
ID_FS_UUID=db631065-7ca8-45fc-bf60-a9259a732dec
ID_FS_UUID_ENC=db631065-7ca8-45fc-bf60-a9259a732dec
ID_FS_LABEL=
ID_FS_LABEL_ENC=
ID_FS_LABEL_SAFE=

# vol_id /dev/sdb2
ID_FS_USAGE=filesystem
ID_FS_TYPE=ext3
ID_FS_VERSION=1.0
ID_FS_UUID=db631065-7ca8-45fc-bf60-a9259a732dec
ID_FS_UUID_ENC=db631065-7ca8-45fc-bf60-a9259a732dec
ID_FS_LABEL=
ID_FS_LABEL_ENC=
ID_FS_LABEL_SAFE=

dmesg:
[    3.676575] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[    3.676504] ata1.00: HPA detected: current 390719855, native 390721968  <==
[    3.676504] ata1.00: ATA-7: SAMSUNG SP2004C, VM100-33, max UDMA7
[    3.676504] ata1.00: 390719855 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    3.683147] ata1.00: configured for UDMA/100
[    6.244512] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
[    6.247775] ata2.00: ATA-7: SAMSUNG SP2004C, VM100-33, max UDMA7
[    6.247817] ata2.00: 390721968 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    6.559336] ata2.00: configured for UDMA/100
[    6.559336] scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG SP2004C  VM10 
PQ: 0 ANSI: 5
[    6.559336] scsi 1:0:0:0: Direct-Access     ATA      SAMSUNG SP2004C  VM10 
PQ: 0 ANSI: 5

# dmraid -r
/dev/sdb: ddf1, ".ddf1_disks", GROUP, ok, 390361088 sectors, data@ 0
/dev/sda: ddf1, ".ddf1_disks", GROUP, ok, 390361088 sectors, data@ 0

# dmraid -s
*** Group superset .ddf1_disks
--> Active Subset
name   : ddf1_system
size   : 390361088
stride : 128
type   : mirror
status : ok
subsets: 0
devs   : 2
spares : 0

# dmraid -n
/dev/sdb (ddf1):
DDF1 anchor at 390721967 with tables in little-endian format.
DDF1 Header at 0x875e760
0x000 signature:        0xDE11DE11
0x004 crc:              0xD1DB18B7
0x008 guid:             ".. L..B... L8.!L(.!L...." [a8 fd 20 4c 95 10 42 02 a8 
fd 20 4c 38 09 21 4c 28 15 21 4c ff ff ff ff]
0x020 rev:              "02.00.00" [30 32 2e 30 30 2e 30 30]
0x028 seqnum:           -1
0x02c timestamp:        0xFFFFFFFF
0x030 open:             0xFF
0x031 foreign:          0xFF
0x032 grouping:         0xFF
0x060 primary header:   390721956
0x068 secondary header: 4294967295
0x070 header type:      0x0
0x074 workspace len:    32768
0x078 workspace lba:    390689188
0x080 max pd:           15
0x082 max vd:           4
0x084 max part:         1
0x086 vd_config len:    2
0x088 max_primary_elts: 65535
0x0c0 adapter_offset:   1
0x0c4 adapter_len:      1
0x0c8 pd_offset:        2
0x0cc pd_len:           2
0x0d0 vd_offset:        4
0x0d4 vd_len:           1
0x0d8 config_offset:    5
0x0dc config_len:       4
0x0e0 disk_data_offset: 9
0x0e4 disk_data_len:    1
0x0e8 badblock_offset:  -1
0x0ec badblock_len:     0
0x0f0 diag_offset:      -1
0x0f4 diag_len:         0
0x0f8 vendor_offset:    10
0x0fc vendor_len:       1
DDF1 Header at 0x875e9a0
0x000 signature:        0xDE11DE11
0x004 crc:              0x5A569EF2
0x008 guid:             ".. L..B... L8.!L(.!L...." [a8 fd 20 4c 95 10 42 02 a8 
fd 20 4c 38 09 21 4c 28 15 21 4c ff ff ff ff]
0x020 rev:              "02.00.00" [30 32 2e 30 30 2e 30 30]
0x028 seqnum:           -1
0x02c timestamp:        0xFFFFFFFF
0x030 open:             0xFF
0x031 foreign:          0xFF
0x032 grouping:         0xFF
0x060 primary header:   390721956
0x068 secondary header: 4294967295
0x070 header type:      0x1
0x074 workspace len:    32768
0x078 workspace lba:    390689188
0x080 max pd:           15
0x082 max vd:           4
0x084 max part:         1
0x086 vd_config len:    2
0x088 max_primary_elts: 65535
0x0c0 adapter_offset:   1
0x0c4 adapter_len:      1
0x0c8 pd_offset:        2
0x0cc pd_len:           2
0x0d0 vd_offset:        4
0x0d4 vd_len:           1
0x0d8 config_offset:    5
0x0dc config_len:       4
0x0e0 disk_data_offset: 9
0x0e4 disk_data_len:    1
0x0e8 badblock_offset:  -1
0x0ec badblock_len:     0
0x0f0 diag_offset:      -1
0x0f4 diag_len:         0
0x0f8 vendor_offset:    10
0x0fc vendor_len:       1
Adapter Data at 0x875eba8
0x000 signature:        0xAD111111
0x004 crc:              0x28004959
0x008 guid:             ".. L8.!L(.!L. !LADPT...." [a8 fd 20 4c 38 09 21 4c 28 
15 21 4c a8 20 21 4c 41 44 50 54 ff ff ff ff]
0x020 pci vendor:       0x1095
0x022 pci device:       0x242
0x024 pci subvendor:    0x9005
0x026 pci subdevice:    0x242
Disk Data at 0x875edb0
0x000 signature:        0x33333333
0x004 crc:              0x5F4EA96C
0x008 guid:             "S07GJ1LYB11326  ..1Z...." [53 30 37 47 4a 31 4c 59 42 
31 31 33 32 36 20 20 c8 ac 31 5a ff ff ff ff]
0x020 reference:                0x38BC1348
0x024 forced_ref_flag:  255
0x025 forced_guid_flag: 0
Physical Drive Header at 0x875efb8
0x000 signature:        0x22222222
0x004 crc:              0x504EF65
0x008 num drives:       2
0x00a max drives:       15
Physical Drive at 0x875eff8
0x000 guid:             "S07GJ1LYB11326  ...Z...." [53 30 37 47 4a 31 4c 59 42 
31 31 33 32 36 20 20 08 db dd 5a ff ff ff ff]
0x018 reference #:      0x38BC1348
0x01c type:             0x2
0x01e state:            0x1
0x020 size:             390361088
0x028 path info:        ".................." [01 00 00 00 ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff]
Physical Drive at 0x875f038
0x000 guid:             "S07GJ1LYB11332  @..Z...." [53 30 37 47 4a 31 4c 59 42 
31 31 33 33 32 20 20 40 9d de 5a ff ff ff ff]
0x018 reference #:      0x38BCBED8
0x01c type:             0x2
0x01e state:            0x1
0x020 size:             390361088
0x028 path info:        ".................." [00 00 00 00 ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff]
Virtual Drive Header at 0x875f3c0
0x000 signature:        0xDDDDDDDD
0x004 crc:              0xAF8547DB
0x008 num drives:       1
0x00a max drives:       4
Virtual Drive at 0x875f400
0x000 guid:             "@50Z..B.        .#.8:5JE" [40 35 30 5a 95 10 42 02 20 
20 20 20 20 20 20 20 f8 23 bb 38 3a 35 4a 45]
0x018 vd #:             0x0
0x01c type:             0xFFFFFFFF
0x020 state:            0x0
0x021 init state:       0x2
0x030 name:             "system.........." [73 79 73 74 65 6d 00 00 00 00 00 
00 00 00 00 00]
Virtual Drive Config Record at 0x875f7c8
0x000 signature:        0xEEEEEEEE
0x004 crc:              0xC8A3CACF
0x008 guid:             "@50Z..B.        .#.8:5JE" [40 35 30 5a 95 10 42 02 20 
20 20 20 20 20 20 20 f8 23 bb 38 3a 35 4a 45]
0x020 timestamp:        0x4C8
0x024 seqnum:           1224
0x040 primary count:    2
0x042 stripe size:      7KiB
0x043 raid level:       1
0x044 raid qualifier:   0
0x045 secondary count:  1
0x046 secondary number: 0
0x047 secondary level:  255
0x060 spare 0:          0xFFFFFFFF
0x064 spare 1:          0xFFFFFFFF
0x068 spare 2:          0xFFFFFFFF
0x06c spare 3:          0xFFFFFFFF
0x070 spare 4:          0xFFFFFFFF
0x074 spare 5:          0xFFFFFFFF
0x078 spare 6:          0xFFFFFFFF
0x07c spare 7:          0xFFFFFFFF
0x080 cache policy:     0x20
0x088 bg task rate:     16
0x048 sector count:     390361088
0x050 size:             390361088
Drive map:
0: 38BC1348 @ 0
1: 38BCBED8 @ 0

/dev/sda (ddf1):
DDF1 anchor at 390719854 with tables in little-endian format.
DDF1 Header at 0x875ffd0
0x000 signature:        0xDE11DE11
0x004 crc:              0x6087F66D
0x008 guid:             ".. L..B... L8.!L(.!L...." [a8 fd 20 4c 95 10 42 02 a8 
fd 20 4c 38 09 21 4c 28 15 21 4c ff ff ff ff]
0x020 rev:              "02.00.00" [30 32 2e 30 30 2e 30 30]
0x028 seqnum:           -1
0x02c timestamp:        0xFFFFFFFF
0x030 open:             0xFF
0x031 foreign:          0xFF
0x032 grouping:         0xFF
0x060 primary header:   390719843
0x068 secondary header: 4294967295
0x070 header type:      0x0
0x074 workspace len:    32768
0x078 workspace lba:    390687075
0x080 max pd:           15
0x082 max vd:           4
0x084 max part:         1
0x086 vd_config len:    2
0x088 max_primary_elts: 65535
0x0c0 adapter_offset:   1
0x0c4 adapter_len:      1
0x0c8 pd_offset:        2
0x0cc pd_len:           2
0x0d0 vd_offset:        4
0x0d4 vd_len:           1
0x0d8 config_offset:    5
0x0dc config_len:       4
0x0e0 disk_data_offset: 9
0x0e4 disk_data_len:    1
0x0e8 badblock_offset:  -1
0x0ec badblock_len:     0
0x0f0 diag_offset:      -1
0x0f4 diag_len:         0
0x0f8 vendor_offset:    10
0x0fc vendor_len:       1
DDF1 Header at 0x8760210
0x000 signature:        0xDE11DE11
0x004 crc:              0xEB0A7028
0x008 guid:             ".. L..B... L8.!L(.!L...." [a8 fd 20 4c 95 10 42 02 a8 
fd 20 4c 38 09 21 4c 28 15 21 4c ff ff ff ff]
0x020 rev:              "02.00.00" [30 32 2e 30 30 2e 30 30]
0x028 seqnum:           -1
0x02c timestamp:        0xFFFFFFFF
0x030 open:             0xFF
0x031 foreign:          0xFF
0x032 grouping:         0xFF
0x060 primary header:   390719843
0x068 secondary header: 4294967295
0x070 header type:      0x1
0x074 workspace len:    32768
0x078 workspace lba:    390687075
0x080 max pd:           15
0x082 max vd:           4
0x084 max part:         1
0x086 vd_config len:    2
0x088 max_primary_elts: 65535
0x0c0 adapter_offset:   1
0x0c4 adapter_len:      1
0x0c8 pd_offset:        2
0x0cc pd_len:           2
0x0d0 vd_offset:        4
0x0d4 vd_len:           1
0x0d8 config_offset:    5
0x0dc config_len:       4
0x0e0 disk_data_offset: 9
0x0e4 disk_data_len:    1
0x0e8 badblock_offset:  -1
0x0ec badblock_len:     0
0x0f0 diag_offset:      -1
0x0f4 diag_len:         0
0x0f8 vendor_offset:    10
0x0fc vendor_len:       1
Adapter Data at 0x8760418
0x000 signature:        0xAD111111
0x004 crc:              0x28004959
0x008 guid:             ".. L8.!L(.!L. !LADPT...." [a8 fd 20 4c 38 09 21 4c 28 
15 21 4c a8 20 21 4c 41 44 50 54 ff ff ff ff]
0x020 pci vendor:       0x1095
0x022 pci device:       0x242
0x024 pci subvendor:    0x9005
0x026 pci subdevice:    0x242
Disk Data at 0x8760620
0x000 signature:        0x33333333
0x004 crc:              0xB6F20A59
0x008 guid:             "S07GJ1LYB11332  ...Z...." [53 30 37 47 4a 31 4c 59 42 
31 31 33 33 32 20 20 f0 da eb 5a ff ff ff ff]
0x020 reference:                0x38BCBED8
0x024 forced_ref_flag:  255
0x025 forced_guid_flag: 0
Physical Drive Header at 0x8760828
0x000 signature:        0x22222222
0x004 crc:              0x5D01040B
0x008 num drives:       2
0x00a max drives:       15
Physical Drive at 0x8760868
0x000 guid:             "S07GJ1LYB11326  0..Z...." [53 30 37 47 4a 31 4c 59 42 
31 31 33 32 36 20 20 30 ad 98 5a ff ff ff ff]
0x018 reference #:      0x38BC1348
0x01c type:             0x2
0x01e state:            0x1
0x020 size:             390361088
0x028 path info:        ".................." [01 00 00 00 ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff]
Physical Drive at 0x87608a8
0x000 guid:             "S07GJ1LYB11332  .h.Z...." [53 30 37 47 4a 31 4c 59 42 
31 31 33 33 32 20 20 98 68 99 5a ff ff ff ff]
0x018 reference #:      0x38BCBED8
0x01c type:             0x2
0x01e state:            0x1
0x020 size:             390361088
0x028 path info:        ".................." [00 00 00 00 ff ff ff ff ff ff ff 
ff ff ff ff ff ff ff]
Virtual Drive Header at 0x8760c30
0x000 signature:        0xDDDDDDDD
0x004 crc:              0xAF8547DB
0x008 num drives:       1
0x00a max drives:       4
Virtual Drive at 0x8760c70
0x000 guid:             "@50Z..B.        .#.8:5JE" [40 35 30 5a 95 10 42 02 20 
20 20 20 20 20 20 20 f8 23 bb 38 3a 35 4a 45]
0x018 vd #:             0x0
0x01c type:             0xFFFFFFFF
0x020 state:            0x0
0x021 init state:       0x2
0x030 name:             "system.........." [73 79 73 74 65 6d 00 00 00 00 00 
00 00 00 00 00]
Virtual Drive Config Record at 0x8761038
0x000 signature:        0xEEEEEEEE
0x004 crc:              0xC8A3CACF
0x008 guid:             "@50Z..B.        .#.8:5JE" [40 35 30 5a 95 10 42 02 20 
20 20 20 20 20 20 20 f8 23 bb 38 3a 35 4a 45]
0x020 timestamp:        0x4C8
0x024 seqnum:           1224
0x040 primary count:    2
0x042 stripe size:      7KiB
0x043 raid level:       1
0x044 raid qualifier:   0
0x045 secondary count:  1
0x046 secondary number: 0
0x047 secondary level:  255
0x060 spare 0:          0xFFFFFFFF
0x064 spare 1:          0xFFFFFFFF
0x068 spare 2:          0xFFFFFFFF
0x06c spare 3:          0xFFFFFFFF
0x070 spare 4:          0xFFFFFFFF
0x074 spare 5:          0xFFFFFFFF
0x078 spare 6:          0xFFFFFFFF
0x07c spare 7:          0xFFFFFFFF
0x080 cache policy:     0x20
0x088 bg task rate:     16
0x048 sector count:     390361088
0x050 size:             390361088
Drive map:
0: 38BC1348 @ 0
1: 38BCBED8 @ 0
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux