<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Howdy!<br>
<br>
I am experimenting with ZFS and LXC.<br>
<br>
As a test on my host I have two ZFS filesystems: <i>/tank/lxc</i>
for containers and <i>/tank/lxc_postgresql</i> for bind mounting in
a container. I have the container fstab working (<i>/tank/lxc_postgresql
var/lib/postgresql none bind</i>) where <i>/tank/lxc_postgresql</i>
on my host is equivalent to <i>/var/lib/postgresql/</i> within the
container.<br>
<br>
The problem comes when I try to install PostgreSQL. It complains
that, during install, it can not change the permissions on <i>/var/lib/postgresql/</i>.
I have tried changing the permissions from the host (to the same
permissions the rest of the folders in <i>/var/lib/</i> have) and
from the container. I have tried bind mounting at <i>/media/postgresql/</i>
and creating a symlink to <i>/var/lib/postgresql/</i> (not so much
because I do not understand why it failed but because I was running
out of ideas). I am not sure how to get this working...<br>
<br>
I ultimately want to do this with a number of containers (some
should have dedup, some should have a different block sizes, ect)
but can not even get it working with a single container. Any ideas
would be appreciated.<br>
<br>
Thanks in advance!<br>
</body>
</html>