Problem

Trying to increase the maximum size of a volume group:

# vgmodify -a -S 20t vg_ora
vgmodify: Error: Cannot reconfigure physical volume "/dev/cdisk/disk3194" to the
requested maximum volume group size 20971520 MB without moving
extent(s). The last 4 extent(s) have to be made free
(see pvmove(1M)) to be able to reconfigure the physical volume.

The physical volume "/dev/cdisk/disk3194" can be reconfigured to the new
maximum volume group size 6841144 MB without removing free
extents from the end of the physical volume.
Physical volume "/dev/cdisk/disk3194" was not changed.

vgmodify: Error: Cannot reconfigure physical volume "/dev/cdisk/disk3197" to the
requested maximum volume group size 20971520 MB without moving
extent(s). The last 4 extent(s) have to be made free
(see pvmove(1M)) to be able to reconfigure the physical volume.

The physical volume "/dev/cdisk/disk3197" can be reconfigured to the new
maximum volume group size 6841144 MB without removing free
extents from the end of the physical volume.
Physical volume "/dev/cdisk/disk3197" was not changed.

vgmodify: Error: Cannot reconfigure physical volume "/dev/cdisk/disk3196" to the
requested maximum volume group size 20971520 MB without moving
extent(s). The last 4 extent(s) have to be made free
(see pvmove(1M)) to be able to reconfigure the physical volume.

The physical volume "/dev/cdisk/disk3196" can be reconfigured to the new
maximum volume group size 6841144 MB without removing free
extents from the end of the physical volume.
Physical volume "/dev/cdisk/disk3196" was not changed.

vgmodify: Error: Cannot reconfigure physical volume "/dev/cdisk/disk3193" to the
requested maximum volume group size 20971520 MB without moving
extent(s). The last 4 extent(s) have to be made free
(see pvmove(1M)) to be able to reconfigure the physical volume.

The physical volume "/dev/cdisk/disk3193" can be reconfigured to the new
maximum volume group size 6841144 MB without removing free
extents from the end of the physical volume.
Physical volume "/dev/cdisk/disk3193" was not changed.

vgmodify: Error: Cannot reconfigure physical volume "/dev/cdisk/disk3195" to the
requested maximum volume group size 20971520 MB without moving
extent(s). The last 4 extent(s) have to be made free
(see pvmove(1M)) to be able to reconfigure the physical volume.

The physical volume "/dev/cdisk/disk3195" can be reconfigured to the new
maximum volume group size 6841144 MB without removing free
extents from the end of the physical volume.
Physical volume "/dev/cdisk/disk3195" was not changed.

The physical volume "/dev/cdisk/disk8767" is already provisioned to the
requested maximum vg size 20971520 MB
Physical volume "/dev/cdisk/disk8767" was not changed.

The physical volume "/dev/cdisk/disk8768" is already provisioned to the
requested maximum vg size 20971520 MB
Physical volume "/dev/cdisk/disk8768" was not changed.

The physical volume "/dev/cdisk/disk8769" is already provisioned to the
requested maximum vg size 20971520 MB
Physical volume "/dev/cdisk/disk8769" was not changed.

The physical volume "/dev/cdisk/disk8770" is already provisioned to the
requested maximum vg size 20971520 MB
Physical volume "/dev/cdisk/disk8770" was not changed.

The physical volume "/dev/cdisk/disk8779" is already provisioned to the
requested maximum vg size 20971520 MB
Physical volume "/dev/cdisk/disk8779" was not changed.

The physical volume "/dev/cdisk/disk8780" is already provisioned to the
requested maximum vg size 20971520 MB
Physical volume "/dev/cdisk/disk8780" was not changed.

--- Summary of modifications ---
0 of 11 physical volume(s) modified.
Volume group has not been modified.

Solution

  1. Move the last few extents to a different location:
# pvmove -e 4 /dev/cdisk/disk3194 /dev/cdisk/disk8767
Transferring logical extents of logical volume "/dev/vg_ora/lvdata"...
Physical volume "/dev/cdisk/disk3194" has been successfully moved.
Volume Group configuration for /dev/vg_ora has been saved in /etc/lvmconf/vg_ora.conf

