I am a bit confused: is this a disk in your AIX system as you said in #1 or a disk in a separate RAID as you said in #2? Usually, if you have an external raid, by formatting it forms one virtual disk (the whole RAID set) which you then in turn can see in AIX as a single hdisk device. Please explain your hardware setup (what is connected to what, etc.) a bit more detailed.
If your disk is part of a RAID set which is managed by an external device you need to follow the procedures of this external device. That may be anything, you will have to look it up in the respective manual of the device.
Notice that the following only applies if the system is not part of a cluster!
If the disk is directly attached to the system (that basically means you have a hdisk device /dev/hdiskNN for this single disk) you CANNOT remove it simply! Disks are uniquely identified by a "PVID" (physical volume ID) and AIX will notice that this disk is not that disk, regardless of them being identical hardware. (To be honest, it is, in fact, possible to de-configure a physically removed disk but that is really complicated work including manually patching the ODM - you do NOT want to have to do that if you can avoid it.
The correct way to remove the disk is: identify part of which volume group it is by using the lspv command. Move all LVs occupying space on that disk to other disks (if it is only one copy of mirrored LVs simply remove the copy (rmlvcopy and remirror once the new disk is in place) by using the lmigratepp command.
When the disk has no occupied PPs any more (check with lsvg -p <volume-group>) remove it from the VG with:
Now - ONLY NOW! - you can pull the hdisk and replace it with the new one. Run a cfgmgr then to discover the new disk. Add it the VG by doing a:
it will format the disk and put a PVID on it in the process.
Now you can use the space provided by the new disk. If you have deleted a mirror from a LV before, create a new mirror using the mklvcopy command. If you want to move a whole (unmirrored) LV to the new disk: create a mirror copy the same way and remove the original. This is faster then moving single PPs around.
Hi,
Other than df -k, is there any command that will tell me all physical hard drives installed on the system as well as the size of each one?
I'm using AIX 5.1
Thanks, (3 Replies)
I am new to being a Unix admin and have a question about replacing some hardware. I have a K class box using HP-UX 10.20 with three disks. Two of the drives are in one logical volume. Every 3 or 4 days, the syslog is showing that one of these drives is experiencing "POWERFAILED" and then recovering... (6 Replies)
Hi people, I have been using my disk for quite a long time but the other day I heard the drive making some noise and had to restart the system again. But when I did that the disk would not boot and I fear that the data might be deleted or lost. So, if you people have any know about the ways to get... (1 Reply)
Hi people,
I have been using my disk for quite a long time but the other day I heard the drive making some noise and had to restart the system again. But when I did that the disk would not boot and I fear that the data might be deleted or lost. So, if you people have any know about the ways to... (2 Replies)
hi all,
have a solaris 9 OS and a SAN disk which used to work fine is not getting picked up by my machine. can anyone point out things to check in order to troubleshoot this ??
thanks in advance. (3 Replies)
hi
I've a fresh installation of SCO 5.0.7 on the IDE hard disk.
For SCSI hard disk I can declare, for example blc disk driver using:
# mkdev hd 0 SCSI-0 0 blc 0but it works for IDE hard disk? (3 Replies)
in red hat 4, 5 any one know any commands or any scritps to monitor HP DL 380 G5/6 server and trigger alarm when hard disk failed.
thanks for all support
---------- Post updated at 02:45 PM ---------- Previous update was at 12:00 PM ----------
does HP ProLiant Support Pack support is... (4 Replies)
Hi all,
I'm kind of new to programming in Linux & c/c++. I'm currently writing a FileManager using Ubuntu Linux(10.10) for Learning Purposes. I've got started on this project by creating a loopback device to be used as my virtual hard disk. After creating the loop back hard disk and mounting it... (23 Replies)
Hello to all,
Im having a new task in a new world (AIX - IBM Servers)
I have an IBM Server (Type - 9111-285 very old one) with one Hard disk (73 GB 10 K) with AIX 5.x, and I need to clone the existing disk to another with the same specifications.
Could you please give me some advice in order... (7 Replies)