- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Disk Scrubbing
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2008 03:03 PM
тАО11-06-2008 03:03 PM
Disk Scrubbing
I've got a fairly involved question here that involves disk scrubbing. We are going to be performing a DR test in the next few weeks, and one of the things we are required to do at the conclusion of the test is to scrub all data from the disks.
I know what you're thinking, just dd if=/dev/zero of=
Now, we have an approved third-party solution that performs the following passes on a disk file:
Writes all zeroes
Writes a random sequence of data
Writes an infinite string of 0xff
Writes a random sequence of data
Writes an infinite string of 0x55
Writes a random sequence of data
(Our security is pretty paranoid about being able to recover this data).
Our disks are presented to us in 70GB LUNs from a disk array (nominally EMC Symmetrix, but that doesn't really matter to us).
Now, in the past (when our disk requirements were less than half of what they are now), we have basically put all our disks into a couple of volume groups, created striped filesystems on those volume groups, created a bunch of 2-gigabyte files on those filesystems, and then running our scrubbing program on each of those files, running a number of those scrubbing programs in parallel in order to (attempt to) maximize throughput. We use 2GB files, because we're not sure if the application supports >2GB files or not.
Now, I've given this a fair bit of thought, trying to think how we can speed this up, since time is a serious factor here. Here are a number of possibilities I've considered:
1) Run the third-party program, but write directly to the block devices for the LUNs.
2) Same as #2, but write to the raw devices.
3) Write my own PERL or C program where I perform the above steps, but write in parallel to the block or character devices, as fast as I can send the data to them.
Now, I'm leaning towards #3, but I've never worked with writing directly to block/character devices before - are they pretty much just like write()'ing to a standard disk file? And how do you detect that you've hit the end of the disk? (Do you get an EOF type error or something?) My C is kinda rusty, but it's a pretty straightforward bit of code to write.
Any input to my thought process would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2008 03:14 PM
тАО11-06-2008 03:14 PM
Re: Disk Scrubbing
It's interesting that your security people are as paranoid as you say in a disaster recovery center. Having done quite a few of these, I've come to conclude that the paranoia is out-of-hand in this case.
That aside, if you want to use part of your costly test time erasing media, I'd simply use 'dd' with '/dev/zero' and '/dev/urandom' as input and make your own n-passes.
Use the raw disk device files so that you bypass the Unix buffer cache and use a large blocksize:
# dd if=/dev/zero of=/dev/rdsk/cXtYdZ bs=1024k
# dd if=/dev/urandom of=/dev/rdsk/cXtYdZ bs=1024k
When the end of the device is reached, 'dd' will simply stop. Use as many iterations as you see fit. All of the above scripts very simply in a shell script.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2008 05:23 PM
тАО11-06-2008 05:23 PM
Re: Disk Scrubbing
Your corporate security has been watching too many episodes of NCIS or 24. Modern disk arrays are so complex that scrambling LUNs and striping is often done by accident. As far as overwritng 5 or 10 times, the equipment to dig into the remnants of overwritten costs millions of dollars and doesn't fit in a laptop. And as for stealing the Symm, a fully loaded 8830 is several thousand pounds.
The dd+urandom solution is the best, but be sure you keep all the paths busy so the task will complete in less than a month. Always use bs=1024k. Otherwise, a 5 TB array may require 6 months to erase.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2008 10:32 PM
тАО11-06-2008 10:32 PM
Re: Disk Scrubbing
I thought if they watched those and about NSA, they would know you have to physically destroy the disks. :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2008 01:38 AM
тАО11-10-2008 01:38 AM
Re: Disk Scrubbing
In all other cases simply overwriting them (with any pattern) should to the job.
If you care about performance use dd from /dev/zero.
/dev/urandom is quite slow when it has to generate that much random data.
My 2 cents,
Armin
PS: Please assign points if you find answers useful!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-10-2008 11:23 AM
тАО11-10-2008 11:23 AM
Re: Disk Scrubbing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-11-2008 08:11 AM
тАО11-11-2008 08:11 AM
Re: Disk Scrubbing
We're going to scramble the disks but before that we're planning to run a utility we found (rather than write our own) on SourceForge called Diskscrub which supposedly can scrub 5TB in a week.
It has been ported to HPUX and according to its docs can scrub to NNSA Policy Letter NAP-14.x and DoD 5220.22-M minimum levels.
Has anyone used this tool?
-mark