Hi Peter/Michael ...
Thanks for your interest on this ...
Based on all the comments i have conjured up a script that creates LVM on a hdispower device ( MPIO capable device ) . The script greps for a Power Device which can as well be a hdisk Device for general users.
Also i have used a command called syminq which may not be usefull for many people ... It is used only if a symmetrix DMX is connected to your AIX box .
Had problems attaching the script ,,, hence inserting

################################################################################################
#!/bin/ksh
Create_VG () {
Counter=0
for i in `lspv | grep power | awk '{print $1}'` ; do # List power devices
syminq | grep GK | grep power | grep $i >> /dev/null # Remove Symm Gatekeeper devices
if [ $? = 0 ]
then
echo "$i is a GK device, Cannot create LVM on a GK device"
Counter=`expr $Counter + 1`
else
chdev -l $i -a pv=clear >/dev/tty # Clearing PV Attributes
mkvg -fy vg$Counter $i >> /dev/null 2>&1
echo "Volume Group vg$Counter created"
mklv -y test$Counter -t jfs vg$Counter 16 >> /dev/null 2>&1
echo "Logical Volume test$Counter created"
crfs -v jfs -d test$Counter -m /power$Counter >> /dev/null 2>&1
mount -f /dev/test$Counter /power$Counter
echo "Logical Volume /dev/test$Counter mounted on /power$Counter "
Counter=`expr $Counter + 1`
fi
done
}
lspv | grep power | grep active # List active Volume Groups on Power Devices
if [ $? -eq 0 ]
then
echo "Active LVM Found"
echo "Umounting all the LVM/Power devices"
mount | grep power | awk '{print $2}' | xargs -n1 umount
echo "Removing the Associated FileSystem"
lsfs | grep power | awk '{print $3}' | xargs -n1 rmfs -r >> /dev/null 2>&1
vg_count=`lspv | grep power | grep -c active`
h_count=1
while [ $vg_count != 0 ]
do
echo "Turning off the active VG$vg_count and Exporting them"
vg=`lspv | grep power | grep active | head -$h_count | tail -1| awk '{print $3}'`
varyoffvg $vg
exportvg $vg
pvid_clr=`lspv | grep power | head -$h_count | tail -1 | awk '{print $1}'`
chdev -l $pvid_clr -a pv=clear
h_count=`expr $h_count + 1`
vg_count=`expr $vg_count - 1`
done
Create_VG
else
Create_VG
fi
################################################################################################
Please feel free to get back for ny queries..
Thanks
Kavish