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
2 answers

Ansible: iterate over a list in dictionary as condition

I created a role to create LVM VG(s) and to make it fully idempotent and fault proof i want to verify that the PV(s) exist and that the VG is not already defined. roles/lvm/vars/main.yml --- lvm_vgs: - vg_name: drbdpool vg_pvs: "{{…
teissler
  • 113
  • 1
  • 3
  • 9
1
vote
2 answers

How to extend a logical volume which has snapshot on it

I have a lv(logical volume) which is a original source of another snapshot. And I wanna extend the lv with command 'lvextend' and the first try failed with error: Snapshot origin volumes can be resized only while inactive So I tried the second way…
TommyLike
  • 1,010
  • 11
  • 20
1
vote
1 answer

Docker LVM support

I have two docker continers in privileged mode. And I installed LVM software in both. Its working fine, but the problem is when I create any volume group or logical volume in one disk suppose /dev/sdd1, I am not able to see into another container…
Paresh Sao
  • 11
  • 3
1
vote
1 answer

How to find out the file system of a LVM

I have a logical volume at /dev/xvdk that I'd like to programmatically detect if it's unformatted. In the past, I've run "file -s" on physical devices and it'll return "data" if device is unformatted. But because it's a LVM (I think?), it's giving…
propheci
  • 97
  • 1
  • 7
1
vote
1 answer

Using loop devices in docker without --privileged flag

Is there any way to use loop devices within docker container without switching on a privileged mode. It looks like there should be a way with adding capabilities, but even when I run container with flag --cap-add=ALL I still get an error when I…
Aram Antonyan
  • 149
  • 1
  • 7
1
vote
2 answers

grep regex how to remove single quote

I'd like to get the quoted string from output of lvscan which is : ACTIVE '/dev/mysys/root' [297.46 GiB] inherit What I've done is to use code below: lvscan | grep -o "[^']\+\b'" and what I got is : /dev/mysys/root' if I remove the…
Tao Wang
  • 186
  • 1
  • 18
1
vote
1 answer

Logical Volume show as NOT AVAILABLE on XenServer 7 local drive LVM

I need use the command "vgchange -ay" every system reboot. The LVM is make with local drive on the host, i have two partition as PVs on two diferents drives. The LV is a raid 1. I mount this as storage repository for my VMs vdisks and this work but…
RodixPy
  • 363
  • 3
  • 15
1
vote
0 answers

linux lvm partition using partman in preseed

I'm trying to customise preseed on ubuntu 14.04. Where all the parameter required for installation are stored. At the time of first OS boot value and variables are exported, and configuration is completed without any manual intervention . During…
suhas
  • 733
  • 5
  • 13
1
vote
0 answers

Create a volume group on Ubuntu to support non-loopback devicemapper driver for docker?

There is a lot of material pointing out the dangers of using a loopback devices with the devicemapper driver. This question seems to contain most of the information necessary to move away from a loopback device. Usage of loopback devices is strongly…
rissem
  • 503
  • 1
  • 5
  • 11
1
vote
0 answers

Segmentation fault in mono using pinvoke on liblvm2app.so

I'm trying to write a c# program in mono to get information about the vgs (volume groups), lvs (logical volumes) and pvs (physical volumes). I'm using a centOS7 system. To get information about lvm, an API is defined…
wat
  • 32
  • 5
1
vote
1 answer

Puppet lvm duplicate declararion - error 400 on server

My code is using puppetlabs lvm module. Uses as shown below Part of code from r10k profile which invokes module. class profile::streams::messagequeue( $mq_install_root = '/opt/IBM/mqm', $mq_install_temp = '/tmp/mqm', …
neel
  • 243
  • 6
  • 17
1
vote
1 answer

Ubuntu 14.04 preseed LVM disk config

I'm having some issues getting my partitions to be of type primary, and not logical/extended. Here is the relevant code in my preseed: d-i partman-auto/disk string /dev/sda d-i partman-auto/method string lvm d-i partman-lvm/device_remove_lvm…
digitalsy
  • 138
  • 2
  • 10
1
vote
2 answers

LXD with LVM backingstore to achieve disk quotas

I see from the LXD storage specs that LVM can be used as a backingstore. I've previously managed to get LVM working with LXC. This was very pleasing, since it allows quota-style control of disk consumption. How do I achieve this with LXD? From what…
ukosteopath
  • 443
  • 7
  • 14
1
vote
2 answers

Error message from iscsiadm while trying to connect to a iscsi drive

I am trying to access a ISCSI drive on a machine with IP 1.0.0.13 (hostname store.blue.com). The machine in which I am trying to create connection has the IP 1.0.0.11 (Hostname: loc1.blue.com). From loc1.blue.com I could discover the iqn but not…
Vinod Balakrishnan
  • 375
  • 1
  • 4
  • 17
1
vote
3 answers

lvm: create snapshot between volume groups

is there a way to create a snapshot of a logical volume (lv1) that resides into volume group vgA inside a different volume group (say vgB)? i have my root logical volume in volume group vgA on the SSD and i want to take a snapshot of the volume on…
mellotanica
  • 174
  • 5
  • 12