设备未处于可用状态/尝试从 lv 创建 pv

设备未处于可用状态/尝试从 lv 创建 pv

我认为这是一个新手问题,我尝试创建一个嵌套的lvm或堆栈lvm。所以我尝试从 lv 创建一个 pv,但我只收到以下消息:

pvcreate /dev/SSD-Pool/raid1-ssd

Cannot use /dev/SSD-Pool/raid1-ssd: device is not in a usable state

root@node01:/dev/SSD-Pool# lvs -a
  LV                   VG       Attr       LSize   Pool      Origin Data%  Meta%  Move Log Cpy%Sync Convert
  base-101-disk-0      SSD-Pool Vri---tz-k  50.00g fast_thin
  base-105-disk-0      SSD-Pool Vri---tz-k  50.00g fast_thin
  fast_thin            SSD-Pool twi-aotz-- 600.00g                  23.42  22.24
  [fast_thin_tdata]    SSD-Pool Twi-ao---- 600.00g
  [fast_thin_tmeta]    SSD-Pool ewi-ao----  76.00m
  [lvol0_pmspare]      SSD-Pool ewi------- 112.00m
  raid1-ssd            SSD-Pool Rwi-a-r--- 223.56g                                         100.00
  [raid1-ssd_rimage_0] SSD-Pool iwi-aor--- 223.56g
  [raid1-ssd_rimage_1] SSD-Pool iwi-aor--- 223.56g
  [raid1-ssd_rmeta_0]  SSD-Pool ewi-aor---   4.00m
  [raid1-ssd_rmeta_1]  SSD-Pool ewi-aor---   4.00m
  vm-100-disk-0        SSD-Pool Vwi-aotz-- 120.00g fast_thin        84.50
  vm-102-disk-0        SSD-Pool Vwi-aotz--  50.00g fast_thin        48.69
  vm-103-disk-0        SSD-Pool Vwi-a-tz-- 100.00g fast_thin        1.64
  vm-104-disk-0        SSD-Pool Vwi-aotz--  10.00g fast_thin        92.72
  Backup               Stuff    -wi-ao---- 500.00g
  base-102-disk-0      Stuff    Vri---tz-k  50.00g myStuff
  base-108-disk-0      Stuff    Vri---tz-k  50.00g myStuff
  base-110-disk-0      Stuff    Vri---tz-k  50.00g myStuff
  [lvol0_pmspare]      Stuff    ewi------- 104.00m
  myStuff              Stuff    twi-aotz--  <6.35t                  3.10   11.91
  [myStuff_tdata]      Stuff    Twi-ao----  <6.35t
  [myStuff_tmeta]      Stuff    ewi-ao---- 104.00m
  vm-100-disk-0        Stuff    Vwi-aotz-- 120.00g myStuff          20.30
  vm-104-disk-0        Stuff    Vwi-a-tz--  50.00g myStuff          7.62
  vm-104-disk-1        Stuff    Vwi-a-tz--  50.00g myStuff          11.65
  vm-105-disk-0        Stuff    Vwi-a-tz-- 100.00g myStuff          20.42
  vm-106-disk-0        Stuff    Vwi-a-tz--  10.00g myStuff          100.00
  data                 pve      twi-a-tz--  59.66g                  0.00   1.59
  [data_tdata]         pve      Twi-ao----  59.66g
  [data_tmeta]         pve      ewi-ao----   1.00g
  [lvol0_pmspare]      pve      ewi-------   1.00g
  root                 pve      -wi-ao----  27.75g
  swap                 pve      -wi-ao----   8.00g



pvcreate -vvvv 输出

知道如何排除故障或继续吗?谢谢!

答案1

最有可能的是,您需要scan_lvs在您的/etc/lvm/lvm.conf

如果这仍然不起作用,则该设备可能会被过滤掉,在这种情况下,您可能需要修改该filter选项。

相关内容