From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id AE75268F48 for ; Fri, 15 Jan 2021 18:46:56 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 9B5122905F for ; Fri, 15 Jan 2021 18:46:26 +0100 (CET) Received: from mail.namespace.at (mail.namespace.at [IPv6:2a01:190:1801:100::235]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 8297129053 for ; Fri, 15 Jan 2021 18:46:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deduktiva.com; s=a; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=rW5jP0lJyBXxTfQyW+HMPdHY3Zp90mxWd4GI2Q7CUzY=; b=S0IjOeJW/xvF31GXoHBrjkmXZO g+0qwZ/SYRIfj3T4A5bZuAgdHE2p0UsnACa6RhOxU6ftJ0yt8oPKcLf8bW+ghJLMOTNgDlw0E3YJQ CcLwAGjoOd5RZ/FlQkKbl24i2ijfzRhwtd+/UnSPqrQwKYBUsJauZ/2LszlsgpdhXJAeAhk/KcTup t4Nt56BS6iXv27/3YGI6ORxsxNDKATFe3vIU9vV9sM4vtRIT1WursX/Gk6Jnh37+IIM+TjQ0NL2TB Yr6NnLkbrXAANRSow2dc11VM7+jLmInjNox78KnXg08l6VpAQLn3OGrOUQwI91iW4vkFQw410L8vu nzRgujbg==; Date: Fri, 15 Jan 2021 18:46:18 +0100 From: Chris Hofstaedtler | Deduktiva To: Proxmox VE user list Message-ID: <20210115174618.j6ej5ear4tj7opnp@zeha.at> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-SPAM-LEVEL: Spam detection results: 0 DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [deduktiva.com] Subject: Re: [PVE-User] Unused Disk Remove vs Detach X-BeenThere: pve-user@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jan 2021 17:46:56 -0000 * JR Richardson [210115 17:57]: > I'm running PVE 6.2.11, I have VMs with Disks on NFS shared storage. I > moved disks to other storage nodes but did not choose to delete the > old disk, so the old disk is still assigned to the VM in hardware as > 'Unused Disk 0'. When I select the disk, the 'Detach' button changes > to 'Remove'. I remember in older versions of PVE, you could just > 'Detach' disks instead of removing them. Is this due to the old > storage node is still on-line? If I shutdown the old storage node, > would I get the option to Detach Unused Disks? I can only speculate, but essentially, completely detached disks are invisible to PVE. I believe, on subsequent actions - like disk moves, VM migrations, ... - the disk "numbers" can be reused. If there's such an old disk around, the operation might either fail or the disk might be silently overwritten. >From this PoV, I would strongly recommend against fully detaching disks from VMs. > Can I get around this via command line utility to detach the old disk? You can edit the VM definition file and remove the unusedN: line. Best, Chris -- Chris Hofstaedtler / Deduktiva GmbH (FN 418592 b, HG Wien) www.deduktiva.com / +43 1 353 1707