Once a physical disk has been added into an AIX system, it has to be imported into AIX so it can be utilized. This is done by running the command cfgmgr
. If you have many PVs already, you may wish to get a temporary dump of them first, then run cfgmgr and finally run a dump of PVs against diff to see what drive(s) has been added.
lspv > /tmp/lspv.old
cfgmgr -v
lspv > /tmp/lspv.new
diff /tmp/lspv.old /tmp/lspv.new
This new PV can be added into an existing Volume Group (VG) or added to a new VG. NOTE: If you add a PV to a VG, and later decide to remove it and add it into a new VG, the PVID has to be wiped from the drive first. chdev -l hdiskx -a pv=clear
.
= Add to existing Volume Group =
First you would want to list all of your VGs with the lsvg
command. For this example, I’ll use rootvg and the newly added disk is hdisk5. Hence I would run the following command:
extendvg rootvg hdisk5
Once the drive has been added to a VG you can run the command bootinfo -s hdisk5
to get the size of the drive.