LXD disk devices

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ม.ค. 2025

ความคิดเห็น • 9

  • @jblow530
    @jblow530 ปีที่แล้ว +1

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

  • @san-chil
    @san-chil ปีที่แล้ว

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

  • @aceqbaceq777
    @aceqbaceq777 ปีที่แล้ว

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

    • @LXD
      @LXD  ปีที่แล้ว

      That's not usually possible. It's extremely dangerous and therefore not normally allowed by Linux.
      There are some way around that like our mount interception through syscall interception.
      linuxcontainers.org/lxd/docs/latest/syscall-interception/
      th-cam.com/video/Qm0e69Ckdf4/w-d-xo.html

    • @aceqbaceq777
      @aceqbaceq777 ปีที่แล้ว

      @@LXD oh! i got it ! thank you! finally i got 3 vms with +1 additional disk and deployed ceph right on the host without any containers. after that i deployed lxd cluster on the top.

    • @davidkamaunu7887
      @davidkamaunu7887 ปีที่แล้ว

      dont do that .. muy peligroso...

    • @aceqbaceq777
      @aceqbaceq777 ปีที่แล้ว

      @@davidkamaunu7887 pls speak in english

  • @WorikStanton
    @WorikStanton ปีที่แล้ว

    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