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.

1504 questions
7
votes
1 answer

Error when trying to mount snapshot LVM (XFS filesystem)

I have the following logical volume: --- Logical volume --- LV Path /dev/wd1/mongodb LV Name mongodb VG Name wd1 LV UUID xxxx LV Write Access read/write LV Creation…
MarMan29
  • 343
  • 3
  • 7
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,754
  • 4
  • 21
  • 30
7
votes
1 answer

df report incorrect free space for a filesystem (ext4)

I am facing an issue with wrong fs space reported by df. We are talking about bare metal Ubuntu 14.04 server, with the / partition managed by LVM. Size reported by df is different from the size reported by fs super-block. Also calculating size from…
Tom Lime
  • 201
  • 1
  • 2
  • 8
7
votes
3 answers

Optimize SSD storage on Centos 6.6 - KVM

I have a Dell R610 with hardware: H700 raid card 4xMicron MX100 512GB -> configured raid 10 I have installed Centos 6.6 on this server and configured: KVM virtualization Volume Group for raid 10 array Each guest VM using Logical Volumes from…
user2629480
  • 71
  • 1
  • 2
7
votes
1 answer

rsnapshot LVM fails to remove snapshot volume

I am using rsnapshot on a Debian Wheezy server. This was recently upgraded from squeeze. Since the upgrade, I am getting the following error from the hourly cron job: remote rm -rf /share/HDA_DATA/backup/rsnapshot/hourly.3 p1=-rf…
Paul
  • 1,288
  • 13
  • 25
7
votes
3 answers

is there any advantage mounting an LV by UUID instead of by path?

I know I can specify mounts in fstab by either putting their path (like /dev/sda1 or /dev/mapper/myvg-logicalVolume1) or by fs label (LABEL=root) or by UUID (UUID=1234-5678-...). I see a clear advantage in terms of reliability using the UUID for…
Carlos Campderrós
  • 773
  • 2
  • 6
  • 17
7
votes
1 answer

find file by block number on ext3 fs on lvm

smartd has detected a bad block on my hard drive and I'd like to know what file does that block belong to. I have ext3 filesystem on a logical volume. Google gave me a lot of tutorials (like this one: http://www.vanderzee.org/bad_blocks_howto) of…
facha
  • 1,368
  • 2
  • 18
  • 26
7
votes
6 answers

LVM logical volume partition corrupted after lvreduce

I encounter the problem when I try to shrink one logical volume. I took the actions as following steps shown below: # unmount /home # lvreduce --size -100G /dev/vg_dev/lv_home # lvdisplay /dev/vg_dev/lv_home --- Logical volume --- LV Path …
James Tang
  • 171
  • 1
  • 1
  • 3
7
votes
1 answer

XFS: no space left on device, (but I have 850GB available!)

I'm using a combination of mdadm, lvm2, and XFS on Amazon EC2. So far, I've had success running a RAID 5 volume built from a number of EBS volumes. The EBS volumes are attached and used with mdadm to create the RAID 5. Then, I use LVM to present the…
Tom
  • 3,213
  • 2
  • 20
  • 19
7
votes
2 answers

Reasoning behind RHEL's use of LVM even on a single disk install

When doing a default install of RHEL5 and higher (at least - don't recall if it has done it longer), Anaconda will setup your drives into a logical volume group - even if there is only one drive. What is the purpose/reasoning behind using LVM atop a…
warren
  • 18,369
  • 23
  • 84
  • 135
7
votes
1 answer

losetup -d giving : device busy

I am mounting a KVM disk (LVM) following these commands : # losetup /dev/loop0 foo.img # kpartx -av /dev/loop0 # mount /dev/mapper/loop0p1 /mnt # unmount /mnt # kpartx -dv /dev/loop0 # losetup -d /dev/loop0 Problem is when I want to do kpartx -d…
Lucas Kauffman
  • 16,880
  • 9
  • 58
  • 93
7
votes
4 answers

Software RAID10 for later growth

I'm wondering what the best practice is for creating RAID10 in software on Linux with the ability to later grow by adding disks or expanding volumes underneath. I'm using EBS on Amazon, I want to create 8x1GB RAID10 but have the ability to grow…
Richard
  • 71
  • 1
  • 2
7
votes
4 answers

Getting a textual overview of a system's LVM configuration

We are making extensive use of the logical volume manager (LVM) on our Debian servers. But I find it hard to get a good overview on which partitions (LVM as well as native) I have mounted where, from which LV (logical volume) from which VG (volume…
Signum
  • 1,238
  • 1
  • 12
  • 14
7
votes
2 answers

convert 1x2TB HDD with LVM into 2x2TB HDD with RAID1+LVM or with LVM mirroring?

I have Ubuntu server with 1x2TB HDD and 1x128GB SSD (unused). There are 2 partitions: /boot, and a physical volume for LVM, which has 1 group and 5 logical volumes: /, /var/log, /home, /srv, /tmp. Recently the 2nd 2TB HDD arrived. We need better…
chronos
  • 578
  • 5
  • 13
7
votes
4 answers

Linux Software RAID1: How to boot after (physically) removing /dev/sda? (LVM, mdadm, Grub2)

A server set up with Debian 6.0/squeeze. During the squeeze installation, I configured the two 500GB SATA disks (/dev/sda and /dev/sdb) as a RAID1 (managed with mdadm). The RAID keeps a 500 GB LVM volume group (vg0). In the volume group, there's a…
flight
  • 394
  • 4
  • 14