Code: Select all
root@eve-ng:~# dpkg -l eve-ng
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                                  Version                         Architecture                    Description
+++-=====================================================-===============================-===============================-===============================================================================================================
ii  eve-ng                                                2.0.3-60                        amd64                           A new generation software for networking labs.
With unetlab I used this method:
1. power off vm, increase disk size.
2. power on vm, check if unetlab see the new size of disk (fdisk -l /dev/sda), check pvs (it was /dev/sda2), check vgs (rootvg), check lvs (rootvol). The point FS was /dev/dm-0 EXT4.
3. increase /dev/sda2 (fdisk /dev/sda, p, d, 2, n, p, 2, first and last sectors by default, w). Now /dev/sda2 is increased.
4. pvresize /dev/sda2.
5. lvextend -l +100%FREE /dev/rootvg/rootvol
6. resize2fs /dev/rootvg/rootvol
But now there are 5 sda devices:
Code: Select all
root@eve-ng:~# fdisk -l /dev/sda
Disk /dev/sda: 30 GiB, 32212254720 bytes, 62914560 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
Disklabel type: dos
Disk identifier: 0x94fa5649
Device     Boot   Start      End  Sectors  Size Id Type
/dev/sda1  *       2048   999423   997376  487M 83 Linux
/dev/sda2       1001470 62912511 61911042 29.5G  5 Extended
/dev/sda5       1001472 62912511 61911040 29.5G 8e Linux LVM
Any help please?
P.S. really cant understand the logic of LVM.