Difference between revisions of "XCAT Setup RAID1 on Compute Nodes"
Jump to navigation
Jump to search
| Line 5: | Line 5: | ||
# grab the provided rhel raid1 script | # grab the provided rhel raid1 script | ||
| − | wget --no-check-certificate https:// | + | 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 | # set the partition script for the osimage | ||
| − | chdef -t osimage centos8-x86_64-install-compute partitionfile="s:/install/custom/partition/ | + | 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 | # note: check the end of the file to edit/change the default layout | ||
| 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 | ||
| + | # or nodeset node0001 osimage=centos8-x86_64-install-compute | ||
</pre> | </pre> | ||
| Line 20: | Line 21: | ||
<pre> | <pre> | ||
| + | # Already done in the gitlab merge | ||
# towards the end where the cat > /tmp/partitionfile starts | # towards the end where the cat > /tmp/partitionfile starts | ||
# add the --drives flag to the clear part arg | # add the --drives flag to the clear part arg | ||
clearpart --drives=${disk1},${disk2} --all | clearpart --drives=${disk1},${disk2} --all | ||
</pre> | </pre> | ||
Latest revision as of 14:55, 7 January 2021
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