Questions tagged [lvm2]

64 questions
73
votes
7 answers

grub2-install: "this GPT partition label contains no BIOS Boot Partition"

There seems to be quite a bit of discussion about this but I can't find a simple answer. When I try to install grub2 I get this error: # grub2-install /dev/sda Installing for i386-pc platform. grub2-install: warning: this GPT partition label…
Robert S
  • 907
21
votes
4 answers

Is there a simple way to move/copy a logical volume from one volume group to another? (LVM2)

I'm rearranging a bunch of disks on my server at home and I find myself in the position of wanting to move a bunch of LVM logical volumes to another volume group. Is there a simple way to do this? I saw mention of a cplv command but this seems to…
jkp
  • 385
8
votes
2 answers

How can I shrink a Logical Volume, and re-allocate the freed space into a new partition on the same drive?

I have a drive, sda. It has two partitions: sda1: /boot sda2: LVM managed in Volume Group volgrp01 volgrp01 contains the following Logical Volumes: lv_root (30 GB) lv_swap (8 GB) lv_scratch (430 GB) What I want to do is reduce lv_scratch to 50 GB,…
8
votes
1 answer

Booting windows (any version) from an LVM volume

I'd like to know if any versions of Windows are able to boot from an LVM logical volume, with or without third party extension software.
intuited
  • 3,481
7
votes
4 answers

mdadm volume works, but won't assemble/mount on startup?

I have an mdadm/lvm2 volume with 4 HDs that I created in Ubuntu 10.04. I just upgraded the computer to Ubuntu 10.10. I redid the mdadm commands to get volume up and running, did mdadm --detail --scan > /etc/mdadm/mdadm.conf to get the configuration…
Stride
  • 81
  • 1
  • 1
  • 3
4
votes
1 answer

Mounting LVM2 volume with XFS filesystem

Unfortunately I'm not able to access the data on my NAS anymore. I can't figure out why this is the case as I haven't changed anything. So I plugged one of the harddisks in my computer to access the data. What I did: kpartx -a /dev/sdc Now I should…
Chris
  • 153
4
votes
2 answers

How can I copy an LVM configuration to another machine?

I inherited a machine that's set up with 3 disks, managed by LVM (v 2.02.46-RHEL5). I just got a new box with the same hardware configuration, and would like to clone the disk setup by copying an LVM config file from the first box to the second, and…
3
votes
1 answer

Remove a Physical Volume from VG with no free PE

I have LVM2 setup containing 2 Physical Volumes sda5 and sda6. Both Physical volumes are included in a single Volume Group VG, which inturn contains only one LV. The LV uses all the memory of the Physical Volumes, which means I cannot create another…
user167020
3
votes
1 answer

LVM - Zero out empty space in a Volume Group

How do I zero out the empty space in a volume group? I've got a Virtual Machine contained in a Logical Volume. This logical volume itself contains sda1 for boot partition and sda2 as physical volume for the volume group vmvg. The volume group vmvg…
Sparctus
  • 103
3
votes
2 answers

allow non root user to lvm command

I have to write a script that would allow non root user to display LVM info. I have allowed that user in sudoer file but still not able to run that command returning with following error. WARNING: Running as a non-root user. Functionality may be…
2
votes
1 answer

Can I control which physical volume(s) in a volume group will be used first?

I just set up my swap to use LVM, with a volume group that contains two physical volumes: one partition on an SSD and one partition on an HDD (because the space available on my SSD wasn't large enough for the swap partition I want). Now, I would…
2
votes
1 answer

Can't boot Linux Mint 15 installed entirely in LVM. Where should grub 2.0 boot loader go?

I'm attempting to install Linux Mint 15 entirely within LVM (in four separate LVM logical volumes: / /boot /home swap I've set up the LVM configuration by booting into the Mint 15 Live environment from a USB key. The LVM and Mint install is going…
2
votes
1 answer

How do LVM Snapshots work on the PE level?

How do LVM Snapshots work on the PE level? What is stored where? What data is lost when the snapshot runs out of COW space? (description + explanation below) I was experimenting with LVM and snapshots on VirtualBox, and I am noticing some strange…
drdrez
  • 187
2
votes
1 answer

LVM: Problems in adding disk to an existing Logical volume

I have a disk under a Logical Volume. $ lvdisplay --- Logical volume --- LV Path /dev/vg_prod/lv_prod LV Name lv_prod VG Name vg_prod LV UUID …
2
votes
0 answers

How to prevent GRUB from scanning lvm snapshot?

My root file system is a LVM2 logic volume, and there are few snapshots of it beside. Every time when I run update-grub, it always add menu entries for those snapshots as if they are normal volumes. This behavior not only generates garbage in…
Leon
  • 281
1
2 3 4 5