There is also (advanced or diag..can't remember for 7-Mode) "halt -c factory" but it won't destroy aggrs but will bring ONTAP back to a setup prompt with defaults set
-----Original Message----- From: toasters-bounces@teaparty.net [mailto:toasters-bounces@teaparty.net] On Behalf Of John Stoffel Sent: Friday, July 3, 2015 8:07 AM To: Camillo Gornati Cc: Toasters@teaparty.net Subject: Re: Quickest way to format
Camillo> Via console, what is the quickest, easiest and safest way to Camillo> destroy an aggregate and CIFS.
Camillo> Basically the best way to bring a FAS2040 to its factory condition.
You're asking two seperate though related questions here. Returning a system to factory is simple, just reboot the filer, break into the maintenance mode and select the option to zero disks and re-install the OS.
If you just want to delete a volume, and it's containing aggregate, it's a bit more involved, and if you have other volumes in the aggregate, you won't be able to delete it other.
vol offline <vol> vol destroy <vol> aggr offline <aggr> aggr destroy <aggr>
You might have to do vol restrict and aggr restrict as well, can't remember and I'm not going to test right now.
John _______________________________________________ Toasters mailing list Toasters@teaparty.net http://www.teaparty.net/mailman/listinfo/toasters