1834939 Members
2420 Online
110071 Solutions
New Discussion

Re: Format harddisk

 
Kenn Chen
Advisor

Format harddisk

I would like remove all my applications (oracle) and data files inside my UNIX H60
server before trade in to vendor. How could I totally delete/format the disks.
Cyber Zen
4 REPLIES 4
Dan Hetzel
Honored Contributor

Re: Format harddisk

Hi,

To erase a filesystem:
1. umount
2. newfs -F vxfs /dev//

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Dan Hetzel
Honored Contributor

Re: Format harddisk

Hi again,

If you want to make ABSOLUTELY SURE that no single bit could be retrieved from your disk, you could use 'mediainit' which will do a low level formatting of the disk device.

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Darrel Louis
Honored Contributor

Re: Format harddisk

Steps you can perform:
- lvremove /dev/vg??/lvol?
- vgremove /dev/vg??
- pvcreate -f /dev/rdsk/c?t?d?
- remove /etc/lvmconf/vg??.conf
- vgscan -v

Have fun
MARTINACHE
Respected Contributor

Re: Format harddisk

After all this operations, yan can add a

dd if=/a_big_file of=/dev/rdsk/cXtYdZ bs=64k

to add unusefull data on it.

An other solution (if you have enough time) is to mirror a disk from vg00 to disks you want to destroy ...
Patrice MARTINACHE