Tag Archives: lvm

Resize root filesystem on Ubuntu 18.04 with LVM

Ubuntu 18.04 default lvm layout comes with only a 4 GB root partition. Here we will extend it to occupy the full free space in the volume group: sudo lvextend -l 100%FREE –resizefs /dev/ubuntu-vg/ubuntu-lv That’s it, Enjoy! Sources: https://access.redhat.com/solutions/44089 https://www.digitalocean.com/community/tutorials/how-to-use-lvm-to-manage-storage-devices-on-ubuntu-18-04

Posted in Linux | Tagged , , , , | 1 Comment

Use fsck with LVM

A VM’s filesystem (which was using LVM) was corrupt and it couldn’t boot. All I did was force boot from systemrescuecd and ran the following command: fsck.ext4 /dev/vgname/lvname Note: Switch ext4 to any other type of filesystem you have, e.g. … Continue reading

Posted in Linux, Uncategorized | Tagged , , , | Leave a comment

Add an additional physical volume to your encrypted LVM volume group

With a default Linux Mint installation, do the following after connecting the new hard disk to your computer, we will assume the new HDD is /dev/sda: sudo pvcreate /dev/sda sudo vgextend mint-vg /dev/sda sudo lvextend -l +100%FREE /dev/mint-vg/root sudo cryptsetup … Continue reading

Posted in Linux, Uncategorized | Tagged , , , | Leave a comment

Create/Modify LVM Physical Volumes, Volume Groups and Logical Volumes on Ubuntu 16.04

It’s pretty straight-forward, but before you start, you need to check for block devices that can be used to create physical volumes: sudo lvmdiskscan You will see a result that looks like this: /dev/ram0 [ 64.00 MiB] /dev/sda [ 50.00 … Continue reading

Posted in Linux, linuxmint, Ubuntu, Uncategorized | Tagged , | Leave a comment