How to increase Virtual Hard Disk Size on a Linux Virtual Machine

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
harder prasad Amla here today I came across a situation where Maya Lennox virtual machine went out of disk space while exploring some other product on the machine my initial Desai's was 30 gigs but after installing couple of discs hungry Oracle products all that space was used up and I ended up increasing the size on tree partitioning the virtual hard disk let me show you how how I did that quickly this is my virtual machine setting screen and as you can see my max de size is 30 gigs I will add another 10 GB and make it 40 GB in total so to do that you need to click on expand here and give the size of the disk in my case it's 40 GB and click on expand now you will get the confirmation that the disk was successfully expanded but you must repartition the disk to use that new space click OK here let me login to VM as root I am logged into my virtual machine as route as you can see let me first check my de space using the F - H so as you can see The Dispatch is 27 gigs now and let's see the actual de size using F disk so that would be F disk - L so here you can see the total this space and the disk name is dev SDA let's create a new partition now you can do it using f disk command and then your disk name that is def SDA and now it will ask you to provide the command so if you are not aware of the commands you can always type iam it will list down all the commands in our case it would be add new partition so I am typing in N and it will ask you the type of the partition whether it's extended or primary in our case it could be primary so P and as you can see it automatically selected partition for because the first three partitions are already used SDA one is da 2 and sta 3 so our new partition number will be 4 and you can accept the first cylinder as well as the last cylinder just press enter now you need to select the partition and change its type so to select the partition you need to type T and then provide your partition number that would be 4 in our case and then you need to provide the hex code for the partition type so to get the list of the hex codes you can always type in L and then it will give you the list of all the hex codes in our case it would be linux l vm so the hex code would be 8 e so type in 8 e now we have specified the type of our partition and then you need to write all these changes or save all these changes for that the command is w so now you have written all these changes to the partition now your new partition is created it's time to extend your physical and logical volumes but before that you need to reboot your system once so let me reboot my system and come back quickly now the system is restarted and I'm logged in as root again now it's time to create your physical and logical volumes so let me create the physical volume first to do that you can use PV create command and then your new partition name that would be /dev SDA for okay now your physical volume is created now it's trying to extend your volume group so for that you need to find out the volume group name so to do that you can specify VG display command which will give you your volume group details so our volume group name is vol gr OUP so let's extend that volume group so to do that you need to provide VG extend command and then your volume group then your partition name that would be in dev sta 3 sorry SDA for your volume group successfully extended now now it's time to extend your logical volume so to get the logical volume path you can specify it will be display so here you can see your logical volume path is this one and your logical volume name is L we underscore root so here we need to take the path not the name to extend the logical volume you need to use L we extend command then your logical volume path then your new partition do SDA for ok now your logical volume is extended now it's time to refresh your logical volume so he can do that using resize to FS and then your logical volume path okay now your logical volume is refreshed now you can check your new disk space using DF hyphen H command as you can see our big space is increased by 10 GB and that's how you increase your virtual hard disk size on your vmware please check my blog for all the commands i used in this video i leave the link in the description hope you all liked the video and found it helpful if we did please give me a thumbs up and subscribe to my channel for more technical videos like this one thanks for watching see you in the next one then bye
Info
Channel: Prasad Domala
Views: 62,848
Rating: undefined out of 5
Keywords: Increase disk space on Vmware, increase hard disk on linux vmware
Id: G5RVvF6Uw3A
Channel Id: undefined
Length: 6min 31sec (391 seconds)
Published: Wed Mar 30 2016
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.