<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><font size="-1"><font face="Verdana">I'm just getting started
with LXC. I'm trying to add</font></font> a storage pool, but
it's telling me that it's read-only.</p>
<blockquote>
<p>root@debian:/# mkdir /test<br>
root@debian:/# mkdir /test/stor1<br>
root@debian:/# lxc storage create vm dir source=/test/stor1<br>
error: mkdir /test: read-only file system<br>
root@debian:/# ls -laR /test<br>
/test:<br>
total 12<br>
drwxr-xr-x 3 root root 4096 Jul 27 15:42 .<br>
drwxr-xr-x 24 root root 4096 Jul 27 15:42 ..<br>
drwxr-xr-x 2 root root 4096 Jul 27 15:42 stor1<br>
<br>
/test/stor1:<br>
total 8<br>
drwxr-xr-x 2 root root 4096 Jul 27 15:42 .<br>
drwxr-xr-x 3 root root 4096 Jul 27 15:42 ..<br>
root@debian:/# rmdir /test/stor1/<br>
root@debian:/# lxc storage create vm dir source=/test/stor1<br>
error: mkdir /test: read-only file system<br>
root@debian:/# </p>
</blockquote>
<p>It doesn't seem to matter whether the directory exists or not.
Everything LXC/LXD seems to be running as root, and root owns all
the directory structure where I'm trying to install things, so I
don't think it's a POSIX ACL issue. I even made the parent
directory with rwxrwxrwx permissions.<br>
</p>
<p>I was able to add a storage pool beside the default one</p>
<p>+---------+-------------+--------+------------------------------------------------+---------+<br>
| NAME | DESCRIPTION | DRIVER |
SOURCE | USED BY |<br>
+---------+-------------+--------+------------------------------------------------+---------+<br>
| default | | dir |
/var/snap/lxd/common/lxd/storage-pools/default | 2 |<br>
+---------+-------------+--------+------------------------------------------------+---------+<br>
| vm | | dir |
/var/snap/lxd/common/lxd/storage-pools/vm | 0 |<br>
+---------+-------------+--------+------------------------------------------------+---------+<br>
</p>
<p>But that doesn't help me.</p>
<p>I'm using a pristine Debian 9 install, and have tried both the
stable (2.15) and candidate (2.16) LXC versions, installed as
snaps. I have tried the same command in the try-it online
feature, and it works there.</p>
<p>What am I doing wrong?</p>
<p>Tony</p>
<p><br>
</p>
</body>
</html>