المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : السي بانال WHM/CPanel حل مشكلة امتلاء tmp folder 100% full - رسالة DISKCRITICAL



Rise Company
29-06-2021, 03:51
السي بانال WHM/CPanel حل مشكلة امتلاء tmp folder 100% full - رسالة DISKCRITICAL
DISKCRITICAL files Mount Point “/var/tmp” Disk usage warning
cpanel /tmp” reached “critical” status - whm server has full inodes
DISKWARN blocks âڑ*: Mount Point “/tmp” - Disk Block Usage
The filesystem “/tmp” mounted at “/tmp” reached “warn” status because you currently use 89.54%

https://www.rise.company/upload/uploads/164857812800811.png

هناك فرق بين الصورة التى فى الاعلى فهى تفرغ نفسها تلقائيا عند اقتراب المساحة لـ 92 %
اما الاسفل تتعلق بمساحة inode وهى التى لا تفرغ من نفسها ويجب عمل cron للتفريغ المستمر

https://www.rise.company/upload/uploads/162569996719271.png

المشكلة :

وصول رسالة على الايميل ان مجلد temp ممتلىء ولكن عند الدخول على whm تجدها غير ممتلئة
واذا تجاخهلتها هتجد ان mysql هتتعطل وهيحدث خلل فى عمل جميع المواقع حتى تفرغ هذه المساحة
هنا المشكلة فى inode المساحة بداخلها استهلكت بشكل كبير بسبب احد المواقع او sessions

Running out of inodes, but not out of disk space, usually means that you have a large number of very small files that use up many inodes but not necessarily much disk space. The most likely explanation is that there is code on the sites that isn't properly closing the session. You may want to examine the session files to see if you can determine what pages are leaving sessions on the server. These aren't areas that typically get cleared automatically, but you'll see the other directories are much smaller.
I wouldn't recommend deleting the directory itself, but you can delete the contents (the session files) and that will not cause an issue for the server.

مراقبة المشكلة :

https://www.rise.company/upload/uploads/162751380337391.png

Check inodes usage


df -i


df -h

حل المشكلة :

You can easily resolve that by simply running this command:



# cd /tmp
# rm -rf sess_*


او

عمل ريستارت للسيرفر واذا تكرر يمكنك عمل التفريغ manual قم بعمل ريستارت للسيرفيس التالية


# service mysqld restart


# service httpd restart

After restarting services all deleted tmp files will be cleared.

حل المشكلة بشكل نهائى ؟

يجب وضع limit على المواقع بتفعيل Display inode usage in cPanel and WHM
عند تفعيلها هتستطيع معرفة استهلاك لكل موقع للبحث عن الحساب الذى يستهلك مقدار كبير.
وهو امر صعب لذلك افضل حل هو

السي بانال WHM/CPanel كرون Cron تفريغ تلقائى clean /tmp (https://www.rise.company/forum/threads/75533-%D8%A7%D9%84%D8%B3%D9%8A-%D8%A8%D8%A7%D9%86%D8%A7%D9%84-WHM-CPanel-%D9%83%D8%B1%D9%88%D9%86-Cron-%D8%AA%D9%81%D8%B1%D9%8A%D8%BA-%D8%AA%D9%84%D9%82%D8%A7%D8%A6%D9%89-clean-tmp)

شاهد ايضا
السي بانال WHM حل مشكلة امتلاء مساحة temp وتفعيل inode usage (https://www.rise.company/forum/threads/74752-%D8%A7%D9%84%D8%B3%D9%8A-%D8%A8%D8%A7%D9%86%D8%A7%D9%84-WHM-%D8%AD%D9%84-%D9%85%D8%B4%D9%83%D9%84%D8%A9-%D8%A7%D9%85%D8%AA%D9%84%D8%A7%D8%A1-%D9%85%D8%B3%D8%A7%D8%AD%D8%A9-temp-%D9%88%D8%AA%D9%81%D8%B9%D9%8A%D9%84-inode-usage)

المرجع:
https://tecadmin.net/tmp-folder-100-full-cpanel/
https://forums.cpanel.net/threads/var-tmp-full-php-fpm-session.689941/
https://www.webhostingtalk.com/showthread.php?t=1312141
http://manageyourservers.blogspot.com/2010/02/var-patition-full-how-to-change-mysql.html
https://www.webhostingtalk.com/showthread.php?t=1714588
https://www.solostream.com/helpdesk/knowledge-base/when-your-inodes-and-tmp-disk-gets-full-and-your-site-go-down/
https://forums.cpanel.net/threads/the-filesystem-var-tmp-mounted-at-var-tmp-reached-warn-status.562281/
https://www.ucartz.com/clients/index.php?rp=/knowledgebase/2139/How-to-clean-ortmp-on-CentosorcPanel-server.html