Hi ...
How to erase bootable hard disk in Pseries...
Export VG, create a new VG and write it full with something, for example with dd. Also there might be some professional tools out there - not sure if they do more or better than this.
boot from NIM and then use the smitty menus and run the SCSI erase procedure.
Hello sumarthi,
You have 2 options here:
Option 1:Wipe disk using Diag boot
**************************
- Assuming it is rootvg disk, you have to start(boot) the server using AIX Diagnostic CD.
- Task Selection -> Format Media (if the disks are from datavg, make sure you format rootvg disk last in sequence)
-> select disk(select disk using enter, proceed using F7 rootvg disk do in sms mode)
-> Erase Disk -> Enter, Yes-> Write patterns to drive
-> choose number of different pattern to write (3 patterns is sufficient, according to dept of defense standard, others option optional) -> F7(commit)
Option 2:Zero Filled the hdisk manually using cmd line
*****************************************
-
Depending on your requirements there are a couple of ways to do this.
If your requirment is to keep the average hacker from getting to the
data then the following dd command works great:# dd if=/dev/zero of=/dev/rhdisk0 bs=1m
(dd the disks with the rootvg last) -
eg:
hdisk0 00c7ae3a90d38044 rootvg active
hdisk1 00c7ae3a95f249c6 datavg active
hdisk3 00c7ae3ae5ec7b97 datavg2 active
hdisk4 0002c6bf97d139ad testvg activeSet a loop script with the rootvg hard disk last to be wiped:
"for x in 4 3 1 0
do
dd if=/dev/zero of=/dev/rhdisk$x bs=1m
done"Then I do other stuff and check it after a few hours.
Test to see if the machine will boot, definitely it won't. Success!
p/s : Thanks Neo for the nomination. Appreciate!
GOOD LUCK!
Shiniraz
Malaysia