AIXThis forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Saravkrish is right.
So, if you want just to re-use your disk, simply create a volume group on it.
add a volume group
select the disk, give a name for the volumegroup, let's say "mytest".
Then, you simply drop the volume group by means of typing
In order to really erase everyghing, I would suggest not to use an external program, but simply use the AIX tools and make a hardware format. To do that, you use the tool named "diag". First type
then choose the menu "disk format and certify"
and choose "format".
This will not stop your system, your AIX will continue beeng accessed by your other users, but the disk will be strongly busy for a long time, I expect more than one hour.
thanks zorba...question not fully answered though...
should i run diag while sitting on the node? I tried, but it says it can't format a disk if
it is active (which it is...) please help...just need to erase the disks...machine
is going to be sold and I want it cleaned off...
ps - here is the error:
Device: hdisk1 in location 10-68-00-1,0
The disk erasure procedure cannot be performed.
The disk drive selected is in use.
To perform an erasure operation on this disk drive, you must
first free up the device and assure no other processes are
attempting to access the drive.
To continue, press Enter.
how do i free up the device?? ie. hdisk1 and hdisk0
Last edited by zepplin611; 04-13-2005 at 05:54 PM.
first type "lspv" in order to see which volume group is on hdisk1.
Let's suppose it's name is "datavg".
Then you type the following :
umount -a # temporary umounts all filesystems
Then lspv should show that hdisk1 is not used any more.
Then you can use "diag" and fully erase the disk.
Do it prefably from a "direct-attached" terminal, before you must be able to see the and of the preocess, and if you do it from a remote telnet terminal a network failure can prevent you from seeing if the process was correctly finished, and you will have to redo it.
You wiped your second disk.
Right now you cannot format your first disk because it has the operating system, which cannot suicide itself.
If you really want to wipe off also the first disk, i suggest do the following
1) type lsdev -Ccdisk, and remember the full description of hdisk0 and hdisk1.
2) boot on the first AIX CD-ROM, and install the system on the disk which has the SCSI description of hdisk0 (hdisk0 and hdisk1 can be inverted at that time).
3) This system on the newly wiped-off disk is able to wipe off the previous unaccessible disk.
4) now, you have a fully wiped-off system with only the legitimate minimal AIX system from the first boot disk. the guy who will buy it will have to install everything from scratch.