XCAT Setup RAID1 on Compute Nodes
Jump to navigation
Jump to search
Create the Partition Script area
# setup RAID1 for the compute nodes mkdir -p /install/custom/partition/ # grab the provided rhel raid1 script wget --no-check-certificate https://gitlab.define-technology.com/xcat-scripts/raid1-partition/-/raw/master/raid1-dt.sh -O /install/custom/partition/raid1_rh.sh # set the partition script for the osimage chdef -t osimage centos8-x86_64-install-compute partitionfile="s:/install/custom/partition/raid1-dt.sh" # note: check the end of the file to edit/change the default layout # for e.g. comment out /var lines as docker will use that area for images # reprovision the node rinstall node0001 osimage=centos8-x86_64-install-compute # or nodeset node0001 osimage=centos8-x86_64-install-compute
Note: The script above will search for and clean all disks in the system. If you wanted to force only a format / erase on the first two disks only then modify the following line in the raid1_rh.sh file
# Already done in the gitlab merge
# towards the end where the cat > /tmp/partitionfile starts
# add the --drives flag to the clear part arg
clearpart --drives=${disk1},${disk2} --all