Setup Storage RAID problem

Bill MacAllister bill at ca-zephyr.org
Fri Aug 31 03:31:14 CEST 2018


I am building a new Dell r640 using a setup storage class that has 
worked before and seeing a failure that I don't know how to resolve.

Here is the relevant part of the build:

Starting setup-storage 2.1
Using config file: /var/lib/fai/config/disk_config/RAID1-2
Parted could not read a disk label (new disk?)
Executing: parted -s /dev/sda mklabel msdos
Parted could not read a disk label (new disk?)
Executing: parted -s /dev/sdb mklabel msdos
Executing: parted -s /dev/sda mklabel msdos
Executing: parted -s /dev/sda mkpart primary "" 1048576B 9437183B
Executing: parted -s /dev/sda mkpart primary "linux-swap" 9437184B 
32009437183B
Executing: parted -s /dev/sda mkpart primary "" 32009437184B 200049647615B
Executing: mkswap  /dev/sda2
Executing: parted -s /dev/sdb mklabel msdos
Executing: parted -s /dev/sdb mkpart primary "" 1048576B 9437183B
Executing: parted -s /dev/sdb mkpart primary "linux-swap" 9437184B 
32009437183B
Executing: parted -s /dev/sdb mkpart primary "" 32009437184B 200049647615B
Executing: mkswap  /dev/sdb2
Executing: parted -s /dev/sdb set 3 raid on
Executing: parted -s /dev/sda set 3 raid on
Executing: yes | mdadm --create  /dev/md0 --level=raid1 --force --run 
--raid-devices=2 /dev/sdb3 /dev/sda3
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[ ok ] Starting enhanced syslogd: rsyslogd already started.
[ ok ] Starting LVM2 metadata daemon: lvmetad.
[ ok ] Starting LVM2 poll daemon: lvmpolld.
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting MD monitoring service: mdadm --monitor.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
FAI: installation aborted.
reboot with: faireboot
or after a logout
bash: cannot set terminal process group (2672): Inappropriate ioctl for 
device
bash: no job control in this shell

At this point the console is glacial.  Rebooting into the NFS root so I 
can look around I see:

# lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 186.3G  0 disk
|-sda1   8:1    0     8M  0 part
|-sda2   8:2    0  29.8G  0 part
`-sda3   8:3    0 156.5G  0 part
sdb      8:16   0 186.3G  0 disk
|-sdb1   8:17   0     8M  0 part
|-sdb2   8:18   0  29.8G  0 part
`-sdb3   8:19   0 156.5G  0 part
sdc      8:32   0 186.3G  0 disk
sdd      8:48   0 186.3G  0 disk
# mdadm --detail --scan --verbose -c partitions
INACTIVE-ARRAY /dev/md0 num-devices=1 metadata=1.2 name=sjc13-chef-02:0 
UUID=3f21a9a6:e202050a:524adca3:1ec94b6f
    devices=/dev/sdb3

Here is my setup-storage definition:

# File: RAID1-1
#
# Description: Raid 1 mirror of root partition

disk_config sda
primary - 8 - -
primary swap  32GB   swap  sw
primary - 0- - -

disk_config sdb sameas:sda

disk_config raid
raid1  /  sda3,sdb3  ext4  rw,acl,async,noatime,errors=remount-ro 
createopts="-O ^metadata_csum"

Strange that the raid array only has one member.  I have confirmed that 
if I do a simple build, i.e. just use the first disk without raid, the 
build finishes just fine.

Any suggestions will be greatly appreciated.

Bill


More information about the linux-fai mailing list