Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting hdisks on p690 with diag cmd

Status
Not open for further replies.

tech005

MIS
Dec 11, 2003
36
0
0
US
I have a p690 with 40+ disks. I am trying to clean the data on the disks. Can the diag command be used for multiple disks. I was using 'diag -c -d <devicename> -T "format -s erase -a write" command, but i was abke to do only one disk at a time. I am looking forward to run this command in the background specifying all of the 40+ disks. Is it possible?? If not is there any way to get this done or it can be done only one disk at a time. Please help
 
you will have to do it in a little script

like : for disk in `lspv|cut -f1 -d""(or whatever gives you a list of the hdisks that you need to format)`
do
echo "formatting disk $disk"
'diag -c -d $disk -T "format -s erase -a write"`
done

It should be sth like the above,and you can use nohup if you want it in background.

rgds,

R.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top