LXD disk devices

preview_player
Показать описание
LXD supports a variety of device types for use with its instances.
In this video, we'll be going over the "disk" device type.

This is one the most versatile device in LXD, supporting such varied setup as providing the main storage for an instance, passing in a directory from the host system or providing install media to virtual machines.

RESOURCES:
Рекомендации по теме
Комментарии
Автор

Very helpful, Thanks for taking the time to demo the disk device.

RedNekTek
Автор

Would be nice if all the commands used in the video were listed somewhere as well ...

san-chil
Автор

How does one make all the disks(/dev/sdb, /dev/sdc . . . etc) available and then MAAS and JUJU will access them? for for instance juju run ceph-osd/0 add-disk osd-devices=/dev/sdc1

troubadourNone
Автор

a very important question is not covered = how to mount block device inside a container (not a vm)?

aceqbaceq
Автор

This does not work for me
```
# Create a volume in the default pool
lxc storage volume create default bigdk size=200GiB
# Mount it n my LXC container, c1
lxc config device add c1 bigdk disk pool=default source=bigdk path=/mnt/bigdk
lxc exec c1 -- df -h
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p2 28G 26G 102M 100% /
none 492K 4.0K 488K 1% /dev
udev 7.7G 0 7.7G 0% /dev/tty
tmpfs 100K 0 100K 0% /dev/lxd
tmpfs 100K 0 100K 0% /dev/.lxd-mounts
tmpfs 7.7G 0 7.7G 0% /dev/shm
tmpfs 3.1G 84K 3.1G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock

WorikStanton
welcome to shbcf.ru