full local (pve) storage because of large temp.sh file in /root folder

schmimla21

New Member
Nov 10, 2021
1
0
1
40
Hi there,

on my proxmox installation, my local (pve) storage is nearly completely full (22.14 GB of 24.13 GB). This leads to the problem, that i can not upgrade my system any more. With ncdu -x i found out, that in my /root folder there is a file named "temp.sh" (shell script?) which is about 13 GB. Can somebody explain, what this file does, and if i can safely remove it?

Thank you very much in advance!
 
You are going to need to examine it. That file is not part of PVE. Its probably a result of some incorrect output redirect.

Commands that can assist you:
lsof - to see if anything has it open
file temp.sh - basic guess on whats inside the file
head file|strings - to see first 10 lines
tail file|strings - last 10 lines
truncate -s 0 file - will zero it out, at least temporarily.

You can delete the file, it will not affect standard PVE installation. But you probably should first understand how it got there.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:

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!