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
VGREDUCE(8)						      System Manager's Manual						       VGREDUCE(8)

NAME
       vgreduce - reduce a volume group

SYNOPSIS
       vgreduce  [-a|--all] [-A|--autobackup y|n] [-d|--debug] [-h|-?|--help] [--removemissing] [-t|--test] [-v|--verbose] VolumeGroupName [Physi-
       calVolumePath...]

DESCRIPTION
       vgreduce allows you to remove one or more unused physical volumes from a volume group.

OPTIONS
       See lvm for common options.

       -a, --all
	      Removes all empty physical volumes if none are given on command line.

       --removemissing
	      Removes all missing physical volumes from the volume group, if there are no logical volumes allocated on those. This resumes  normal
	      operation of the volume group (new logical volumes may again be created, changed and so on).

	      If this is not possible (there are logical volumes referencing the missing physical volumes) and you cannot or do not want to remove
	      them manually, you can run this option with --force to have vgreduce remove any partial LVs.

	      Any logical volumes and dependent snapshots that were partly on the missing disks get removed completely. This includes those  parts
	      that lie on disks that are still present.

	      If your logical volumes spanned several disks including the ones that are lost, you might want to try to salvage data first by acti-
	      vating your logical volumes with --partial as described in lvm (8).

SEE ALSO
       lvm(8), vgextend(8)

Sistina Software UK					 LVM TOOLS 2.02.95(2) (2012-03-06)					       VGREDUCE(8)
All times are GMT -4. The time now is 03:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy