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
3
votes
1 answer

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 252:0 0 900G 0 disk ├─vda1 252:1 …
3
votes
0 answers

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 Cpy%Sync Convert mailer lxc Vwi-aotz-- …
BDR
  • 436
  • 2
  • 7
  • 23
3
votes
0 answers

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 previously created vg_root-lv_backup i want to use…
Avijit Das
  • 107
  • 1
  • 11
3
votes
2 answers

Volume that is encrypted and not accessible by host?

I want a Docker container which has a storage volume which is inaccessible by the host machine. I have followed this guide, which uses the docker-lvm-plugin plugin to mount a LUKS crypt volume. With some amendments to the approach I ended up doing…
sdgluck
  • 24,894
  • 8
  • 75
  • 90
3
votes
1 answer

Configure LVM resource on Redhat 7.4 cluster using pacemaker

I am configuring the Red Hat cluster with pacemaker and I wanted to add a LVM resource. I have installed following packages, OS: Red Hat 7.4 Packages Installed: lvm2-cluster, pacemaker, corosync, pcs, fence-agents-all but my LVM resource have a…
Izzul Iman
  • 41
  • 1
  • 3
3
votes
3 answers

vgrename on root VG - grub2 issues

I'm struggling to update grub2 after using 'vgrename' on my root VG in Centos 7. I ran 'vgrename' successfully, then edited /etc/fstab with the VG name, then edited 'GRUB_CMDLINE_LINUX=' in /etc/default/grub with the new VG name, then attempted to…
machinist
  • 171
  • 1
  • 4
  • 12
3
votes
4 answers

Does copy protection make sense for a free app?

My free app is occupying 2x space on the device, because it has copy protection enabled, in Google Play. I didn't enable this. I'm wondering if it's necessary. The 2x space is very negative and I would like to disable it. I know also that copy…
User
  • 31,811
  • 40
  • 131
  • 232
3
votes
0 answers

How to check whether a file is open anywhere in a cluster using GFS and lvm?

I wonder if it is possible to check if a file has already been opened by another node in the same GFS cluster. For example, the fuser command runs cluster-wide in TruCluster. Is it possible to query the lock manager's data via a command or API?
anonymous platypus
2
votes
2 answers

Mount LVM overlays/snapshots?

I'm trying to programmatically mount a disk image created with the Fedora LiveUSB creator, and I'm encountering some issues. From what I've been told, it's very difficult to mount LVM snapshots outside of the host system. I have both the "pristine"…
lfaraone
  • 49,562
  • 17
  • 52
  • 70
2
votes
1 answer

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: #include #include #include…
Sean
  • 25
  • 3
2
votes
1 answer

Linux LVM snapshot dirty block bit map

I'm looking for ways to create full/incremental snapshot backups on Linux for different file systems. I wanted pointers on which LVM/Device mapper source files to look for regarding creating snapshots (COW mechanism) and where changed block bit maps…
Ramesh
  • 21
  • 3
2
votes
2 answers

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 any options, as of now I can only see the only…
user3880406
2
votes
1 answer

Python logging fails when open file descriptor message encountered

I have the following Python code to create an lvm snapshot on a Linux machine. #!/usr/bin/env python3.1 import subprocess import logging logging.basicConfig(filename='/var/log/lvsnap.log', filemode='w', level=logging.DEBUG) lvm_vg =…
jelloir
  • 155
  • 2
  • 12
2
votes
2 answers

Create logical volume with ansible and if statement

I'm trying to create a playbook that does the following, Create a logical volume with specific size, if the volume group doesn't have enough size output a message and use another size. If volume group doesn't exist exit with output message If…
Jonny
  • 21
  • 1
  • 2
2
votes
1 answer

Convert lvm.conf to python dict using pyparsing

I'm trying to convert lvm.conf to python (JSON like) object. LVM (Logical Volume Management) configuration file looks like this: # Configuration section config. # How LVM configuration settings are handled. config { # Configuration option…
Alex Granovsky
  • 2,996
  • 1
  • 15
  • 10
1
2
3
12 13