I remounted the ext3 partition in ordered data mode and progressed to use the shred binary to clear the important things such as database files and backups though there is a good chance I've missed something.
What will The Planet do with our server / drives once we officially decommission them? Will they perform a low level format on the disk prior to giving it out to a new customer or are the disks destroyed?
We have sensitive customer records, intellectual property and other things that we'd rather not fall into the wrong hands.
===
Secure Deletion
For those wanting to do secure deletes on their boxes this is how.
First if you use ext3 you need to make sure its not using journaled more for writing data else the secure delete wont work correctly. This is done by default in later releases but you can check by running.
CODE
dmesg | grep -i ordered
You should see
EXT3-fs: mounted filesystem with ordered data mode.
If need by run mount and check you are using ext3, if you need to change to run in ordered mode you can edit /etc/fstab. The ,data=ordered is what was added.
CODE
/dev/hda1 / ext3 defaults,data=ordered 1 1
You'll need to remount the disk, I couldn't remount ours because it was being used so had to reboot the server.
Now you can use shred, though it only works on files and it follows symlinks so beware.
To recursively delete all files in the currently directory:
CODE
find . -type f -exec shred -u {};
To delete all files matching a pattern recursively in the current directory, in this example *.tar.gz:
CODE
find . -name *.tar.gz -type f -exec shred -u {};
Or just for a single file then
CODE
shred -u <filename>
shred is included with RHEL by default.
This will take some time since it performs 25 passes over the file before deleting it and is especially slower on small files.