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
8
votes
2 answers

Grub2 reports physical volume pv0 not found on server non bootable anymore

I first installed my ubuntu server (11.10 amd64) using lvm but not fully mastering the concept of it. I think that's partly what made the mess of partitions on my two disks (seems to me). I installed everything using grub2 from the start to boot my…
Meeshkah
  • 81
  • 3
8
votes
2 answers

How to stop a Linux LVM volume group?

I am currently dealing with a multiple disk failure on a Linux LVM Volume Group that is backed up by a RAID-5 md device. One disk has been taken out completely and another one is showing a limited number of corrupt sectors, due to what seems to have…
thkala
  • 1,210
  • 1
  • 13
  • 19
8
votes
3 answers

debian 6 preseeding keeps asking "Write the changes to disks and configure LVM?"

I try to use an expert recipe configuring lvm for debian 6.0.5 netinstall. I don't want to be asked any questions, but it keeps asking me "Write the changes to disks and configure LVM?" Here is part of my preseed.cfg: d-i partman-auto/disk string…
Isaac
  • 1,215
  • 3
  • 26
  • 44
8
votes
1 answer

HP DL380 G7 + Smart Array P410i + sysbench -> poor raid 10 performance

I have running system with low IO utilization: HP DL380G7 ( 24gb RAM ) Smart Array p410i with 512mb battary backed write cache 6x SAS 10k rpm 146gb drives in RAID10 Debian Squeze linux, ext4 + LVM, hpacucli installed iostat (cciss/c0d1 = raid10…
Oleg Golovanov
  • 193
  • 3
  • 6
8
votes
3 answers

Can't Mount LVM Snapshot Volume

I have a logical volume which serves as the filesystem for a virtual guest OS. I'm happy with the state of my guest OS and would like to make a backup of it. I created a snapshot using lvcreate and I'm attempting to mount the snapshot so I can tar…
Andre
  • 181
  • 1
  • 4
8
votes
7 answers

lvremove claims LV to be open

frequently I notice that after a $ sudo lvcreate vg -L 10G immediately followed by a $ sudo lvremove vg/ I get the error message Can't remove open logical volume "..." while a $ sudo lvs shows me for that volume lvol2 vg…
glglgl
  • 711
  • 1
  • 6
  • 22
8
votes
4 answers

On Ubuntu 11.10, is it possible to decrypt 2 hard disks encrypted with LUKS / LVM by entering only one passphrase at boot?

here the configuration I have : - 2 hard drives, - first one is encrypted using LUKS and LVM. I'd like to add in the volume group encrypted a second hard drive. I have successfully installed it and encrypted it. But when I boot, I have to enter 2…
AlBundy
  • 121
  • 4
8
votes
2 answers

Is the fdisk partition type important when using lvm

I have inherited a few LVM volumes and I noticed that fdisk reports the disks that make up the volume group as partition type 83 (Linux) and not 8e (Linux LVM). Is this a problem and how important are the fdisk partion types? Do they affect…
jwinders
  • 125
  • 1
  • 9
8
votes
1 answer

Advantages and disadvantages of Logical Volume Manager (LVM)? And LVM vs encrypted LVM?

In my situation, it's for a local build/staging server running ubuntu server. Things I'd like to know are: Why I should/shouldn't use LVM? What problems might it cause in terms of either regular server operation or things I might want to do later?…
user29600
  • 419
  • 5
  • 17
  • 30
8
votes
2 answers

Should I be using LVM snapshots along with rsnapshot?

I manage a CentOS 4.8 server for a small workgroup. Last year I converted the filesystem to LVM over software RAID (RAID 1, two mirrored drives). I now have the following filesystems on LVM/RAID: /dev/mapper/vg-home 619G 231G 358G 40%…
Phil Hollenback
  • 14,947
  • 4
  • 35
  • 52
8
votes
1 answer

Can I use dmraid instead of md (mdadm) to make software RAID-1 and RAID-1+0 volumes?

On a related question about SSDs and TRIM (see: Possible to get SSD TRIM (discard) working on ext4 + LVM + software RAID in Linux? ), it turns out that dmraid may now (or shortly) support TRIM on RAID-1. Typically, we've used md (via mdadm) to…
Don MacAskill
  • 1,808
  • 3
  • 16
  • 22
8
votes
4 answers

Using 4k drives with md/LVM/dm-crypt

I know that I have to align my 4k drives by a multiple of 8 sectors, but what about md-RAID / LVM / dm-crypt? How do I tell these layers that my drive is 4k? If they don't respect the 4k sector size, the partition alignment is useless. How do I…
Vincent
  • 189
  • 1
  • 2
8
votes
1 answer

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] -l100%FREE -n[lv name] [vg name] but looking into…
s-kaczmarek
  • 145
  • 2
  • 7
8
votes
4 answers

vgcreate --> "Command failed with status code 5." what does this mean?

i'm playing around w/ LVM on a centos domU in a xen-based vps. I'm in rescue mode and I've created one physical volume (pvcreate /dev/xvda1) for my entire drive, which is formatted as LVM. i'm now trying to create a volume group using vgcreate…
erik
  • 89
  • 1
  • 1
  • 2
7
votes
2 answers

Hetzner's installimage script, RAID1 hard drives + SSD

I just purchased a server from Hetzner, with two 4TB hard drives and one 1TB SSD. I want to setup the two hard drives (/dev/sda & /dev/sdb) in RAID1 and install the OS on them, and have the SSD (/dev/sdc) as an extra drive. Until now, all my…
Tim Autin
  • 273
  • 1
  • 2
  • 10