1752805 Members
5512 Online
108789 Solutions
New Discussion юеВ

online lun resize 11.31

 
SOLVED
Go to solution
centurion
Frequent Advisor

online lun resize 11.31

I resize my lun at the storage-box (hp eva), no problem. But my lun in the lvm has the old size.

When I make the same procedure with a lun, which is not under lvm-control, then it works?!

Any ideas?

11.31
LVM 1.0
20 REPLIES 20
Torsten.
Acclaimed Contributor
Solution

Re: online lun resize 11.31

You need to use vgmodify to adjust the LVM layout.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
centurion
Frequent Advisor

Re: online lun resize 11.31

the problem is, when I use diskinfo - the lun has the old size. I think vgmodify is the next step.
Torsten.
Acclaimed Contributor

Re: online lun resize 11.31

I would do an ioscan and then the vgmodify.

Example:

# vgmodify vg01

Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 2559
PE Size (Mbytes) 4
VGRA Size (Kbytes) 400
"/dev/rdsk/c3t0d1" size changed from 10485600 to 20971520kb
An update to the Volume Group IS required
...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
centurion
Frequent Advisor

Re: online lun resize 11.31

I already use the ioscan - old size.

when I make the same procedure with a test lun, which is not under lvm control, then I can see the new size automatically with diskinfo. the ioscan is not necessary.
Torsten.
Acclaimed Contributor

Re: online lun resize 11.31

Does vgmodify detect the new size or not?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
centurion
Frequent Advisor

Re: online lun resize 11.31

root@system01[/root]# vgmodify vgtest
vgmodify: The volume group "vgtest" is active on this system. Use the -a option to perform the requested change.

root@system01[/root]# vgmodify -a vgtest
vgmodify: Error: -a option should be used with either -e, -p, -l, -o, -B, -C,
-R or -E options.


Which options are necessary?
centurion
Frequent Advisor

Re: online lun resize 11.31

root@system01[/root]# vgmodify -E -a vgtest
"/dev/rdisk/disk66" size changed from 31457280 to 41943040kb
Volume Group configuration for /dev/vgtest has been saved in /etc/lvmconf/vgtest.conf

Very nice, one volume has the new size. But the second volume the old?!
Torsten.
Acclaimed Contributor

Re: online lun resize 11.31

From manual:

The vgmodify command supports LUN expansion on a Version 1.0 volume group without
deactivating the volume group. To reconfigure an activated volume group to take advantage of
a physical volume size increase, use the ├в E and ├в a options to vgmodify. For example, if the
physical volume /dev/disk/disk32 in volume group vg02 has been expanded, use the
following command to add physical extents to it:
# vgmodify -a -E /dev/vg02 /dev/rdisk/disk32



For more information, see vgmodify(1M).




Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
centurion
Frequent Advisor

Re: online lun resize 11.31

root@system01[/root]# vgmodify -E -a vgtest /dev/rdisk/disk61
An update to the Volume Group is NOT required
Volume Group configuration for /dev/vgtest has been saved in /etc/lvmconf/vgtest.conf