kickstart common errors [notes]

Question:

new value non-existent xfs filesystem is not valid as a default fs type

analysis

During installation, enter shell (CTL +F2) 
modprobe xfs ; lsmod | grep xfs 
Unable to find xfs module
 It seems to be wen in pxeboot in iso

terms of settlement

Download vmlinuz again initrd.img , do not use files provided by iso

Question:

Your BIOS-based system needs a special partition to boot from a GPT disk label. To continue, please create a 1MiB 'biosboot' type parition

analysis

The disk uses gpt format and cannot call boot partition directly

terms of settlement

zerombr
clearpart --all --initlabel
part biosboot --fstype=biosboot --size=1   <- Add this sentence
part /boot --fstype="xfs" --size=500
part swap --fstype="swap" --size=16384
part / --fstype="xfs" --grow --size=1

problem

Disk device naming rules may be different in different storage

resolvent

Using disk alias
Refer to the format below

/etc/udev/rules.d/88-custom-journal-disk.rules
KERNEL=="sdn*",ACTION=="add", SUBSYSTEM=="block", OWNER="ceph",GROUP="ceph", MODE="0660" SYMLINK+="jsda%n"

Reference script

#!/bin/bash
ssddisk=`lsscsi -i | grep SSD | awk '{print $7}' | awk -F/ '{print $3}'`
part=a
for disk in $ssddisk
do
  echo 'KERNEL=="'$disk'[0-9]*",ACTION=="add", SUBSYSTEM=="block", OWNER="ceph",GROUP="ceph", MODE="0660", SYMLINK+="jd'$part'%n"' >> /etc/udev/rules.d/88-custom-journal-disk.rules
  part=b
done

atadisk=`lsscsi -i |  grep "^\[0:0:" | grep -v  SSD | awk '{print $7}' | awk -F/ '{print $3}'`
for disk in $atadisk
do
  part=`echo $disk | sed s/s/o/`
  echo 'KERNEL=="'$disk'[0-9]*",ACTION=="add", SUBSYSTEM=="block", OWNER="ceph",GROUP="ceph", MODE="0660", SYMLINK+="'$part'%n"' >> /etc/udev/rules.d/88-custom-journal-disk.rules
done

Reorganize raid

explain

dell r720 raid directly accesses the disk through JBOD mode. To rebuild the raid, megacli - adpsetprop - enablejmod - 0 - AALL is required to turn off this function

Refer to kickstart

%pre
rpm -ivh --force --nodeps  http://10.199.129.21/vclound/tmp/megacli-8.04.07-2.x86_64.rpm
for disk in `ls /dev/sd? | grep -v sda`
do
   dd if=/dev/zero of=/dev/sda bs=1M count=110
done

if [ -b '/dev/sdc' ]
then
  if [[ ! -b '/dev/sdn'  ||  -b '/dev/sdn7' ]]
  then
    megacli -CfgLdDel -LALL -force -aALL
    megacli -AdpSetProp -EnableJBOD -0 -aALL
    raidnum=`megacli -PDlist -aALL | grep "ID"  | uniq  | awk '{print $NF}'`
    megacli -CfgLdAdd -r1 [$raidnum:0,$raidnum:1] WB Direct -a0
    reboot
  fi
fi
%end

Tags: Ceph RPM shell

Posted on Fri, 22 May 2020 09:00:53 -0700 by yaatra