Questions tagged [lvm]

lvm (logical volume manager) is a software that allows disk partitionning by hiding the physical limitations of the underlying disks. It can make logical partitions from separate physical partitions even on separate disks, hide mirroring, allow increasing the size of a logical volume while used and so on

lvm
Filter by
Sorted by
Tagged with
-1 votes
0 answers
14 views

How to restore a e2image image backup

I’ve created a image from my partition with the e2image tool like this: e2image -rap /dev/sdb2 /backup/sdb2.e2image The Partitions size is around 870GB, but it used only around 25GB. When I do a ls -...
cat Man's user avatar
  • 27
0 votes
0 answers
12 views

mysql database recovery lying on lvm partition which is corrupted

I have a Mysql database running on a Linux RHEL7 server lying on an lvm ext4 partition which is 100% full now. The respective volume group and lvm has been extended but while running "resize2fs /...
SAYANTAN SAHA's user avatar
-1 votes
1 answer
49 views

Creating LVM Partitions for Web App, Database, Unused Space, and Swap on Almalinux 9.3

Struggling with LVM partitioning on Almalinux 9.3 GPT disk (sda), aiming to allocate space for a web app, database, unused storage, and a swap partition. Currently, my Almalinux 9.3 system is ...
Aisthesis Cronos's user avatar
0 votes
0 answers
28 views

LVM: How do I merge fragmented LVM PE Segments/Ranges that were fragmented during pvmove operations?

I have 2 HDDs with 18TB & 8TB combined as an LV (Logical Volume) under a VG (Volume Group).. I initially had another 1TB which I recently removed/reduced from this VG and while reducing, I used ...
vinayadatta's user avatar
0 votes
1 answer
70 views

Pacemaker lvm cluster

I have added disks to the cluster nodes through the "iscsid target" server. Those disks are visible with "lsblk". ( /dev/sdb) . But when you want to create "vg" and "...
Mushfig Mustafazade's user avatar
0 votes
0 answers
59 views

after migration, proxmox create multiple lvm disks

In a proxmox cluster, I migrate a vm with just one lvm disk by 100G size, in live mode, after migration finish, I see there are multiple lvm disks witch just one of them is attached to that vm and the ...
shgnInc's user avatar
  • 2,154
0 votes
0 answers
41 views

Unable to create partitions on vmdk device in Docker

Is it possible to create a vmdk image using Docker? My actions for this: I activate the nbd module, launch a container with privileges. # qemu-img create -f vmdk image.vmdk 10G Formatting 'image.vmdk',...
alexanderzhirov's user avatar
1 vote
0 answers
148 views

Why the Maximum Metadata Size of a Thin Logical Volume Is Only 15.81G?

My boss asked me to create a thin pool with metadata size exceeding the maximum limit. In the first step, I executed the subordinate command: [root@localhost ~]# pvs /dev/vdb Configuration setting &...
crazyGo Li's user avatar
0 votes
1 answer
208 views

grow up logical block size: - FAILED: failed to dump sfdisk info for /dev/sdb

How can I grow up space of the /dev/mapper/ubuntu--vg-ubuntu--lv? $ df -h Filesystem Size Used Avail Use% Mounted on udev 1.5G 0 1.5G 0% /...
kozmo's user avatar
  • 4,292
0 votes
0 answers
254 views

Openstack instance creation fails on attempt to attach a volume

I am trying to get familiar with Openstack. I started out with devstack but was told by folks to use kolla-ansible as my base which I did. I am using the wallaby version all-in-one. I successfully ...
nekton's user avatar
  • 1
-1 votes
1 answer
468 views

How to find which EBS volume is storing the data

I have created a ec2 instance and attached 3 ebs volumes to it, I have created a lvm on the 3 ebs volumes and mounted it to /var/lib/pgsql and then installed postgresql source 8.4 and configure it to ...
Sam's user avatar
  • 19
-2 votes
1 answer
492 views

Can't reclaim lvm "thin pool" space

The pool usage is very large compared to the lvm volume, but it doesn't seem to be actually used. Previously, the metadata area was full and the metadata was expanded. Since then I've had "lvm ...
PLIP's user avatar
  • 1
-1 votes
1 answer
273 views

Redhat Increasing disk partition in linux

I have a disk in azure redhat. I increased the size from 128GB to 256 GB. I restarted it and mounted it again. It is gpt partion.For lsblk /dev/sdc1 is showing it already has 256 GB but df -h is ...
Karikaaalan's user avatar
1 vote
1 answer
183 views

Mapping nested device mapper mounts back to their physical drive

Looking for a reliable (and hopefully simple) way to trace a directory in an lvm or other dm mounted fs back to the physical disk it resides on. Goal is to get the model and serial number of the drive ...
netdxr's user avatar
  • 11
-2 votes
1 answer
171 views

How do I assign another hard disk to root in linux? [closed]

The following is the current status of my disk: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 62M 1 loop /snap/core20/1587 loop1 ...
Joker's user avatar
  • 47
3 votes
1 answer
9k views

/var/lib/docker/overlay2/*/merged take too much space than it should be

problem descriptions: In my system, /var/lib/docker/overlay2/*/merged take too much space than it should be and the detail looks like below. root@sriov-TaiShan-200:~# df -h --total Filesystem ...
xiaojueguan's user avatar
0 votes
1 answer
361 views

Any Steps to perform standard partition disk to LVM disk conversion, without data loss

I have Data disk and data disk type is Standard Partition and We are Planning to convert that data disk from standard partition to LVM disk partition, but data loss should not happen, Any One have ...
Nani's user avatar
  • 1
-1 votes
1 answer
941 views

Any alternate method to allocate free space without growpart?

I am trying to allocate free space to root as my disk space is full (I am using this guide https://guideplanet.co.uk/index.php/2021/03/26/lvm-extention-for-centos/). I am doing it via KVM (ionos ...
Jack's user avatar
  • 363
0 votes
0 answers
2k views

Ansible : create a volume group if a disk exists

Hello I am trying to write a role that can ensure the exitence of a disk before creating the volume group. - name: "create a volume group if a disk exists" become: yes block: - name: ...
cilzzz's user avatar
  • 37
2 votes
1 answer
294 views

Why the printf( ) is working strangely after reopening stdout stream

After reopening STDOUT stream, the message does not display on my screen if calling print() like this: printf("The message disappeared\n") The snippet code for explaining the problem: #...
Sean's user avatar
  • 25
0 votes
0 answers
84 views

how to start lvm merge in background using blockdev in C

I am trying to start a merge of a LVM snapshot using the blockdev API in C, similar to the “lvconvert —merge -b vg/lvsnap” OS command The issue is that the merge starts, but it doesn’t go in ...
user413990's user avatar
-1 votes
1 answer
572 views

Possible to pvmove & vgreduce in LVM if PVs are allocated to Xfs free space?

I have a ~250 TB Xfs file system, distributed across several disks (PVs) via LVM. I've moved most of the data to another server. The remaining data (~60 TB) would easily fit on just PV. I would like ...
Daniel's user avatar
  • 2,062
0 votes
2 answers
294 views

Im trying to add additional space to my virtual machine. I went from 250GB to +750GB but am having trouble adding it to the lvm

Current my pv looks like this tj@ubuntugis:~$ sudo pvdisplay --- Physical volume --- PV Name /dev/sda3 VG Name ubuntu-vg PV Size <31.00 GiB / not ...
Tommie Jones's user avatar
-1 votes
1 answer
388 views

How to resize Bcache PV?

I want resize my /dev/bcache0 to full HDD size. But I use resize2fs /dev/bcache0 it tell me: [localhost-PC ~]# resize2fs /dev/bcache0 resize2fs 1.46.2 (28-Feb-2021) resize2fs: Device or resource busy ...
iHad 169's user avatar
  • 1,315
1 vote
1 answer
1k views

Function to get the current space of a logical volume?

I'm struggling with 1 ansible role. I'm trying to make a role with 2 vars, extra space to add to the volume, and the mount point for example "/disco1" and "1.5g" Using lvextend to ...
ikora's user avatar
  • 832
2 votes
2 answers
2k views

Find the LVM and VG name from Ansible inputting the Mount point name

I'm trying to find if we have any options in setup or any combination of ansible modules to find the LVM / VG name if we give the mount point name as input to the playbook, please suggest if you have ...
user avatar
4 votes
1 answer
14k views

Unable to add physical volume to volume group LVM

Can you help me fix the problem add more GB to vg? Please look. I explain my problem: [root@jdk ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 1024M 0 rom vda ...
Michał Zawada's user avatar
0 votes
1 answer
507 views

CentOS 7: LVM swap extension not shown by the "free" command

I'm running a CentOS 7 guest on a VirtualBox 6 on Windows. The result of the free command is as follows: $ free -h total used free shared buff/cache available Mem: ...
Seymour Glass's user avatar
-1 votes
1 answer
1k views

could not figure out how much is one extent?

i got the homework from Devops school and one of LVM question below , i am confused with extents , teacher said that it should be calculated like this : 20x25 = 500 mb --> so the partition supposed ...
mike543's user avatar
0 votes
1 answer
564 views

Linux : where exactly is a file saved when there are multiple logical volumes? [closed]

I've mostly worked in Windows environments and am still very noobish in everything Linux, so it's very likely I'm missing basic Linux concepts. That being said, I have questions about logical volumes ...
Cheradenine Zakalwe's user avatar
1 vote
0 answers
3k views

File descriptor 3 (pipe:[34331]) leaked on vgs invocation. Parent PID 5424: /usr/sbin/grub-probe

I have installed Ubuntu 20.04.01 Server with LVM support. When I execute sudo apt-get upgrade I get this error in many lines: File descriptor 3 (pipe:[34331]) leaked on vgs invocation. Parent PID ...
Bart's user avatar
  • 19
0 votes
1 answer
826 views

How to move mounted and mapped logical volume from one volume group/physical volume to another

I know that there are many similar questions but none of the solutions works for me as it is a little complicated in my case. I'm sorry if I overlooked one of them. So I have a Ubuntu server with 2 ...
Anthony Kung's user avatar
  • 1,165
0 votes
1 answer
218 views

Missing creation time for LVM volume

One of our storage has an lvm volume group on which multiple logical volumes are not set the creating host name and time (LV Creation host, time attribute). These were created quite a long time ago, ...
Laszlo Malina's user avatar
3 votes
0 answers
2k views

LVM thinpool shrink

I want to shrink a thinpool but don't manage to do it. Have some a procedure for that ? Here is some information: hyper $ sudo lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log ...
BDR's user avatar
  • 436
3 votes
0 answers
308 views

An existing directory is not mounted with newly created LV in LVM Partition

Suppose there was a LV called lv_dbbackup under vg_root which is mounted under /db_backup. But recently for official purpose I created a new VG called vg_backup and by unmounting /db_backup from ...
Avijit Das's user avatar
0 votes
1 answer
144 views

LVM linux. What does it mean LEs in my task? May be it is typo [closed]

at the moment I preparing to RHCSA exam and complete some tasks to achieve desired result. I have a question by this task:"Create a logical volume called linuxadm of size equal to 10 LEs in ...
juke er's user avatar
  • 40
1 vote
1 answer
340 views

iostats shows more writes for logical volume than for physical volume under it

I have a server where iostat shows weird numbers to me: avg-cpu: %user %nice %system %iowait %steal %idle 22.5% 0.0% 0.8% 1.3% 0.0% 75.5% Device tps ...
Dmitry Maslennikov's user avatar
0 votes
2 answers
4k views

Script to extend LVM volume and resize the filesystem

On my server, I have to extend lvm volumes from time to time in order to make more space. For this, I use commands lvextend and resize2fs. I would like to have a command which will present me a list ...
Floyd's user avatar
  • 749
1 vote
1 answer
66 views

VM doesn't work anymore after umount an lv

i'm not a system administrator so i think that i made a big mistake! we had a problem of storage distribution on VMs in the openstack private cloud. So i took one VM to reduce the storage and i tried ...
nael.fridhi's user avatar
1 vote
1 answer
2k views

Linux "Volume group "c1" not found"

I want to add a disk my linux machine and extend my filesystem. I add a disk and create a partition using with fdisk. After I create physical volume with this partition. Right now I wanna add this pv ...
thargalin's user avatar
  • 173
-3 votes
1 answer
225 views

anaconda Boot install from lvm

I am installing Fedora 31, via tftp. My system has 3 disks: sda - the disk to install onto; sdb/sdc are in a lvm vg group (VG1) that has an one lv (lv1). This lv has the F31 disk image (.iso), as well ...
user3182551's user avatar
0 votes
1 answer
399 views

How can I get the Laravel 7 Homestead database snapshots working?

I've enjoyed Homestead for years and today noticed a very appealing feature that I've never used before. https://laravel.com/docs/7.x/homestead#database-snapshots says: Homestead supports freezing ...
Ryan's user avatar
  • 23.1k
0 votes
1 answer
235 views

Remove Volume Group from a re-pourpsed disk

I have this SSD that was in another Ovirt cluster that I destroyed, and now I'm trying to re-purpose this disk but can't seem to clear it. I have tried wipefs and dd but it still shows up in fdisk -l. ...
Frank S's user avatar
  • 99
0 votes
1 answer
1k views

Unexpected System failure of CentOS7 due to LVM partition not mounted

I have a problem with my CentOS7 system installed in Intel NUC(Intel® Core™ i7-7567U CPU @ 3.50GHz × 4 ). Last time i was not able to login to the system by any user or root password. Then I tried to ...
Rakesh Kumar's user avatar
4 votes
1 answer
1k views

Mount docker logical volume

I'm trying to access to a logical volume where previously was used by docker. This is the result of various command: lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nvme0n1 ...
mirobertod's user avatar
-1 votes
1 answer
2k views

Trying to install manjaro and have a problem with allocating of the disk free space

I'm trying to install manjaro on laptop with oem windows 10 on board, I do it using manjaro architect cli installer. I've created LVM, parted logical volumes, made luks on LVM, formatted partitions ...
Boris Zyryanov's user avatar
0 votes
1 answer
488 views

HP-UX repairing a stale extent on a mirrored disk set with a failing primary disk

I have an HP-UX 10.20 system with a mirror disk pair. I recently had a failed disk, which I'll refer to as "the bad disk". I had to remove it from the system in order to boot successfully. I went ...
a344254's user avatar
  • 589
-1 votes
1 answer
646 views

OpenStack Block Storage cannot create LVM physical volume

I am trying to implement an OpenStack environment and following the Stein installation guide. For the installation process, I am using multiple nodes running on Ubuntu (not in Virtual Box). Right now,...
PFWS19's user avatar
  • 1
-1 votes
1 answer
140 views

Remove LVM partition that overlap with my windows partition

So this happends when I want to setup dual-boot ParrotOS and Windows. When I want to install Parrot, I accidentally select 'use all disk and setup LVM' (not encripted) and I noticed that and click ...
Edqe's user avatar
  • 1
0 votes
0 answers
459 views

Command lvcreate throwing an invalid flag error?

I'm working on a group project that involves having to use the command lvcreate. When trying to run lvcreate with certain flags, this error message appears (the flags passed in are in the error ...
mparfan's user avatar