dioreo.blogg.se

Adding more disk space to linux vm
Adding more disk space to linux vm













adding more disk space to linux vm
  1. #Adding more disk space to linux vm how to#
  2. #Adding more disk space to linux vm update#
  3. #Adding more disk space to linux vm code#

#Adding more disk space to linux vm code#

The 8e hex code shows that it is a Linux LVM, while 83 shows a Linux native partition. fdisk -lĪs you can see in the above image /dev/sda5 is listed as “Linux LVM” and it has the ID of 8e. Identifying the partition typeĪs this method focuses on working with LVM, we will first confirm that our partition type is actually Linux LVM by running the below command. Throughout my examples I will be working with a VMware virtual machine running Debian 6, this was set up with a 20gb disk and we will be increasing it by 10gb for a total final size of 30gb. If you do not have space for another partition then you will need to consider a different method, there are some others in the above list. Prerequisites: As this method uses the additional space to create a primary partition, you must not already have 4 partitions as you will not be able to create more than 4. It could also be worth cloning the virtual machine first and testing out this method on the clone. Note that a snapshot must not be taken until after the virtual disk has been increased, otherwise you will not be able to increase it. If you are working with virtual machines make sure you take a snapshot of your virtual machine beforehand, or otherwise have some other form of up to date backup before proceeding. Important Note: Be very careful when working with the commands in this article as they have the potential to cause a lot of damage to your data.

#Adding more disk space to linux vm update#

Update : I have created a video guide of this post in CentOS 7 shown below.

#Adding more disk space to linux vm how to#

How to Decrease the size of a Linux LVM – In this article the file system is shrunk followed by the LVM, allowing you to reclaim space in the volume group.How to Increase the size of a Linux LVM by adding a new disk – In this article a new virtual disk is added to the virtual machine, a new partition is created, the volume group and logical volume are both expanded and then the filesystem is resized.Use GParted to increase disk size of a Linux native partition – In this article the virtual disk is expanded, however there is no LVM here just a Linux native partition that is expanded with the GParted live CD.

adding more disk space to linux vm

This will involve creating a new partition with the new space, expanding the volume group and logical group, then finally resizing the file system.Īs there are a number of different ways to increase disk space I have also posted some different methods here: Once this is complete we will get into the virtual machine and make the necessary changes through the operating system in order to take advantage of the additional space that has been provided by the hard drive being extended.

adding more disk space to linux vm

Firstly we will be increasing the size of the actual disk on the VMware virtual machine, so at the hardware level – this is the VM’s. This post will cover how to increase the disk space for a VMware virtual machine running Linux that is using logical volume manager (LVM).















Adding more disk space to linux vm