Difference between revisions of "XCAT Setup RAID1 on Compute Nodes"
Jump to navigation
Jump to search
| Line 15: | Line 15: | ||
# reprovision the node | # reprovision the node | ||
rinstall node0001 osimage=centos8-x86_64-install-compute | rinstall node0001 osimage=centos8-x86_64-install-compute | ||
| + | </pre> | ||
| + | |||
| + | 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 | ||
| + | |||
| + | <pre> | ||
| + | # towards the end where the cat > /tmp/partitionfile starts | ||
| + | # add the --drives flag to the clear part arg | ||
| + | clearpart --drives=${disk1},${disk2} --all | ||
</pre> | </pre> | ||
Revision as of 12:26, 21 December 2020
Create the Partition Script area
# setup RAID1 for the compute nodes mkdir -p /install/custom/partition/ # grab the provided rhel raid1 script wget https://raw.githubusercontent.com/xcat2/xcat-extensions/master/partition/raid1_rh.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_rh.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
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
# towards the end where the cat > /tmp/partitionfile starts
# add the --drives flag to the clear part arg
clearpart --drives=${disk1},${disk2} --all