I’m facing a low storage issue in cyber panel form for many days and after searching many blogs, and videos and talking to many people. I found that the low storage problem is because my Inodes are 100% used.
In some situations my phpmyadmin is not opening then, i delete some cache and files then after some Inodes were free and then, phpmyadmin start working normally. But, I know this is not the solution.
I want to increase the Inode limit. Anyone, please help me to increase the limit of Inodes so, I didn’t face any problem of low storage in your device error in the future? I have still 52% storage available. But, inodes is 100% used.
Run this command in your terminal to remove all logs generated rm -rf /usr/local/lsws/logs/*
Go to https://SERVER_URL:7080/index.php#view/confMgr.php?m=serv&p=log and setup Keep Days which specifies how many days the access log file will be kept on disk, Compress Archive allow compressing rotated log files in order to save disk space. Also reduce the rolling size of Access log
This maybe an indication of a process opening too many files than the web server allows. Follow this guide
I run this command for log file removal but still server Inodes is full. I have to host a
client website which is in WordPress, but, I’m not able to do it because of this low space error. My ec2 volume space is free but, Inodes is full so, sometimes my PHPMyAdmin not starting, and facing many issues because of this issue. You can see this in the image. I deleted one website then some Inodes are free and now I"m able to open phpmyadmin. But, this is not the solution. I have to host a website.
# check the current process-level file descriptor limit
$ more /proc/sys/fs/file-max # or ulimit -n
# if its lower than 65000
$ echo 65000 > /proc/sys/fs/file-max
# adjust no. of processing units available
$ echo "10000" > /proc/sys/fs/nr_open
# assuming you are running linux kernel 2.2 adjust no. of maximum files that can be stored in file system
$ echo 65535 > /proc/sys/fs/inode-max
# reboot server
$ reboot
This confirms that you have increases the number of open files allowed by processes on your system. Kindly follow the instructions I posted earlier or you can run this command to maximise the limit (not recommeded but should solve this):
$ ulimit -u unlimited
Note: For the purpose of helping the community always copy-paste the error you get alongside the screenshot to help others search the issue and find your question
Thanks for your help and support Sir, please provide me with the method by which I will increase the limit of Inodes. Because now I have to delete the old website to host a new one because Inodes is 100% used. Because of this problem, I’m not able to upload any plugin, image or file through cyber panel. This is a very big issue for me. So, please help me to increase the Inodes limit.
I run all commands and this will fix the WordPress installation issue but, the main issue is Inodes. I have to delete my old website for the installation of new website. Do we google meet or anydesk to shwo what the issue is.
Adjust TasksMax - the number of tasks that can be started by a user. This ensures that the number of tasks accounted for the user stays below a specific limit. A reasonable value might be 2500.
# make a drop-in file
$ mkdir -p /etc/systemd/system/[email protected]
$ cat > /etc/systemd/system/[email protected]/delegate.conf << EOF
[Service] Delegate=tasks cpu io memory pids cpuset
EOF
$ systemctl daemon-reload
Configure the user you want to control by using linger, enter the following:
loginctl enable-linger admin
You can see if a user is lingered by entering:
loginctl user-status admin
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
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
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
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.