RHEL disk size

Amit Vengsarkar 41 Reputation points
2021-04-15T07:51:26.763+00:00

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
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
571 questions
0 comments No comments
{count} votes

Accepted answer
  1. deherman-MSFT 33,141 Reputation points Microsoft Employee
    2021-04-15T16:54:49.847+00:00

    @Amit Vengsarkar
    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.


0 additional answers

Sort by: Most helpful