Difference between revisions of "/run/"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(43 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Draft}}
+
<code>/run/</code> is a "[[tmpfs]]" file system for system packages to place runtime data in. This directory is flushed on boot, and generally writable for privileged programs only. Always writable.
 +
 
 +
/run/
 +
[[/run/systemd/]]
 +
[[/run/systemd/system]]
 +
[[/run/lock]]
 +
[[/run]]/p[[acct]]_source
 +
[[/run/nginx.pid]]
 +
[[/run/php/]]php7.2-fpm.sock
 +
[[/run/rpcbind.sock]] 
 +
[[/run/utmp]]
  
 
  Jan 26 16:23:34 SERVER [[systemd-logind]][876]: Failed to save user data /run/systemd/users/0: [[No space left on device]]
 
  Jan 26 16:23:34 SERVER [[systemd-logind]][876]: Failed to save user data /run/systemd/users/0: [[No space left on device]]
  
  
[[apt upgrade]]
+
[[apt upgrade]]
 
  Failed to reload daemon: Refusing to reload, not enough space available on [[/run]]/[[systemd]]. Currently, 1.9M are free, but a safety buffer of 16.0M is enforced.
 
  Failed to reload daemon: Refusing to reload, not enough space available on [[/run]]/[[systemd]]. Currently, 1.9M are free, but a safety buffer of 16.0M is enforced.
  
  
* Increase run space
+
Increase <code>/run</code> [[filesystem]] space
Append to <code>/etc/[[fstab]]</code>
+
1) Append to <code>[[/etc/fstab]]</code>
none /run tmpfs defaults,size=XXXXXXXXM 0 0
+
  <code>echo "none /run tmpfs defaults,size=256M 0 0" >> /etc/[[fstab]]</code>
 +
2) <code>[[mount]] /run</code>
 +
3) <code>mount -o remount /run</code>
 +
4) Check <code>/run</code> space: <code>[[df]] -h /run</code>
 +
 
 +
[[reboot]]
 +
System has not been booted with systemd as init system (PID 1). Can't operate.
 +
Failed to talk to init daemon.
  
mount /run again
 
mount -o remount /run
 
  
Check /run space:
+
== Activities ==
[[df]] -h /run
+
* Read "Introducing /run" by [[Lennart Poettering]] in [[2011]] https://lwn.net/Articles/436012/
  
 +
== Related terms ==
 +
  Apr 13 07:42:02 SERVER [[systemd]][1]: [[nginx.service]]: Failed to parse [[PID]] from file [[/run/]]nginx.pid: Invalid argument
  
 +
* <code>[[/dev/shm]]</code>
 +
* <code>[[/var/run/]]</code>
 +
* <code>[[/tmp/]]</code>
  
 
== See also ==
 
== See also ==
* [[tmpfs]]
+
* {{run}}
* [[udev]]
+
* {{FHS}}
* {{proc}}
 
* {{systemd}}
 
* [[shm]]
 
* [[aide]]
 
* {{du}}
 
  
 
[[Category:Linux]]
 
[[Category:Linux]]

Latest revision as of 10:04, 25 August 2023

/run/ is a "tmpfs" file system for system packages to place runtime data in. This directory is flushed on boot, and generally writable for privileged programs only. Always writable.

/run/
/run/systemd/
/run/systemd/system
/run/lock
/run/pacct_source
/run/nginx.pid
/run/php/php7.2-fpm.sock
/run/rpcbind.sock   
/run/utmp
Jan 26 16:23:34 SERVER systemd-logind[876]: Failed to save user data /run/systemd/users/0: No space left on device


apt upgrade
Failed to reload daemon: Refusing to reload, not enough space available on /run/systemd. Currently, 1.9M are free, but a safety buffer of 16.0M is enforced.


Increase /run filesystem space

1) Append to /etc/fstab
 echo "none /run tmpfs defaults,size=256M 0 0" >> /etc/fstab
2) mount /run
3) mount -o remount /run
4) Check /run space: df -h /run
reboot
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to talk to init daemon.


Activities[edit]

Related terms[edit]

 Apr 13 07:42:02 SERVER systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument

See also[edit]

Advertising: