Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Problema espacio y con sesiones PHP (12GB usados)

Discussion in 'Discusión en Español' started by 50l3r, Jun 11, 2018.

  1. 50l3r

    50l3r Active Member

    Joined:
    Mar 3, 2017
    Messages:
    29
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Buenos Días

    Estoy teniendo problemas con el espacio en disco. Al parecer los inodes estan al 100:

    Code:
    Filesystem        Inodes   IUsed     IFree IUse% Mounted on
    /dev/root        3203072 3203041        31  100% /
    
    Me es imposible siquiera acceder al whm: Screenshot - c3e99e4e6f1319fe8cf82ac499fc26b8 - Gyazo

    He hecho una busqueda y la carpeta ea-php56 ocupa 12GB:

    Code:
    [root@XXXXX]# du -sh /var/cpanel/php/sessions/* | sort
    12G     /var/cpanel/php/sessions/ea-php56
    298M    /var/cpanel/php/sessions/ea-php70
    4.0K    /var/cpanel/php/sessions/ea-php55
    
    ¿Que puede estar ocurriendo?
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,387
    Likes Received:
    92
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @50l3r

    inode usage and disk usage, while they present similarly aren't actually the same thing.

    Running:
    Code:
    df -i
    Will get you the inode usage for each filesystem

    Running something like this:
    Code:
    find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n
    
    Will break it down to show you where the most are being consumed.

    To lower inode usage like with disk usage you will need to remove data, typically what we see is large amounts of small files.

    =======================================================================

    Hola @ 50l3r

    El uso del inodo y el uso del disco, si bien se presentan de manera similar, no son en realidad lo mismo.

    Corriendo:
    Code:
    df -i
    Te conseguirá el uso del inodo para cada sistema de archivos

    Ejecutando algo como esto:

    Code:
    find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n
    
    Lo dividirá para mostrarle dónde se consumen más.

    Para reducir el uso del inodo, al igual que con el uso del disco, deberá eliminar los datos, por lo general, lo que vemos son grandes cantidades de archivos pequeños.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. 50l3r

    50l3r Active Member

    Joined:
    Mar 3, 2017
    Messages:
    29
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    El problema es que se almacenan todas las sesiones en /var/cpanel/php/sessions y tenia 12GB de sesiones
     
  4. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,387
    Likes Received:
    92
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Clearing the sessions data would have also cleared the inode data, but I am glad to hear that the issue is now resolved.


    Thanks!

    =======================================================================
    Al borrar los datos de las sesiones también se borraron los datos del inodo, pero me complace saber que el problema ya se ha resuelto.


    ¡Gracias!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice