Removing erroneously created disks?

surfrock66

Active Member
Feb 10, 2020
30
7
28
40
I recently set up ZFS over Iscsi on my truenas using a new 10G fiber network. While setting it up I had a few failures (binding the iscsi to the right nics on the TrueNAS, etc). The result was I tried to move a disk, but the move failed with an error. it's all since been resolved.

In doing those tests, objects were created on the iscsi target, but now I cannot delete them. The source disk is fine and the VM only sees 1 disk, but the 3 failed disks from attempted storage moves are still present on the iscsi storage and I can't remove them in the UI. What's the safe way to purge them, just using the terminal on the nas and purging the files? Is there some command to unhook and remove them from the UI?

1712421019086.png

1712421054165.png
 
Curious, when doing that i get this:

Code:
root@sr66-prox-02:~# qm disk rescan
rescan volumes...
Could not find lu_name for zvol vm-117-disk-0 at /usr/share/perl5/PVE/Storage/ZFSPlugin.pm line 118.

I still can't remove it from the LUN's GUI, and the extra disks don't show in the hardware UI for the VM.
 
I still can't remove it from the LUN's GUI, and the extra disks don't show in the hardware UI for the VM.
Sounds like plugin is unable to handle orphaned disks.

I think you have two choices:
- Find reproducible sequence of steps to get into this situation and report it here: https://bugzilla.proxmox.com
- Cleanup the orphaned disks directly on the backend storage

Good luck


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
That did it, from truenas' web UI I just deleted the datasets for the VM and nothing bad happened. When it was clear I migrated the storage over which is how I wanted it, and it all went fine.
 

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!