Questions tagged [lvm]

In computer storage, Logical Volume Management or LVM provides a method of allocating space on mass-storage devices that is more flexible than conventional partitioning schemes.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

How to restore .img file into a directory?

I have a mounted backup disk with snapshot images taken using LVM and the dd command. Briefly, the backups are made with: lvcreate --snapshot -L 100M --name snap /dev/target dd conv=sparse if=/dev/...
0
votes
1answer
29 views

several error for pvcreate and lvcreate

I am getting the following error pvcreate /dev/mapper/mpathd Error reading device /dev/mapper/mpathd at 0 length 512. Error reading device /dev/mapper/mpathd at 0 length 4. Error reading ...
0
votes
0answers
25 views

Supplemental to Need to replace the HDD on a single disk system

This question is a follow on to my original. The situation is a host with a single HDD must be cloned to a larger HDD over the network. I ran a couple of tests of a clonezilla live remote transfer ...
0
votes
1answer
28 views

Shrink Volume Group in LVM on linux with just one disk

I'm using LVM on a single disk and now I need to resize the partition (sda2) I'm using. I've already resized the Logical Volume but I can't manage to shrink the Volume Group. I know that vgreduce ...
2
votes
1answer
29 views

Few questions about creating RAID0 with LVM

I'm little confused, because I found two different instructions about creating RAID0 with LVM. First resource shows way of creating RAID0 wit this pattern: lvcreate -i[num drives] -I[strip size] -...
1
vote
1answer
27 views

find lvm that mounted in virtual machine

long time ago I mounted 3 lvm with same size on a virtual machine. now I want to umount one of them but I can't remember which lvm is mounded on which directory. How can find mount point of lvm in ...
0
votes
0answers
9 views

using salt states lvm

https://docs.saltstack.com/en/master/ref/states/all/salt.states.lvm.html Is it a good practice in the first place? How reliable is it? Let's say I have partition with important data. Can I create PV, ...
0
votes
2answers
28 views

How to extend hard to an LVM without disrupting current data in CentOS

We have a CentOS server that has 2TB of disk. When we got the server for "god knows why" the partitions were like so: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1.8T ...
0
votes
0answers
35 views

LVM snapshot: after merging and rebooting root filesystem logical volume is not correctly sized (unless rebooting a second time)

I am experimenting with LVM snapshots for the root filesystem. Creating a snapshot and merging it into the filesystem works correctly regarding all files but the size of the LV is not correctly set to ...
1
vote
1answer
36 views

(LVM) Moving data to a different physical volume within the same logical volume

I have a logical volume called storage. It contains two ~1TB physical volumes: /dev/sdc and /dev/sdd. smartctl -a /dev/sdd informs me that /dev/sdd is failing. I can still read data off it and I have ...
0
votes
0answers
23 views

LVM not able to add free space to Logical Volume

--- Volume group --- VG Name BKMASTWS01-vg System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 3 VG Access read/write VG Status ...
5
votes
5answers
98 views

Recommended approach to build a 24-disk pooled SSD hot-set cache: RAID, LVM JBOD, etc?

I'm trying to figure out the lowest hassle way to provision 24x locally attached SSDs as a large logical volume with low-value data. I'm using them as a hot-set cache for data who's master state (...
3
votes
2answers
64 views

(LVM) Cannot restore Volume Group with 1 PVs marked as missing. Couldn't find device with uuid, but the pv exists and blkid finds the same uuid

This problem is on a kvm/qemu hypervisor with CentOS 7, where we host multiple virtual machines. The Disk /dev/sda( 1918.2 GB) is a raid6 LSI MEGARAID. [root@mia3 ~]# fdisk -l Disk /dev/sda: 1918....
2
votes
1answer
32 views

Recover deleted LVM signature

I guess I've deleted LVM partition. I expanded the datastore in vmware ( 70 GB to 90 GB ), then I run echo 1> /sys/class/block/sdb/device/rescan. After that I run fdisk /dev/sdb. it shows my sdb ...
2
votes
0answers
61 views

LVM: Shrinking /scratch, extending SWAP

kamals@poc02:~$ sudo lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert root vg_system -wi-ao---- 63.98g scratch ...
0
votes
1answer
42 views

Which docker storage driver for new server with NVMe drives?

I am building new server for GitLab CI jobs. Currently we already have one home-made. It's using classic HDDs + SSDs for caching so I chose ZFS storage driver which is not performing optimally. New ...
0
votes
0answers
37 views

Smaller chunk size or disabling Zeroing?

On a CentOS 7 server with 4X Samsung 800 SD with hard raid 10 I am using KVM for virtualization. I created a thin LVM storage for VMs and using "lvcreate -l 100%FREE --type thin-pool --thinpool ...
0
votes
0answers
20 views

