melihat storage <x>
dipakai oleh container mana saja
lxc storage volume list <nama_storage>
membuat storage zpool zfs
lxc storage create <nama_zpool> zfs
membuat container baru dengan zpool yang sudah dibuat
lxc launch -s
contoh:
lxc launch ubuntu:18.04 fss -s pool1
hapus lxd container
lxc delete
lihat list zpool yang dapat di import
zpool import
lihat list zpool import dari img file
zpool import -d /var/snap/lxd/common/lxd/disks
"/var/snap/lxd/common/lxd/disks" adalah direktory di mana .img berada
import zpool berdasarkan id dari zpool import
zpool import
lokasi storage pools
/var/snap/lxd/common/lxd/storage-pools/
lain2
/var/snap/lxd/common/mntns/var/snap/lxd/common/lxd/storage-pools/Pool-1/containers/container-name
zfs list
zpool list
zpool status
lxc exec cont-cobazfa1 -- bash
lsblk
fdisk -l
df -h
delete lxc storage
destroy zpool
zpool destroy cobazfs1/containers/cont-cobazfa1
delete lxc storage
lxc storage delete
Mount dan unmount ZFS legacy ke directory
mount:
mount -t zfs cobazfs1/containers/cont-cobazfa1 /cobamount/cobazfs1/
Unmount:
umount cobazfs1/containers/cont-cobazfa1
Mount dan unmount ZFS dir ke directory
zfs mount default/containers/shinobi-coba
jika ada error cannot mount '/export/home/lalt': directory is not empty, use legacy mountpoint to allow this behavior, or use the -O flag
zfs mount -O default/containers/shinobi-coba
unmount
zfs unmount default/containers/shinobi-coba
chown rootfs
chown -R 1000000:1000000 rootfs
Top comments (0)