Originally posted by: nagger
Hi,
I like your approach but this is NOT TRUE.
In AIX there is not such think as a mirrored disk.
We only mirror logical volumes - this is much more flexible.
This means you can add just one disk and add it to your full set of mirrored disks and use it.
-
OK, so you are still stuck as you can't extend the /opt as you can't assign space with the two copies of blocks on different disks.
-
Now here is the trick. You need to move some mirrored disk blocks from the full older disks to the new disk and then extend /opt
For example:
-
If /tmp has 60 blocks on hdisk0 and 60 blocks on hdisk1 to make the mirror.
-
And hdisk2 is the new disk.
-
Move the 60 blocks from hdisk1 to hdisk2.
-
Now you have 60 free blocks on hdisk1 and lots on hdisk2, so you can extend /opt but 60 blocks.
To move the blocks between physical disks use the migratepv command.
It's a very powerful command and an excellent way to show the power of AIX. The same command is used to move all the blocks from a disk - if you want, for example, to remove the disk from a volume group to then remove it completely from the machine. You can do all this with the machine, AIX and application running.
Hope this helps, Nigel Griffiths
#AIX-Forum