Completely format server for selling on ebay

10,256

Solution 1

Either sell the server without disks or initialize the RAID array from the BIOS-based HP/Compaq RAID utility...

By that, I mean, delete the existing array, reorder the disks, and reinitialize the array as something like RAID 0 or RAID 5. That should be good enough for what you're doing.

The server has a RAID controller, and some of the recommended tools like DBaN will not recognize the Smart Array RAID configuration easily or without modification (see here and here).

Solution 2

The disks should be unbound from the RAID and individually wiped. Anything else requires confidence in the RAID controller's pattern of writing, and they're often "too smart".

Solution 3

You will definitely want to do something to actively erase the drives before selling them. Simply deleting the logical volumes isn't sufficient. There are troubleshooting scenarios in the HP documentation which indicate that you can sometimes recover from an accidentally-deleted logical volume by re-creating it using the exact same configuration parameters. If nothing had modified the data on the platter yet, then the data from the old volume could be readable. It's unlikely that the purchaser of your system would set up a volume that happened to have the exact same configuration as yours, but it's still a real possibility that isn't worth risking (IMO).

If you bought the Smart Array Advanced Pack for your system (and if it's a G5 or newer), you will have access to a feature called "HP Drive Erase" that's designed for this very scenario. The controller will erase your drives by overwriting the data with random data patterns and with zeroes (you can select how many passes to make) and will optionally delete your volumes once it completes. This is probably the easiest way to go, although it's not necessarily the fastest.

If your particular drive model supports it, you can use the "Secure Erase" ATA command to instruct your disks to erase themselves (similar method via DOS instead of Linux). This is my favorite method because it is extremely thorough and relatively fast (it can be near-instantaneous on some SSDs). The downside is that there are still some older drives out there that don't support this command. If you go this route, delete your logical volumes before starting the erase operation.

Share:
10,256
andreas
Author by

andreas

Updated on September 18, 2022

Comments

  • andreas
    andreas over 1 year

    I have a ProLiant server that has Windows Server 2003 on it, on a hardware RAID 5 setup. The machine is taking up a lot of space. I want to completely wipe the drives of all data, operating system, etc., and sell the machine.

    How would you recommend wiping the server?

  • ewwhite
    ewwhite over 11 years
    Won't work for the Smart Array RAID controller in the system... at least, without fixing the init scripts.
  • Dan
    Dan over 11 years
    This is probably "good enough" here, but I'd never be happy with this if I were selling an ex-production server. Anything less than a pass of zeroes (Or ones, or random, whatever!) could still be classed as a potential risk.
  • andreas
    andreas over 11 years
    @ewwhite while i need the compaq proliant bios drivers if i delete the raid and reshuffle the drives?
  • ewwhite
    ewwhite over 11 years
    No, you won't need any drivers.
  • Preetish Kumar Das
    Preetish Kumar Das over 11 years
    You can use the NWipe utility to access the core DBaN functionality from any Linux distribution. Running NWipe from a Live CD is often easier than trying to get DBaN to work.
  • Bigbio2002
    Bigbio2002 about 11 years
    What is the reason that the disks need to be reordered? Doesn't an initialization overwrite the whole drive during the process?
  • ewwhite
    ewwhite about 11 years
    @Bigbio2002 It deletes the RAID array metadata, but the shuffling prevents the controller from trying to recognize the drives as a partial array (maybe?).
  • Bigbio2002
    Bigbio2002 about 11 years
    I see, so it's more of a "just in case" procedure?
  • ewwhite
    ewwhite about 11 years
    Pretty much....