{"id":498,"date":"2025-04-07T10:14:01","date_gmt":"2025-04-07T08:14:01","guid":{"rendered":"https:\/\/rhein-ruhr-informatik.de\/?p=498"},"modified":"2025-03-03T10:56:28","modified_gmt":"2025-03-03T09:56:28","slug":"standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern","status":"publish","type":"post","link":"https:\/\/rhein-ruhr-informatik.de\/en\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/","title":{"rendered":"Extend the default Ubuntu virtual disk in Hyper-V"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"910\" height=\"910\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-40.png\" alt=\"\" class=\"wp-image-501\" style=\"width:185px;height:auto\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-40.png 910w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-40-300x300.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-40-150x150.png 150w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-40-768x768.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-40-12x12.png 12w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-40-50x50.png 50w\" sizes=\"auto, (max-width: 910px) 100vw, 910px\" \/><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\"><strong>Overview<\/strong><\/h2>\n\n\n\n<p>Prior to commencing the expansion process, it is imperative to comprehend that extending a virtual disk within the Hyper-V environment entails augmenting its allocated capacity. This action does not inherently result in the automatic population of the supplementary space with data. To effectively utilize the additional storage, it is necessary to manually extend the virtual machine's partitions and file systems, thereby enabling them to occupy the newly allocated space.<\/p>\n\n\n\n<p>Before we dive into the steps, let's clarify why we might want to expand a Hyper-V VM's hard disk. This action is typically necessary when the virtual machine's existing storage capacity is insufficient to accommodate growing data or applications.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><br><strong>Access Hyper-V Manager<\/strong><\/h2>\n\n\n\n<p><strong>Windows 10\/11:<\/strong> Search for \"Hyper-V Manager\" in the Start menu and open it.<\/p>\n\n\n\n<p>First we need to shutdown the server:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"634\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-65-1024x634.png\" alt=\"\" class=\"wp-image-602\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-65-1024x634.png 1024w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-65-300x186.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-65-768x475.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-65-18x12.png 18w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-65.png 1087w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>On the virtual computer we click on the settings to configure the disk:<\/p>\n\n\n\n<p>Under the Hardware menu we select the storage and on the right hand side we click on the Edit button to be able to continue this the next steps.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"936\" height=\"882\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-66.png\" alt=\"\" class=\"wp-image-604\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-66.png 936w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-66-300x283.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-66-768x724.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-66-13x12.png 13w\" sizes=\"auto, (max-width: 936px) 100vw, 936px\" \/><\/figure>\n\n\n\n<p><br>On the left hand side screen we select the Action, select Expand and then Continue:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"974\" height=\"738\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-67.png\" alt=\"\" class=\"wp-image-605\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-67.png 974w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-67-300x227.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-67-768x582.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-67-16x12.png 16w\" sizes=\"auto, (max-width: 974px) 100vw, 974px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"885\" height=\"674\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-68.png\" alt=\"\" class=\"wp-image-606\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-68.png 885w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-68-300x228.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-68-768x585.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-68-16x12.png 16w\" sizes=\"auto, (max-width: 885px) 100vw, 885px\" \/><\/figure>\n\n\n\n<p><br>As we see in the picture below under the Configure Data in the right-hand side there are 50GB. Here we can increase the size of the storage.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"774\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-69-1024x774.png\" alt=\"\" class=\"wp-image-607\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-69-1024x774.png 1024w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-69-300x227.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-69-768x581.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-69-16x12.png 16w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-69.png 1090w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><br>It is increased to 60GB as shown in the picture below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"780\" height=\"309\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-70.png\" alt=\"\" class=\"wp-image-608\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-70.png 780w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-70-300x119.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-70-768x304.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-70-18x7.png 18w\" sizes=\"auto, (max-width: 780px) 100vw, 780px\" \/><\/figure>\n\n\n\n<p><br>After clickin OK, we have this picture in which we click again OK.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"976\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-71-1024x976.png\" alt=\"\" class=\"wp-image-609\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-71-1024x976.png 1024w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-71-300x286.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-71-768x732.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-71-13x12.png 13w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-71.png 1093w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><br>I have started the virtual machine:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"347\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-72-1024x347.png\" alt=\"\" class=\"wp-image-610\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-72-1024x347.png 1024w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-72-300x102.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-72-768x260.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-72-18x6.png 18w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-72.png 1093w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>After this steps in Hyper-V Manager, we start the virtual machine and going to extend LVM.<\/p>\n\n\n\n<p>Via Putty tool we have to access our virtual machine:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"702\" height=\"692\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-73.png\" alt=\"\" class=\"wp-image-611\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-73.png 702w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-73-300x296.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-73-12x12.png 12w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-73-50x50.png 50w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/figure>\n\n\n\n<p><br>Start by checking your root filesystem free space with df -hT. Our root disc is 62%. Now we gonna follow the steps to allocate 10 more GB to increase the percentage of our filesystem.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"431\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-74-1024x431.png\" alt=\"\" class=\"wp-image-612\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-74-1024x431.png 1024w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-74-300x126.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-74-768x323.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-74-18x8.png 18w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-74.png 1094w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><br>We enter the following commands <strong><code>parted -l<\/code><\/strong> adm type <strong><code>Fix<\/code><\/strong> to display the list of disks and partitions:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"651\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-75-1024x651.png\" alt=\"\" class=\"wp-image-613\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-75-1024x651.png 1024w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-75-300x191.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-75-768x488.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-75-18x12.png 18w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-75.png 1093w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><br>In the picture below we see that there is an error named: <strong><code>GPT PMBR size mismatch<\/code><\/strong>First we can fix it by typing the command correctin the error.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"423\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-76-1024x423.png\" alt=\"\" class=\"wp-image-614\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-76-1024x423.png 1024w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-76-300x124.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-76-768x318.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-76-18x7.png 18w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-76.png 1093w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><br>Now everything sims to be fine.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"409\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-77-1024x409.png\" alt=\"\" class=\"wp-image-615\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-77-1024x409.png 1024w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-77-300x120.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-77-768x307.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-77-18x7.png 18w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-77.png 1093w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><br>Now we can continue to extend our logical volume on \/dev\/sda3 filesystem as shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"424\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-78-1024x424.png\" alt=\"\" class=\"wp-image-616\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-78-1024x424.png 1024w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-78-300x124.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-78-768x318.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-78-18x7.png 18w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-78.png 1085w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><br>First we use the command fdisk \/dev\/sda and continue with the other command showing below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"634\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-79-1024x634.png\" alt=\"\" class=\"wp-image-617\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-79-1024x634.png 1024w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-79-300x186.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-79-768x475.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-79-18x12.png 18w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-79.png 1092w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now it is required to reboot the system<\/p>\n\n\n\n<p>To check for existing free space on your Volume Group (where it is left by the installer default settings), run the command <strong><code>vgdisplay<\/code> <\/strong>and<strong> <code>lvdisplay<\/code> <\/strong>check for free space.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"876\" height=\"619\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-80.png\" alt=\"\" class=\"wp-image-618\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-80.png 876w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-80-300x212.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-80-768x543.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-80-18x12.png 18w\" sizes=\"auto, (max-width: 876px) 100vw, 876px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"927\" height=\"513\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-81.png\" alt=\"\" class=\"wp-image-619\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-81.png 927w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-81-300x166.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-81-768x425.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-81-18x10.png 18w\" sizes=\"auto, (max-width: 927px) 100vw, 927px\" \/><\/figure>\n\n\n\n<p><br>After the computer has been restarted, we can use the command<br><strong><code>lvextend -l +100%FREE \/dev\/ubuntu-vg\/ubuntu-lv<\/code><\/strong><br>to extend the partition.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"121\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-82-1024x121.png\" alt=\"\" class=\"wp-image-620\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-82-1024x121.png 1024w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-82-300x35.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-82-768x91.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-82-18x2.png 18w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-82.png 1093w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><br>At this point you have increased the size of the block volume where your root filesystem resides, but you still need to extend the filesystem on top of it. First, run <strong><code>lsblk<\/code><\/strong> aus:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"487\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-83-1024x487.png\" alt=\"\" class=\"wp-image-621\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-83-1024x487.png 1024w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-83-300x143.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-83-768x365.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-83-18x9.png 18w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-83.png 1093w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><br>To verify our root file system, then run<br><strong><code>resize2fs \/dev\/mapper\/ubuntu--vg-ubuntu--lv<\/code><\/strong><br>to extend our filesystem:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"474\" src=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-84-1024x474.png\" alt=\"\" class=\"wp-image-622\" srcset=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-84-1024x474.png 1024w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-84-300x139.png 300w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-84-768x356.png 768w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-84-18x8.png 18w, https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-84.png 1093w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><br>Now as we see our LVM's size has increased to 48GB.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><br><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p><br>Overall, this guide provides a step-by-step process for expanding a Hyper-V VM's disk, addressing common challenges and ensuring optimal storage utilization<\/p>","protected":false},"excerpt":{"rendered":"<p>Overview Bevor wir mit der Erweiterung beginnen, ist es wichtig zu verstehen, dass die Erweiterung einer virtuellen Festplatte in der Hyper-V-Umgebung eine Erh\u00f6hung ihrer zugewiesenen Kapazit\u00e4t bedeutet. Diese Aktion f\u00fchrt nicht automatisch zur Bef\u00fcllung des zus\u00e4tzlichen Speicherplatzes mit Daten. Um den zus\u00e4tzlichen Speicher effektiv nutzen zu k\u00f6nnen, m\u00fcssen die Partitionen [&hellip;]<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,15,18],"tags":[],"class_list":["post-498","post","type-post","status-publish","format-standard","hentry","category-articles","category-linux","category-virtualization"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Standard-Ubuntu-virtuelles LVM in Hyper-V erweitern - Rhein-Ruhr-Informatik<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/rhein-ruhr-informatik.de\/en\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Standard-Ubuntu-virtuelles LVM in Hyper-V erweitern - Rhein-Ruhr-Informatik\" \/>\n<meta property=\"og:description\" content=\"Overview Bevor wir mit der Erweiterung beginnen, ist es wichtig zu verstehen, dass die Erweiterung einer virtuellen Festplatte in der Hyper-V-Umgebung eine Erh\u00f6hung ihrer zugewiesenen Kapazit\u00e4t bedeutet. Diese Aktion f\u00fchrt nicht automatisch zur Bef\u00fcllung des zus\u00e4tzlichen Speicherplatzes mit Daten. Um den zus\u00e4tzlichen Speicher effektiv nutzen zu k\u00f6nnen, m\u00fcssen die Partitionen [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/rhein-ruhr-informatik.de\/en\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/\" \/>\n<meta property=\"og:site_name\" content=\"Rhein-Ruhr-Informatik\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-07T08:14:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-03T09:56:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-40.png\" \/>\n\t<meta property=\"og:image:width\" content=\"910\" \/>\n\t<meta property=\"og:image:height\" content=\"910\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Rhein-Ruhr-Informatik\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rhein-Ruhr-Informatik\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/\"},\"author\":{\"name\":\"Rhein-Ruhr-Informatik\",\"@id\":\"https:\/\/rhein-ruhr-informatik.de\/#\/schema\/person\/29f8c93b2080ee25df204d589a7f2477\"},\"headline\":\"Standard-Ubuntu-virtuelles LVM in Hyper-V erweitern\",\"datePublished\":\"2025-04-07T08:14:01+00:00\",\"dateModified\":\"2025-03-03T09:56:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/\"},\"wordCount\":545,\"publisher\":{\"@id\":\"https:\/\/rhein-ruhr-informatik.de\/#organization\"},\"image\":{\"@id\":\"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-40.png\",\"articleSection\":[\"Artikel\",\"Linux\",\"Virtualization\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/\",\"url\":\"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/\",\"name\":\"Standard-Ubuntu-virtuelles LVM in Hyper-V erweitern - Rhein-Ruhr-Informatik\",\"isPartOf\":{\"@id\":\"https:\/\/rhein-ruhr-informatik.de\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-40.png\",\"datePublished\":\"2025-04-07T08:14:01+00:00\",\"dateModified\":\"2025-03-03T09:56:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/#primaryimage\",\"url\":\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-40.png\",\"contentUrl\":\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-40.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/rhein-ruhr-informatik.de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Standard-Ubuntu-virtuelles LVM in Hyper-V erweitern\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/rhein-ruhr-informatik.de\/#website\",\"url\":\"https:\/\/rhein-ruhr-informatik.de\/\",\"name\":\"Rhein-Ruhr-Informatik\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/rhein-ruhr-informatik.de\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/rhein-ruhr-informatik.de\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/rhein-ruhr-informatik.de\/#organization\",\"name\":\"Rhein-Ruhr-Informatik\",\"url\":\"https:\/\/rhein-ruhr-informatik.de\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/rhein-ruhr-informatik.de\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/02\/logo-2.png\",\"contentUrl\":\"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/02\/logo-2.png\",\"width\":570,\"height\":570,\"caption\":\"Rhein-Ruhr-Informatik\"},\"image\":{\"@id\":\"https:\/\/rhein-ruhr-informatik.de\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/rhein-ruhr-informatik.de\/#\/schema\/person\/29f8c93b2080ee25df204d589a7f2477\",\"name\":\"Rhein-Ruhr-Informatik\",\"sameAs\":[\"https:\/\/rhein-ruhr-informatik.de\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Standard-Ubuntu-virtuelles LVM in Hyper-V erweitern - Rhein-Ruhr-Informatik","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/rhein-ruhr-informatik.de\/en\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/","og_locale":"en_US","og_type":"article","og_title":"Standard-Ubuntu-virtuelles LVM in Hyper-V erweitern - Rhein-Ruhr-Informatik","og_description":"Overview Bevor wir mit der Erweiterung beginnen, ist es wichtig zu verstehen, dass die Erweiterung einer virtuellen Festplatte in der Hyper-V-Umgebung eine Erh\u00f6hung ihrer zugewiesenen Kapazit\u00e4t bedeutet. Diese Aktion f\u00fchrt nicht automatisch zur Bef\u00fcllung des zus\u00e4tzlichen Speicherplatzes mit Daten. Um den zus\u00e4tzlichen Speicher effektiv nutzen zu k\u00f6nnen, m\u00fcssen die Partitionen [&hellip;]","og_url":"https:\/\/rhein-ruhr-informatik.de\/en\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/","og_site_name":"Rhein-Ruhr-Informatik","article_published_time":"2025-04-07T08:14:01+00:00","article_modified_time":"2025-03-03T09:56:28+00:00","og_image":[{"width":910,"height":910,"url":"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-40.png","type":"image\/png"}],"author":"Rhein-Ruhr-Informatik","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rhein-Ruhr-Informatik","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/#article","isPartOf":{"@id":"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/"},"author":{"name":"Rhein-Ruhr-Informatik","@id":"https:\/\/rhein-ruhr-informatik.de\/#\/schema\/person\/29f8c93b2080ee25df204d589a7f2477"},"headline":"Standard-Ubuntu-virtuelles LVM in Hyper-V erweitern","datePublished":"2025-04-07T08:14:01+00:00","dateModified":"2025-03-03T09:56:28+00:00","mainEntityOfPage":{"@id":"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/"},"wordCount":545,"publisher":{"@id":"https:\/\/rhein-ruhr-informatik.de\/#organization"},"image":{"@id":"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/#primaryimage"},"thumbnailUrl":"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-40.png","articleSection":["Artikel","Linux","Virtualization"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/","url":"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/","name":"Standard-Ubuntu-virtuelles LVM in Hyper-V erweitern - Rhein-Ruhr-Informatik","isPartOf":{"@id":"https:\/\/rhein-ruhr-informatik.de\/#website"},"primaryImageOfPage":{"@id":"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/#primaryimage"},"image":{"@id":"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/#primaryimage"},"thumbnailUrl":"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-40.png","datePublished":"2025-04-07T08:14:01+00:00","dateModified":"2025-03-03T09:56:28+00:00","breadcrumb":{"@id":"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/#primaryimage","url":"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-40.png","contentUrl":"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/10\/image-40.png"},{"@type":"BreadcrumbList","@id":"https:\/\/rhein-ruhr-informatik.de\/2025\/04\/07\/standard-ubuntu-virtuelles-lvm-in-hyper-v-erweitern\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/rhein-ruhr-informatik.de\/"},{"@type":"ListItem","position":2,"name":"Standard-Ubuntu-virtuelles LVM in Hyper-V erweitern"}]},{"@type":"WebSite","@id":"https:\/\/rhein-ruhr-informatik.de\/#website","url":"https:\/\/rhein-ruhr-informatik.de\/","name":"Rhein-Ruhr-Informatik","description":"","publisher":{"@id":"https:\/\/rhein-ruhr-informatik.de\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/rhein-ruhr-informatik.de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/rhein-ruhr-informatik.de\/#organization","name":"Rhein-Ruhr-Informatik","url":"https:\/\/rhein-ruhr-informatik.de\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/rhein-ruhr-informatik.de\/#\/schema\/logo\/image\/","url":"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/02\/logo-2.png","contentUrl":"https:\/\/rhein-ruhr-informatik.de\/wp-content\/uploads\/2024\/02\/logo-2.png","width":570,"height":570,"caption":"Rhein-Ruhr-Informatik"},"image":{"@id":"https:\/\/rhein-ruhr-informatik.de\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/rhein-ruhr-informatik.de\/#\/schema\/person\/29f8c93b2080ee25df204d589a7f2477","name":"Rhein-Ruhr-Informatik","sameAs":["https:\/\/rhein-ruhr-informatik.de"]}]}},"_links":{"self":[{"href":"https:\/\/rhein-ruhr-informatik.de\/en\/wp-json\/wp\/v2\/posts\/498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rhein-ruhr-informatik.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rhein-ruhr-informatik.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rhein-ruhr-informatik.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rhein-ruhr-informatik.de\/en\/wp-json\/wp\/v2\/comments?post=498"}],"version-history":[{"count":2,"href":"https:\/\/rhein-ruhr-informatik.de\/en\/wp-json\/wp\/v2\/posts\/498\/revisions"}],"predecessor-version":[{"id":623,"href":"https:\/\/rhein-ruhr-informatik.de\/en\/wp-json\/wp\/v2\/posts\/498\/revisions\/623"}],"wp:attachment":[{"href":"https:\/\/rhein-ruhr-informatik.de\/en\/wp-json\/wp\/v2\/media?parent=498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rhein-ruhr-informatik.de\/en\/wp-json\/wp\/v2\/categories?post=498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rhein-ruhr-informatik.de\/en\/wp-json\/wp\/v2\/tags?post=498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}