[隨筆] Proxmox VE 常用指令筆記

ZFS Pool 增加 ZFS 硬碟

#ls /dev/disk/by-id

1
2
3
4
5
6
7
8
9
10
11
[email protected]:~# ls /dev/disk/by-id
scsi-36782bcb01d6dd9002199a07f11dcde07
scsi-36782bcb01d6dd9002199a07f11dcde07-part1
scsi-36782bcb01d6dd9002199a07f11dcde07-part2
scsi-36782bcb01d6dd9002199a07f11dcde07-part9
scsi-36782bcb01d6dd9002199a0b8153ff675
wwn-0x6782bcb01d6dd9002199a07f11dcde07
wwn-0x6782bcb01d6dd9002199a07f11dcde07-part1
wwn-0x6782bcb01d6dd9002199a07f11dcde07-part2
wwn-0x6782bcb01d6dd9002199a07f11dcde07-part9
wwn-0x6782bcb01d6dd9002199a0b8153ff675
1
2
3
# ZFS Mirror
zpool create -f -o ashift=12 <poolname> mirror/
/dev/disk/by-id/scsi-36782bcb01d6dd9002199a0b8153ff675

ZFS System Snapshot

  1. 查看目前有哪些 zfs 的 data sets:zfs list -t all 注意到 proxmox 預設將最上層的 data set 叫做 rpool。
  2. 建立整個 zfs 系統的快照, 遞迴地包含 rpool 底下的每個 data set。
    快照命名為 0-fresh,zfs snapshot -r [email protected] 不用半秒鐘就建好了!
  3. 再次列出 data sets 的清單: zfs list -t all
  4. 以後如果有必要,可以用 zfs rollback

Fix Update

To fix this, its similar to V3.X and V4.X. We need to add one repository :
nano /etc/apt/sources.list

Passthrough HDD to KVM

Nested Virtualization (Guest OS 調用虛擬化)

Install SNMP Service on Proxmox VE

LSI MSM on Debian

Qemu Agent 節省記憶體

Intel Graphic Passthough

Windows VM 設定

  • 待補