Sponsored Content
Top Forums UNIX for Advanced & Expert Users Server wipe tool for AIX and Linux Post 302909350 by rbatte1 on Wednesday 16th of July 2014 09:12:57 AM
Old 07-16-2014
I'd destroy the non-rootvg volume groups first with something like this:-for
Code:
vg in `lsvg |grep -Ev "^rootvg$"`
do
   # List and unmount filesystems
   lsvg -l $vg | grep "/" | while read a b c d e f mnt
   do
      echo $mnt
   done | sort -r | while read mnt        # Reverse sort to ensure sub-directories unmounted first
   do
      umount $mnt
   done

   # List disks and drop VG (forcing LV removal at same time)
   hdlist=
   lsvg -p $vg | grep hdisk | while read hd rest
   do
      hdlist="$hdlist $hd"
   done
   reducevg -f $vg $hdlist
done

This might hit problems if you have sibdirectories from other volume groups mounted under the ones you are trying to work on, but you are then pretty free to work with dd or the diag tools as suggested by Zaxxon. If you need to destroy the rootvg volume group, you will really need the console, from where you could boot from media and then run diag to format that device too or perhaps force a complete overwrite install onto the same disks.

Failing that, you can remove and degauss the disks or get them shredded. There are disposal contractors who will do this for you and you can get certification statements about device destruction with some detailing the serial numbers if you feel you need to go that far.

You then have to consider your backup media that you would use for a DR and destroy that too, else the server could be re-created. Again a disposal company can do this for you.



May I ask why you need to destroy everything and not just reuse the hardware? If you drop the logical volumes, then AIX will only create them empty again if you recreate them, even if you use the same disk blocks, the old data is not really available to you.



Robin
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Script runs fine on UNIX Server...Not through MSK Tool kit on Windows Server

I have a .sh script which was running fine on all the UNIX Servers (AIX, SunSolaris). The script requires two mandatory parameters and many optional parameters. Now at a different client place who are on a Windows Server, when I try to execute the script through MKS Toolkit, there are couple of... (5 Replies)
Discussion started by: madhunk
5 Replies

2. Fedora

Installation Of Linux on an AIX server

Hi, Is it possible to install Linux on an AIX server? Is there any doc available with anyone for installation? Please help. (1 Reply)
Discussion started by: dwiravi
1 Replies

3. AIX

Transferring files from one AIX server to another AIX server in binary mode

Hi, I am a newbie to AIX. We have 2 AIX5.3 servers in our environment, I need to transfer some files in Binary mode from one server to another and some files in ASCII mode from one server to another server. Could you please help me as to how I need to do that? Thanks, Rakesh (4 Replies)
Discussion started by: rakeshc.apps
4 Replies

4. AIX

AIX Monitoring Tool - under preparing

Guy's AIX Monitoring Tool - under preparing ..... I'm working to make and prepare tool to monitor AIX system and my idea it's based on the following outputs I want command to give me shout outpous about the following ... CPU load Memory load Used load Number of... (5 Replies)
Discussion started by: Mr.AIX
5 Replies

5. Red Hat

Print server Migration from AIX to Linux

Hi, Can anyone help me on migration the print server from AIX to RHEL 4? Appreciate your help? (1 Reply)
Discussion started by: brby07
1 Replies

6. AIX

can not mount from aix client to linux nfs server

Hi, I am trying to mount a nfs folder from AIX client to Linux NFS Server, but I got the following error: # mount 128.127.11.121:/aix /to_be_del mount: 1831-010 server 128.127.11.121 not responding: RPC: 1832-018 Port mapper failure - RPC: 1832-008 Timed out mount: retrying... (1 Reply)
Discussion started by: victorcheung
1 Replies

7. HP-UX

Wipe tool for HP-UX

Hi, Please suggest wipe tool for hp-ux. (2 Replies)
Discussion started by: manoj.solaris
2 Replies

8. AIX

C profiling tool for AIX

Hello everybody, Please let me know if there are any free C profiling tool for AIX environment Thanks in advance (0 Replies)
Discussion started by: SteAlma
0 Replies

9. AIX

Is nagios monitoring tool supported on AIX 7.1 ?

Hi, is any one using nagios monitoring solution on AIX ? if yes, is it supported on AIX 7.1 TL 03 as well ? I tried to search online and unix.com , could not find it. Thank you (5 Replies)
Discussion started by: aaron8667
5 Replies

10. AIX

AIX LDAP client authenticate against Linux Openldap server over TLS/SSL

Hi folks, How can i configure an AIX LDAP client to authenticate against an Linux Openldap server over TLS/SSL? It works like a charm without TLS/SSL. i would like to have SSL encrypted communication for ldap (secldapclntd) and ldapsearch etc. while accepting every kind of certificate/CA.... (6 Replies)
Discussion started by: paco699
6 Replies
TPING(1)							   LAM COMMANDS 							  TPING(1)

NAME
tping - Send echo messages to LAM nodes. SYNTAX
tping [-hv] [-c <count>] [-d <delay>] [-l <length>] <nodes> OPTIONS
-h Print the command help menu. -v Turn OFF verbose mode. -c <count> Send <count> messages. -d <delay> Delay <delay> seconds between each message. -l <length> Each message is <length> bytes long. DESCRIPTION
The tping command sends messages to, and collects replies from, a list of nodes, via the LAM echo server. It is similar to the UNIX ping(8) command, and is used as a quick diagnosis of the LAM network. Unless options are specified, tping sends a 1 byte message an infinite number of times, displaying the roundtrip time of each message as it completes, with a delay of 1 second between roundtrips. After the loop is broken (with keyboard interrupt, eg: ^C), tping prints statis- tics about all roundtrip messages. EXAMPLES
tping h Echo messages to the local node. tping -v n7 -l 1000 -c 10 Echo 1000 byte messages to node 7. Stay silent while working. Stop after 10 roundtrips and report statistics. BUGS
There is no built-in timeout and tping will wait forever to receive an echo. If no echo is received, due to a dead link or node, tping hangs. Stop the process with a keyboard suspend signal (eg: ^Z) and terminate LAM with lamhalt(1) or wipe(1) (although the use of wipe(1) is deprecated). SEE ALSO
lamhalt(1), wipe(1) LAM 6.5.8 November, 2002 TPING(1)
All times are GMT -4. The time now is 06:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy