When RAIDs are used, metafiles are stored on the hard disks. This can result in a new installation not being able to run correctly and the operating system installer waits for manual input.
Using the "Pre-run NOC-PS Profile" function, another NOC-PS profile can be executed before the actual operating system installation.
The following should be noted:
Click on "Addons" → "NOC-PS For WHMCS" → "Settings". On the settings page you will find the setting "Pre-run NOC-PS Profile".
Select the desired NOC-PS profile in the dropdown. Further steps are not necessary.
As mentioned above, the use of the standard NOC-PS profile is not recommended.
We have prepared the following example, which only overwrites the first 100 MB on each memory and additionally executes wipefs.
Fields that are not listed are left blank.
General settings:
PXE script:
#!ipxe kernel http://$server/proxy.php/isolinux/rescue64 dodhcp rootpass=$rootpassword vncserver=1:$rootpassword boothttp=http://$server/proxy.php/sysrcd.dat setkmap=us ar_source=http://$server/kickstart.php/sysrcd?f= autoruns=no ar_nowait initrd http://$server/proxy.php/isolinux/initram.igz boot |
Post-installation:
for i in $(lshw -class disk -class tape | grep 'logical name' | awk '{ print $NF }' | grep 'sd\|nvm'); do timeout 10 dd if=/dev/zero of=$i bs=20M count=1 & done sleep 15 for i in $(lshw -class disk -class tape | grep 'logical name' | awk '{ print $NF }' | grep 'sd\|nvm'); do wipefs -a -f $i done |
You can customize the commands as you like.