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.
1,530
questions
1
vote
0
answers
865
views
Commands hangs on logical volume
I'm using virtual machine with SUSE Linux Enterprise Server 11. After one of the critical shutdowns of the server, the disk id have changed. I have changed and replaced the values with new ones in the ...
0
votes
1
answer
2k
views
Centos 6.10 - How to increase allocated PE size to take up Free P/E size
I recently had to shrink a Clonezilla image, but overdid it an now have to recover some unused free space.
Here is the output of vgadisplay:
--- Volume group ---
VG Name ...
1
vote
2
answers
1k
views
Reducing an lvmgroup - cannot resize to xxxx extents as later ones are allocated
I've been going through the process of reducing the size of a Centos 6.10 image by reducing an lvmgroup. I'm at the point where I've been able to run this command:
pvresize -tv --...
1
vote
0
answers
48
views
Striped Logical Volume
Im currently setting up a lab for LVM, three PV sdb1 sdc1 and sdd1. A striped logical volume is created named stripe01 with PV sdb1 and sdc1. Are there any options in lvconvert to add/remove a stripe ...
1
vote
1
answer
62
views
Resizing Virtual Ubuntu Server
I have a virtual instance of Ubuntu Server running. Increased the virtual disk from 37GB to 50GB, but now stuck on getting the additional space to the LVM.
I have tried lvextend and resize2fs with the ...
2
votes
1
answer
1k
views
Cannot extend logical volume with ansible lvol module
I cannot extend an LVM logical volume with ansible lvol module
This is an excerpt from my playbook:
- name: Create lv (lvcreate)
become: true
lvol:
vg: "{{item.vg_name}} "
lv: &...
1
vote
1
answer
307
views
Broken lvm results in read_urandom error
I was doing something in a chroot, and unfortunately I broke the host. Now I cannot manage the volume groups:
pvs
read_urandom: /dev/urandom: open failed: No such file or directory
Same error with ...
0
votes
2
answers
3k
views
lsblk shows LVM volume as subcomponent of a partition
Given two physical drives, sda and sdb, I have:
Used fdisk to make sda1, sda2, sdb1 and sdb2
Created four physical volumes accordingly: pvcreate /dev/sda1 etc
Created a volume group: vgcreate datavg /...
0
votes
0
answers
487
views
How to properly update container sizes when extending kvm/libvirt disk when running into "... smaller then corresponding PV size" error?
I work on a Debian buster system as a KVM/libvirt host and followed this guide to extend the disk of my guest: https://computingforgeeks.com/how-to-extend-increase-kvm-virtual-machine-disk-size/ .
...
1
vote
0
answers
353
views
Is it possible to migrate between two physical disks without (much) downtime?
I have a server with a medium-sized database on a disk which is filling-up. There is no LVM or RAID or anything like that in play at this point. I already have the new disk installed in the server.
Is ...
0
votes
1
answer
534
views
How to backup large MySQL database with the help of LVM snapshots?
I am trying to find a backup/restore procedure for a MySQL 8 DB with 400M+ Rows in InnoDB tables. MySQLdump takes days and therefore I am trying this now:
Mount a LVM volume on the DB Folder
Create ...
2
votes
5
answers
1k
views
How can I restore an LVM snapshot of a larger volume on a smaller disk?
I am trying to backup/restore an LVM volume on a local Ubuntu 20.04 (Focal Fossa) server. The production server has an LV of 500 GB, however there are only 19 GB used so far.
The local development ...
0
votes
1
answer
1k
views
What does the Cpy%Sync column of lvs output mean for a cache LV?
I have a host with a single cache LV (~800GB SSD in front of a multi-TB RAID array; write-through mode). I ran a routine scrub on the RAID last night (lvchange --syncaction check). Ever since that ...
3
votes
1
answer
1k
views
e2fsck cleans a filesystem and then a few minutes later (after a lot of reads) there are errors
The filesystem is on an LVM RAID5. It appears to be working correctly:
$ sudo pvs
[sudo] password for jrwren:
PV VG Fmt Attr PSize PFree
/dev/sda2 datavg lvm2 a-- <7.28t ...
0
votes
0
answers
293
views
Import exisiting Logical Volume into Openstack
My Openstack (Microstack on Ubuntu) got screwed up and I had to reinstall it. Putting a backup of the Openstack config back in place didn't work so have to start "fresh".
The problem now is: ...
0
votes
1
answer
613
views
How to free space in lvm pool?
I have a newly built CEntOS 7 server with a single large lvm pool we plan to use for VM installations. When I tried to create a new VM instance using ssm, I got errors saying there's no space. So I ...
0
votes
0
answers
862
views
How do I recover a broken logical volume group?
I created a logical volume group for my xen VMs on a separate drive. I had them working perfectly.
Then I accidentally unplugged the USB cable hosting my vg0. Now my VMs drives cannot be detected.
I ...
1
vote
0
answers
35
views
Recover LV from Cachepool
I have a RHEL VM which has 4 x 500GB disks attached to it from the host machine - which it serves from a 3-node RAID5 storage disk. I didn't build in redundancy on the LV layer, because the disks were ...
0
votes
1
answer
1k
views
How can I extend or resize lvm from disk space
We use ceph to manage the storage and recently increased /dev/sdb's disk size.
I'm not sure how to utilize the newly available space in my ceph's lvm.
sdb ...
1
vote
0
answers
6k
views
LVM: duplicate PVs were found
I have 3node cluster(centos7), While installing glusterfs and heketi i found issue of duplicate pv in LV.
[centos@master-node ~]$ sudo pvs
WARNING: Not using lvmetad because duplicate PVs were found....
1
vote
1
answer
657
views
Unable to resize lvm to max of vda
I am trying to resize my lvm partition frm 29GB to ~60GB. Here is my current status:
root@demo:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 ...
0
votes
2
answers
113
views
How to resize LVM partition in my setup?
I have a CentOS 6 VMware VPS with the current partition format :
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_serverdl-lv_root
11G 4.9G 4.7G 52% /
...
0
votes
0
answers
277
views
Do I need a spare slot to replace a drive in an LVM raid array?
I am planning to set up an LVM raid 5 array and looked at how to replace a faulty drive.
I found the replace command
lvconvert --replace dev_to_remove vg/lv [possible_replacements]
For this to work, ...
0
votes
1
answer
793
views
How to increase PV in Ubuntu after Virtualbox VDI resizing?
I did run out of disc space for the root partition in Ubunut 20.04. This is a guest system on Virtualbox.
Therefore I did:
Resized disk in virtualbox
Attached it to another linux box
Booted the other ...
-1
votes
1
answer
399
views
Need to make some Free space VG PE Size
I want to add 150GB space in Free PE /Size.
How can I accomplish this?
[root@localhost ~]# vgdisplay rhel01
--- Volume group ---
VG Name rhel01
System ID
Format ...
2
votes
1
answer
920
views
Grow mdadm raid from raid1 to raid0 with active lvm
We rented a server with two NVMe disks in a raid1 configuration with a lvm on top of that.
Is it possible to change the raid level to raid0 without making any changes to the lvm config? We don't need ...
0
votes
0
answers
42
views
speed difference between FS created by LVM and parted cmd
I was testing read/write operation on FS to check speed via dd cmd.
/app - created with LVM
/app1 - created with parted
when I run below cmds, can see huge diff in speed for both operation with same ...
2
votes
0
answers
687
views
Modprobe error at boot
I'm using LMDE4 with LVM on LUKS and recently I've been getting these cryptic error messages at boot:
modprobe: module aes-i586 not found in modules.dep
Volume group "lvmlmde" not found
...
2
votes
1
answer
1k
views
Can not move extents after pvmove --abort
I wanted to move extents from one disk to another, both have the same size:
# pvmove /dev/sdd1 /dev/sdc1
Unfortunately, pvmove hung at 99.99% for several hours and I decided to issue a pvmove --abort....
-1
votes
2
answers
936
views
Best Practice: Add an Additional Disk to Expand Logical Volume or Expand Existing Disk
We host a client’s Oracle VMs on our Nutanix platform. To date, whenever their VMs require more space they have us add an additional vDisk which they then add to the VG in order to expand the required ...
1
vote
0
answers
546
views
Recover encrypted LVM
I had Debian install running on LUKS encrypted LVM.
This morning, I wanted to install OS on external disk to be used on another host, but mistakenly I chose the wrong disk... Few seconds in I noticed ...
1
vote
0
answers
205
views
One LVM for multiple nodes in cluster
We have a cluster with 3 nodes.
On one node hard disks have been added and configured as LVM.
The idea is to make this LVM also available on the other nodes.
Therefore, the other nodes were added to ...
1
vote
1
answer
343
views
Issue with removing LV disk space that was extended from another disk
I have a redhat server with two disks 100gb and 500gb. The 500GB disk was unused, however I then used it to extend the /var LV. The filesystem on all mountpoints are xfs and you actually can't reduce ...
1
vote
0
answers
146
views
LVM filter does not stop when rule matches?
I have a problem with a lvm filter configuration.
I want to filter out certain devices/partitions from lvm scan. I can do it by making filter like so:
filter = ["a|/dev/disk/by-partuuid/<uuid&...
3
votes
1
answer
1k
views
Using two SSDs for Hot-Warm-Cold Caching a HDD on Linux
I currently have a debian-based Linux system that I'd like to optimize heavily. This machine has three different drives: An SLC SSD, a QLC SSD, and a 4TB HDD. I wanted to know if it was possible to ...
0
votes
0
answers
541
views
Create an Fully Automated Installer for Debian with FAI
I searched on Google about creating Fully Automated Installer for Debian. My aim is to have an ISO file, make it bootable in pendrive. So if I plug this pendrive in a computer, power on the physical ...
0
votes
1
answer
1k
views
Fresh Ubuntu 20.04 install no disk space on / and unable to extend
I have fresh Ubuntu 20.04 with 50GB disk size installed using defaults.
Now I don't have any space left on /dev/mapper/ubuntu--vg-ubuntu--lv.
df -h
Filesystem Size Used Avail ...
0
votes
0
answers
840
views
Unable to extend, create and attach openstack volume to an instance
I am running Ocata openstack on Ubuntu 16 and trying to extend an existing volume from 100GB to 250GB by following the link:
https://docs.openstack.org/cinder/rocky/cli/cli-manage-volumes.html
After ...
0
votes
0
answers
229
views
How to resize img file created with dd on LUKS-LVM partition?
I have installed a new Debian 10 on /dev/sda with LUKS + LVM. It has the following partition structure:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 79G 0 disk
├─...
1
vote
1
answer
768
views
Ubuntu 20.04 new fresh LVM on 5TiB shows just 4.1 TiB space
On a fresh installed Ubuntu 20.04 I attached second disk with size of 5 TiB. I used following commands to create LVM.
Disk /dev/sdb: 5 TiB, 5497558138880 bytes, 10737418240 sectors
Disk model: Virtual ...
0
votes
0
answers
44
views
Add disk to software raid pool
I have a setup like this there run a mirroring software raid1 but its possible to add a disk more and use its like a raid5 or how do i add more storage to the raid?
Current with 2 disks
| / | /var | /...
2
votes
0
answers
241
views
How to convert LVM on MDADM RAID1 on two MBR partitioned drives to GPT without data loss
I have an Ubuntu 18.04 LTS Server with two 3TB Fujitsu SATA disks with MBR partition tables. Output from fdisk -l and lsblk is shown below :
sudo fdisk -l /dev/sd[ab]
Disk /dev/sda: 2,7 TiB, ...
0
votes
2
answers
803
views
Mixed HDD size storage system with parity
Im searching for a way to get the most out of "spare" HDDs. Following setup given:
1x 2 TB
2x 3TB
2x 6TB
What i want/need is:
Parity (1x HDD can fail. For example, one of the 6TB. Data ...
1
vote
1
answer
330
views
Atop shows MDD stuck at 100%
After investigating a load spike on my CentOS 7 server, I ran atop and noticed something odd.
It is reporting MDD for my logical volume (md127) maxed out at 100% all the time.
The other disk tests I ...
0
votes
1
answer
993
views
LVM PV missing on boot - dropped to initramfs shell
I rebooted my ubuntu 20.10 server today and it suddenly started complaining that it cannot find one of the PVs in the root LV
After some digging around in the shell that it dropped me to I could see ...
0
votes
2
answers
2k
views
Grow raid5 lvm by adding extra disks
I have 3 drives that I want in raid5 to get the most space utilization while still allowing a disk failure. But I want to be able to expand the array later when I have more disks (likely up to 7 ...
2
votes
2
answers
2k
views
Difficulties on remove/resize an LV. [device busy]
i'm facing difficulties removing a logical volume from my server on SLES11SP3.
Checked online for help, tried many things with no success, thus i ask the experts.
# lvscan
├─vg-lv_a (dm-22) 253:22 ...
0
votes
1
answer
598
views
How do I resolve this LVM issue in Ubuntu on a USB External Drive?
I'll try to be brief and succinct.
I recently wiped my Ubuntu server and re-installed 20.04 on an older Proliant DL360. This system had two seagate external USB drives attached to it which store a ...
1
vote
0
answers
28
views
LVM: how to strip Logical volume without impacting existing data?
I have an LV lv1 backed up by a VG vg1 using 2 PV pv1 and pv2.
From lvs I understand that the layout of the LV is linear:
# lvs -o+lv_layout,stripes
LV VG Attr LSize Pool ...
1
vote
0
answers
1k
views
From mdadm raid to LVM (raid or mirror) decisions and how to monitor
We are migrating some server from linux raids (0 and 1) to LVM with stripe or mirrors.
At the moment our systems are mainly configured something like
| /tmp - /home - /others
|------------------------...