lvm

How do I use LUKS encrypted partitions with Kubuntu 24.04 installation?

How do I use LUKS encrypted partitions with Kubuntu 24.04 installation? I am trying to install Kubuntu 24.04 with manual partitioning. I have created primary partitions for EFI and boot, and an encrypted partition with logical volumes for swap, root, and home. Previously, after this step I just run the Kubuntu installer, manually assigned /dev/mapper/vg0-* …

Total answers: 2

lvextend + use variable in order to lvextend filesystem

lvextend + use variable in order to lvextend filesystem we have different Linux machines and each Linux machine need different partition size in order to extend the root filesystem or var filesystem by script , we can use the following lvextend syntax , with variable as – PARTITION_VAL_SIZE PARTITION_VAL_SIZE=100 lvextend -L"$PARTITION_VAL_SIZE"G /dev/vg-data/lv-var PARTITION_VAL_SIZE=30 lvextend -L"$PARTITION_VAL_SIZE"G …

Total answers: 1

Moving from plain LUKS to LVM on LUKS

Moving from plain LUKS to LVM on LUKS At installation I forgot to create a logical volume group in LUKS container. I won’t reinstall the system. So how do I create LVG in LUKS container without data loss? My plan is: Install lvm2 package Backup / using rsync to another drive Create logical volumes I …

Total answers: 1

Does writing data on one LV keep deleted files on another LV from the same group intact?

Does writing data on one LV keep deleted files on another LV from the same group intact? Suppose we have one LV group with 2 logical volumes: /dev/lvm/home and /dev/lvm/root. Suppose I’ve accidentally deleted some important data on /dev/lvm/home, then turned off the PC the moment I realized that, changed /dev/lvm/home to mount only in …

Total answers: 3

How to work on a specific disk or partition once in lvm?

How to work on a specific disk or partition once in lvm? Having 1 500GB SSD and 1 1TB HD, the SSD is already part of Logical Volume, the HD is mounted with fstab. Everything works fine. However, out of curiosity, if I decide to extend the second drive (/dev/sda1) to the Logical Volume, will …

Total answers: 1

Emergency mode after resizing logical volumes on Ubuntu server

Emergency mode after resizing logical volumes on Ubuntu server I run the latest version of ubuntu server on a personal computer at home that I use as a server. I have two logical volumes on it. vg0 and vg1. Recently, I noticed that my partition /dev/vg0/lv-var mounted at /var was too small. I backed up …

Total answers: 1

Stuck with kernel 6.2.0 on Ubuntu 23.10

Stuck with kernel 6.2.0 on Ubuntu 23.10 I’m running Ubuntu on a thin client as a headless home server. I’ve upgraded to 23.10 a few monthes ago, but I realize I’ve been stuck with kernel 6.2.0 since then. Running sudo apt update, sudo apt upgrade or sudo apt dist-upgrade gets me nothing (everything seems to …

Total answers: 3

issue in adding physical volume to volume group lvm

issue in adding physical volume to volume group lvm Can anyone please help me fix the problem to add more GB to vg? lsblk Output NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 128G 0 disk |-sda1 8:1 0 500M 0 part /boot/efi |-sda2 8:2 0 500M 0 part /boot |-sda3 8:3 0 …

Total answers: 2

Scan online EXT4 using LVM snapshot?

Scan online EXT4 using LVM snapshot? Can you make a trustworthy EXT4 filesystem-scan of an online filesystem, e.g. root, by taking a LVM snapshot and then do a scan on the snapshot, something like: Make a snapshot: lvcreate –snapshot –size 1G –name lv_root_SS –chunksize 4k /dev/VG1/lv_root EXT4 scan: e2fsck -f /dev/dm-3 (device-name of the new …

Total answers: 2

Best pratice to remove a fail disk/PV from VG

Best pratice to remove a fail disk/PV from VG I’m new to LVM and still don’t know what is best practice to remove a failed disk/PV? For example: I have a thin pool my_volume_group/my_lv. I remove a disk (/dev/sde) from the raid controller, and lvm gives this warning: WARNING: Couldn’t find device with uuid QHOWyk-Ofjr-jnqU-iF7i-YqSJ-BeI4-UpqeI7. …

Total answers: 1

multiple paritioning of loopback device leads to error

multiple paritioning of loopback device leads to error I’m in the development of a partitioning tool, for testing purposes I have to run partitioning and LVM configurations repeatedly on a loopback device Partition /dev/loop0 with 3 partitions /dev/loop0p1 /dev/loop0p2 /dev/loop0p3 Create LVMs pvcreate /dev/loop0p2 /dev/loop0p3 vgcreate test_vg /dev/loop0p2 /dev/loop0p3 lvcreate -L 1GB test_vg -n vol1 …

Total answers: 1

Need help extending an LVM volume

Need help extending an LVM volume I am trying to extend my lvm / space on a vHost. I extended it in XCP-ng from 20g to 100g. I can see the new space on the disk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 63.3M 1 loop /snap/core20/1828 loop1 7:1 0 63.5M 1 …

Total answers: 1

How to format NVMe drive in Linux suitable for raid 1 and lvm on xen Host

How to format NVMe drive in Linux suitable for raid 1 and lvm on xen Host I want to create a software raid on two identical SSDs How do I create partitions and format them optimal? lsblk nvme0n1 259:0 0 953.9G 0 disk nvme1n1 259:1 0 953.9G 0 disk I probably have to use fdisk …

Total answers: 1

How to add a Logical Volume (LV) for /var/tmp?

How to add a Logical Volume (LV) for /var/tmp? I’ve got one physical volume and one volume group: /dev/mapper/nvme0n1p3_crypt VG Name ced-vg I’ve got five logical volumes: /dev/ced-vg/root /dev/ced-vg/var /dev/ced-vg/swap_1 /dev/ced-vg/tmp /dev/ced-vg/home I want to add a sixth logical volume on that same, unique, physical volume (I’m not adding any new SSD), which could maybe …

Total answers: 1

No understanding Why i cant access dm_crypt-0 -> LVM2_Member

No understanding Why i cant access dm_crypt-0 -> LVM2_Member I just did a fresh install of ubuntu server with encryption. However from the looks of it I am unable to access the majority of the space. I believe its not mounted to a directory but it shows as mounted because the root directory. How can …

Total answers: 1

Resize logical volume in ubuntu without damaging

Resize logical volume in ubuntu without damaging When I run lsblk i get as below vda 252:0 0 150G 0 disk ├─vda1 252:1 0 1M 0 part ├─vda2 252:2 0 1.5G 0 part /boot └─vda3 252:3 0 148.5G 0 part └─ubuntu–vg-ubuntu–lv 253:0 0 74.3G 0 lvm / now i want to inrease size of ubuntu–vg-ubuntu–lv …

Total answers: 1

Centos 8 LVM and partitions

Centos 8 LVM and partitions anyone can help to decode this? Two partitions with the same volume? Asked By: Vincenzo || Source You have a LVM volume group called cl on top of two partitions (in LVM terminology two physical volumes) /dev/sda3 and /dev/sda4. The cl volume group contains two logical volumes root and swap. …

Total answers: 1