How do I add a new SSD hard drive to VM?

neilsonwheels

New Member
Jul 2, 2023
20
2
3
I understand how to add a new drive to my PVE and use it as storage, but do I need to do anything different to add a new drive that a VM can use as storage?
I am running a VM on the PVe's local-lvm, but want to make use of a new 2TB SSD that the VM can use for storing media.

Additionally, is it beneficial to use ZFS on the new drive?

Thanks.
 
Last edited:
Hi,
when you add the drive to Proxmox, make sure you select Disk image + Container as the allowed content, this can also be done after creation.
Then you should be able to select that storage when adding hard disks to existing vm's or as storage for new vm images. If you want to move over an existing vm's drive, you can go to that vm's hardware tab, select the hard disk and under Disk Action, select Move Storage.

As for ZFS, it is at its strongest when using multiple drives, but even on a single drive it can have a lot of benefits:
  • Bit rot detection, can be an early sign of a failing disk
  • Compression
  • Deduplication (if manually enabled)
  • Snapshots, when on zfs, proxmox uses the build-in snapshot feature
But in general also some downsides:
  • RAM usage, ZFS benefits strongly from having a lot of RAM to keep stuff in memory
  • Expanding a zfs pool can be cumbersome
 
  • Like
Reactions: neilsonwheels