Popular Posts

Sunday, September 21, 2014

NetApp - Disk Sanitization

To Sanitize all disks except vol0 disks (root volume)

Sanitization is enabled by default for all DOT 8.2+ code, if not enabled, run below command to enable.
options licensed_feature.disk_sanitization.enable on 

If DOT 7.xx to 8.1

·            license add XXXXXX  (You can get license from NetApp)

§  Remove controllers from DFM server to avoid any critical/error/warning alerts from DFM.
§  Offline/destroy all volumes and aggregates leaving vol0 and aggr0.
·                        vol offline volumename
·                        vol destroy volumename
·                        aggr offline aggregatename
·                        aggr destroy aggregatename
·                        CF disable (Disable partner node)
·                        Reboot the filer (Obtain approval prior to rebooting the filer)
·                        Send Final ASUP is issued -- options autosupport.doit decommissioning”

§  Once ASUP is Complete, turn off alerts. 

§  Determine all spare drives using the following command(s):
·         vol status -r
·         vol status -s
§  Begin the sanitization process using the following command(s):
·         disk sanitize start  <all numbered drives>  or disk sanitize start -c 7 <all numbered drives>
·         Monitor status using the following command(s):
§  disk sanitize status
§  vol status –m
§  Unsanitized disks will go thru a SECOND PASS process, rerun the “disk sanitize start” command against drives that fail the sanitization
§  Save sanitization logs
§  rdfile /etc/log/sanitized_disks or rdfile /etc/sanitized_disks and save logs 


To Sanitize vol0 disks (root volume)

Ø  Release 3 sanitize disks (disk sanitize release <disk_list>
Ø  Once you release the sanitized disk, it will be in unowned state (disk show –n)
Ø  Assign the disks back to same node (disk assign <disk_list>
Ø  Once you assign disk, it will be in broken disks (vol status –f)
Ø  Unfail the broken/bad disk (disk unfail –s <disk>
Ø  Now you will see all disks under spare (vl status –s)
Ø  create new aggregate with released disks (aggr create newaggr0 –d <disk_list>), it will take time to create aggregate as disks has to be zeroed, check status with (aggr status new aggr0 –v)
Ø  check current vol0 size (vol size vol0)
Ø  create new volume in newly created aggregate (vol create newvol0 newaggr0 <size>)
Ø  restrict newvol0 before starting copy (vol restrict newvol0)
Ø  Copy vol0 to newvol0 (vol copy start –s vol0 newvol0)
Ø  Once copy is 100%, make newvol0 online (vol online newvol0)
Ø  Make newvol0 as root (vol options newvol0 root)
Ø  Rename vol0/newvol0 & aggr0/newaggr0
Ø  To rename – vol rename vol0 oldvol0, vol rename newvol0 vol0, aggr rename aggr0 oldaggr0, aggr rename newaggr0 aggr0
Ø  Reboot node (reboot)
Ø  Once reboot completes, it will take newly created volume (vol0) as root volume
Ø  Check the status (vol status, aggr status)
Ø  Delete oldvol0 and oldaggr0 (vol offline oldvol0, vol destroy oldvol0, aggr offline oldaggr0, aggr destroy oldaggr0)
Ø  Once we delete old volume/aggregate it will release all disks which are in oldaggr0
Ø  Check the spares (vol status –s)
Ø  Start sanitize (disk sanitize start  <disk_list>)
Ø  Check status (disk sanitize status)
Ø  Once sanitization is 100%, collect logs.

No comments:

Post a Comment