{"id":5955,"date":"2020-11-29T00:03:59","date_gmt":"2020-11-28T18:33:59","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=5955"},"modified":"2026-11-19T21:03:30","modified_gmt":"2026-11-19T15:33:30","slug":"how-to-increase-disk-space-size-of-the-container-in-openvz","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-increase-disk-space-size-of-the-container-in-openvz\/","title":{"rendered":"How to Increase Disk Space Size of a Container in OpenVZ"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Posted Date:<\/strong> 29 November 2020<br><strong>Last Updated: <\/strong>19 November 2026<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Increase disk space in OpenVZ<\/strong> containers by updating the storage limits assigned to a specific container. OpenVZ provides the <code>vzctl<\/code> command to manage container settings, including disk space allocation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When a container requires additional storage, you can identify its container ID, update the disk space limits, and verify the available storage.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this tutorial, we will explain how to increase disk space in OpenVZ using three simple steps.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before increasing disk space in an OpenVZ container, make sure you have:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Access to the OpenVZ server.<\/li>\n\n\n\n<li>Root or appropriate administrative privileges.<\/li>\n\n\n\n<li>The container ID (CTID) for which you want to increase disk space.<\/li>\n\n\n\n<li>Basic knowledge of Linux commands.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How to Increase Disk Space in OpenVZ<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Check the List of Running Containers<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The first step to increase disk space in OpenVZ is to identify the container that requires additional storage.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check the list of all running containers using the following command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">vzlist<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command displays the running containers and their corresponding container IDs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Review the output and identify the CTID of the container whose disk space you want to increase. You will need this ID in the next step.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Screenshot 1:<\/strong> Insert the original screenshot showing the output of the <code>vzlist<\/code> command.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Alt text:<\/strong> Increase Disk Space in OpenVZ \u2013 running container list showing container IDs using the vzlist command.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Increase the OpenVZ Container Disk Space<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After identifying the container ID, use the following command to increase its disk space:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">vzctl set CTID --diskspace SoftLimit:HardLimit --save<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Command explanation:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>CTID<\/code> \u2013 The container ID number obtained from the <code>vzlist<\/code> command.<\/li>\n\n\n\n<li><code>SoftLimit:HardLimit<\/code> \u2013 Specifies the required disk space limits.<\/li>\n\n\n\n<li><code>--save<\/code> \u2013 Saves the updated container configuration.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For example, if you want to increase the disk space to 50 GB for container ID 109, use the following command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">vzctl set 109 --diskspace 50G:49G --save<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In this example, <code>109<\/code> is the container ID, and <code>50G:49G<\/code> represents the specified soft and hard disk space limits.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Replace the example container ID and disk space values with the required values for your container.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Verify the Container Disk Space<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After updating the disk space configuration, verify the storage information of the selected container.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run the following command:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">vzctl exec CTID df -h<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>CTID<\/code> with the container ID you identified in Step 1.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This command executes <code>df -h<\/code> inside the selected container and displays its disk space information.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Review the output to check the available storage after increasing disk space in OpenVZ.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Increasing disk space in OpenVZ is a straightforward process using the <code>vzctl<\/code> command. First, identify the required container using <code>vzlist<\/code>. Next, update its disk space limits using <code>vzctl set<\/code>. Finally, verify the storage information using <code>vzctl exec CTID df -h<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By following these three steps, you can increase disk space in an OpenVZ container and check its storage information.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Official Documentation<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/wiki.openvz.org\/Disk_quota\" target=\"_blank\" rel=\"noopener\">OpenVZ \u2013 Disk Quota<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/wiki.openvz.org\/User_Guide\/Managing_Resources\" target=\"_blank\" rel=\"noopener\">OpenVZ \u2013 Managing Resources<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/wiki.openvz.org\/Man\/vzctl.8\" target=\"_blank\" rel=\"noopener\">OpenVZ \u2013 vzctl Manual<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How Pheonix Solutions Can Help<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Looking for reliable server management and cloud infrastructure solutions?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/devops-cloud\/\">Pheonix Solutions<\/a> provides DevOps, cloud infrastructure, server administration, and container management services to help businesses maintain reliable IT environments.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Our experts can help you manage OpenVZ containers, configure server resources, troubleshoot infrastructure issues, and maintain server performance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/contact\">Contact our experts<\/a> to discuss your requirements.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Posted Date: 29 November 2020Last Updated: 19 November 2026 Introduction Increase disk space in OpenVZ containers by updating the storage [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":13690,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1020],"tags":[435],"class_list":["post-5955","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-containers-kubernetes","tag-openvz","psol-cat-containers-kubernetes"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1y3","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/11\/OpenVZ-Disk-Space-Expansion-Guide.webp","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5955","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=5955"}],"version-history":[{"count":4,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5955\/revisions"}],"predecessor-version":[{"id":13695,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5955\/revisions\/13695"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media\/13690"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=5955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=5955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=5955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}