setup-storage bug ? Version 1.7 VS 2.0 ...

Sylvain MILOT sylvain at bic.mni.mcgill.ca
Fri Jun 15 13:45:49 CEST 2018


Hello list,

I think I may have stumbled on a serious issue with setup-storage 2.0 (fai 5.3.6~bpo8+1) ... unless my config is wrong but I've used such configs with setup-storage 1.7 (fai 4.3.1+wheezy1). I can't confirm since my old 4.3.1+wheezy1 nfsroot is incompatible with my new hardware (reason why I moved to 5.3.6~bpo8+1 with a more recent kernel).

the following disk config fails to preserve both bic_pv-_exp and /export02, in fact /boot is preserved strangely. I attached the relevant format.log file.

disk_config disk1 bootable:1 align-at:4kiB
primary   -          200      -      -
logical   swap       RAM:100% swap   sw
logical   -          0-       -      -

disk_config disk2 sameas:disk1

disk_config raid
raid1     /boot     disk1.1,disk2.1   ext4   rw,errors=remount-ro
raid1     -         disk1.6,disk2.6   -      -

disk_config lvm preserve_lazy:bic_pv-_exp
vg  bic_pv      md1
bic_pv-_tmp     /tmp                    RAM:25%-RAM:50%  ext4    rw,noatime              createopts="-O ^has_journal"
bic_pv-_root    /                       32768-49152      ext4    rw,errors=remount-ro    createopts="-O dir_index,resize_inode"
bic_pv-_vartmp  /var/tmp                2048             ext4    rw
bic_pv-_exp     /export01               0-               ext4    rw,noatime              createopts="-O dir_index,resize_inode"

# data mirror on /export02
disk_config disk3 disklabel:gpt align-at:4kiB
primary  -             0-            -     -

disk_config disk4 sameas:disk3

disk_config raid preserve_lazy:0
raid1     /export02     disk3.1,disk4.1    xfs  rw,noatime,logbsize=256k,sunit=512,swidth=512,noquota    mdcreateopts="--chunk=256" createopts="-d su=256k,sw=1 -l version=2,su=256k"

Note that I'm working from home this morning and taking the rest of the day off - I may not be able to test anything until next week as I don't have active IPMI on my new system and it's now currently stalled as I tried my 4.3.1+wheezy1 nfsroot on it anyway ... but of course that failed. I should be able to provide more info though.

Best regards,

Sylvain

---
Sylvain Milot (sylvain at bic.mni.mcgill.ca)
               (sylvain.milot at mcgill.ca)
Brain Imaging Centre
Montreal Neurological Institute
3801 University Street, Webster 2B, Room 206
Montreal, Qc., Canada, H3A 2B4
Phone  : (514) 398-4965, Fax: 398-8948
Mobile : (514) 712-1768
Office : Room NW119 (North Wing)
-------------- next part --------------
Starting setup-storage 2.0
Using config file: /fai/disk_config/DP_OS2_DATA2
    DEGRADED MODE. Incomplete RAID LVs will be processed.
    Creating directory "/run/lock/lvm"
    Finding all volume groups
  No volume groups found
