extra disk not showing as unused

Dale.Sykora

Member
May 13, 2020
18
2
8
55
I have a new proxmox 6.2 cluster and noticed duplicate disks for a virtual machine, but they are not listed as unused. I have recently moved disks to different areas of storage and migrated vm between nodes and changed disk settings. I may have cancelled a disk move and/or migration too. I want to delete the extra disks as they take up space, but want to make sure they aren't needed before doing so. vm config and storage shown below. Is it safe to delete disk 1,2,3?

root@p4:~# cat /etc/pve/qemu-server/103.conf
agent: 1
bootdisk: virtio0
cores: 4
ide0: none,media=cdrom
memory: 8192
name: fp1
net0: virtio=CA:82:97:01:A9:D6,bridge=vmbr78,firewall=1
numa: 0
ostype: win10
scsihw: virtio-scsi-pci
smbios1: uuid=ef5933e4-4f68-40fa-be2d-a02861ab4df4
sockets: 1
virtio0: nfs5:103/vm-103-disk-0.raw,cache=writeback,size=50G
virtio1: nfs5:103/vm-103-disk-4.raw,cache=writeback,size=700G
vmgenid: 05ac8a69-8ddd-4eb5-9f6d-b2a366fd3d56
root@p4:~# ll /mnt/pve/nfs5/images/103/
total 1357717040
drwxr----- 2 root root 1024 May 20 07:10 .
drwxr-xr-x 15 root root 1024 May 29 06:50 ..
-rw-r----- 1 root root 53687091200 May 29 2020 vm-103-disk-0.raw
-rw-r----- 1 root root 751619276800 May 19 10:33 vm-103-disk-1.raw
-rw-r----- 1 root root 751619276800 May 19 23:48 vm-103-disk-2.raw
-rw-r----- 1 root root 751619276800 May 20 07:05 vm-103-disk-3.raw
-rw-r----- 1 root root 751619276800 May 29 2020 vm-103-disk-4.raw
root@p4:~#
 
Hi,

you can run
Code:
qm recan --vmid 103
and then you will see the disks as unused.
 
Thanks Wolfgang! I will try that next time. I ended up moving the used disks from Proxmox GUI to a new storage location. Then I deleted the old disks on old storage that were not listed as unused.

Hi,

you can run
Code:
qm recan --vmid 103
and then you will see the disks as unused.
 

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!