# pvmove -e 4 /dev/cdisk/disk3197 /dev/cdisk/disk8767
Transferring logical extents of logical volume "/dev/vg_ora/lvdata"...
Physical volume "/dev/cdisk/disk3197" has been successfully moved.
Volume Group configuration for /dev/vg_ora has been saved in /etc/lvmconf/vg_ora.conf

# pvmove -e 4 /dev/cdisk/disk3196 /dev/cdisk/disk8767
Transferring logical extents of logical volume "/dev/vg_ora/lvdata"...
Physical volume "/dev/cdisk/disk3196" has been successfully moved.
Volume Group configuration for /dev/vg_ora has been saved in /etc/lvmconf/vg_ora.conf

# pvmove -e 4 /dev/cdisk/disk3193 /dev/cdisk/disk8767
Transferring logical extents of logical volume "/dev/vg_ora/lvdata"...
Physical volume "/dev/cdisk/disk3193" has been successfully moved.
Volume Group configuration for /dev/vg_ora has been saved in /etc/lvmconf/vg_ora.conf

# pvmove -e 4 /dev/cdisk/disk3195 /dev/cdisk/disk8767
Transferring logical extents of logical volume "/dev/vg_ora/lvdata"...
Physical volume "/dev/cdisk/disk3195" has been successfully moved.
Volume Group configuration for /dev/vg_ora has been saved in /etc/lvmconf/vg_ora.conf
  1. Then resize the volume group:
# vgmodify -a -S 20t vg_ora
Reconfiguration of physical volume "/dev/cdisk/disk3194" for the
requested maximum volume group size 20971520 MB succeeded.
Previous number of extents: 63997
Number of extents after reconfiguration: 63993
Physical volume "/dev/cdisk/disk3194" was changed.

Volume Group configuration for /dev/vg_ora has been saved.

Reconfiguration of physical volume "/dev/cdisk/disk3197" for the
requested maximum volume group size 20971520 MB succeeded.
Previous number of extents: 63997
Number of extents after reconfiguration: 63993
Physical volume "/dev/cdisk/disk3197" was changed.

Volume Group configuration for /dev/vg_ora has been saved.

Reconfiguration of physical volume "/dev/cdisk/disk3196" for the
requested maximum volume group size 20971520 MB succeeded.
Previous number of extents: 63997
Number of extents after reconfiguration: 63993
Physical volume "/dev/cdisk/disk3196" was changed.

Volume Group configuration for /dev/vg_ora has been saved.

Reconfiguration of physical volume "/dev/cdisk/disk3193" for the
requested maximum volume group size 20971520 MB succeeded.
Previous number of extents: 63997
Number of extents after reconfiguration: 63993
Physical volume "/dev/cdisk/disk3193" was changed.

Volume Group configuration for /dev/vg_ora has been saved.

Reconfiguration of physical volume "/dev/cdisk/disk3195" for the
requested maximum volume group size 20971520 MB succeeded.
Previous number of extents: 63997
Number of extents after reconfiguration: 63993
Physical volume "/dev/cdisk/disk3195" was changed.

The maximum volume group size for "/dev/vg_ora" has been
increased from 5242880 MB to 20971520 MB.

Volume Group configuration for /dev/vg_ora has been saved.

The physical volume "/dev/cdisk/disk8767" is already provisioned to the
requested maximum vg size 20971520 MB
Physical volume "/dev/cdisk/disk8767" was not changed.

The physical volume "/dev/cdisk/disk8768" is already provisioned to the
requested maximum vg size 20971520 MB
Physical volume "/dev/cdisk/disk8768" was not changed.

The physical volume "/dev/cdisk/disk8769" is already provisioned to the
requested maximum vg size 20971520 MB
Physical volume "/dev/cdisk/disk8769" was not changed.

The physical volume "/dev/cdisk/disk8770" is already provisioned to the
requested maximum vg size 20971520 MB
Physical volume "/dev/cdisk/disk8770" was not changed.

The physical volume "/dev/cdisk/disk8779" is already provisioned to the
requested maximum vg size 20971520 MB
Physical volume "/dev/cdisk/disk8779" was not changed.

The physical volume "/dev/cdisk/disk8780" is already provisioned to the
requested maximum vg size 20971520 MB
Physical volume "/dev/cdisk/disk8780" was not changed.

--- Summary of modifications ---
5 of 11 physical volume(s) modified.
Volume group has been modified.

Leave a comment