Ciao a tutti,
Per incrementare lo spazio su uno sme10 con hypervisor proxmox ho seguito questi step:
1-ho incrementato lo spazio disco (+250gb)
2-ho fatto il boot sulla vm con gparted ed ho esteso lo spazio da 500 a 750 gb
Questa la situazione dischi da console prima e dopo:
VGDISPLAY prima:
[root@sme10 ~]# vgdisplay
--- Volume group ---
VG Name main
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size <499,51 GiB
PE Size 4,00 MiB
Total PE 127874
Alloc PE / Size 127873 / 499,50 GiB
Free PE / Size 1 / 4,00 MiB
VG UUID f81o8w-Gztf-uDDf-D5go-UZ7b-oJO6-5PjqGY
VGDISPLAY dopo:
[root@sme10 ~]# vgdisplay
--- Volume group ---
VG Name main
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size <749,51 GiB
PE Size 4,00 MiB
Total PE 191874
Alloc PE / Size 127873 / 499,50 GiB
Free PE / Size 64001 / 250,00 GiB
VG UUID f81o8w-Gztf-uDDf-D5go-UZ7b-oJO6-5PjqGY
parametro PE / Size 250 gb sembra tutto ok
situazione dischi:
[root@sme10 ~]# fdisk -l
Disk /dev/sda: 805.3 GB, 805306368000 bytes, 1572864000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Identificativo disco: 0x000b7d68
Dispositivo Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 1572863999 785918976 8e Linux LVM
Disk /dev/mapper/main-root: 802.6 GB, 802630402048 bytes, 1567637504 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/main-swap: 2147 MB, 2147483648 bytes, 4194304 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
anche qui sembra tutto ok ma purtroppo non è cosi se lancio il comando df
non è cambiato niente...
[root@sme10 ~]# df
File system 1K-blocchi Usati Disponib. Uso% Montato su
devtmpfs 2013620 0 2013620 0% /dev
tmpfs 2022484 0 2022484 0% /dev/shm
tmpfs 2022484 616 2021868 1% /run
tmpfs 2022484 0 2022484 0% /sys/fs/cgroup
/dev/mapper/main-root 521415936 229206428 292209508 44% /
/dev/sda1 508580 87792 420788 18% /boot
tmpfs 404500 0 404500 0% /run/user/0
Grazie in anticipo per qualsiasi suggerimento.
-------------------
risolto con comando
lvresize --extents +100%FREE --resizefs /dev/mapper/main-root
--------------------
[root@sme10 ~]# df -h
File system Dim. Usati Dispon. Uso% Montato su
devtmpfs 2,0G 0 2,0G 0% /dev
tmpfs 2,0G 0 2,0G 0% /dev/shm
tmpfs 2,0G 616K 2,0G 1% /run
tmpfs 2,0G 0 2,0G 0% /sys/fs/cgroup
/dev/mapper/main-root 748G 219G 529G 30% /
/dev/sda1 497M 86M 411M 18% /boot
tmpfs 396M 0 396M 0% /run/user/0