Hi Joe, I understand the LUN size was changed, so the device has to be scanned again to report the change and after perhaps there will be some chvg with fancy options.. but since we know nothing about the disks subsystem...
If that is the case, you are correct VBE and the OP should use chvg -g to have the new size be recognized.
And Joey you are correct too - a PV can only belong to one VG.
When you have run chvg -g and you see that the VG size is increased (check Total or Free PPs), you can do a chfs -a size=+20G /yourfilesystem if you want to extend a specific filesystem.
are you making the disk larger from the SAN and then looking to see the disk change in AIX? or are you assigning a new disk to AIX and then extending the VG?
Code:
extendvg
will work if you are combining two disk into one vg. Based on your outputs I did not see any new PV's.
if you are adding a new disk to the system you would then use:
Code:
extendvg oravg <New_PV>
I'm not to sure where the "20" came from.
example:
Code:
extendvg oravg hdisk3
if you added the space directly to the PV and you are not seeing the change (not recommended) and you are not seeing this try the following:
Code:
unmount all filesystems
varyoffvg oravg
rmdev <hdisk>
and then run cfgmgr
mount back filesystems
if it still fails you might want to check with the san team to ensure they added the LUN correctly with the correct WWPN
if you are not assigning it directly to that storage and you are actually assigning it to a new PV and you are just not seeing it, can you run this command and send the output:
His cfgmgr output doesn't list a new PV so it seems he is trying to enlarge an existing PV/LUN which has been added some space on the SAN side.
I bet the 20 is GB, since there is no hdisk20 listed and hdisk2 is already part of a VG.
The OP has misinterpret the function of extendvg.
@Murali: It would be nice, if you enlighten us if we are on the right track and if you got along with your problem or not.
---------- Post updated at 08:13 AM ---------- Previous update was at 08:09 AM ----------
I would like to add number of PPS to ORAVG volume
Code:
bash-3.2# chvg -g oravg
0516-1382 chvg: Volume group is not changed. None of the disks in the
volume group have grown in size.
0516-732 chvg: Unable to change volume group oravg.
bash-3.2#
bash-3.2# extendvg -f oravg hdisk2
0516-029 extendvg: The Physical Volume is a member of a currently
varied on Volume Group and this cannot be overidden.
0516-1397 extendvg: The physical volume hdisk2, will not be added to
the volume group.
0516-792 extendvg: Unable to extend volume group.
bash-3.2#
bash-3.2# lsvg -p oravg
oravg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk2 active 1687 169 00..00..00..00..169
Thats is because the system doest not know things have changed... run cfgmgr and see after if your PV is of same size... and its not an extendvg you need but chvg -g but this will work ONLY once the system has seen the change!
when using extendvg you are saying you want to combine 2 or more hdisk into one vg. this is not to actually increase the size of the vg. ok so according to your first post you did try
Code:
cfgmgr
and you did not see the change.
using extendvg would be used if you had assinged a new disk and then wanted to combine that disk to oravg.
usage would be:
Code:
extendvg oravg hdisk3 (or whatever the new disk number is)
This is not your case.
do try this:
Code:
unmount all filesystems within the oravg
(use lsvg -l oravg)
varyoffvg oravg
lspv - make sure the vg is not in active state
run cfgmgr
lspv - see if the vg came back online
if it didn't use varyonvg oravg and lspv again to ensure the vg is active
lsvg oravg
confirm the vg has the disk change.
if you are not seeing the disk changes make sure the disk changes are made correctly.
how are you assigning the disk changes? are you using SAN or assigned to the vio, NPIV?
send the output of:
lsdev -Cc disk |grep hdisk2
highly suggest reviewing the man pages before using these commands:
Code:
extendvg
chvg
if
Code:
chvg -g and cfgmgr
are not seeing the change I'm going to strongly suggest to review how the storage was added.
Dear All,
We have an Oracle running on AIX 6.1, now there have an disk spaces issue and we found that we cannot perform to extend the logical volume. Could help to review and make some suggestions.
Status:
we already provisioned some disks to the host, new disks can be scan and add into the... (11 Replies)
Hello Guys,
I want to create a file system dedicated for an application installation. But there is no space in volume group to create a new logical volume. There is enough space in other logical volume which is being mounted on /var.
I know we can use that logical volume and create a virtual... (2 Replies)
Dear Expret,
Help me about my issue,
I trying add new disk to volume Group but error:
step add new disk to volume group.
1. ~Change a Volume Group
Add a Physical Volume to a Volume Group
Remove a Physical Volume from a Volume Group
Reorganize a Volume Group... (6 Replies)
hi,
I want to create a volume group of 200 GB and then create different file systems on that.
please help me out. Its becomes confusing when the PP calculating PP.
I don't understand this concept. (2 Replies)
Hi,
I am new to unix. I am working on Red Hat Linux and side by side on AIX also. After reading the concepts of Storage, I am now really confused regarding the terminologies
1)Physical Volume
2)Volume Group
3)Logical Volume
4)Physical Partition
Please help me to understand these concepts. (6 Replies)
My volume group of size 200 gb.
out of which only 100 gb is used by 2 logical volumes /dev/vg00/lvol0 and /dev/vg00/lvol0 respectively (both are 50 gb each).
Whenever i use vgreduce command to reduce the size of volume group i get below error.
# vgreduce vg00 -a
Physical volume... (16 Replies)
We want to deactivate a VG but failed, because one of the LVs created there is busy. When we are trying to unmount the LV, it is telling "not mounted" and if I execute mount command it will be informing us "already mounted". dmsetup info is indicating "Open Count = 1".
Please help me, how we... (5 Replies)
Hi,
Smit "Increase the Size of a Logical Volume" command failed. Output:
----------------------------------------------------------
Command: failed stdout: yes stderr: no
Before command completion, additional instructions may appear below.
The distribution of this command (111) failed on... (2 Replies)
Hi All,
I am new to AIX.
I need to extend one Logical Volume it is jfs type on On AIX 5.1.
I have enough free space on the volume group for this extension
Can I use smitty chjfs , will this do it without interruptions to the application that is using this Logical Volume.
Thanks
Scampi (1 Reply)