{"id":5955,"date":"2020-11-29T00:03:59","date_gmt":"2020-11-28T18:33:59","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=5955"},"modified":"2020-11-29T00:08:58","modified_gmt":"2020-11-28T18:38:58","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 the container in OpenVZ"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">How to Increase Disk Space Size of the container in OpenVZ<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\">Date: 28-11-2020<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1: <\/strong>Check the list of all running containers by using the below command.<br><code>#vzlist<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"690\" height=\"264\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/11\/Screen-Shot-2020-11-29-at-12.07.37-AM.png\" alt=\"\" class=\"wp-image-5961\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/11\/Screen-Shot-2020-11-29-at-12.07.37-AM.png 690w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/11\/Screen-Shot-2020-11-29-at-12.07.37-AM-300x115.png 300w\" sizes=\"(max-width: 690px) 100vw, 690px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2:<\/strong> Run the following command to increase the disk space.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>#vzctl set CTID --diskspace SoftLimit:HardLimit --save<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Note:- CTID &#8212; Container Id number. You want to increase the disk space for which container and you can get this number from vzlist. <br>SoftLimit:HardLimit &#8211; Required Disk space. For example, you want to increase to 50GB for container id 109. You can use below command.<br><code>#vzctl set 109 --diskspace 50G:49G --save<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3:<\/strong> You can verify the disk space by using the below command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>#vzctl exec CTID df -h<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Increase Disk Space Size of the container in OpenVZ Date: 28-11-2020 Step 1: Check the list of all [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"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_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","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":"","_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":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5955\/revisions"}],"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}]}}