Eu preciso de algum espaço livre em uma VM, então adicionei 50 GB usando o ESXi.
Agora eu tenho que fazer uma partição usar esse novo espaço livre.
O problema é que a VM já tem 4 partições primárias , então não posso criar uma nova.
Então eu deveria estender um.
A partição que quero redimensionar está em um VolGroup00 / LogVol00.
É inicialmente 70Gb, e eu quero fazer 120Gb ...
O que tentei / erros ocorreram (com base nesses artigos, entre outros: source1 e source2 ):
saída:
Disk /dev/sda: 161.1 GB, 161061273600 bytes
255 heads, 63 sectors/track, 19581 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000cd2dc
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3750 30113792 83 Linux
/dev/sda2 3750 3917 1340417 5 Extended
/dev/sda3 3917 9137 41936696+ 83 Linux
/dev/sda4 9138 13054 31463302+ 83 Linux
/dev/sda5 3750 3917 1340416 82 Linux swap / Solaris
saída:
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
- CTRL C (para sair do fdisk)
- shutdown -r now (reinicie como solicitado ...)
- pvcreate / dev / sda4
Can't initialize physical volume "/dev/sda4" of volume group "VolGroup00" without -ff
- pvcreate / dev / sda4 -ff |
Can't open /dev/sda4 exclusively. Mounted filesystem?
- umount / dev / sda4
umount: /dev/sda4: not mounted
- pvremove / dev / sda4 -ff
%código%
- vgextend VolGroup00 / dev / sda4
WARNING: Wiping physical volume label from /dev/sda4 of volume group "VolGroup00"
Can't open /dev/sda4 exclusively - not removing. Mounted filesystem?
- vgdisplay
saída:
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 2
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 2
Act PV 2
VG Size 70,00 GiB
PE Size 4,00 MiB
Total PE 17919
Alloc PE / Size 17919 / 70,00 GiB
Free PE / Size 0 / 0
VG UUID DilwAt-lYkm-lwIU-ngE4-1slV-gZR9-G4jStd
Nós vemos que não há espaço livre para o grupo de volume ... tão sem saída ...
Eu tentei parar processos como o mysql / apache / tomcat (que pode usar essa partição, que contém o banco de dados ...), mas nada muda ...