Is free disk space in a LVM volume group required?

I installed Proxmox and experimenting around with it and noticed that it keeps some free space on the LVM volume group by default. I wonder why this is? Does LVM need this or something? because is was ...
0
votes
1answer
46 views

Failed to find logical volume “group/swap”

The error occurs on a LVM/LUKS Debian VPS. I deleted the swap volume and grew the root volume using the following: swapoff /dev/group/swap lvremove group/swap lvresize -rl +100%FREE /dev/group/root ...
0
votes
0answers
14 views

How can I merge several logical volumes into a new logical volume on another disk online? Bonus curveball, all the lv's are /var folders

I have two virtual disks sda and sdb on an rhel7 VM. My /var and /var/log folders are both constrained by the sizes of their initial provisioned logical volumes. sda is partitioned into an xfs ...
0
votes
0answers
23 views

lvm commands sometimes freeze the entire server

I'm maintaining multiple physical machines running several virtual machines, with virtual machines' "disks" stored on logical volumes on the host. Sometimes, running lvm commands such as "lvremove" or ...
0
votes
0answers
19 views

Use striped and cache simultaneously for an LVM LV?

Assume vg0/cache and vg0/cache_meta are prepared beforehand on SSD /dev/sdc1. I created a striped LV: lvcreate -n data -L 16T --type striped -i 2 vg0 /dev/sda1 /dev/sdb1 mkfs.xfs /dev/vg0/data Then ...
1
vote
0answers
39 views

Physical Volume Actual Utilization for replacement

I have a Volume Group which consist two physical volume of size 10TB each SSD & NLSAS (yes one very slow and other very fast) so total 20TB. I created Volume backupvg with the 10TB SSD & ...
1
vote
3answers
108 views

LVM2 vgreduce unknown physical volume from root logical volume CentOS8

I have a removable disk in my CentOS8, but I can't reduce the volume group: [root@localhost ~]# vgs WARNING: Couldn't find device with uuid 3GDhRA-KZjA-iDum-8Ut0-s9s0-NnW2-4QQEUv. WARNING: VG cl ...
0
votes
0answers
16 views

Recovering overwritten LVM

The system showed an error while booting - EXT3-fs error (device md5): ext3_lookup. After the disk check was performed. But this did not produce results. Then the recovery command from metadata LVM ...
0
votes
2answers
135 views

Lost access to LVM cached volume

I don't normally ask for help with Linux, preferring to figure things out for myself, but this time I'm really stuck and I don't know where to turn for help. About a year ago, I added lvmcache to one ...
0
votes
0answers
33 views

wipefs doesn’t clear raid or LVM data?

I have a kickstart file that attempts to handle the lack of support for RAID on /boot and /boot/efi by creating the partitions of the two RAID1-disks manually. When reinstalling, the script wipes the ...
1
vote
0answers
19 views

LVM RAID rmeta sub LVs on the same drive

I've managed to make a real mess out of my segment layout in LVM. I used to have a couple of LVs but changed it to a single root LV with RAID5 (using lvmraid, not mdadm). It does work fine however ...
0
votes
1answer
30 views

pvmove to smaller drive?

I am running on CentOS 7, lvm, with an XFS formatted root drive. As originally set up, the server had a single large root volume that contained both the OS and the data. The data has now grown, and I ...
0
votes
0answers
36 views

After resize and after reduce get error on parted

Scenario I expanded the disk space, from a kvm in proxmox. By mistake expand instead of 50 GB expand 500GB Well, when I did the vps check with dmesg | grep vdb and with fdisk -l /dev/vdb | grep ^/...
0
votes
1answer
33 views

Increase LVM storage after expanded RAID5 by 4TB?

So I've been running 3x 4TB (ST4000VN008-2DR166) in RAID5 for quite a while and wanted expand it, by adding a fourth HDD. The migration was successful and the RAID Controller (LSI MegaRAID SAS 9261-8i)...
0
votes
2answers
95 views

how do i extend pv when extending vmware disk?

I extend the disk in vmware after doing so I get the configuration but how to extend the pv /dev/sda1 at 30G to later extend the vg? I don't want to extend the partition with fdisk I just want to ...
0
votes
1answer
37 views

Linux pvmove gone awry after turning on mq_deadline, any way to recover?

So we had a migration in the office using pvmove. Then this happened Mar 8 12:26:51 v1 kernel: [ 5798.100321] BUG: kernel NULL pointer dereference, address: 0000000000000140 Mar 8 12:26:51 v1 ...
0
votes
1answer
50 views

LUKS encryption on which layer?

