root@truenas[~]#  zfs destroy -f Data/vmdisk/onething_data
cannot destroy 'Data/vmdisk/onething_data': dataset is busy
root@truenas[~]# zfs unmount Data/vmdisk/onething_data
cannot open 'Data/vmdisk/onething_data': operation not applicable to datasets of this type
root@truenas[~]#  zfs destroy -vrRf Data/vmdisk/onething_data
will destroy Data/vmdisk/onething_data
cannot destroy 'Data/vmdisk/onething_data': dataset is busy
root@truenas[~]# vgdisplay
  --- Volume group ---
  VG Name               XRVDDGN6WDVUD0PT_0641_vg
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  145
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                22
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               <4.00 TiB
  PE Size               4.00 MiB
  Total PE              1048575
  Alloc PE / Size       344576 / 1.31 TiB
  Free  PE / Size       703999 / <2.69 TiB
  VG UUID               XD7g3j-JauF-72VG-TvLm-FWM1-jTcM-1iC0Ee

root@truenas[~]# vgremove XRVDDGN6WDVUD0PT_0641_vg
Do you really want to remove volume group "XRVDDGN6WDVUD0PT_0641_vg" containing 22 logical volumes? [y/n]: y
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/XRVDDGN6WDVUD0PT_0641_vg_lv? [y/n]: y
  Logical volume "XRVDDGN6WDVUD0PT_0641_vg_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/db55d8856e8c789e62fa3263dd1d7620_lv? [y/n]: y
  Logical volume "db55d8856e8c789e62fa3263dd1d7620_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/db55d8856e8c789e62fa3263dd1d7620.1_lv? [y/n]: y
  Logical volume "db55d8856e8c789e62fa3263dd1d7620.1_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/db55d8856e8c789e62fa3263dd1d7620.2_lv? [y/n]: y
  Logical volume "db55d8856e8c789e62fa3263dd1d7620.2_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/99ac742d39f5d3909414d4351ce7af91_lv? [y/n]: y
  Logical volume "99ac742d39f5d3909414d4351ce7af91_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/99ac742d39f5d3909414d4351ce7af91.1_lv? [y/n]: y
  Logical volume "99ac742d39f5d3909414d4351ce7af91.1_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/99ac742d39f5d3909414d4351ce7af91.2_lv? [y/n]: y
  Logical volume "99ac742d39f5d3909414d4351ce7af91.2_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/99ac742d39f5d3909414d4351ce7af91.3_lv? [y/n]: y
  Logical volume "99ac742d39f5d3909414d4351ce7af91.3_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/99ac742d39f5d3909414d4351ce7af91.4_lv? [y/n]: y
  Logical volume "99ac742d39f5d3909414d4351ce7af91.4_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/99ac742d39f5d3909414d4351ce7af91.5_lv? [y/n]: y
  Logical volume "99ac742d39f5d3909414d4351ce7af91.5_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/99ac742d39f5d3909414d4351ce7af91.6_lv? [y/n]: y
  Logical volume "99ac742d39f5d3909414d4351ce7af91.6_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/99ac742d39f5d3909414d4351ce7af91.7_lv? [y/n]: y
  Logical volume "99ac742d39f5d3909414d4351ce7af91.7_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/5b442b259766008357b638af7d07d18a_lv? [y/n]: y
  Logical volume "5b442b259766008357b638af7d07d18a_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/5b442b259766008357b638af7d07d18a.1_lv? [y/n]: y
  Logical volume "5b442b259766008357b638af7d07d18a.1_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/4738c6ccc7add075d29a891cb2e4578c_lv? [y/n]: y
  Logical volume "4738c6ccc7add075d29a891cb2e4578c_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/2b94f59b1e4d410cc3d338d5043cd10e_lv? [y/n]: y
  Logical volume "2b94f59b1e4d410cc3d338d5043cd10e_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/2b94f59b1e4d410cc3d338d5043cd10e.1_lv? [y/n]: y
  Logical volume "2b94f59b1e4d410cc3d338d5043cd10e.1_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/db55d8856e8c789e62fa3263dd1d7620.3_lv? [y/n]: y
  Logical volume "db55d8856e8c789e62fa3263dd1d7620.3_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/db55d8856e8c789e62fa3263dd1d7620.4_lv? [y/n]: y
  Logical volume "db55d8856e8c789e62fa3263dd1d7620.4_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/db55d8856e8c789e62fa3263dd1d7620.5_lv? [y/n]: y
  Logical volume "db55d8856e8c789e62fa3263dd1d7620.5_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/db55d8856e8c789e62fa3263dd1d7620.6_lv? [y/n]: y
  Logical volume "db55d8856e8c789e62fa3263dd1d7620.6_lv" successfully removed
Do you really want to remove active logical volume XRVDDGN6WDVUD0PT_0641_vg/db55d8856e8c789e62fa3263dd1d7620.7_lv? [y/n]: y
  Logical volume "db55d8856e8c789e62fa3263dd1d7620.7_lv" successfully removed
  Volume group "XRVDDGN6WDVUD0PT_0641_vg" successfully removed
root@truenas[~]#  zfs destroy -vrRf Data/vmdisk/onething_data
will destroy Data/vmdisk/onething_data
root@truenas[~]#
最后修改:2023 年 07 月 18 日
如果觉得我的文章对你有用,请随意赞赏