Discover Centmin Mod today
Register Now

usertmp_donotdelete File

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Jimmy, Nov 11, 2018.

  1. Jimmy

    Jimmy Premium Member Premium Member

    1,423
    294
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +728
    Local Time:
    2:12 PM
    1.13.x
    MariaDB 10.1.x
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit ?
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: i.e. 1.15.6
    • PHP Version Installed: 7.2.15
    • MariaDB MySQL Version Installed: i.e. 10.0.x or 10.1.xx or 10.2.xx
    I was curious if it was normal to have a 6GB file in my home directory called usertmp_donotdelete. The file was created tonight after an cm, nginx, and php upgrade (the machine hasn't been on in a few days).

    Not sure what this file is for??? The server doesn't have anything on it but a bunch of 10.0.0.XXX domains which are local dev domains. It a VPS on virtualbox.
     
  2. eva2000

    eva2000 Administrator Staff Member

    37,352
    8,162
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,563
    Local Time:
    5:12 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    that file is your /tmp mount file that centmin mod creates at initial install time hence DO NOT delete or /tmp will not work

    size of disk space allocated for /tmp depends on centmin mod detected /home free disk space
     
  3. Jimmy

    Jimmy Premium Member Premium Member

    1,423
    294
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +728
    Local Time:
    2:12 PM
    1.13.x
    MariaDB 10.1.x
    Is there somewhere that is set? My dev server is the same as my other servers (online) and none of the other servers have that file.
     
  4. eva2000

    eva2000 Administrator Staff Member

    37,352
    8,162
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,563
    Local Time:
    5:12 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    only non-OpenVZ servers would of have it i.e. KVM/XEN or dedicated. OpenVZ would skip such setup due to restrictions.
     
  5. Jimmy

    Jimmy Premium Member Premium Member

    1,423
    294
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +728
    Local Time:
    2:12 PM
    1.13.x
    MariaDB 10.1.x
    I have 4 servers:

    1. OVH dedicated - no file in /home
    2. SSDnodes - no file in /home
    3. SSDnodes - no file in /home
    4. VPS local on Virtualbox - 6GB file in home.

    My /home directory on all machines was setup that /root has all the space (deleted the home when setting up the disks initally) so there should be plenty of space on all machines
     
    Last edited: Nov 11, 2018
  6. eva2000

    eva2000 Administrator Staff Member

    37,352
    8,162
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,563
    Local Time:
    5:12 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    You can check /etc/fstab for /tmp entry
    Code (Text):
    cat /etc/fstab | grep '\/tmp'
    

    example
    Code (Text):
    cat /etc/fstab | grep '\/tmp'
    /home/usertmp_donotdelete /tmp ext4 loop,rw,noexec,nosuid 0 0
    

    You can inspect the initial install log for centmin mod for keyword /tmp to see how it was setup via command
    Code (Text):
    grep -rni -A30 '\/tmp' /root/centminlogs/centminmod_123.09beta01.*install.log
    

    example
    Code (Text):
    grep -rni -A30 '\/tmp' /root/centminlogs/centminmod_123.09beta01.*install.log
    
    grep -rni -A30 '\/tmp' /root/centminlogs/centminmod_123.09beta01.*install.log 
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log:1181:Centmin Mod secure /tmp # Fri Oct 26 22:44:37 UTC 2018
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1182-*************************************************
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log:1183:* Secured /tmp and /var/tmp
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1184-*************************************************
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log:1185:CentOS 7 Setup /tmp
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1186-CentOS 7 + non-OpenVZ virtualisation detected
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1187-disabled
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1188-6291456+0 records in
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1189-6291456+0 records out
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1190-6442450944 bytes (6.4 GB) copied, 49.1085 s, 131 MB/s
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1191-mke2fs 1.42.9 (28-Dec-2013)
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1192-/home/usertmp_donotdelete is not a block special device.
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1193-Proceed anyway? (y,n) Discarding device blocks: done                           
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1194-Filesystem label=
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1195-OS type: Linux
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1196-Block size=4096 (log=2)
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1197-Fragment size=4096 (log=2)
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1198-Stride=0 blocks, Stripe width=0 blocks
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1199-393216 inodes, 1572864 blocks
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1200-78643 blocks (5.00%) reserved for the super user
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1201-First data block=0
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1202-Maximum filesystem blocks=1610612736
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1203-48 block groups
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1204-32768 blocks per group, 32768 fragments per group
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1205-8192 inodes per group
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1206-Superblock backups stored on blocks: 
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1207-  32768, 98304, 163840, 229376, 294912, 819200, 884736
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1208-
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1209-Allocating group tables: done                           
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1210-Writing inode tables: done                           
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1211-Creating journal (32768 blocks): done
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1212-Writing superblocks and filesystem accounting information: done 
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1213-
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1214-*************************************************
    /root/centminlogs/centminmod_123.09beta01.b063_261018-224230_install.log-1215-* Setting preferred localtime for VPS
    

    or check /root/centminlogs/securedtmp.log which is populated at initial centmin mod install time
    Code (Text):
    cat /root/centminlogs/securedtmp.log 
    Centmin Mod secure /tmp # Fri Oct 26 22:44:37 UTC 2018
    *************************************************
    * Secured /tmp and /var/tmp
    *************************************************
    CentOS 7 Setup /tmp
    CentOS 7 + non-OpenVZ virtualisation detected
    disabled
    6291456+0 records in
    6291456+0 records out
    6442450944 bytes (6.4 GB) copied, 49.1085 s, 131 MB/s
    mke2fs 1.42.9 (28-Dec-2013)
    /home/usertmp_donotdelete is not a block special device.
    Proceed anyway? (y,n) Discarding device blocks: done                           
    Filesystem label=
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    Stride=0 blocks, Stripe width=0 blocks
    393216 inodes, 1572864 blocks
    78643 blocks (5.00%) reserved for the super user
    First data block=0
    Maximum filesystem blocks=1610612736
    48 block groups
    32768 blocks per group, 32768 fragments per group
    8192 inodes per group
    Superblock backups stored on blocks: 
            32768, 98304, 163840, 229376, 294912, 819200, 884736
    
    Allocating group tables: done                           
    Writing inode tables: done                           
    Creating journal (32768 blocks): done
    Writing superblocks and filesystem accounting information: done 
    
     
  7. Jimmy

    Jimmy Premium Member Premium Member

    1,423
    294
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +728
    Local Time:
    2:12 PM
    1.13.x
    MariaDB 10.1.x
    Here is my local:
    Code:
    # cat /etc/fstab | grep '\/tmp'
    /home/usertmp_donotdelete /tmp ext4 loop,rw,noexec,nosuid 0 0
    
    Here is my SSDnodes:
    Code:
    # cat /etc/fstab | grep '\/tmp'
    tmpfs /tmp tmpfs rw,noexec,nosuid 0 0
    
    This is from my local virtualbox machine:
    Code:
    # grep -rni -A30 '\/tmp' /root/centminlogs/centminmod_123.09beta01.*install.log
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log:1174:Centmin Mod secure /tmp # Sat Oct 27 22:56:34 EDT 2018
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1175-*************************************************
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log:1176:* Secured /tmp and /var/tmp
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1177-*************************************************
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log:1178:CentOS 7 Setup /tmp
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1179-CentOS 7 + non-OpenVZ virtualisation detected
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1180-disabled
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1181-6291456+0 records in
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1182-6291456+0 records out
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1183-6442450944 bytes (6.4 GB) copied, 14.0302 s, 459 MB/s
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1184-mke2fs 1.42.9 (28-Dec-2013)
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1185-/home/usertmp_donotdelete is not a block special device.
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1186-Proceed anyway? (y,n) Discarding device blocks: done                         
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1187-Filesystem label=
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1188-OS type: Linux
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1189-Block size=4096 (log=2)
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1190-Fragment size=4096 (log=2)
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1191-Stride=0 blocks, Stripe width=0 blocks
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1192-393216 inodes, 1572864 blocks
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1193-78643 blocks (5.00%) reserved for the super user
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1194-First data block=0
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1195-Maximum filesystem blocks=1610612736
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1196-48 block groups
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1197-32768 blocks per group, 32768 fragments per group
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1198-8192 inodes per group
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1199-Superblock backups stored on blocks:
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1200-    32768, 98304, 163840, 229376, 294912, 819200, 884736
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1201-
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1202-Allocating group tables: done                         
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1203-Writing inode tables: done                         
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1204-Creating journal (32768 blocks): done
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1205-Writing superblocks and filesystem accounting information: done
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1206-
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1207-*************************************************
    /root/centminlogs/centminmod_123.09beta01.b063_271018-225543_install.log-1208-* Setting preferred localtime for VPS
    
    This is from my SSDnodes:
    Code:
    # grep -rni -A30 '\/tmp' /root/centminlogs/centminmod_123.09beta01.*install.log
    /root/centminlogs/centminmod_123.09beta01.b040_250718-135126_install.log:1436:Centmin Mod secure /tmp # Wed Jul 25 13:52:55 EDT 2018
    /root/centminlogs/centminmod_123.09beta01.b040_250718-135126_install.log-1437-*************************************************
    /root/centminlogs/centminmod_123.09beta01.b040_250718-135126_install.log:1438:* Secured /tmp and /var/tmp
    /root/centminlogs/centminmod_123.09beta01.b040_250718-135126_install.log-1439-*************************************************
    /root/centminlogs/centminmod_123.09beta01.b040_250718-135126_install.log:1440:CentOS 7 Setup /tmp
    /root/centminlogs/centminmod_123.09beta01.b040_250718-135126_install.log-1441-CentOS 7 + non-OpenVZ virtualisation detected
    /root/centminlogs/centminmod_123.09beta01.b040_250718-135126_install.log-1442-disabled
    
    I don't mind the 6GB file on the server, just was curious why it was on one server and not the others. All the install were using the beta 7.2 one line install. All drives are setup not to include /home as a separate partition.
     
    Last edited: Nov 11, 2018
  8. eva2000

    eva2000 Administrator Staff Member

    37,352
    8,162
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,563
    Local Time:
    5:12 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    all look to have /tmp setup but maybe they didn't mount for some reason. If you rebooted/shutdown/restart server should mount them which is probably what you see when you mentioned server has been shutdown for days ???

    when you run
    Code (Text):
    mount -a
    df -hT /tmp
    

    what do you get for output
     
  9. Jimmy

    Jimmy Premium Member Premium Member

    1,423
    294
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +728
    Local Time:
    2:12 PM
    1.13.x
    MariaDB 10.1.x
    Here is the output from the local dev server:
    Code:
    # mount -a
    # df -hT /tmp
    Filesystem     Type  Size  Used Avail Use% Mounted on
    /dev/loop0     ext4  5.8G   25M  5.5G   1% /tmp
    
    I can reboot if you want.
     
  10. Jimmy

    Jimmy Premium Member Premium Member

    1,423
    294
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +728
    Local Time:
    2:12 PM
    1.13.x
    MariaDB 10.1.x
    Here is the output from SSDnodes:
    Code:
    # mount -a
    # df -hT /tmp
    Filesystem     Type   Size  Used Avail Use% Mounted on
    tmpfs          tmpfs   16G  1.2M   16G   1% /tmp
    
     
  11. eva2000

    eva2000 Administrator Staff Member

    37,352
    8,162
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,563
    Local Time:
    5:12 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    looks about right there when you have more than 16GB (actually >16000001 bytes) memory, /tmp uses ramdisk tmpfs instead of the /home/usertmp_donotdelete file

    centmin mod's goal at initial install time is for optimal sized /tmp as incorrect or small size can cause problems especially on low memory VPS i.e. 512MB ram VPS on CentOS 7 would usually have ~256MB tmpfs ram disk for /tmp on non-Centmin Mod systems. Centmin Mod will detect that and size an on disk /tmp that is larger to properly accomodate optimal usage based on detected and calculated disk free space on /home.

    At >16GB memory, you'd have ~8GB ram disk tmpfs for /tmp so don't need an on disk file and can get CentOS 7 set it's /tmp on tmpfs ram disk.
     
    Last edited: Nov 11, 2018
    • Like Like x 1
  12. Jimmy

    Jimmy Premium Member Premium Member

    1,423
    294
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +728
    Local Time:
    2:12 PM
    1.13.x
    MariaDB 10.1.x
    Sounds good. I was transferring over some large files which I was going to dump in the /home dir on my local. I saw the file and wondered what it was.

    Thanks for your help in understand this!
     
    • Like Like x 1
..