Installation problem with ZFS root on SD card with var mounted from another ZFS pool

ramesh

Active Member
Nov 18, 2015
13
0
41
I am currently testing the installation on a DELL t-630 server. PVE is installed with root-ZFS on SD card modules (16gb size, dual-cards, hardware mirrored). I am trying to move the /var folder to another ZFS file system with regular sas hdds.

The root is on rpool on the SDcard.
var is on another pool called fastpl01, with zfs mountpoint set to /var.

Once /var has been moved to fastpl01, the system refuses to mount /var saying "unable to open dataset". But the /var folder on the SDcard has content already written to it.

I have tried setting zfs mountpoint to legacy and adding an entry in fstab. But I get the same error.

I have also tried creating a zvol with ext2 filesystem for /var and adding an entry in fstab. THis time the system boots fine, but lxcfs throws an error saying unable to start service.

Since root is also ZFS, i dont understand why it is causing a problem to mount var from another dataset.

Can somebody help?
 
PROBLEM SOLVED: Created a zvol within the zfs dataset on harddisks for /var. Formatted it with ext4 fs. Load /var from fstab and everything is working fine. ALSO: Since space may become a constraint if /var/lib/vz is within /var, I created another zfs dataset with mount point set to /var/lib/vz.
In para 4 of last post, i think i had not copied all the original contents into /var of the ext2 zvol, and that is why I had problems with lxcfs.
Now everything is working fine. Will start testing with some virtual os installations and containers now.
 

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!