Attaching SDA device to a VM

sagiziv3

New Member
Sep 14, 2024
3
0
1
I am an new user to Proxmox and still learning the platform, so sorry if it is a trivial question.

My computer has an SSD and an HDD connected to it, Proxmox is running on the SSD.
I mounted the HDD through the shell using `mount /dev/sda1 /mnt/hdd`.

I want to attach this HDD to one of my VMs, but can't find how. I tried creating new LVM Thinpool and a new Directory but both only let me select the thumb-drive that happens to be connected to the machine.
I can see in the `Disks` section that the HDD is detected and mounted, so I don't really understand why it doesn't appear as an option
 
Welcome to the Proxmox forum, sagiziv3!

There are no trivial questions as somebody else might be facing a similar problem, so don't shy away from asking them here.

Have you already found a solution? If not, the reason that you can't see the mounted HDD when you're trying to create a LVM thinpool/directory is because the HDD is already in use, e.g. because there is already a formatted filesystem on it.

If there's no data on the HDD and/or you really don't need the data that is on the HDD, you can wipe the HDD in the Tab "Disks". Be sure to select the correct block device, as you cannot undo the disk wipe.

If you want to use the data that is on the HDD, you can add the mounted HDD as a storage to the PVE node by adding a new storage at "Datacenter > Storage" and then "Add > Directory" and use the directory /mnt/hdd (where you mounted the HDD) as the directory.