To selectively sanitize data contained in traditional volumes, you migrate any data you want to preserve to a new volume, and then sanitize the disks that contained the old volume.
- Stop any applications that write to the volume you plan to sanitize.
- 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 /nixdir/nixfile.doc.
- Remove NFS and CIFS access to the volume you plan to sanitize.
- Create a traditional volume to which you will migrate the data you did not delete by entering the following command:aggr create dest_vol -v disks
Note: This traditional volume must have a storage capacity equal to or greater than the volume from which you are migrating. It must have a different name; later, you will rename it to have the same name as the volume you are sanitizing.
aggr create nixdestvol -v 8@72G
This new volume provides a migration destination that is free of the data that you want to sanitize.
- From the Data ONTAP command line, enter the following command to delete all volume Snapshot copies of the traditional volume that contained the files and directories you just deleted:snap delete -V -a vol_name
vol_name is the traditional volume that contained the files or directories that you just deleted.
snap delete -V -a nixdestvol
- Confirm that you have deleted all files or directories that you want to sanitize from the source volume.
- Copy the data you want to preserve to the destination volume from the volume you want to sanitize by entering the following command:ndmpcopy /vol/src_vol /vol/dest_vol
is the volume you want to sanitize.
dest_vol is the destination volume.
For information about the ndmpcopy command, see the Data ONTAP Data Protection Tape Backup and Recovery Guide for 7-Mode.
ndmpcopy /vol/nixsrcvol /vol/nixdestvol
- List the disks used in the source volume by entering the following command:aggr status src_vol -r
aggr status nixsrcvol -r
The disks that you will sanitize are listed in the Device column of the aggr status -r output.
- Record the IDs of the disks used in the source volume.
After that volume is destroyed, you will sanitize these disks.
- Take the volume you are sanitizing offline and destroy it by entering the following commands:aggr offline src_volaggr destroy src_vol
aggr offline nixsrcvolaggr destroy nixsrcvol
- Rename the new volume, giving it the name of the volume that you just destroyed, by entering the following command:aggr rename dest_vol old_src_vol_name
aggr rename nixdestvol nixsrcvol
- To confirm that the new volume is named correctly, list your volumes by entering the following command:aggr status old_src_vol_name
- Reestablish your CIFS or NFS services.
- If the original volume supported CIFS services, restart the CIFS services on the volumes in the destination aggregate after migration is complete.
- If the original volume supported NFS services, enter the following command:exportfs -a
Users who were accessing files in the original volume will continue to access those files in the renamed destination volume.
- Follow the procedure for sanitizing disks to sanitize the disks that belonged to the source volume.
After sanitizing, the data that you removed from the source volume no longer exists anywhere on your storage system and cannot be restored.