HP ProLiant SL2500 HP Scripting Toolkit 9.60 for Windows User Guide - Page 15

Erasing array configurations, Before beginning the deployment process

Page 15 highlights

NEXT3: REM ---REM DONE REM ---REBOOTREQUIRED: System\reboot PXE HWNOTFOUND: End: 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 HP SSA to erase the array configurations: hpssascripting -i erase.ini The erase.ini file is provided in the Scripting Toolkit sample files. Erasing array configurations 15

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62

NEXT3:
REM ----
REM DONE
REM ----
REBOOTREQUIRED:
System\reboot PXE
HWNOTFOUND:
End:
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 HP SSA to erase the array configurations:
hpssascripting -i erase.ini
The
erase.ini
file is provided in the Scripting Toolkit sample files.
Erasing array configurations
15