Preserved partition /dev/sda1 does not end at a cylinder boundary, parted may fail to restore the partition!
Preserved partition /dev/sdb1 does not end at a cylinder boundary, parted may fail to restore the partition!
/dev/sda1 will be preserved
/dev/sdb1 will be preserved
Executing: mdadm --stop --scan
Executing: mdadm --assemble --scan --config=/tmp/fai/mdadm-from-examine.conf
Executing: mdadm -W --stop /dev/md0
Executing: mdadm -W --stop /dev/md2
Executing: mdadm -W --stop /dev/md1
Executing: wipefs -a /dev/sda5
Executing: wipefs -a /dev/sda6
Executing: parted -s /dev/sda mklabel msdos
Executing: parted -s /dev/sda mkpart primary "" 1048576B 210763775B
Executing: parted -s /dev/sda set 1 boot on
Executing: parted -s /dev/sda set 1 raid on
Executing: parted -s /dev/sda set 1 boot on
Executing: parted -s /dev/sda mkpart extended "" 210763776B 500107862015B
Executing: parted -s /dev/sda mkpart logical "linux-swap" 210767872B 67647127551B
Executing: parted -s /dev/sda mkpart logical "" 67647131648B 500107862015B
Executing: mkswap  /dev/sda5
Executing: wipefs -a /dev/sdd1
Executing: parted -s /dev/sdd mklabel gpt
Executing: parted -s /dev/sdd mkpart primary "" 1048576B 3000592961535B
Executing: wipefs -a /dev/sdb5
Executing: wipefs -a /dev/sdb6
Executing: parted -s /dev/sdb mklabel msdos
Executing: parted -s /dev/sdb mkpart primary "" 1048576B 210763775B
Executing: parted -s /dev/sdb set 1 boot on
Executing: parted -s /dev/sdb set 1 raid on
Executing: parted -s /dev/sdb set 1 boot on
Executing: parted -s /dev/sdb mkpart extended "" 210763776B 500107862015B
Executing: parted -s /dev/sdb mkpart logical "linux-swap" 210767872B 67647127551B
Executing: parted -s /dev/sdb mkpart logical "" 67647131648B 500107862015B
Executing: mkswap  /dev/sdb5
Executing: wipefs -a /dev/sdc1
Executing: parted -s /dev/sdc mklabel gpt
Executing: parted -s /dev/sdc mkpart primary "" 1048576B 3000592961535B
Executing: parted -s /dev/sda set 6 raid on
Executing: parted -s /dev/sdb set 6 raid on
Executing: parted -s /dev/sdc set 1 raid on
Executing: parted -s /dev/sdd set 1 raid on
Executing: mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1
Executing: yes | mdadm --create  /dev/md1 --level=raid1 --force --run --raid-devices=2 /dev/sda6 /dev/sdb6 
Executing: yes | mdadm --create --chunk=256 /dev/md2 --level=raid1 --force --run --raid-devices=2 /dev/sdc1 /dev/sdd1 
Executing: mkfs.xfs -d su=256k,sw=1 -l version=2,su=256k -f /dev/md2
Executing: pvcreate -ff -y  /dev/md1
Executing: vgcreate  bic_pv  /dev/md1
Executing: vgchange -a y bic_pv
Executing: lvcreate  --yes -n _tmp -L 29115.5199661339 bic_pv
Executing: mkfs.ext4 -O ^has_journal /dev/bic_pv/_tmp
Executing: lvcreate  --yes -n _root -L 46053.5033133984 bic_pv
Executing: mkfs.ext4 -O dir_index,resize_inode /dev/bic_pv/_root
Executing: lvcreate  --yes -n _vartmp -L 2048 bic_pv
Executing: mkfs.ext4  /dev/bic_pv/_vartmp
Executing: lvcreate  --yes -n _exp -L 331085.401212655 bic_pv
Executing: mkfs.ext4 -O dir_index,resize_inode /dev/bic_pv/_exp
/dev/md2 UUID=eb12de66-5bdf-4cfa-873d-4311fd449e10
/dev/md0 UUID=c4ce0323-0471-49ca-b755-47acd76d9d3b
/dev/sda5 UUID=a2e9bddd-f4d1-4be7-8d8c-a39633868bac
/dev/sdb5 UUID=99cb95d0-4b32-4078-a2ee-d0e18fcc81b6
/dev/bic_pv/_exp UUID=3c479b87-9acf-4bf9-829c-6b7de2577fd3
/dev/bic_pv/_vartmp UUID=481796e4-ad0a-4ad0-99b6-ae2583042f21
/dev/bic_pv/_tmp UUID=a9522783-d47d-4605-85db-05127ebcb413
/dev/bic_pv/_root UUID=9ba59665-f123-4b09-af78-af33a2596508


More information about the linux-fai mailing list