On 11/25/19 2:57 PM, Thomas HUMMEL wrote:
Hello,
I'm having trouble performing stateful node install with xCAT-2.15 /
centos8.0.1905 x86_64 although I think I followed the same steps which
worked for centos7
clearpart --all
zerombr
part /boot --ondisk=/dev/sda --grow --fstype=xfs --label=boot
part swap --ondisk=/dev/sdb --grow --label=swap
part / --ondisk=/dev/sdc --grow --fstype xfs --label=root
bootloader --boot-drive=/dev/sda --location=mbr --append=ipv6.disable=1
biosdevname=0 net.ifnames=0 rd.driver.blacklist=nouveau nouveau.modeset=0
Well, if I comment out the
%include /tmp/partitionfile line inside the
#XCAT_PARTITION_START#
#XCAT_PARTITION_END#
section of the tmpl xCAT template file
and I replace it with the content of my partitionfile, it seems to work...
At the same time, unrelated to this issue, I changed a bit my partition
scheme (I wanted to have root filesystem on the raw disk device and not
inside a partition), so to be precise, currently :
#clearpart --all --initlabel
#XCAT_PARTITION_START#
#%include /tmp/partitionfile
clearpart --none
part /boot --onpart=sda1
part swap --onpart=sdb
part / --onpart=sdc
bootloader --boot-drive=/dev/sda --location=mbr --append="ipv6.disable=1
biosdevname=0 net.ifnames=0 rd.driver.blacklist=nouveau nouveau.modeset=0"
#XCAT_PARTITION_END#
with the following added to %pre
echo "Creating parts and filesystems..."
echo "Creating /dev/sda1 part for /boot"
parted -s /dev/sda 'mklabel msdos'
parted -s /dev/sda 'mkpart primary 2048s 100%'
parted -s /dev/sda 'set 1 boot on'
echo "Creating xfs filesystem on /dev/sda1 for /boot"
mkfs.xfs -L boot /dev/sda1
echo "Creating xfs filesystem on raw disk /dev/sdb for /"
mkfs.xfs -L root /dev/sdb
echo "Creating swap on raw disk /dev/sdc"
mkswap /dev/sdc
works
but, with the same %pre addition and
#XCAT_PARTITION_START#
%include /tmp/partitionfile
#XCAT_PARTITION_END#
(/tmp/partitionfile having my ks part directives)
it doesn't...
Weird...
Thanks for your help
--
TH
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user