Questions tagged [lvm]
LVM is a logical volume manager for the Linux kernel
1,076
questions
0
votes
0
answers
18
views
Volume group "encrypted" not found - error message during boot - I did not set up any volume groups
It was working the previous days normally, but suddenly I got this error message during the boot somewhere around the end of init-premount or beginning of local-bottom or in-between.
Volume group &...
0
votes
0
answers
20
views
docker ubuntu server LVM disk full?
First of all I am new to Ubuntu and Linux altogether. Some things that i describe below may not be correct and I might (probably) have done it incorrectly.
I want to know how to set up the volumes and/...
-1
votes
2
answers
288
views
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 ...
1
vote
0
answers
50
views
How can I create an LVM Partion /var/tmp in Ubuntu Server 22.04, without crashing the system?
To make it clear, I managed LVM and partitioning 1000+ times on RHEL and Debian derivatives,
but Ubuntu Server 22.04 seems to have a serious bug!
What is:
If I install a fresh VM, I can create every ...
0
votes
0
answers
25
views
extending partition to root in ubuntu [duplicate]
I'm working on a Ubuntu 22.04 VM of 300GB , I got a warning " / is using 95.0% of 97.87GB" , I tried to increase my hard-disk space by adding additional 300GB of harddisk.
This is the result ...
0
votes
0
answers
15
views
Ubuntu server LVM not using entire disk space [duplicate]
Running lsblk gives following output.
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 1M ...
0
votes
0
answers
38
views
Activating LVM volumes after failure to attach after reboot
I currently have the problem that after every reboot the two external hard disks (both connected via USB) throw the error "Activating LVM volumes after failure to attach ...".
Normally I can ...
0
votes
1
answer
29
views
Help understanding remaining HDD space
So I'm trying to figure out if I can use a good chunk of hdd space that appears to be unmounted in my system.
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 ...
0
votes
0
answers
138
views
How do I enable hibernation on Ubuntu 22 on a LUKS system disk with a swapfile?
I have an Ubuntu 22.04.3 LTS desktop. The only swap is a swap file (I removed the swap partition that came as default with the instalation). I followed these instructions to enable suspend to disk, ...
1
vote
0
answers
126
views
lvextend root partition causing (initramfs) ALERT! /dev/mapper/ubuntu--vg-ubuntu--lv does not exist. Dropping to a shell!
I'm building an Ubuntu 22.04.02 image using packer qemu builder.
I then dd the raw image to a baremetal mini pc.
On the first boot of the Ubuntu image I have a procedure that extends the root ...
2
votes
2
answers
122
views
is it possible to extend space after system installation?
I installed my Ubuntu system without using LVM, but now the disk space is insufficient. I want to buy a new disk. Is it possible to extend the space using LVM now?
I have searched a lot, and almost ...
1
vote
0
answers
850
views
Install Ubuntu 22.04 Server with RAID 1 and LVM on machine with UEFI BIOS?
I followed the instructions here - Install Ubuntu 20.04 desktop with RAID 1 and LVM on machine with UEFI BIOS but used the Ubuntu Server Installer to configure the partition layout and added an extra ...
0
votes
1
answer
88
views
Shrinking logical volume on partition to copy VirtualBox VM to new .vdi file
I've created an Ubuntu 22.04 virtual box VM on a Windows 10 host machine. I've allocated 600GB virtual memory size for a dynamically expanding disk in virtual box. When I created this VM I had thought ...
0
votes
0
answers
53
views
How to install ubuntu to use 2 disk as a combined lvm on root
I have bought a machine that have 2 4TB disk. I saw some information saying that I can create a ubuntu machine with 7TB disk in '/' based on lvm.
However, I made a lot of attempts but all failed ...
0
votes
0
answers
79
views
LUKS LVM installation not booting
I can't get ubuntu 23.10 to boot in the following LUKS & LVM setup. Booting fails after entering the password and going to initramfs console.
Devices:
root@ubuntu:/# sudo blkid
/dev/nvme0n1: UUID=&...
1
vote
0
answers
228
views
I've deleted cryptsetup-initramfs
I'm running Ubuntu 20.04 (5.15.-10088.98) with LUKS LVM and have done something stupid.
I've tried sudo apt upgrade and get the following problem:
I: The initramfs will attempt to resume from /dev/dm-...
0
votes
1
answer
291
views
Problem with boot - initramfs: Waiting for /dev/mapper/ubuntu--vg-ubuntu--lv to appear
initramfs: Timeout while waiting for devices for / (and possibly /usr) filesystems to appear (did you specified correct ones)
initramfs: Will cause kernel panic in 10s...
I chrooted to /dev/mapper/...
0
votes
0
answers
59
views
Ubuntu Logical Volume full but total file size does not match volume size
I'm quite new to Linux / Ubuntu and have ended up in an interesting situation.
I created a VM with our hosting provided and assigned a disk of 15GB, after a while I wanted to extend the disk so I ...
0
votes
0
answers
60
views
mount command is working fine in terminal but not through cgi script in python. i'm using apache2 for this
#!/usr/bin/python3
import cgi,subprocess
import getpass
current_user = getpass.getuser()
form = cgi.FieldStorage()
ip = form.getvalue('ip')
username = form.getvalue('username')
password = form....
0
votes
0
answers
17
views
Software Updater: not enough disk space when updating custom kernel (apt works)
I use Ubuntu 22.04 LTS with a custom kernel by my hardware manufacturer installed.
When I get a kernel update, I can't use Ubuntu's Software Updater to update, since I get the error "not enough ...
0
votes
0
answers
63
views
How to locate the data of thin volume of LVM
I have a vg with pool and thin volumes. When I read the configuration, I found the extent description of 2 thin volumes are the same.
thinvolume {
id = "FjDv9Z-vUt0-S1h5-uVil-spU2-...
0
votes
0
answers
64
views
Grow Logical Volume - Missing Partition
I have an Ubuntu 22.04 VM, setup with LVM, but the partition is missing. I started by running a pvcreate, vgcreate, and then lvcreate.
An lsblk shows the following:
sdb 8:16 0 ...
0
votes
1
answer
170
views
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 ...
0
votes
0
answers
7k
views
How to resolve grub-probe error: disk lvmid/xxx not found
I encounter an error stating "lvmid not found" when running the grub-probe command.
# grub-probe --target=fs_uuid /
grub-probe: error: disk `lvmid/R9xUrf-ONd8-wCXx-qfxt-m5Ox-JwKG-LrcAZI/...
0
votes
0
answers
124
views
ceph quincy 17.2.6. stderr: Might need DB size specification, please set Ceph bluestore-block-db-size config parameter
I am trying to add a DB device. The physical device is an SSD, in which I created as many logical volumes as OSDs. All the LV’s are in a volume group.
It turns out that when I run "ceph-volume ...
0
votes
1
answer
473
views
ubuntu--vg-ubuntu--lv is full and cannot be increased anymore
recently my ubuntu--vg-ubuntu--lv filled up so I ran
sudo lvextend -l +100%FREE -r /dev/ubuntu-vg/ubuntu-lv
sudo resize2fs /dev/ubuntu-vg/ubuntu-lv
This worked but then shortly after it is filled up ...
1
vote
1
answer
790
views
Unable to modify files in root even after booting it up as admin
I'm trying to copy+paste a plugin for OBS under /snap/obs-studio/1284/usr/lib. It's located in root. The paste option is grayed out doing:
sudo su
nautilus
leads to me opening it as admin:///snap/obs-...
0
votes
0
answers
813
views
Setting up RAID during 22.04 installation
I have an Old Intel based Mac Pro with 4*4 TB hard drives. I am repurposing this machine to become an internal home file server running Ubuntu 22.04 Server. I couldn't find an option to setup a RAID ...
0
votes
0
answers
319
views
Fresh install on Ubuntu 22.04 LTS on RAID 0 using LVM not booting
Just created 2 HDD drives 1TB RAID 0 array with bios after starting installation from USB stick everythings works just fine on partitioning page selected LVM with no encryption and LVM gives me report ...
0
votes
1
answer
87
views
How to reallocate disk partitions
I used an installer usb flash drive to get Ubuntu 22.04 server onto a Windows mini pc. I asked the installer to wipe Windows since the machine will be a standalone server with Linux only.
I got / with ...
0
votes
1
answer
688
views
LVM encryption with manual partitioning for Ubuntu 23.04
Is there a way to LVM encrypt a volume when choosing manual partitioning in Ubuntu 23.04? I only see an encrypted volume if I let Ubuntu decide my partition tables for me:
If I select manual ...
0
votes
0
answers
24
views
How to extend lvm partition on 1 hard drive
I have ubuntu running to 447G ssd. However for some reason ubuntu only took 100G of that space on install (maybe I have missed something, does not matter now). How can I extend this partition to use ...
0
votes
1
answer
165
views
Is dd for /boot and LVM snapshot for root logical volume the proper strategy for full backup of UEFI PC Ubuntu Server?
I'm planning to create full backup of my Ubuntu Server installation in UEFI mode on 512GB disk.
There is one mandatory UEFI Parition (1GB), /boot is standard EXT4 separate boot partition (2GB) and the ...
0
votes
0
answers
35
views
df does not show full disk space available for lvm root [duplicate]
I researched this problem, but have not found exact questions.
I installed ubuntu server on ~512G SSD, so I have 474G mounted at root:
Checking free space with df -H returns only 106G as a size of ...
1
vote
0
answers
107
views
why cannot umount an lvm partition?
I have an Ubuntu Server 22.04. The disks are managed using LVM partition. My /var partition needs a size increasing. So I thought to reduce the /home size, so that I could increase /var.
root@...
0
votes
0
answers
39
views
Cannot find my lvm structure anymore : sudo pvs from CD/ISO shows nothing
a collegue crashed the LVM structure of a VM so I'm trying to help him repair the LVM structure.
I first tried to boot into recovery mode but I end up in a busybox shell.
So I rebooted into an Ubuntu ...
0
votes
1
answer
81
views
Ubuntu - create new lvm using part of previous one
I have a server in our environment that is maxed out on storage in the root partition. The request is to free up space by reallocating /home to its own partition. We have an excess of free space in /...
0
votes
0
answers
186
views
Ubuntu boot partition size problem
I have this constant problem with Ubuntu boot partition size, however I can't resize the other partition because it's an LVM encrypted partition.
Resize the ext4 boot partition to give some 200-300MB ...
0
votes
1
answer
122
views
lvm commands report no data after lvextend
Had a weird issue happen yesterday on our Ubuntu 18.04 server. One of the team tried to add 30G of space to this LV:
Disk /dev/mapper/rootvg-pgexecstsqllv: 32 GiB, 34359738368 bytes, 67108864 sectors
...
0
votes
1
answer
78
views
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
└─...
2
votes
0
answers
37
views
How to increase storage space in LVM in production
I have my own servers. I want to increase storage space in of LVM where I have database and my website running.
I run lsblk and it gives
vda 252:0 0 150G 0 disk
├─vda1 ...
1
vote
1
answer
235
views
Extends encrypted partition to new SSD
I have added a 1TB disk to my ubuntu 22.04 install.
I have installed it using LVM+LUKS. lsblk gives this
...
nvme1n1 259:0 0 931,5G 0 disk
nvme0n1 259:1 0 476,9G ...
0
votes
0
answers
27
views
Does Ubuntu Core support LVM?
My initial try at Ubuntu Core got me surprised by the lack of LVM (Logical Volume Manager) commands. The Snap store doesn't seem to have anything either.
0
votes
2
answers
637
views
Where is my /dev/dm-2 2 GB swap partition?
On a brand new Ubuntu 22.04.2 installation, swapon --show shows I have a 2 GB swap partition:
$ swapon --show
NAME TYPE SIZE USED PRIO
/dev/dm-2 partition 1.9G 0B -2
Neither df -h, nor ...
0
votes
0
answers
204
views
How to mount an LVM formatted hard drive connected through a USB adapter?
What would be the standard directory to create for an external hard LVM hard drive?
nicholas@mordor:~$
nicholas@mordor:~$ ls /dev/mapper
control vgubuntu-root vgubuntu-swap_1
nicholas@mordor:~$
...
1
vote
0
answers
74
views
Partition disk when installing ubuntu using LVM
I am trying to partition my disk when installing my ubuntu image:
What am trying to achieve is:
Set up 3 main partitions / , /var and /home
encrypt all 3 paritions using LVM encryption module ...
0
votes
0
answers
96
views
Failure to install Ubuntu
I try to install ubuntu22.04.02 lts in my laptop asus x540u models, at first time all things are working good only in steps 5 when i chose to erase the disk with LVM, so it contine to loading without ...
0
votes
0
answers
154
views
Not all logical volumes appears during installation of Ubuntu Server 20.04.6 and 22.04.2
I'm trying to install Ubuntu Server 22.04.2 from the live USB stick.
I have 3 existing volume groups (LVM).
Some of the partitions has been created with Ubuntu 18.04 (and probably ealier versions too)....
1
vote
0
answers
171
views
Re-install ubuntu 22.04 on encrypted LVM partitions
I have an existing installation (Debian) using encrypted LVM partitions. I would like to re-use the same partitions to install Ubuntu (more precisely, format the / partition with the new system but ...
0
votes
0
answers
170
views
Partionning with preseed
I used to find my solutions on old post here but today I have to write for help as I don't find any usefull answer anywhere. I'm sure you'll rock and help me with this problem I have for quite a while ...