- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Easiest way to "scrub" (erase/delete) all disk dri...
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
Forums
Discussions
Discussions
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
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
07-12-2004 05:28 AM
07-12-2004 05:28 AM
HP-UX B.11.00 A 9000/820
HP-UX B.11.00 A 9000/887
Before shoving these boat anchors out the window into the dumpster, we'd like to sanitize the disks, at least minimally. The data is not top secret or anything, we just want to take reasonable measures. What's the easiest way to do this? Use a large magnet?
Since most of the drives are now worthless ancient 4GB units, I thought about removing them and letting the team taking satisfying whacks at them with a sledge hammer. But, there are quite a few unis, and someone would probably injure themself before the task was completed. :-)
There are a mix of mirrored and unmirrored drives configured with LVM. I've only did basic user/printer management on these machines (years ago) and the documentation is long gone. If there is a simple reformat command (or SAM menu) that will make the data unrecoverable), just say so.
Thanks in advance.
Jared
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 05:33 AM
07-12-2004 05:33 AM
Re: Easiest way to "scrub" (erase/delete) all disk drives?
From Unix - this works pretty well:
remove lvols
remove vg's
pvcreate -f the disks
Then create new vg
then create a lvol
Another way - but takes a long time, is to use ODE:
How to use ODE to wipe out a disk
Reboot the machine
Insert the support plus media cd
Stop the "boot primary path"
Then find the cdrom drive:
>search
>boot
At the ISL prompt:
ISL>ode
At the ODE prompt:
ODE>diskexpt
You will be prompted for a password, type in:
tpeusoot
Commands to use in DISKEXPT:
To see disks: dispmap
Select disk: testdisk #
Then enter:
wrtmt
For range, enter 0/ and the max number displayed
Select 3 for userdefined, then enter 0 to write all zero's
Wait.....a long time............
Do this for all disks.....
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 05:52 AM
07-12-2004 05:52 AM
Re: Easiest way to "scrub" (erase/delete) all disk drives?
You could also fill the disks with AAAs or BBBB etc... or you could use the mediainit command...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 05:53 AM
07-12-2004 05:53 AM
Re: Easiest way to "scrub" (erase/delete) all disk drives?
Unfortuantely, I think someone trashed all the removeable media (install tapes, CDs, etc.) months ago.
What can I get away with without rebooting? Ideally, I'd like to: 1) overwrite the logical "/data" file system(s) with zeros -- note: I don't know much about LVM. 2) Do a simple basic format/erase of everything else (OS and Apps), 3) power-down. Done.
Jared
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 06:04 AM
07-12-2004 06:04 AM
Re: Easiest way to "scrub" (erase/delete) all disk drives?
Yes, fill disk blocks with X is the desireable outcome - but using what, dd?
mediainit looks promising too... man page says "Initialization destroys all existing user data in the area being initialized." ooh ooh. For once in my life, I actually want the most destructive option!! muhahaha!
I'm pretty new to this low-level stuff. Just looking for the easiest way to destroy everything (even LVM/RAID) in one quick pass, without rebooting, if possible.
(Note: I'll come back and assign points once I've completed my path of destruction)
Jared
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 06:10 AM
07-12-2004 06:10 AM
Re: Easiest way to "scrub" (erase/delete) all disk drives?
vgdisplay -v
If just a vg for root (vg00) and /data, then do this.
Wipe out /data:
Get the lvols:
vgdisplay -v DATAVG |grep "LV Name"
Remove them:
lvremove /dev/DATAVG/lvolXX
Remove DATAVG:
vgdisplay -v DATAVG |grep "PV Name"
save those...need them later
vgchange -a n /dev/DATAVG
vgexport /dev/DATAVG
pvcreate -f /dev/rdsk/DEVSFROMABOVE
(for each dev that was in the old one)
mkdir /dev/vgjunk
mknod /dev/vgjunk/group c 64 0x0f0000
vgcreate -s 8 -p 128 /dev/vgjunk /dev/rdsk/DEVSFROMABOVE1 /dev/rdsk/DEVSFROMABOVE2
(for as many disks as there were)
vgchange -a y /dev/vgjunk
Make a lvol
lvcreate -L 2048 /dev/vgjunk
newfs /dev/vgjunk/rlvol1
(for the size after the -L, make it as big as the vgjunk)
When that is done, all your data is gone...
next thing - to make the system unusable - just do a:
cd /
rm -rf *
wait a while - then just power off the system - they will never boot again.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 06:12 AM
07-12-2004 06:12 AM
Re: Easiest way to "scrub" (erase/delete) all disk drives?
mediainit, in fact, will give you some unusuable disks.....
Othe way if to create a /dev/zero and issue some nice
nohup dd if=/dev/zero of=/your/rdsk/... &
(mknod /dev/zero c 3 0x000004)
for each disk.
or use a simple strong magnets :)
I have some nice ones, taken from old games ;)
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 06:13 AM
07-12-2004 06:13 AM
Re: Easiest way to "scrub" (erase/delete) all disk drives?
in this thread, many kind things..
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=13542
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 07:48 AM
07-12-2004 07:48 AM
Re: Easiest way to "scrub" (erase/delete) all disk drives?
# mknod /dev/zero c 3 0x000004
Do I need to undo/remove the logical volume stuff first, or can I just go ahead and dd zeros over each physical volume (see PV Name's below) as-is?
# vgdisplay -v | grep -i name
VG Name /dev/vg00
LV Name /dev/vg00/lvol1
LV Name /dev/vg00/lvol2
LV Name /dev/vg00/lvol3
LV Name /dev/vg00/lvol4
LV Name /dev/vg00/lvol6
LV Name /dev/vg00/lvol7
LV Name /dev/vg00/lvol8
PV Name /dev/dsk/c0t8d0
VG Name /dev/vg01
LV Name /dev/vg01/lvol1
PV Name /dev/dsk/c0t10d0
PV Name /dev/dsk/c5t6d0
VG Name /dev/vg04
LV Name /dev/vg04/lvol1
PV Name /dev/dsk/c0t11d0
PV Name /dev/dsk/c5t5d0
VG Name /dev/vg03
LV Name /dev/vg03/lvol1
PV Name /dev/dsk/c1t3d0
PV Name /dev/dsk/c2t5d0
VG Name /dev/vg05
LV Name /dev/vg05/lvol1
LV Name /dev/vg05/lvol2
PV Name /dev/dsk/c1t4d0
PV Name /dev/dsk/c5t4d0
VG Name /dev/vg06
LV Name /dev/vg06/lvol1
PV Name /dev/dsk/c1t6d0
VG Name /dev/vg02
LV Name /dev/vg02/lvol1
PV Name /dev/dsk/c2t4d0
VG Name /dev/vg07
LV Name /dev/vg07/lvol1
LV Name /dev/vg07/lvol2
PV Name /dev/dsk/c2t6d0
VG Name /dev/vg08
LV Name /dev/vg08/lvol1
LV Name /dev/vg08/lvol2
PV Name /dev/dsk/c5t2d0
PV Name /dev/dsk/c2t2d0
VG Name /dev/vg09
LV Name /dev/vg09/lvol1
LV Name /dev/vg09/lvol2
PV Name /dev/dsk/c2t3d0
PV Name /dev/dsk/c0t2d0
VG Name /dev/vg10
LV Name /dev/vg10/lvol1
LV Name /dev/vg10/lvol2
PV Name /dev/dsk/c0t3d0
PV Name /dev/dsk/c1t2d0
VG Name /dev/vg11
LV Name /dev/vg11/lvol1
LV Name /dev/vg11/lvol2
PV Name /dev/dsk/c1t5d0
PV Name /dev/dsk/c5t3d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 07:52 AM
07-12-2004 07:52 AM
SolutionRgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 08:08 AM
07-12-2004 08:08 AM
Re: Easiest way to "scrub" (erase/delete) all disk drives?
Install /dev/random from the following URL.
http://freshmeat.net/projects/hpux11-random/
And then do
dd if=/dev/urandom of=/dev/rdsk/cxtydz bs=1024k
Repeat it couple of times.
Advantage of using random generator against zeros, or pattern is that it would be difficult to identify what was random data and what was actual data. With zeroes and patterns, one can easily make out what's pattern and what's data.
Write a small script that does the dd's for you overnight.
Once you are done, then go for physical abuse.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2004 01:08 PM
07-12-2004 01:08 PM
Re: Easiest way to "scrub" (erase/delete) all disk drives?
I had recently decomissioned our K360 Server.
for which I sanitized all the disks using dd /dev/zero which produces an (virtual) endless stream of zero's.
If you do not have /dev/zero, then you can build one as for HP-UX 11
cd /dev
mknod zero c 3 0x000004
chown bin:sys zero
chmod 666 zero
Note: On 10.20, I think the correct minor device no. is 0x000003 but everything else is the same.
Now use dd as
dd if=/dev/zero if=/dev/dsk/cXtYdZ bs=1024K
Do this for all the external disks and then for the internal disks if you wanted the wipe off the OS any any other software installed on the internal disks.
Indira A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2004 08:05 AM
07-13-2004 08:05 AM
Re: Easiest way to "scrub" (erase/delete) all disk drives?
that will do it....