扩展逻辑卷,从其他人那里窃取

扩展逻辑卷,从其他人那里窃取

因此,我一直在研究 OpenStack,并注意到创建的 cinder 卷只有 20GB。我需要增加它(或者至少我 99% 确定我需要增加它 :) )

正在查看系统

目前这是 vgs 的状态

[root@openstack ~]# vgs
 VG               #PV #LV #SN Attr   VSize  VFree
 centos_openstack   3   3   0 wz--n-  5.46t  60.00m
 cinder-volumes     1   2   0 wz--n- 20.60g 612.00m

这是物理卷本身

[root@openstack ~]# pvs
  PV             VG               Fmt  Attr PSize  PFree
  /dev/loop1     cinder-volumes   lvm2 a--  20.60g 612.00m
  /dev/nvme0n1p3 centos_openstack lvm2 a--   1.82t  60.00m
  /dev/nvme1n1p1 centos_openstack lvm2 a--   1.82t      0
 /dev/nvme2n1p1 centos_openstack lvm2 a--   1.82t      0

这是整个文件系统。

[root@openstack ~]# df -h
Filesystem                         Size  Used Avail Use% Mounted on
/dev/mapper/centos_openstack-root   50G   21G   30G  41% /
devtmpfs                           126G     0  126G   0% /dev
tmpfs                              126G  4.0K  126G   1% /dev/shm
tmpfs                              126G  450M  126G   1% /run
tmpfs                              126G     0  126G   0% /sys/fs/cgroup
/dev/nvme0n1p2                     497M  165M  332M  34% /boot
/dev/nvme0n1p1                     200M  9.5M  191M   5% /boot/efi
/dev/loop0                         1.9G  6.1M  1.7G   1% /srv/node/swiftloopback
/dev/mapper/centos_openstack-home  5.5T   33M  5.5T   1% /home
tmpfs                               26G     0   26G   0% /run/user/1000
tmpfs                               26G     0   26G   0% /run/user/0



    pvdisplay
      --- Physical volume ---
      PV Name               /dev/nvme0n1p3
      VG Name               centos_openstack
      PV Size               1.82 TiB / not usable 4.00 MiB
      Allocatable           yes
      PE Size               4.00 MiB
      Total PE              476756
      Free PE               15
      Allocated PE          476741
      PV UUID               80VCZq-TfYz-ys8B-TmMB-yJzc-3UCg-MUfHKR

      --- Physical volume ---
      PV Name               /dev/nvme1n1p1
      VG Name               centos_openstack
      PV Size               1.82 TiB / not usable 4.00 MiB
      Allocatable           yes (but full)
      PE Size               4.00 MiB
      Total PE              476931
      Free PE               0
      Allocated PE          476931
      PV UUID               ZmAIas-jPNP-bAFr-O5DA-0QTa-y7Jw-RlNAES

      --- Physical volume ---
      PV Name               /dev/nvme2n1p1
      VG Name               centos_openstack
      PV Size               1.82 TiB / not usable 4.00 MiB
      Allocatable           yes (but full)
      PE Size               4.00 MiB
      Total PE              476931
      Free PE               0
      Allocated PE          476931
      PV UUID               vhJ75z-5qoc-tPZM-vzWn-p5RU-vSYb-ADkfGG

      --- Physical volume ---
      PV Name               /dev/loop1
      VG Name               cinder-volumes
      PV Size               20.60 GiB / not usable 2.00 MiB
      Allocatable           yes
      PE Size               4.00 MiB
      Total PE              5273
      Free PE               153
      Allocated PE          5120
      PV UUID               nWurkY-Bwlv-YjMc-wYH5-yPi4-47x6-GVgJL2

所以基本上我的最终目标是让 cinder-volumes 拥有大约 5T 的空间,并让 centos_openstack 拥有剩余的半 TB。

我在网上搜索时发现了这个指导。但我基本上是太害怕去遵循它...就像没有看到 /dev/loop1 作为挂载点,df -h 以及不明白为什么 5.5TB 在 centos_openstack 挂载中以及如何减少该大小以将其提供给 cinder-volumes。

无论如何,TL;DR --- 我太害怕去做我想做的事情了,如果有人能帮助指导我实现最终目标(使 Cinder 卷大小达到约 5TB),我将不胜感激

相关内容