Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Too many files in directories like /tmp/systemd-private- cause server crash due to lack of disk space

 
chrootlinuxlinux servermariadbobsidian

Symptoms

  • Plesk Obsidian running on a Linux-based operating system
  • The server crashes due to lack of disk space
  • In the
    /tmp
    directory of the Linux server operating system, there are many subdirectories with names that are similar to the following:

    /tmp/systemd-private-9301532e5ff749e388f365a25f51e9ea-mariadb.service-zvKlrX/tmp/
    /tmp/systemd-private-9301532e5ff749e388f365a25f51e9ea-httpd.service-HRR15v/

  • Many system services have
    PrivateTmp
    set to
    true
    :

    # grep -R PrivateTmp /etc/systemd/
    /etc/systemd/system/multi-user.target.wants/named-chroot.service:PrivateTmp=false
    /etc/systemd/system/multi-user.target.wants/php-fpm.service:PrivateTmp=true
    /etc/systemd/system/multi-user.target.wants/httpd.service:PrivateTmp=true
    /etc/systemd/system/multi-user.target.wants/mariadb.service:PrivateTmp=true

  • The temporary subdirectories created in /tmp are using up all of the disk space and cause the server crash

Cause

The PrivateTmp systemd feature is enabled for the services mentioned in the subdirectory names of /tmp. Configuring a systemd service with PrivateTmp=true leads to the fact that the service starts using a private tmp directory and creates subdirectories within the /tmp server directory that store its temporary files. There are a lot of files in the created subdirectories and this causes lack of disk space.

Resolution

Solution 1

1. Log into your server via SSH

2. Configure the temporary file rotation to happen as often as you need it to by opening the file
/usr/lib/tmpfiles.d/tmp.conf
with your favorite command-line text editor.

3. When you open the file, you will see lines that are similar ot the following:

#Clear tmp directories separately, to make them easier to override
#Type Path Mode User Group Age Argument
v /tmp 1777 root root 10d
v /var/tmp 1777 root root 30d
3. Save the changes

Note: The configuration file has a special syntax. Every line is a rule. Each line in the tmpfiles.d configuration file is separated by tabs or spaces into seven columns that define a rule. More information related to the possible configurations is available here.

Solution 2

Disable the PrivateTmp systemd feature for the service (example, for MariaDB):

  1. Check which services have
    PrivateTmp
    set to
    true
    :

    # grep -R PrivateTmp /etc/systemd/
    /etc/systemd/system/multi-user.target.wants/named-chroot.service:PrivateTmp=false
    /etc/systemd/system/multi-user.target.wants/php-fpm.service:PrivateTmp=true
    /etc/systemd/system/multi-user.target.wants/httpd.service:PrivateTmp=true
    /etc/systemd/system/multi-user.target.wants/mariadb.service:PrivateTmp=true

  2. Stop the service:

    # systemctl stop mariadb

  3. Change
    PrivateTmp
    value to
    false
    in the file
    /etc/systemd/system/multi-user.target.wants/mariadb.service

  4. Reload
    systemd
    :

    # systemctl daemon-reload

  5. Start
    mariadb
    :

    # systemctl start mariadb

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Plesk Obsidian 18.0.62 is now available

Read More »

Plesk Obsidian 18.0.61 Release

Read More »

How to Check Open Ports in Linux (Simple Commands & Tools)

Read More »
Knowledge Base

The /tmp directory grows very large and contains many “magick-xxxxx” files in its subdirectories

Read More »

 How to install ‘sqlsrv’ extension for Plesk PHP handlers?

Read More »

MariaDB fails to start: Aria engine is not enabled or did not start

Read More »

Different operations on Plesk for Linux server fail: /usr/sbin/usermod execution failed: usermod: user is currently used by process

Read More »

Hosting Wiki

  • Server Redundancy
  • Linux Containers
  • Bare Metal Server
  • PhpMyAdmin
  • phpPgAdmin
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • PHP
  • Plesk
  • Web Server
  • DNS Server
  • SSH
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family