Cant add ZFS to storage, New node in cluster.

p.lakis

New Member
Jul 11, 2018
23
0
1
38
hey

So i added another node to my cluster,
Im using local ZFS only for VM data. I created the pool but cant mount it through cli or web interface.
I can add the zfs pool as a directory though but not as a ZFS pool.

the zfs pool shows in all outputs
# zfs list
# zpool status

Im thinking its something to do with the cluster? when i manually enter it in /etc/pve/storage the error says pool does not exist although i can see it through the zfs commands.

any help would be appreciated.

thanks
 
Head do the command line and run

zfs get all yourzpool

Or if you've got a dataset created,

zfs get all yourzpool/yourdataset
 
Code:
# zfs get all sn001vm/data
NAME          PROPERTY              VALUE                  SOURCE
sn001vm/data  type                  filesystem             -
sn001vm/data  creation              Mon Jul 16 21:33 2018  -
sn001vm/data  used                  54.9M                  -
sn001vm/data  available             1.05T                  -
sn001vm/data  referenced            54.9M                  -
sn001vm/data  compressratio         1.05x                  -
sn001vm/data  mounted               yes                    -
sn001vm/data  quota                 none                   default
sn001vm/data  reservation           none                   default
sn001vm/data  recordsize            128K                   default
sn001vm/data  mountpoint            /sn001vm/data          default
sn001vm/data  sharenfs              off                    default
sn001vm/data  checksum              on                     default
sn001vm/data  compression           on                     local
sn001vm/data  atime                 on                     default
sn001vm/data  devices               on                     default
sn001vm/data  exec                  on                     default
sn001vm/data  setuid                on                     default
sn001vm/data  readonly              off                    default
sn001vm/data  zoned                 off                    default
sn001vm/data  snapdir               hidden                 default
sn001vm/data  aclinherit            restricted             default
sn001vm/data  createtxg             14                     -
sn001vm/data  canmount              on                     default
sn001vm/data  xattr                 on                     default
sn001vm/data  copies                1                      default
sn001vm/data  version               5                      -
sn001vm/data  utf8only              off                    -
sn001vm/data  normalization         none                   -
sn001vm/data  casesensitivity       sensitive              -
sn001vm/data  vscan                 off                    default
sn001vm/data  nbmand                off                    default
sn001vm/data  sharesmb              off                    default
sn001vm/data  refquota              none                   default
sn001vm/data  refreservation        none                   default
sn001vm/data  guid                  14327050675790099010   -
sn001vm/data  primarycache          all                    default
sn001vm/data  secondarycache        all                    default
sn001vm/data  usedbysnapshots       0B                     -
sn001vm/data  usedbydataset         54.9M                  -
sn001vm/data  usedbychildren        0B                     -
sn001vm/data  usedbyrefreservation  0B                     -
sn001vm/data  logbias               latency                default
sn001vm/data  dedup                 off                    default
sn001vm/data  mlslabel              none                   default
sn001vm/data  sync                  standard               default
sn001vm/data  dnodesize             legacy                 default
sn001vm/data  refcompressratio      1.05x                  -
sn001vm/data  written               54.9M                  -
sn001vm/data  logicalused           57.9M                  -
sn001vm/data  logicalreferenced     57.9M                  -
sn001vm/data  volmode               default                default
sn001vm/data  filesystem_limit      none                   default
sn001vm/data  snapshot_limit        none                   default
sn001vm/data  filesystem_count      none                   default
sn001vm/data  snapshot_count        none                   default
sn001vm/data  snapdev               hidden                 default
sn001vm/data  acltype               off                    default
sn001vm/data  context               none                   default
sn001vm/data  fscontext             none                   default
sn001vm/data  defcontext            none                   default
sn001vm/data  rootcontext           none                   default
sn001vm/data  relatime              off                    default
sn001vm/data  redundant_metadata    all                    default
sn001vm/data  overlay               off                    default


Both return
 
Well, that all looks fine, so you should be able to add it in the GUI. You also mentioned that you tried to add the storage at the CLI. Were you trying to do that by editing /etc/pve/storage.cnf? I worry about using a work around when you should be able to just make the storage entry in the standard way, but this may get you up and running. You could add an entry like this to stroage.cnf,

Code:
zfspool: displayname
        pool sn001vm/data
        content images,rootdir
        sparse 1
 
After restarting the entire cluster it worked.

So i guess that you cant import a zpool to an existing cluster??
 

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!