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

190 questions
1
vote
1 answer

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 extend my logical volume works, but when you need to add more space…
ikora
  • 772
  • 3
  • 16
1
vote
0 answers

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 5326: /usr/sbin/grub-probe File descriptor 3…
Bart
  • 19
  • 2
1
vote
1 answer

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 kB_read/s kB_wrtn/s kB_read kB_wrtn loop0 …
1
vote
1 answer

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 first to execute lvreduce to reduce the logical…
nael.fridhi
  • 141
  • 1
  • 9
1
vote
1 answer

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 in my volume manager but It's not work. [root@cli…
thargalin
  • 123
  • 1
  • 2
  • 16
1
vote
0 answers

LVM automatic sizing via puppet lvm module

I'm using the lvm puppet module, this is up to date and unchanged, this functions perfectly as far as I can tell when creating a new server (code with identifiable values removed below). physical_volume { '/dev/sdb': ensure => present, }…
keeer
  • 783
  • 1
  • 5
  • 11
1
vote
2 answers

Tool for edit lvm.conf file

is there any lvm.conf editor? I'm trying to set global_filter, use_lvmtad and some other options, currently using sed: sed -i /etc/lvm/lvm.conf \ -e "s/use_lvmetad = 1/use_lvmetad = 0/" \ -e "/^ *[^#] *global_filter/d" \ -e…
kvaps
  • 2,589
  • 1
  • 21
  • 20
1
vote
1 answer

Extending a Logical Volume on RHEL7

I am using a RHEL7 box, created by our in-house vm-provisioning system. They create logical volumes for the likes of /var, /home, swap etc. using 2 pools of space. I was attempting to follow the examples and descriptions of how to add some of that…
Penumbra
  • 158
  • 1
  • 10
1
vote
1 answer

Creating a LVM storage with python

I am trying to make a script with python to duplicate VMs however I am getting the following error: sudo lvcreate -L3072 -s -n TestPrestashop1-disk /dev/ls2018-vg/Prestashop-disk Traceback (most recent call last): File "VMDuplicator.py", line 74,…
1
vote
1 answer

iSCSI LVM configuration does not survive restart

I'm doing some testing in which I utilise iSCSI. Strange things are happening and I'm looking for an explanation. If anyone could suggest something, I'd be really grateful. So here we go: There are two VMs running Debian9. One is an iSCSI target…
1
vote
1 answer

lvm2 is not configured and masked, failed to unmask

I am installing libguestfs0 and there is a dependencies called lvm2 is required to be configured. When i run systemctl status lvm2, it showing the service is masked (/dev/null, bad). Hence i try with systemctl unmask lvm2 and systemctl restart lvm2.…
hellojoshhhy
  • 855
  • 2
  • 15
  • 32
1
vote
0 answers

Replicate existing LVM (xfs Filesystems) over network

i need to replicate 2 Productive Servers on a Backup Server (something like High Availability) Facts: 3 Servers: 2 Productive (1 Prod_serv: VG has 30TB and 5 LVM's; 2 Prod_Serv - VG has 10TB and 3 LVM; Backup_Serv - 70 TB but no VGs yet. Only OS…
1
vote
1 answer

How do I extend the space of /dev/mapper/rhel-root?

[root@ap-dcr-ctc01 log]# sudo vgs VG #PV #LV #SN Attr VSize VFree rhel 2 3 0 wz--n- 298.99g 0 As you can see the space directory of rhel-root is full so I would like to increase the space of its directory. How can I do it.…
user234568
  • 741
  • 3
  • 11
  • 21
1
vote
0 answers

Kickstart: create lvm volume group without partition

I am trying to setup a redhat 7 kickstart for a server with 2 disks. On the second disk I want to use the full disk without partitioning in lvm. Once the system is installed, the config works: pvcreate /dev/sdb vgcreate data /dev/sdb lvcreate -l…
luxfred
  • 23
  • 3
1
vote
1 answer

lvm my VG has no free PE but it has a lot of space indeed, why?

everyone: I use lvm on my Gentoo Linux, and it has a HHD and a SSD, so I use SSD to be the cache of HHD to accelerate the speed. However, after several days, I think it's even slower than only use HHD. Then I try to find the reason but unfortunately…
puppylpg
  • 909
  • 10
  • 23