Package: mdadm
Version: 4.1~rc1-4
Severity: normal

I have a raw FAT32 that is for EFI system partition. I have it mirrored on two 
SSDs, but because it must be recognized by BIOS, it is stupid legacy partition 
with no superblocks or bitmaps.
It works well, because there is almost no writes to this file system. I also 
usually mount it with sync option.

I tried:

ARRAY /dev/md/bootefi level=mirror num-devices=2 
devices=/dev/disk/by-id/ata-M4-CT512M4SSD1_AAAA-part1,/dev/disk/by-id/ata-M4-CT512M4SSD1_BBBB-part1
 name=xyz_bootefi

and it doesn't work. doing mdadm --assemble --scan doesn't touch it.

I need to do manually mdadm --build /dev/md/bootefi --level... --num-devices=2 
/dev/xxx /dev/yyy

(plus minus --assume-clean, or full resync everytime because it is just 100MB 
in size).

Being able to put it in mdadm.conf would be nice.

PS. I need to do by-id or by-path, because doing this UUID will not work, as 
there in fact two devices (/dev/sda1 and /dev/sde1) with exactly same UUID, 
LABEL, etc.

Thanks.


-- Package-specific info:
--- mdadm.conf
CREATE owner=root group=disk mode=0660 auto=yes
HOMEHOST <system>
MAILADDR root
ARRAY /dev/md/0 metadata=1.2 UUID=aaaaa name=xyz:0
ARRAY /dev/md/1 metadata=1.2 UUID=bbbbb name=xyz:1
#ARRAY /dev/md/bootefi level=mirror num-devices=2 
devices=/dev/disk/by-id/ata-M4-CT512M4SSD1_AAA-part1,/dev/disk/by-id/ata-M4-CT512M4SSD1_BBB-part1
 name=xyz_bootefi

--- /etc/default/mdadm
AUTOCHECK=true
START_DAEMON=true
DAEMON_OPTIONS="--syslog"
VERBOSE=false

--- /proc/mdstat:
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] 
[raid10]
md127 : active raid1 sdd1[1] sda1[0]
      123904 blocks super non-persistent [2/2] [UU]

md0 : active raid1 sda2[1] sdd2[0]
      624064 blocks super 1.2 [2/2] [UU]

md1 : active raid1 sda3[1] sdd3[0]
      70247296 blocks super 1.2 [2/2] [UU]

unused devices: <none>

--- /proc/partitions:
major minor  #blocks  name

 259        0 1000204632 nvme0n1
 259        2 1000203264 nvme0n1p1
 259        1 1000204632 nvme1n1
 259        3 1000203264 nvme1n1p1
   8       64  250059096 sde
   8       65     307200 sde1
   8       66     102400 sde2
   8       67     131072 sde3
   8       68  249517056 sde4
   8        0  500107608 sda
   8        1     123904 sda1
   8        2     624640 sda2
   8        3   70312960 sda3
   8        4  429044736 sda4
   8       48  500107608 sdd
   8       49     123904 sdd1
   8       50     624640 sdd2
   8       51   70312960 sdd3
   8       52  429044736 sdd4
   8       16 2930266584 sdb
   8       17 2930265543 sdb1
   8       32  976762584 sdc
   9        1   70247296 md1
   9        0     624064 md0
 253        0   70246272 dm-0
 253        1    1949696 dm-1
 253        2   25690112 dm-2
 253        3   28946432 dm-3
 253        4    3903488 dm-4
 253        5    5558272 dm-5
 253        6    4194304 dm-6
 253        7  429043712 dm-7
 253        8  429043712 dm-8
 253        9 1000201216 dm-9
 253       10 1000201216 dm-10

--- mount output
/dev/md0 on /boot type ext4 (rw,nosuid,nodev,noatime,sync,data=ordered)
/dev/md127 on /boot/efi type vfat 
(rw,nosuid,nodev,noatime,sync,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
....

--- initrd.img-4.16.0-2-amd64:

gzip: /boot/initrd.img-4.16.0-2-amd64: not in gzip format
cpio: premature end of archive

--- initrd's /conf/conf.d/md:
no conf/md file.

--- /proc/modules:
dm_crypt 40960 5 - Live 0xffffffffc02ca000
dm_mod 147456 31 dm_crypt, Live 0xffffffffc0469000
raid10 57344 0 - Live 0xffffffffc0395000
raid456 167936 0 - Live 0xffffffffc043f000
async_raid6_recov 20480 1 raid456, Live 0xffffffffc02b7000
async_memcpy 16384 2 raid456,async_raid6_recov, Live 0xffffffffc02b2000
async_pq 16384 2 raid456,async_raid6_recov, Live 0xffffffffc0253000
async_xor 16384 3 raid456,async_raid6_recov,async_pq, Live 0xffffffffc0246000
async_tx 16384 5 raid456,async_raid6_recov,async_memcpy,async_pq,async_xor, 
Live 0xffffffffc01b4000
raid6_pq 122880 4 btrfs,raid456,async_raid6_recov,async_pq, Live 
0xffffffffc0308000
libcrc32c 16384 3 nf_nat,nf_conntrack,raid456, Live 0xffffffffc017c000
raid0 20480 0 - Live 0xffffffffc015b000
multipath 16384 0 - Live 0xffffffffc00f4000
linear 16384 0 - Live 0xffffffffc011a000
raid1 45056 2 - Live 0xffffffffc020e000
md_mod 159744 8 raid10,raid456,raid0,multipath,linear,raid1, Live 
0xffffffffc0417000
raid_class 16384 1 mpt3sas, Live 0xffffffffc0165000
scsi_mod 253952 6 sg,sd_mod,mpt3sas,raid_class,libata,scsi_transport_sas, Live 
0xffffffffc00b5000

--- /var/log/syslog:

--- volume detail:
# mdadm --examine /dev/md127
/dev/md127:
   MBR Magic : aa55
# mdadm --detail /dev/md127
/dev/md127:
           Version :
     Creation Time : Mon Sep 24 21:53:46 2018
        Raid Level : raid1
        Array Size : 123904 (121.00 MiB 126.88 MB)
     Used Dev Size : 123904 (121.00 MiB 126.88 MB)
      Raid Devices : 2
     Total Devices : 2

             State : clean
    Active Devices : 2
   Working Devices : 2
    Failed Devices : 0
     Spare Devices : 0

Consistency Policy : resync

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



--- /proc/cmdline
BOOT_IMAGE=/vmlinuz-4.16.0-2-amd64 root=/dev/mapper/xyz-root ro intel_iommu=on 
iommu=pt

Auto-generated on Mon, 24 Sep 2018 21:48:09 +0200 by mdadm bugscript

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.16.0-2-amd64 (SMP w/12 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C 
(charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mdadm depends on:
ii  debconf [debconf-2.0]  1.5.69
ii  libc6                  2.27-6
ii  lsb-base               9.20170808
iu  udev                   239-9

Versions of packages mdadm recommends:
iu  exim4-daemon-light [mail-transport-agent]  4.91-7
ii  kmod                                       25-1

Versions of packages mdadm suggests:
pn  dracut-core  <none>

-- debconf information:
* mdadm/mail_to: root
* mdadm/initrdstart: all
* mdadm/autocheck: true
  mdadm/initrdstart_notinconf: false
  mdadm/initrdstart_msg_errconf:
  mdadm/initrdstart_msg_intro:
  mdadm/initrdstart_msg_errexist:
  mdadm/initrdstart_msg_errblock:
  mdadm/initrdstart_msg_errmd:
* mdadm/start_daemon: true
  mdadm/autostart: true

Reply via email to