Help Center
Change reserved disk space in CentOS
Reserved disk space is a portion of the total space that is set aside for the operating system and is used to ensure its functionality even when disk space runs low. However, in some cases, you may want to adjust this reserved space according to your specific needs.
Modifying reserved disk space is a task that should only be done if absolutely necessary and if you have advanced knowledge of system administration. This adjustment can have a significant impact on system performance and stability.
Before proceeding with this tutorial, it's important to carefully assess whether it's necessary to change the reserved disk space on your CentOS server. Remember that improper adjustment can negatively affect the overall system performance and potentially lead to stability issues.
If you have determined that it's necessary to change the reserved disk space, follow the instructions below with caution and make sure you fully understand the potential effects and associated risks.
- Open a terminal on your CentOS server.
- Use the following command to check the current reserved space:
> tune2fs -l /dev/partition | grep "Reserved block count"
- To change the reserved space, execute the following command:
> tune2fs -m2 /dev/partition
* Replace "partition" with the drive to be manipulated
* Replace "-m2" with the desired percentage for reserved space. The number 2 indicates a reservation of 2%, and you can change it to 1 for 1%.
* Verify the change by running the command from step 2 again.
Remember that reserved disk space is useful to prevent the system from running out of free space in case of full disk usage. However, you can adjust this space according to your needs and preferences. Make sure to choose an appropriate percentage to maintain a balance between reserved space and available space for the system and users.
Whenever possible, perform complete backups of your data before making any changes to the system configuration.
Related articles
- Screen command in CentOs: more efficient sessions
- Solution: 'Service Unavailable' on CloudLinux servers
- Database export via command line
- Protect your data: configure RAID notifications with S.M.A.R.T.
- List CronJobs for all cPanel users
- Delete unnecessary files from the /tmp partition
- Know your hardware: get accurate information on CentOS 7
- Basic SSH commands
- Optimize accounts with manual rearrange
- IP blocking in CSF via command line
- Clear DNS cache: solution to resolution problems
- Change file permissions via command line
- How to open and close ports using CSF in WHM?
- How to Modify the Hosts File in Windows, Linux, and macOS
- How to Use Telnet to Test SMTP Connectivity on Port 25
- Adjusting reserved space on Linux disks
- Adjusting reconstruction speed in RAID on Linux
- Where are NGINX logs stored?
- Configuring RAID failure notifications with mdadm
- Differences between Legacy VPS and Cloud VPS
- Install cPanel in your server or VPS
- How to send emails via SSH?
- Manage screen session