Erasing array configurations – HP Linux Server Management Software User Manual
Page 24
Advanced topics 24
REM ----
System\ifhw hpdiscovery.xml System\allboards.xml PCI:"Smart Array 5i Controller"
if errorlevel 1 goto NEXT3
REM ----
REM This section performs the Option ROM Flash. Online Flash components
REM are kept in a directory called Roms
REM ----
Roms\cp002238.exe /INSTPATH:S:\ROMScratcharea
REM ----
REM Check the error code returned to determine Success or Failure
REM ----
if errorlevel 3 goto HWNOTFOUND
if errorlevel 2 goto REBOOTREQUIRED
if errorlevel 1 goto NEXT3
goto end
NEXT3:
REM ----
REM DONE
REM ----
REBOOTREQUIRED:
System\reboot PXE
HWNOTFOUND:
End:
For more information about Online ROM Flash Smart Components, see the HP Online ROM Flash User
Guide in the HP Software and Driver Downloads website
Erasing array configurations
Before beginning the deployment process, you might want to erase the current array configuration. The
commands in the following examples can be run as part of a script or alone.
To erase the array configuration:
1.
Use the Microsoft® DiskPart utility to clear the partition table:
a.
Create a script file called ErasePart.txt that contains the following commands:
REM This file instructs Diskpart.exe to select the first disk as
REM target, then clean the target.
rescan
select disk=0
clean
b.
Run the Microsoft® DiskPart utility to clear the partition table:
diskpart /s .\ErasePart.txt
2.
Use ACU to erase the array configurations:
hpacuscripting -i erase.ini
The erase.ini file is provided in the Toolkit sample files.