hecatae
resident hecatae
- Joined
- Feb 7, 2014
- Messages
- 759
- Reaction score
- 199
Code:
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun May 1 14:02:23 2016
root@xivo:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/dm-0 9.1G 1.8G 6.8G 21% /
udev 10M 0 10M 0% /dev
tmpfs 503M 7.1M 496M 2% /run
tmpfs 1.3G 4.0K 1.3G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1.3G 0 1.3G 0% /sys/fs/cgroup
/dev/sda1 236M 33M 191M 15% /boot
root@xivo:~# fdisk -l
Disk /dev/sda: 39.1 GiB, 41943040000 bytes, 81920000 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: 0x061e4152
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 499711 497664 243M 83 Linux
/dev/sda2 501758 20969471 20467714 9.8G 5 Extended
/dev/sda3 20969472 81919999 60950528 29.1G 83 Linux
/dev/sda5 501760 20969471 20467712 9.8G 8e Linux LVM
Partition table entries are not in disk order.
Disk /dev/mapper/localhost--vg-root: 9.3 GiB, 9995026432 bytes, 19521536 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/localhost--vg-swap_1: 460 MiB, 482344960 bytes, 942080 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
root@xivo:~#
sda2, sda3 and sda5 are not mounted according to umount:
root@xivo:~# umount /dev/sda5
umount: /dev/sda5: not mounted
root@xivo:~# umount /dev/sda2
umount: /dev/sda2: not mounted
root@xivo:~# umount /dev/sda3
umount: /dev/sda3: not mounted
hello LVM, why you not been actioned?
root@fusionpbx:~# pvcreate /dev/sda3
Physical volume "/dev/sda3" successfully created
root@fusionpbx:~# vgextend localhost-vg /dev/sda3
Volume group "localhost-vg" successfully extended
root@fusionpbx:~# lvextend -L+29G /dev/localhost-vg/root
Size of logical volume localhost-vg/root changed from 9.31 GiB (2383 extents) to 38.31 GiB (9807 extents).
Logical volume root successfully resized
root@fusionpbx:~# resize2fs /dev/localhost-vg/root
resize2fs 1.42.12 (29-Aug-2014)
Filesystem at /dev/localhost-vg/root is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 3
The filesystem on /dev/localhost-vg/root is now 10042368 (4k) blocks long.
I'm going to have to do this for every c@c broken install...
borrowed the above from turnkeylinux https://www.turnkeylinux.org/blog/extending-lvm
Last edited: