What is default size of / folder in rhel7 with automatic lvm ?
Environment
- Red Hat Enterprise Linux 7.x
Issue
- What is default size of / folder in rhel7 with automatic lvm ?
Resolution
- Please check below source code.
- "/" folder's max size is 50GB but "/home" code(size) is different from rhel6.
Snip from pyanaconda/installclass.py
def setDefaultPartitioning(self, storage):
autorequests = [PartSpec(mountpoint="/", fstype=storage.defaultFSType,
size=1024, maxSize=50*1024, grow=True,
btr=True, lv=True, thin=True, encrypted=True),
PartSpec(mountpoint="/home", fstype=storage.defaultFSType,
size=500, grow=True, requiredSpace=50*1024,
btr=True, lv=True, thin=True, encrypted=True)]
- RHEL 6 code is below.
def setDefaultPartitioning(self, storage, platform):
autorequests = [PartSpec(mountpoint="/", fstype=storage.defaultFSType,
size=1024, maxSize=50*1024, grow=True,
asVol=True),
PartSpec(mountpoint="/home", fstype=storage.defaultFSType,
size=100, grow=True, asVol=True, requiredSpace=50*1024)]
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
