question

AmitVengsarkar-1175 avatar image
0 Votes"
AmitVengsarkar-1175 asked AmitVengsarkar-1175 commented

RHEL disk size

Hello all, I have created 2 Linux instances in Azure. one instance is Ubuntu, and the other is RHEL. Both have the same disk size (e.g. 64 GB). Now with Ubuntu I can see the free space is shown under /

/dev/sdb1 62G 2.5G 60G 4% / which tell me I still have 60 G available

but that's not the case with RHEL.

/dev/mapper/rootvg-rootlv 2.0G 71M 2.0G 4% / which tells me only 2G available
Also if I sum up the outcome of df -h, it isn't 64G either. Now certainly I found a way to fix this by using

![88086-image.png][1]

But don't think that's the correct approach.
Please let me know if anyone came across such a scenario? if yes how RHEL handles the allocated disk space? Or will it start throwing error as soon as / is full

azure-disk-storage
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

deherman-MSFT avatar image
0 Votes"
deherman-MSFT answered AmitVengsarkar-1175 commented

@AmitVengsarkar-1175
The RHEL VM you are using has LVM setup, which is why you are seeing the difference. I am guessing this is using an image which was imported from an on-prem VM. I normally don't recommend using LVM in the cloud as it increases the complexity without benefits. If you wish to expand the root LVM partition this is a helpful guide, this is for Ubuntu, but should be the same across Linux. I highly recommend using a non LVM image, but if that is not possible then the guide can help you familiarize yourself with the management of it.

Hope this helps. Let me know if you have further questions or issues and I will do my best to assist.



Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for that valuable reply. really helpful. I checked for Red Hat 8.2 non LVM but couldn't find that in the Azure marketplace. Would you be able to help with that? Sorry, I am still exploring Azure.

0 Votes 0 ·