How can I simply change the default VM/LXC storage location?

wipika

Active Member
Sep 11, 2019
2
0
41
40
Hi all -- please bear with me as I am completely new to Proxmox and I'm trying to figure out everything step by step. My own research hasn't helped me yet to answer a few questions I have.

Short summary:
  • I have installed Proxmox on 2x 32GB SSDs configured as ZFS during the installation. So far so good.
  • I have 2x 500GB SSDs now that I want to use for storing and retaining ALL the VMs and containers I am about to create going forward.
  • I have configured the 2x500GB SSDs as a ZFS pool, named "VM-store".

1568226344167.png

1568226358375.png

1568226375376.png

1568226391009.png

1568226443081.png

I've modified the storage.cfg file as follows, without any success though:



Code:
dir: local
path /var/lib/vz
content vztmpl,backup,iso

zfspool: local-zfs
        pool rpool/data
        content rootdir
        sparse 1

zfspool: VM-store
        pool VM-store
        content rootdir,images,backup,iso,vztmpl
        nodes pve


I'm clearly missing something very basic here, so I would appreciate any help and recommendations for additional reading :).
 
Update: I tried creating a Directory type storage and pointed it to the /VM-store location, which is (in theory) the ZFS RAID1 pool I have created. This allows me to select this location as a target for my LXC container I am trying to create.

Is this the right way to do it (i.e. create a ZFS pool and then create a Directory storage type "on top")? Or am I messing things up? Do I have the ZFS benefits (mirroring in this case) if I do it this way?