How to free a disk

sargue

Active Member
Mar 17, 2019
16
1
43
48
Hi,

I have a Proxmox 5.4 installation consisting on a single node. The node has two physical drives: one NVMe drive and one SATA drive.

The NVMe drive is the system one so everything is configured by default.

The SATA drive was not configured during setup. After installation I configured as a whole "directory" storage type. It resulted in a mounted point (/dev/sda1 -> /mnt/pve/data-sata).

As I am new to proxmox I've been working on it, learning and trying a few things. Now I think I made a mistake choosing "directory" as the storage option for the secondary disk. LVM-thin seems like a more appropriate selection.

As I had nothing more than a couple of templates and some backups I deleted everything and then went to the UI, Datacenter section, Storage, selected that one and clicked on "remove".

upload_2019-4-14_15-9-21.png

Now it is not showing up. The drive seemed used because the mount point was still there. I manually unmounted it but it keep showing up in the UI (Node, Disks, Directory). I found inside /etc on the host to finally found a systemd service description to mount the partition. I deleted the file (both the file and a soft link). I rebooted the host. It was no more showing up in the UI (Node, Disks, Directory) but the disk cannot be selected to create and storage ("No unused disks") and on the UI (Node, Disks) shows as "usage: partitions":

upload_2019-4-14_15-12-38.png
I cannot find any file referencing the drive under /etc.

How can I "free" it and reuse as a LVM-thin storage?

Thanks!
 
Solved. Just had to delete the partition /dev/sda1 , that's what "usage: partitions" mean I guess.
 
  • Like
Reactions: fireon

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!