Disk sanitization is the process of physically obliterating data by overwriting disks with specified byte patterns or random data in a manner that prevents recovery of the original data by any known recovery methods. You sanitize disks if you want to ensure that data currently on those disks is physically unrecoverable. For example, you might have some disks that you intend to remove from one storage system and you want to re-use those disks in another storage system or simply dispose of the disks. In either case, you want to ensure no one can retrieve any data from those disks.
The Data ONTAP disk sanitize command enables you to carry out disk sanitization by using three successive default or user-specified byte overwrite patterns for up to seven cycles per operation. You can start, stop, and display the status of the disk sanitization process, which runs in the background. Depending on the capacity of the disk and the number of patterns and cycles specified, this process can take several hours to complete. When the process has completed, the disk is in a sanitized state. You can return a sanitized disk to the spare disk pool with the disk sanitize release command.
The section covers the following topics:
The following list describes the limitations of disk sanitization operations. Disk sanitization
To determine if disk sanitization is supported on a specified disk, run the storage show disk command. If the vendor for the disk in question is listed as NETAPP, disk sanitization is supported.
Before you can use the disk sanitization feature, you must install the disk sanitization license.
Attention
Once installed on a storage system, the license for disk sanitization is permanent.
Attention
The disk sanitization license prohibits the following admin command from being used on the storage system:
Attention
The disk sanitization license prohibits the following diagnostic commands from being used on the storage system:
To install the disk sanitization license, complete the following step:
| 1 |
license add disk_sanitize_code disk_sanitize_code is the disk sanitization license code that NetApp provides. |
You can sanitize any disk that has spare status. This includes disks that exist in the storage system as spare disks after the aggregate that they belong to has been destroyed. It also includes disks that were removed from the spare disk pool by the disk remove command but have been returned to spare status after a system reboot.
To sanitize a disk or a set of disks in a storage system, complete the following steps.
| 1 |
Print a list of all disks assigned to RAID groups, failed, or existing as spares, by entering the following command. sysconfig -r Do this to verify that the disk or disks that you want to sanitize do not belong to any existing RAID group in any existing aggregate. |
| 2 |
Enter the following command to sanitize the specified disk or disks of all existing data. disk sanitize start [-p pattern1|-r [-p pattern2|-r] -p pattern1 -p pattern2 -p pattern3 specifies a cycle of one to three user-defined hex byte overwrite patterns that can be applied in succession to the disks being sanitized. The default hex pattern specification is -p 0x55 -p 0xAA -p 0x3c. -r replaces a patterned overwrite with a random overwrite for any or all of the cycles, for example: -p 0x55 -p 0xAA -r -c cycle_count specifies the number of cycles for applying the specified overwrite patterns. The default value is one cycle. The maximum value is seven cycles. Note disk_list specifies a space-separated list of spare disks to be sanitized. |
ExampleThe following command applies the default three disk sanitization overwrite patterns for one cycle (for a total of 3 overwrites) to the specified disks, 7.6, 7.7, and 7.8. disk sanitize start 7.6 7.7 7.8 If you set cycle_count to 6, this example would result in three disk sanitization overwrite patterns for six cycles (for a total of 18 overwrites) to the specified disks. | |
ResultThe specified disks are sanitized, put into the pool of broken disks, and marked as sanitized. A list of all the sanitized disks is stored in the storage system's /etc directory. Note If the sanitization operation is in the process of formatting the disk, the abort will wait until the format is complete. The larger the drive, the more time this process takes to complete. Attention | |
| 3 |
To check the status of the disk sanitization process, enter the following command: disk sanitize status [disk_list] |
| 4 |
To release sanitized disks from the pool of broken disks for reuse as spare disks, enter the following command: disk sanitize release disk_list Attention VerificationTo list all disks in the storage system and verify the release of the sanitized disks into the pool of spares, enter sysconfig -r. |
After you enter the disk sanitize start command, Data ONTAP begins the sanitization process on each of the specified disks. The process consists of a disk format operation, followed by the specified overwrite patterns repeated for the specified number of cycles.
Note
The formatting phase of the disk sanitization process is skipped on ATA disks.
The time to complete the sanitization process for each disk depends on the size of the disk, the number of patterns specified, and the number of cycles specified.
For example, the following command invokes one format overwrite pass and 18 pattern overwrite passes of disk 7.3.
disk sanitize start -p 0x55 -p 0xAA -p 0x37 -c 6 7.3
If the sanitization process is interrupted by power failure, system panic, or a user-invoked disk sanitize abort command, the disk sanitize command must be re-invoked and the process repeated from the beginning in order for the sanitization to take place.
If the formatting phase of disk sanitization is interrupted, Data ONTAP attempts to reformat any disks that were corrupted by an interruption of the formatting. After a system reboot and once every hour, Data ONTAP checks for any sanitization target disk that did not complete the formatting phase of its sanitization. If such a disk is found, Data ONTAP attempts to reformat that disk, and writes a message to the console informing you that a corrupted disk has been found and will be reformatted. After the disk is reformatted, it is returned to the hot spare pool. You can then rerun the disk sanitize command on that disk.
You can use the disk sanitize abort command to stop an ongoing sanitization process on one or more specified disks. If you use the disk sanitize abort command, the specified disk or disks are returned to spare state and the sanitized label is removed. To stop a disk sanitization process, complete the following step.
Selective data sanitization consists of physically obliterating data in specified blocks while preserving all other data located on the affected aggregate for continued user access.
Because data for any one file in a storage system is physically stored on any number of data disks in the aggregate containing that data, and because the physical location of data within an aggregate can change, sanitization of selected data, such as files or directories, requires that you sanitize every disk in the aggregate where the data is located (after first migrating the aggregate data that you do not want to sanitize to disks on another aggregate). To selectively sanitize data contained in an aggregate, you must carry out three general tasks.
Successful completion of this process requires the following conditions:
Because sanitization of any unit of data in an aggregate still requires you to carry out data migration and disk sanitization processes on that entire aggregate, you should use small aggregates to store data that requires sanitization. Use of small aggregates for storage of data requiring sanitization minimizes the time, disk space, and bandwidth that sanitization will requires.
Absolute sanitization of data means physical sanitization of all instances of aggregates containing sensitive data; it is therefore advisable to maintain your sensitive data in aggregates that are not regularly backed up to aggregates that also back up large amounts of nonsensitive data.
To carry out selective sanitization of data within an aggregate or a traditional volume, complete the following steps.
:| 1 |
From a Windows or UNIX client, delete the directories or files whose data you want to selectively sanitize from the active file system. Use the appropriate Windows or UNIX command, such as rm -rf /nixdir/nixfile.doc |
| 2 |
From the NetApp storage system, enter the following commands to delete all snapshots of the aggregates and volumes (both traditional and FlexVol volumes) that contain the files or directories that you just deleted.
|
| 3 |
Enter the following command to determine the size of the aggregate from which you deleted data: aggr status aggr_name -b For backward compatibility, you can also use the following command for traditional volumes. vol status vol_name -b Exampleaggr status nixsrcaggr -b Calculate the aggregate size in bytes by multiplying the bytes per block (block size) by the blocks per aggregate (aggregate size). |
| 4 |
Enter the following command to create an aggregate to which you will migrate undeleted data. This aggregate must be of equal or greater storage capacity than the aggregate from which you just deleted file, directory, or snapshot data: aggr create dest_aggr ndisks For backward compatibility with traditional volumes, you can also enter: vol create dest_vol disklist Exampleaggr create nixdestaggr 8@72G Note |
| 5 |
Enter the following command to copy the data you want to preserve to the destination aggregate from the source aggregate you want to sanitize: ndmpcopy src_aggr dest_aggr src_aggr is the source aggregate. dest_aggr is the destination aggregate. Attention Examplendmpcopy nixsrcvol nixdestvol |
| 6 |
Record the disks currently in the source aggregate. (After that aggregate is destroyed, you will sanitize these disks.) To list the disks in the source aggregate, enter the following command: aggr status src_aggr -r Exampleaggr status nixsrcaggr -r The disks that you are going to sanitize are listed in the Device column of the aggr status -r output. |
| 7 |
In maintenance mode, enter the following command to take the source aggregate offline: aggr offline src_aggr Exampleaggr offline nixsrcaggr |
| 8 |
Enter the following command to destroy the source aggregate: aggr destroy src_aggr Exampleaggr destroy nixsrcaggr |
| 9 |
Enter the following command to rename the destination aggregate, giving it the name of the source aggregate that you just destroyed: aggr rename dest_aggr src_aggr Exampleaggr rename nixdestaggr nixsrcaggr |
| 10 |
Reestablish your CIFS or NFS services:
ResultUsers who were accessing files in the original volume will continue to access those files in the renamed destination volume with no remapping of their connections required. |
| 11 |
Use the disk sanitize command to sanitize the disks that used to belong to the source aggregate. Follow the procedure described in Sanitizing spare disks. |
The disk sanitization process outputs two types of log files.
The /etc/sanitized_disks file contains the serial numbers of all drives that have been successfully sanitized. For every invocation of the disk sanitize start command, the serial numbers of the newly sanitized disks are appended to the file.
The /etc/sanitized_disks file shows output similar to the following:
admin1> rdfile /etc/sanitized_disks
Tue Jun 24 02:54:11 Disk 8a.44 [S/N 3FP0RFAZ00002218446B] sanitized.
Tue Jun 24 02:54:15 Disk 8a.43 [S/N 3FP20XX400007313LSA8] sanitized.
Tue Jun 24 02:54:20 Disk 8a.45 [S/N 3FP0RJMR0000221844GP] sanitized.
Tue Jun 24 03:22:41 Disk 8a.32 [S/N 43208987] sanitized.
A progress file is created for each drive sanitized and the results are consolidated to the /etc/sanitization.log file every 15 minutes during the sanitization operation. Entries in the log resemble the following:
Tue Jun 24 02:40:10 Disk sanitization initiated on drive 8a.43 [S/N 3FP20XX400007313LSA8]
Tue Jun 24 02:40:10 Disk sanitization initiated on drive 8a.44 [S/N 3FP0RFAZ00002218446B]
Tue Jun 24 02:40:10 Disk sanitization initiated on drive 8a.45 [S/N 3FP0RJMR0000221844GP]
Tue Jun 24 02:53:55 Disk 8a.44 [S/N 3FP0RFAZ00002218446B] format completed in 00:13:45.
Tue Jun 24 02:53:59 Disk 8a.43 [S/N 3FP20XX400007313LSA8] format completed in 00:13:49.
Tue Jun 24 02:54:04 Disk 8a.45 [S/N 3FP0RJMR0000221844GP] format completed in 00:13:54.
Tue Jun 24 02:54:11 Disk 8a.44 [S/N 3FP0RFAZ00002218446B] cycle 1 pattern write of 0x47 completed in 00:00:16.
Tue Jun 24 02:54:11 Disk sanitization on drive 8a.44 [S/N 3FP0RFAZ00002218446B] completed.
Tue Jun 24 02:54:15 Disk 8a.43 [S/N 3FP20XX400007313LSA8] cycle 1 pattern write of 0x47 completed in 00:00:16.
Tue Jun 24 02:54:15 Disk sanitization on drive 8a.43 [S/N 3FP20XX400007313LSA8] completed.
Tue Jun 24 02:54:20 Disk 8a.45 [S/N 3FP0RJMR0000221844GP] cycle 1 pattern write of 0x47 completed in 00:00:16.
Tue Jun 24 02:54:20 Disk sanitization on drive 8a.45 [S/N 3FP0RJMR0000221844GP] completed.
Tue Jun 24 02:58:42 Disk sanitization initiated on drive 8a.43 [S/N 3FP20XX400007313LSA8]
Tue Jun 24 03:00:09 Disk sanitization initiated on drive 8a.32 [S/N 43208987]
Tue Jun 24 03:11:25 Disk 8a.32 [S/N 43208987] cycle 1 pattern write of 0x47 completed in 00:11:16.
Tue Jun 24 03:12:32 Disk 8a.43 [S/N 3FP20XX400007313LSA8] sanitization aborted by user.
Tue Jun 24 03:22:41 Disk 8a.32 [S/N 43208987] cycle 2 pattern write of 0x47 completed in 00:11:16.
Tue Jun 24 03:22:41 Disk sanitization on drive 8a.32 [S/N 43208987] completed.
Copyright © 1994-2005, Network Appliance, Inc. All rights
reserved.
Part No. 210-01085_B0
File: 3disk17.htm
Last updated: 01-Dec-2005 16:51:24