cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Cloud



Etc


Reference














.

middleware:container:lxd:storage-backend.html



LXD CLI Commands Cheet Sheat

LXD Storage Backend

How to change storage backend

root@lxd-host:~# lxd init --auto --storage-backend dir
LXD has been successfully configured.

root@lxd-host:~# lxc info
...
  storage: dir
...

How to Check Storage Backend

# lxc storage list
+---------+--------+------------------------------------+---------+
|  NAME   | DRIVER |               SOURCE               | USED BY |
+---------+--------+------------------------------------+---------+
| default | dir    | /var/lib/lxd/storage-pools/default | 11      |
+---------+--------+------------------------------------+---------+
| pool1   | zfs    | lxdstorage/containers              | 0       |
+---------+--------+------------------------------------+---------+

How to fix Strage Backend

# lxc init <image> <name> -s <pool>

How to change Storage Backend

# lcx stop c1
# lxc lxc publish -f c1 --alias c1
# lxc delete c1
# lxc init c1 c1 -s <new pool>
# lxc start c1
# lxc image delete c1


References


LXD CLI Commands Cheet Sheat



LXD CLI Commands Cheet Sheat




middleware/container/lxd/storage-backend.html.txt ยท Last modified: 2020/03/25 by admin

Page Tools