proxmox ve:刪除 VM磁碟/CT磁區 err: zfs error: cannot destroy 'rpool/data/subvol-202-disk-0': dataset is busy

2024-08-25

狀況:
當 node1 中的 容器202 遷移到 node2 失敗後
造成:

  • 無法再次執行 遷移 作業
  • 在 node2 無法刪除容器的磁碟
    刪除node2容器的磁碟,會出現
    zfs error: cannot destroy 'rpool/data/subvol-202-disk-0': dataset is busy

cli 查詢:

root@pve6:~# zfs destroy rpool/data/subvol-202-disk-0
cannot destroy 'rpool/data/subvol-202-disk-0': dataset is busy

root@pve6:~# zfs list
NAME                           USED  AVAIL     REFER  MOUNTPOINT
rpool                         12.3G   886G      128K  /rpool
rpool/ROOT                    1.49G   886G      128K  /rpool/ROOT
rpool/ROOT/pve-1              1.49G   886G     1.49G  /
rpool/data                    10.8G   886G      128K  /rpool/data
rpool/data/subvol-102-disk-0   427M  7.58G      427M  /rpool/data/subvol-102-disk-0
rpool/data/subvol-202-disk-0   102M   886G      102M  /rpool/data/subvol-202-disk-0
rpool/data/vm-211-disk-0      10.3G   886G     10.3G  -


root@pve6:~# zfs destroy -r -f rpool/data/subvol-202-disk-0
cannot destroy 'rpool/data/subvol-202-disk-0': dataset is busy

解決辦法,node2 中 刪掉卡住的 process

root@pve6:~# ps ax|grep zfs
1473074 ?        Ss     0:00 /usr/bin/perl /usr/sbin/pvesm import local-zfs:subvol-202-disk-0 zfs - -with-snapshots 1 -snapshot __replicate_202-3_1724567072__ -allow-rename 0
1474468 ?        S      0:00 zfs recv -F -- rpool/data/subvol-202-disk-0
2178691 ?        Ss     0:00 /usr/bin/perl /usr/sbin/pvesm import local-zfs:vm-108-disk-0 zfs - -with-snapshots 1 -snapshot __replicate_108-3_1724568760__ -allow-rename 0
2178693 ?        S      0:09 zfs recv -F -- rpool/data/vm-108-disk-0
2621410 pts/3    S+     0:00 grep zfs

root@pve6:~# kill 1473074
分類:Proxmox VE      96
Tag proxmox , pve ,
留言

留言
top