I am trying to change the value "VG Max Size" from 1t to 3t on lvm version 2.0 via the vgmodify command, but this command is not longer supported in version 2.0. With what command can I can the "VG Max Size" value for lvm version 2.0 , I am using 11.3i hpux version.
Thanks and Regards
The error I get is
Error: This command is not supported on volume group version 2.0.
Thanks for your reply just wanted to understand if vgmodify command can be run for the version 2.0 , cause I have tried all the valid examples of vgmodify command and they do not work. In the end I just created a new vg with the required values and copied all the old data onto the new vg.
---------- Post updated at 07:44 AM ---------- Previous update was at 06:51 AM ----------
The command tried was :
sudo vgmodify -a -S 2099136m vg_ignite
/var/opt/ignite>>vgdisplay -v vg_ignite |more
--- Volume groups ---
VG Name /dev/vg_ignite
VG Write Access read/write
VG Status available
Max LV 511
Cur LV 1
Open LV 1
Max PV 511
Cur PV 19
Act PV 19
Max PE per PV 131072
VGDA 38
PE Size (Mbytes) 8
Total PE 102467
Alloc PE 102467
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 2.0
VG Max Size 1t
VG Max Extents 131072
--- Logical volumes ---
LV Name /dev/vg_ignite/lv_ignite
LV Status available/syncd
LV Size (Mbytes) 819736
Current LE 102467
Allocated PE 102467
Used PV 19
You are missing other options for which you need to specify like VG Max Extents
currently set to (131072 * 8 MB), which is same as VG Max Size.
Read the docs. Changing volume group properties requires adjusting multiple volume group parameters (VG max size, max extent, extent size).
Best is configure those during creation of volume group, altho 2.x lvm relaxes the umount/deactivation for changing of vg if possible.
If you just do a vgcreate <vg> <disk> it will create those limits by default based on that one disk properties.
Adding multiples disks will change that behavior the layout like vgcreate <vg> <disk1> <disk2> <disk N> based, again, on the size of those.
This is documented in manual of vgcreate as default values for each switches you do not specify and their correlation / dependance (you specify one, other is being generated based on that value if not specified etc.)
Conclusion being, plan ahead and configure your volume group with all the possible options you might need in the future, don't let 'defaults' take over on everything.
Now you probably have new volume group with one 3 TB volume with max extents 3 TB and max volume group size of 3 TB or ?