如何创建可用盘区,以便替换此 lvm 卷组中的物理驱动器?

如何创建可用盘区,以便替换此 lvm 卷组中的物理驱动器?

我有一个 Fedora Linux 28 系统,有 4 个物理驱动器合而为一LVM Volume Group。该系统的主板只有 4 个 SATA 插槽。我的目标是/dev/sdd从卷组中删除物理驱动器。我在安装 Fedora 期间设置了这个 LVM 卷组,此后我没有对其进行任何更改。

sudo lvm pvdisplay -m输出以下内容:

 --- Physical volume ---
  PV Name               /dev/sdb2
  VG Name               fedora
  PV Size               <148.05 GiB / not usable 2.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              37900
  Free PE               0
  Allocated PE          37900
  PV UUID               VWJMSa-pvQ2-7Ih8-viHe-buy2-PYJC-GEefBa

  --- Physical Segments ---
  Physical extent 0 to 37899:
    Logical volume  /dev/fedora/root
    Logical extents 76310 to 114209

  --- Physical volume ---
  PV Name               /dev/sdc1
  VG Name               fedora
  PV Size               <74.53 GiB / not usable 2.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              19079
  Free PE               0
  Allocated PE          19079
  PV UUID               fiknY0-2s1A-tk8S-TLBz-WH2E-DAjH-DdSEoD

  --- Physical Segments ---
  Physical extent 0 to 19078:
    Logical volume  /dev/fedora/root
    Logical extents 114210 to 133288

  --- Physical volume ---
  PV Name               /dev/sdd1
  VG Name               fedora
  PV Size               <74.53 GiB / not usable 2.00 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              19079
  Free PE               1
  Allocated PE          19078
  PV UUID               nIeix3-CrhC-BM3o-ZBFU-xowH-h2MS-LohQZ6

  --- Physical Segments ---
  Physical extent 0 to 18082:
    Logical volume  /dev/fedora/root
    Logical extents 133289 to 151371
  Physical extent 18083 to 19077:
    Logical volume  /dev/fedora/swap
    Logical extents 0 to 994
  Physical extent 19078 to 19078:
    FREE

  --- Physical volume ---
  PV Name               /dev/sda1
  VG Name               fedora
  PV Size               <298.09 GiB / not usable 4.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              76310
  Free PE               0
  Allocated PE          76310
  PV UUID               emQpJu-VuAs-20mU-KcJz-d8Wu-wAJK-8caUof

  --- Physical Segments ---
  Physical extent 0 to 76309:
    Logical volume  /dev/fedora/root
    Logical extents 0 to 76309

我正在尝试跟随本指南,它描述了如何使用该pvmove命令,但运行时pvmove /dev/sdd1出现此错误:

No extents available for allocation.

如何为分配过程创建盘区?

编辑

lvm pvs

PV         VG     Fmt  Attr PSize    PFree
/dev/sda1  fedora lvm2 a--  <298.09g    0
/dev/sdb2  fedora lvm2 a--  <148.05g    0
/dev/sdc1  fedora lvm2 a--   <74.53g    0
/dev/sdd1  fedora lvm2 a--   <74.53g 4.00m

lvm lvs

LV   VG     Attr       LSize    Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root fedora -wi-ao---- <591.30g
  swap fedora -wi-ao----   <3.89g

lvm vgs

  VG     #PV #LV #SN Attr   VSize    VFree
  fedora   4   2   0 wz--n- <595.19g 4.00m

编辑2

df -Th

/dev/mapper/fedora-root ext4      582G  443G  110G  81% /

相关内容