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:
    35
    Likes Received:
    6
    Trophy Points:
    8
    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 II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,072
    Likes Received:
    215
    Trophy Points:
    173
    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:
    35
    Likes Received:
    6
    Trophy Points:
    8
    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 II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,072
    Likes Received:
    215
    Trophy Points:
    173
    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...
  5. Alvaromartinez

    Alvaromartinez Registered

    Joined:
    Aug 9, 2018
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Barcelona
    cPanel Access Level:
    Website Owner
    Hola buenos días, el servidor (CPanel) me muestra lo siguiente:
    "Sorry for the inconvenience!
    The filesystem mounted at / on this server is running out of disk space. cPanel operations have been temporarily suspended to prevent something bad from happening. Please ask your system admin to remove any files not in use on that partition."

    Tengo un disco de 500gb me pidió WHM actualizar centos, antes de actualizar quise crear un zip del directorio public_html que al final no se creó tardó mucho y desde entonces no puedo entrar, lo he intentado desde SSH pero al abrir public_html no me muestra nada. Sospecho que el zip que intenté crear debe de estar por algún lado pero no se donde. Alguien me ayuda?
     
  6. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,072
    Likes Received:
    215
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hola @Alvaromartinez,


    Parece que se ha quedado sin espacio, puede ejecutar algo como lo siguiente para determinar dónde se asigna el uso del disco, lo que a su vez puede ayudarlo a encontrar dónde creó el archivo zip:
    Code:
    du -h --max-depth=1
    Si no puede identificar los problemas de uso con esto, le sugiero que se ponga en contacto con su proveedor de alojamiento para obtener más ayuda.


    Gracias

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

    Hi @Alvaromartinez,


    It sounds like you've run out of space, you can run something like the following to determine where the disk usage is allocated which in turn may help you find where you created the zip file:
    Code:
    du -h --max-depth=1
    If you're unable to identify the usage issues with this I would suggest contacting your hosting provider for further assistance.


    Thanks
     
    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