Saturday, June 29, 2013

How to wipe a disk quickly in solaris

.
#!/bin/bash

#Note: Pls do not try This in prod servers.
#used to wipe a disk
echo Run the folowing
for DISK in `ls /dev/dsk/c[01234]*s2 | sed -e 's/\/dev\/dsk\///'`;
do
        echo format -f /fsys1/wipe/wipe_input_file -l ./log$DISK $DISK \> /dev/null \&;
done

No comments:

Post a Comment