hauck
(usa Nenhuma)
Enviado em 17/01/2018 - 23:22h
Quero diminuir 50GB de um PV para usar este espaço como partição normal (não lvm), já tentei usar um live-cd e diminuir pelo gparted mas também não funciona, observem:
# pvdisplay
--- Physical volume ---
PV Name /dev/sda1
VG Name vghauck
PV Size <465.76 GiB / not usable 2.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 119234
Free PE 12800
Allocated PE 106434
PV UUID ZrdsdC-BP9O-Ac7Y-qepK-zllw-SUIo-4WO2Q2
# vgdisplay
--- Volume group ---
VG Name vghauck
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 13
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size <465.76 GiB
PE Size 4.00 MiB
Total PE 119234
Alloc PE / Size 106434 / <415.76 GiB
Free PE / Size 12800 / 50.00 GiB
VG UUID 12iPtB-Cx49-xazc-a4zb-oKc0-uvII-RCNJ32
# pvresize --setphysicalvolumesize 50G --test /dev/sda1
TEST MODE: Metadata will NOT be updated and volumes will not be (de)activated.
/dev/sda1: Requested size 50.00 GiB is less than real size 465.76 GiB. Proceed? [y/n]: y
WARNING: /dev/sda1: Pretending size is 104857600 not 976771072 sectors.
/dev/sda1: cannot resize to 12799 extents as 106434 are allocated.
0 physical volume(s) resized / 1 physical volume(s) not resized