AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / user-639470

masteer's questions

Martin Hope
masteer
Asked: 2024-08-23 18:30:05 +0800 CST

lvextend não está usando espaço livre?

  • 6

Estou tentando aumentar o tamanho do meu pv/vg/lv depois de adicionar um novo gabinete de armazenamento e criei 2 novos volumes e anexei-os ao host. Embora o aumento de PV e VG tenha funcionado muito bem, parece que LV não vê nenhum espaço livre. Talvez alguém possa me indicar a direção certa por que isso não está funcionando?

O que foi feito até agora:

rescan-scsi-bus.sh -r

pvcreate /dev/mapper/mpathe
  Physical volume "/dev/mapper/mpathe" successfully created.
pvcreate /dev/mapper/mpathf
  Physical volume "/dev/mapper/mpathf" successfully created.
vgextend vgall /dev/mapper/mpathe
  Volume group "vgall" successfully extended
vgextend vgall /dev/mapper/mpathf
  Volume group "vgall" successfully extended

mas agora lvextend mostra isso:

lvextend -l +100%FREE /dev/vgall/lvol0
  Using stripesize of last segment 4.00 KiB
  Rounding size (152285551 extents) down to stripe boundary size for segment (152285548 extents)
  Size of logical volume vgall/lvol0 changed from 478.39 TiB (125408168 extents) to 478.51 TiB (125439052 extents).
  Logical volume vgall/lvol0 successfully resized.

o que basicamente não é nada, e as execuções subsequentes mostram:

lvextend -l +100%FREE  /dev/vgall/lvol0
  Using stripesize of last segment 4.00 KiB
  Rounding size (152285551 extents) down to stripe boundary size for segment (152285548 extents)
  Size of logical volume vgall/lvol0 unchanged from 478.51 TiB (125439052 extents).
  Command failed with status code 5.

Saída do display PV / LV / VG abaixo:

  --- Physical volume ---
  PV Name               /dev/mapper/mpatha
  VG Name               vgall
  PV Size               <119.60 TiB / not usable 4.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              31352042
  Free PE               0
  Allocated PE          31352042

  --- Physical volume ---
  PV Name               /dev/mapper/mpathb
  VG Name               vgall
  PV Size               <119.63 TiB / not usable 4.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              31359763
  Free PE               0
  Allocated PE          31359763

  --- Physical volume ---
  PV Name               /dev/mapper/mpathc
  VG Name               vgall
  PV Size               <119.60 TiB / not usable 4.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              31352042
  Free PE               0
  Allocated PE          31352042

  --- Physical volume ---
  PV Name               /dev/mapper/mpathd
  VG Name               vgall
  PV Size               <119.63 TiB / not usable 4.00 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              31359763
  Free PE               0
  Allocated PE          31359763

  --- Physical volume ---
  PV Name               /dev/mapper/mpathe
  VG Name               vgall
  PV Size               <51.27 TiB / not usable 4.00 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              13438976
  Free PE               13431255
  Allocated PE          7721

  --- Physical volume ---
  PV Name               /dev/mapper/mpathf
  VG Name               vgall
  PV Size               51.20 TiB / not usable 4.00 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              13422965
  Free PE               13415244
  Allocated PE          7721


  --- Volume group ---
  VG Name               vgall
  System ID
  Format                lvm2
  Metadata Areas        6
  Metadata Sequence No  5
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                6
  Act PV                6
  VG Size               580.92 TiB
  PE Size               4.00 MiB
  Total PE              152285551
  Alloc PE / Size       125439052 / 478.51 TiB
  Free  PE / Size       26846499 / 102.41 TiB


  --- Logical volume ---
  LV Path                /dev/vgall/lvol0
  LV Name                lvol0
  VG Name                vgall
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                478.51 TiB
  Current LE             125439052
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:6



lvdisplay -m /dev/vgall/lvol0
  --- Logical volume ---
  LV Path                /dev/vgall/lvol0
  LV Name                lvol0
  VG Name                vgall
  LV UUID                MKcUYB-dAoJ-qJq1-hQEy-ArGl-c0bi-WKY0bU
  LV Write Access        read/write
  LV Creation host, time localhost.localdomain, 2023-10-04 20:00:04 +0200
  LV Status              available
  # open                 1
  LV Size                478.51 TiB
  Current LE             125439052
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:6

  --- Segments ---
  Logical extents 0 to 125408167:
    Type                striped
    Stripes             4
    Stripe size         4.00 KiB
    Stripe 0:
      Physical volume   /dev/mapper/mpathb
      Physical extents  0 to 31352041
    Stripe 1:
      Physical volume   /dev/mapper/mpathd
      Physical extents  0 to 31352041
    Stripe 2:
      Physical volume   /dev/mapper/mpatha
      Physical extents  0 to 31352041
    Stripe 3:
      Physical volume   /dev/mapper/mpathc
      Physical extents  0 to 31352041

  Logical extents 125408168 to 125439051:
    Type                striped
    Stripes             4
    Stripe size         4.00 KiB
    Stripe 0:
      Physical volume   /dev/mapper/mpathe
      Physical extents  0 to 7720
    Stripe 1:
      Physical volume   /dev/mapper/mpathf
      Physical extents  0 to 7720
    Stripe 2:
      Physical volume   /dev/mapper/mpathb
      Physical extents  31352042 to 31359762
    Stripe 3:
      Physical volume   /dev/mapper/mpathd
      Physical extents  31352042 to 31359762

lvm
  • 3 respostas
  • 41 Views

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Possível firmware ausente /lib/firmware/i915/* para o módulo i915

    • 3 respostas
  • Marko Smith

    Falha ao buscar o repositório de backports jessie

    • 4 respostas
  • Marko Smith

    Como exportar uma chave privada GPG e uma chave pública para um arquivo

    • 4 respostas
  • Marko Smith

    Como podemos executar um comando armazenado em uma variável?

    • 5 respostas
  • Marko Smith

    Como configurar o systemd-resolved e o systemd-networkd para usar o servidor DNS local para resolver domínios locais e o servidor DNS remoto para domínios remotos?

    • 3 respostas
  • Marko Smith

    apt-get update error no Kali Linux após a atualização do dist [duplicado]

    • 2 respostas
  • Marko Smith

    Como ver as últimas linhas x do log de serviço systemctl

    • 5 respostas
  • Marko Smith

    Nano - pule para o final do arquivo

    • 8 respostas
  • Marko Smith

    erro grub: você precisa carregar o kernel primeiro

    • 4 respostas
  • Marko Smith

    Como baixar o pacote não instalá-lo com o comando apt-get?

    • 7 respostas
  • Martin Hope
    user12345 Falha ao buscar o repositório de backports jessie 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl Por que a maioria dos exemplos do systemd contém WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky Como exportar uma chave privada GPG e uma chave pública para um arquivo 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll status systemctl mostra: "Estado: degradado" 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim Como podemos executar um comando armazenado em uma variável? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S Por que /dev/null é um arquivo? Por que sua função não é implementada como um programa simples? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 Como ver as últimas linhas x do log de serviço systemctl 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - pule para o final do arquivo 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla Por que verdadeiro e falso são tão grandes? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis Substitua a string em um arquivo de texto enorme (70 GB), uma linha 2017-12-30 06:58:33 +0800 CST

Hot tag

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve