{"id":518,"date":"2023-08-18T10:44:21","date_gmt":"2023-08-18T10:44:21","guid":{"rendered":"https:\/\/www.aixperts.co.uk\/?p=518"},"modified":"2025-01-17T08:37:10","modified_gmt":"2025-01-17T08:37:10","slug":"unable-to-increase-maxlps-for-lv","status":"publish","type":"post","link":"https:\/\/www.aixperts.co.uk\/?p=518","title":{"rendered":"Unable to increase MaxLPs for LV"},"content":{"rendered":"\n<p>As part of growing filesystems on AIX, you often hit the message:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Error Message:  0516-787 extendlv: Maximum allocation for logical volume is 512<\/code><\/pre>\n\n\n\n<p>which is a bit of a legacy setting from the days of small disks.<\/p>\n\n\n\n<p>This is easily over-come by running <code>chlv -x &lt;number&gt; <\/code>but I was recently thwarted by being met by another error from trying this fairly routine command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># chlv -x 65536 data2_lv\n0516-1389 chlv: The -x parameter for MaxLPs must be between 1 and 32768.\n        It cannot be smaller than the existing number of LP's.<\/code><\/pre>\n\n\n\n<p>It turns out that &#8220;MAX PPs per VG&#8221; limits the &#8220;MaxLPs&#8221; setting.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># lsvg data2_vg\nVOLUME GROUP:       data2_vg                 VG IDENTIFIER:  00c85c6700004c000000015c5d99c816\nVG STATE:           active                   PP SIZE:        128 megabyte(s)\nVG PERMISSION:      read\/write               TOTAL PPs:      31992 (4094976 megabytes)\nMAX LVs:            256                      FREE PPs:       0 (0 megabytes)\nLVs:                1                        USED PPs:       31992 (4094976 megabytes)\nOPEN LVs:           1                        QUORUM:         5 (Enabled)\nTOTAL PVs:          8                        VG DESCRIPTORS: 8\nSTALE PVs:          0                        STALE PPs:      0\nACTIVE PVs:         8                        AUTO ON:        yes\n<strong>MAX PPs per VG:     32768 <\/strong>                   MAX PVs:        1024<\/code><\/pre>\n\n\n\n<p>To fix this, run <code>chvg -P 64K &lt;VGname&gt;<\/code> which will set &#8220;MAX PPs per VG&#8221; to 65536.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As part of growing filesystems on AIX, you often hit the message: which is a bit of a legacy setting from the days of small disks. This is easily over-come by running chlv -x &lt;number&gt; but I was recently thwarted &hellip; <a href=\"https:\/\/www.aixperts.co.uk\/?p=518\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[176,7,175,173,174],"class_list":["post-518","post","type-post","status-publish","format-standard","hentry","category-aix","tag-0516-1389","tag-aix","tag-chlv","tag-maxlp","tag-pp"],"_links":{"self":[{"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=518"}],"version-history":[{"count":3,"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/518\/revisions"}],"predecessor-version":[{"id":552,"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/518\/revisions\/552"}],"wp:attachment":[{"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aixperts.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}