How to increase Inodes limit

Were is the CGI Setttings

Go to https://SERVER_URL:7080 and if you experience any issues lookup this tutorial

OpenLiteSpeed WebAdmin, navigate to Server Configuration > Security , edit the CGI Settings group and enable cgroups by setting it to on

Screenshot 2022-10-25 013549
Screenshot 2022-10-25 013523

You do not have cgroups v2. Setup cgroups:

1.Using drop-In files method

For each user you wish to configure, you will need to create a directory in mkdir /etc/systemd/system/user-UID.slice.d. e.g.mkdir /etc/systemd/system/wordpressuser-1001.slice.d

$ cd /etc/systemd/system/wordpressuser-1001.slice.d
echo "[Slice]" >> 50-TasksMax.conf
echo "TasksMax=10%" >> 50-TasksMax.conf

Validate the file changes by running cat 50-TasksMax.conf

To use cgroups with OpenLiteSpeed you need to install glib as root.

RedHat/Centos: sudo yum install glib2
Ubuntu: sudo apt-get install glib2.0

In OLS WebAdmin, configure OpenLiteSpeed to have CGI apps use the user ID of the owner of the file. Navigate to Configuration > Virtual Hosts > and select the virtual host you wish to manage. In the Basic tab, modify the Security entry and set the ExtApp Set UID Mode to CGI File UID

To enable cgroups at the server level, in OpenLiteSpeed WebAdmin, navigate to Server Configuration > Security , edit the CGI Settings group and enable cgroups by setting it to on

Note: Avoid systemctl configuration if you see it in any tutorial in the web

Please explain were is the option is - In OLS WebAdmin, configure OpenLiteSpeed to have CGI apps use the user ID of the owner of the file. Navigate to Configuration > Virtual Hosts > and select the virtual host you wish to manage. In the Basic tab, modify the Security entry and set the ExtApp Set UID Mode to CGI File UID

Go to Virtual Hosts > example.net In the Basic tab, modify the Security entry and set the ExtApp Set UID Mode to CGI File UID

I’m not able to find. Please guide me form below image

Click on Virtual Hosts from left sidebar > example.net In the Basic tab, modify the Security entry and set the ExtApp Set UID Mode to CGI File UID

Also check out this documentation

I have to do this for all domains? Because, I have more than 49 domains hosted on this panel. So, I have to do this process for all domains.

Question: Does this process will increase Inodes or I didn’t face Inodes exhaust problem in future after doing this process. Or if i was wrong then please tell me about this.

cgroups isloates resources by accounts. So this has to be done for all users and virtual hosts if required.

If you set a CPUQuota of 10% for a user, all accesses by the user must not exceed 10%. This includes those in OLS and user login sessions. All will be shared fairly by the operating system. If you start more processes, the total percentage for the user does not change, but each process runs a bit slower so as to avoid monopolizing the CPU.

OLS setup starts with User Configuration via Drop-in files (recomended) and finally an OLS setup including the VHost Configuration

Screenshot 2022-10-25 163353

Again Inodes uses increased by 3% without hosting any domain. When Inodes was 100% uses, I’m not able to do any thing then i faced server error 505. After that I increased volume stroage by 10GB then Inodes changed to 100% uses to 86% uses. But, again it was increasing automatically. I’m afraid now because how much storage i have to increase. Because when i check storage uses then its shows only 37% uses, 63% is waist and i haved to pay for 63% storage.

I increased 30Gb one by one because Inodes was always full in few days after incresing the volume. This is very serious issue. I will provide you the screenshot of list of files which is using most Inodes. The in left side of file name is Inodes uses.

You can also check my storage uses in below screenshot.

Screenshot 2022-10-25 164313

Please provide me method form which i find out the useless file which is eating more Inodes. And any method to modify the Inodes.

Now Inodes uses increase by 3% more. Means in few hours Inodes uses increased by 6% and after some time Inodes was full and again I’m in big trouble because, when Inodes was full I’m not able to do any things. After that it will again gives me server error 500 while opening 8090 port. This is big issue, I’m very afraid about this issue. I already increased 30 to 40 Gb in few weeks because of Inodes issue. But, still I’m facing this issue. Do you please check why this problem was happening.

Screenshot 2022-10-25 221116

I hope you will understand my situation. After few hours Inodes uses become full and I’m not able to do anything. I’m deleted many wordperss sites but still it Inodes uses was increasing.

Hello, would you rollback the server to a later date i.e when you first installed cyberpanel?

Have you checked your sessions folder, if it’s just filled with thousands of small files?

Do you please help me how to find the session folder and delete all unnecessary session files.

How to do that. Please guide me to rollback the server later date.

Inside those folders:

/var/lib/lsphp/session/lsphp71
/var/lib/lsphp/session/lsphp72
/var/lib/lsphp/session/lsphp73
/var/lib/lsphp/session/lsphp74
/var/lib/lsphp/session/lsphp80
/var/lib/lsphp/session/lsphp81

It should have many of those files, because devs never correctly set up the clean of sessions (last time I checked).
If that’s the case, I will post the fix here (but you will need to re-apply every time you update cyberpanel)

After running below command it shows me unlimited number of files. Please help me to delete these files

find /var/lib/lsphp/session/lsphp80

Still it was showing me files. How to delete these files

Screenshot 2022-10-26 000200