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.

1531 questions
30
votes
14 answers

Can't remove open logical volume

When I try to remove a logical volume I get the message #lvremove /dev/my-volumes/volume-1 Can't remove open logical volume "volume-1" #lvchange -an -v /dev/my-volumes/volume-1 Using logical volume(s) on command line /dev/dm-1: read failed after…
22
votes
1 answer

How can I tell pvresize to expand a physical volume to include all available space?

We have a poorly implemented mysql server that had been built by a vendor. It has consumed 100% of available disk space, and as soon as any space is cleared out mysql grows to consume it. This is, obviously, a problem. We currently have 2 disks in a…
Matthew
  • 2,747
13
votes
5 answers

How to recover logical volume deleted with lvremove

I am on CentOS 5.5 and am running Xen. I have a large volume group that I create logical volumes on using lvcreate. Today I had a customer cancel her account, then change her mind about an hour later. Unfortunately I had already removed the LVM…
John P
  • 1,689
10
votes
2 answers

Can I get LVM to check if my mirrors are consistent?

I'm using LVM mirroring. Following some disk issues I'm concerned about the consistency of the data in my mirrors. Is there anyway I can get LVM to physically compare the data in each mirror?
8
votes
1 answer

What does the less than symbol in front of LVM volume size mean?

Input lvs Output LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert home mainvg -wi-ao---- 10.00g root mainvg -wi-ao---- <40.00g swap swapvg -wi-ao---- 4.00g What does the less than symbol (<) in the root volume…
Ryan J
  • 375
7
votes
2 answers

Insufficient suitable allocatable extents when extending lvm

I have a volume-group (vg) with about 127GB free space. I am trying to extend a logical volume to +50GB however i am getting insufficient suitable allocatable extents This is quite weird since there is enough space on the VG to allocate. Bellow…
giomanda
  • 1,824
6
votes
1 answer

Extend volume group with adjacent unallocated space

I want to grow my volume group to use the unallocated space next to it. Name Flags Part Type FS Type [Label] Size (MB) Unusable …
Roderik
  • 227
6
votes
2 answers

lvm physical volume set not allocatable after server move to virtual machine. Can I change it?

I have a virtual machine running on LVM. Its working ok except that now I can't expand or create any logical volumes. It gives me the error: # lvcreate -L10G -n test LocalVG Insufficient free space: 320 extents needed, but only 0 available But I…
deltaray
  • 1,555
4
votes
2 answers

Fix overwritten LVM physical partition

I used a whole device as LVM physical partition, just so sudo pvcreate /dev/xvdg Unfortunately, while this was in use, I then accidentally overwrote some data (I think), by writing a new partition table: sudo fdisk /dev/xvdg, add new partition,…
Cookie
  • 191
4
votes
3 answers

LVM issue: cannot resize to N extents as M are allocated

I setup default Fedora partitioning with LVM. Now, I would like to shrink my partition to create 1 new partition. Could you please help me understand why I am getting such error? [root@host]# lvm pvresize /dev/sda2 --setphysicalvolumesize 60G …
Andrew
  • 1,114
4
votes
1 answer

How to grow LVM and underlying partition?

I was messing around with a VM running Ubuntu 10.04 Server (64-bit) with LVM on a single 4GB disk. I just used the installer's automatic LVM setup and I landed with (ignore the disk size - that was after I resized the disk to be 8GB): Disk /dev/sda:…
xyzzyrz
  • 1,665
4
votes
5 answers

How to copy a large LVM volume (14TB) from one server to another?

I have to copy a very large LVM volume from server A to server B. Below is the filesystem of server A and server B Server A [root@AVDVD-Filer ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_avdvdfiler-lv_root …
bruce
3
votes
5 answers

Why use LVM? It creates more borders (less freedom)

I have a linux server which runs in a VM. The hypervisor is VMWare. This setup was done by a former admin: server:~ # pvs PV VG Fmt Attr PSize PFree /dev/sda2 system lvm2 a-- 119,84g 0 server:~ # vgs VG #PV #LV #SN…
guettli
  • 3,833
3
votes
2 answers

Remove Physical Volume from Volume Group

How do you remove a PV from a VG? Here's what I've tried: # vgreduce vg_iscsi /dev/sdb1 Physical volume "/dev/sdb1" still in use # lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert root centos …
Snowcrash
  • 1,157
3
votes
1 answer

Is it possible to mirror a striped LVM logical volume?

I have a striped logical volume that is currently split between two physical drives (/dev/sda1 and /dev/sdb1). I now want to mirror this volume onto a third device (/dev/sdc1) that has been added into the volume group. A number of references I have…
Eborbob
  • 213
1
2 3 4 5 6 7