On Mon Sep 15, 2025 at 5:34 AM CEST, Lorne Guse wrote: > I'm working on TrueNAS over iSCSI for Proxmox and have run into an issue > migrating disks. When trying to delete the old storage, which has just > successfully been transfered, the iscsidirect connection must remain open > because we are getting: > > cannot destroy 'slow/vm-188-disk-0': dataset is busy > > Is there a way to ensure the iscsidirect connection is closed before trying > to delete the underlying zfs dataset?
Hi Lorne! Glad to see you on the mailing list! I've sifted around our code to see how we handle this, and it seems that we're simply retrying a couple of times until the dataset is actually deleted [0]. I think that might be your best bet, though if you find an alternative, I'd be curious to know. [0]: https://git.proxmox.com/?p=pve-storage.git;a=blob;f=src/PVE/Storage/ZFSPoolPlugin.pm;h=d8d8d0f9fc1cc6f1a02d8f5800c388b355609bf5;hb=refs/heads/master#l362 _______________________________________________ pve-devel mailing list [email protected] https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