Option1: Linux Partition -> LUKS -> LVM Option2: Linux Partition -> LVM -> LUKS Which stack is better from system load aspects? Background: On my Linux server (CPU AMD Opteron 6338P, LSI 3ware SAS /...
0
votes
0answers
15 views

Is updating of Initramfs required?

I changed LVM configuration (lvm.conf) for including a specific volume group in volume_list attribute. After some time, I reverted the lvm.conf to original by removing that volume group. Is it ...
0
votes
1answer
106 views

KVM, libvirt, and LVs inside LVs

I have a Debian server running KVM+libvirt. The VMs disks are LVs on the host. The trouble is that if I create LVs inside the guests, they are recursively detected on the host and that creates all ...
1
vote
1answer
270 views

Use Thin LVM Volume for KVM VM

I now we cannot use thin LVM volumes with libvirt. Is there any other alternative allowing use of LVM thin provisioning in KVM/QEMU virtual machines?
0
votes
2answers
129 views

Resizing Ubuntu server LVM on a VPS

I just subscribed for a Ubuntu 18.04 server, it is advertised as 20 Gb disk space but my root LVM is only 3.9 Gb. As you can see below the sda3 actualy has 20 Gb but the root ubuntu--vg-ubuntu--lvm ...
0
votes
0answers
33 views

How to list all unused disc in linux?

# lsblk -l NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT fd0 2:0 1 4K 0 disk sda 8:0 0 10G 0 disk sda1 8:1 0 10G ...
1
vote
0answers
102 views

How to Install CentOS8 on LVM on Software RAID

I'm trying to do something that should in my mind be simple - I've done this plenty of times on other distros, but can't make any headway. I'm trying to Install CentOS8 on an LVM partition on ...
0
votes
1answer
168 views

How to mount a LVM controlled ext4 file system stored on a AWS EBS volume built from a snapshot

I have a ext4 file system that is part of a Logical Volume and the underlying storage is AWS EBS. I took a snapshot of the EBS and then used that to create a new EBS volume and attached it to theEC2 ...
0
votes
1answer
26 views

What's the reason behind having LVM activation mode set to degraded by default?

Out of curiosity, why is this root@pve:~# lvmconfig --type default activation/activation_mode activation_mode="degraded" degraded, by default? Doesn't this configuration expose users to the risk of ...
0
votes
1answer
39 views

Restore root on LVM with one disk (seperate boot partition)

I did a stupid thing and accidentally removed my LVM partition in parted. Since this was a single disk LVM, parted rescue finds an EXT2 partition in the sectors, but I am unable to boot from that ...
1
vote
1answer
137 views

LVM after vgcfgrestore got: device-mapper: reload ioctl on (254:19) failed: No data available

Server have Thin LVM with a few volumes: vm-130-disk-0 - was deleted and need to be restored. vm-137-disk-0 - was NOT deleted. Trying to restore /etc/lvm/archive/pve_00336-2034680334.vg which ...
0
votes
0answers
59 views

packer & disk layouts

I'm building images for various OS using https://github.com/mrlesmithjr/packer-templates This has support of automatically creating vagrant boxes and uploading them to "Vagrant Cloud" (i guess that's ...
0
votes
0answers
17 views

qemu-kfm LVM logical volume size inconsistency in df output

The Problem: andi@docker-host-01:~$ df -hT . Filesystem Type Size Used Avail Use% Mounted on /dev/vdb1 ext4 79G 41G 35G 55% / Adding 41G & 35G gives 76G and not 79G as shown ...
0
votes
2answers
111 views

Combining Two 2TB disks and One RAID-10 Array into A Single Logical Volume?

Is it possible to combine 2 disk and 1 RAID array into 1 single logical volume in Ubuntu 18.04? I am planning to set up a PostgreSQL database on this machine and think it is better to let it store ...
0
votes
0answers
25 views

Get LV sanlock owner on a LVM shared VG

I am using a shared VG between my virtualisation hosts using lvmlockd in sanlock mode, and I have a simple question. When I try to activate a LV which is already activated on another hosts (here a LV ...
1
vote
2answers
122 views

Recover MySQL tables from removed Proxmox VM

Have the stand-alone Proxmox node with LVM thin and VM 130 volume /dev/pve/vm-130-disk-0 inside it. VM 130 was deleted accidentally. Mysql database was lost with VM. After we've discovered it in a day,...
0
votes
1answer
167 views

vdo: ERROR - Device /dev/sdc excluded by a filter

After creating a third disk in vagrant/virtualbox, I was getting this error while trying to create a VDO (Red Hat's Enterprise Linux 8 tool for deduplication and compression). For LVM you usually go ...

1
2 3 4 5
27