.tmp files in datastores ?

RolandK

Renowned Member
Mar 5, 2019
955
190
88
51
by chance i found today, that i have some noticeable amount of .tmp files inside my datastores.

it looks , they are a little bit older

i guess they are remains of some interrupted jobs/ backup tasks or maybe crashes and it shouldn't harm to delete them ?

verify is perfectly fine for those DS

any clues ?

root@pbs01:/backuppool2# find . -name "*.tmp"| while read file;do ls -la $file ;done

-rw-r--r-- 1 backup backup 0 Apr 21 2021 ./ds-pve2-bnkw/.chunks/0a84/0a8435db270903219b3d60b74ceec2990eee3d7dce42e448577c39c81889f9f5.tmp
-rw-r--r-- 1 backup backup 1441792 Jul 31 2021 ./ds-pve2-bnkw/.chunks/2904/2904683a3200f6a34af70f092a054eb62059f2e7d86c3ae18b2c6ab850dea134.tmp
-rw-r--r-- 1 backup backup 393216 Apr 21 2021 ./ds-pve2-bnkw/.chunks/44ac/44ac92d304d83757aa3be5cb4a63120ef08c8bea81f55223e6a3a1344b10993a.tmp
-rw-r--r-- 1 backup backup 0 Jul 30 2021 ./ds-pve2-bnkw/.chunks/5577/55774b1a16f19874f1cd9527110bce53ca65f903293606dd4012991f1d5d3198.tmp
-rw-r--r-- 1 backup backup 917504 Jul 30 2021 ./ds-pve2-bnkw/.chunks/6f89/6f897fb6fb4f7f2fe7534e83b3c85cc9249664c6c65aa41f8c872e014815be68.tmp
-rw-r--r-- 1 backup backup 0 Jul 30 2021 ./ds-pve2-bnkw/.chunks/8002/8002a36474084f13bbd7c17f9a6fb5ee0daf276280afa8719bfe0f5a9ac94cf9.tmp
-rw-r--r-- 1 backup backup 524288 Jul 30 2021 ./ds-pve2-bnkw/.chunks/8e86/8e866222d7a2d6b678349665aad13f8219947e7a3143582a8b69d7c999d260c9.tmp
-rw-r--r-- 1 backup backup 0 Apr 21 2021 ./ds-pve2-bnkw/.chunks/bf6c/bf6cd742eca64470de9fb47802373dc1fee0e275f5719e219f73a0a41c6bd515.tmp
-rw-r--r-- 1 backup backup 0 Jul 30 2021 ./ds-pve2-bnkw/.chunks/ccb2/ccb2dcf73c5fe29189bde05d6a82b0ab926c560f73c7828a709f7f4db1e65532.tmp
-rw-r--r-- 1 backup backup 0 Jul 31 2021 ./ds-pve2-bnkw/.chunks/d7c3/d7c34083525b42024cf21d816bd16ccdf2517291554e219a8c6094c1989a198c.tmp
-rw-r--r-- 1 backup backup 0 Apr 21 2021 ./ds-pve2-bnkw/.chunks/eda1/eda10785c61113a172cd7771982705f57245e3feecb306b41fd2ee3c4b07f584.tmp
-rw-r--r-- 1 backup backup 0 Jul 31 2021 ./ds-pve-cluster3/.chunks/565d/565dc96766030bae51e848d02b02b4e02abfbd5d9dd75253679b8287c01ed982.tmp
-rw-r--r-- 1 backup backup 1572864 Jul 30 2021 ./ds-pve-cluster3/.chunks/9d54/9d544c1ac54ce326f2d55ce1a7332d37183b00c09e0593f3e980ebc7f4b7009c.tmp
-rw-r--r-- 1 backup backup 0 Jul 30 2021 ./ds-pve-cluster3/.chunks/c4b9/c4b940c4e169dc199dc3d70fdf126c378bf68514b1ed012586513c416c32f3b2.tmp
-rw-r--r-- 1 backup backup 0 Apr 28 2021 ./ds-pve1-bnkw/.chunks/2a81/2a81d93425095d0260c92e09f7dc7e093aa6bb05e84505eb5e598cc8cc0905f2.tmp
-rw-r--r-- 1 backup backup 0 May 3 2021 ./ds-pve1-bnkw/.chunks/3dd0/3dd0bf2d9962e8f96c6a28901ce20c45939d52ba4ba14cfb21960ecec24a43b1.tmp
-rw-r--r-- 1 backup backup 0 Apr 20 2021 ./ds-pve1-bnkw/.chunks/527b/527b2a7d7b53790b361f919e5c104a5980681f09ff62178b88e2b1fc182f6de7.tmp
-rw-r--r-- 1 backup backup 0 Jul 30 2021 ./ds-pve1-bnkw/.chunks/6271/62719498a3824fc6c377dbbc002bbaba954cbb8e72d534ea33c95845446fd504.tmp
-rw-r--r-- 1 backup backup 0 Apr 29 2021 ./ds-pve1-bnkw/.chunks/91ce/91ced598b753a103129574657c52b54cfa8d43406d1cc2e812f700628771275d.tmp
-rw-r--r-- 1 backup backup 0 Apr 16 2021 ./ds-pve1-bnkw/.chunks/d9af/d9af82e06bd3fc257492592c0c81c71d0c14f28cfe0bdcaa93921dd46789bea6.tmp
-rw-r--r-- 1 backup backup 131072 Apr 17 2021 ./ds-pve1-bnkw/.chunks/ddff/ddffb5cab4efb9bdfd7e2225e26ea3d51dbac53bc428af54db25b8aa9bc8c842.tmp
-rw-r--r-- 1 backup backup 0 Apr 20 2021 ./ds-pve1-bnkw/.chunks/deef/deef23246c41ee41cb4d277879110fd292bd43e75dd93325d5b1357e01fcff75.tmp
-rw-r--r-- 1 backup backup 0 May 3 2021 ./ds-pve1-bnkw/.chunks/e42c/e42c2285794a159fb4e9174ab7f160235fcdc299278270a31244780f6b9cb11b.tmp
-rw-r--r-- 1 backup backup 131072 Jul 30 2021 ./ds-pve1-bnkw/.chunks/efb2/efb22330ef23df1e010abc8ce81f9f952b9e79c7aaef6638d5d203197fda5fcc.tmp
 
Files are written to a temp file, synced, and then moved into place. If the backup was abnormally cancelled (crash, powerloss, etc.) the files can linger.
The code around this had a few changes since those dates (eg. the files would now end in `.tmp_<random letters>`), so I'd argue that these look old enough to just be removed. They wouldn't be found by a client trying to read out the chunks anyway.
 
  • Like
Reactions: RolandK

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!