Questions tagged [lvm2]
61 questions
65
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
- 817
- 1
- 8
- 15
17
votes
3 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
- 345
- 1
- 3
- 9
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,…
CptSupermrkt
- 325
- 1
- 2
- 8
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,291
- 7
- 30
- 40
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
- 3
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
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
- 143
- 1
- 6
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
- 2
- 9
3
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…
incidentist
- 133
- 1
- 4
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…
Supernormal
- 181
- 1
- 6
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…
Paul Caheny
- 153
- 2
- 6
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
- 7
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
- 203
- 2
- 12
2
votes
1 answer
Removing lvm cache volume results in "Unknown feature in status" output
Recently I've replaced the HDDs in a RAID 1 mdadm array due to a lack of space.
The structure is as follows:
- 2 HDD in RAID 1 (Originally 2x2TB, now 2x4TB)
- LVM
- Swap
- BTRFS
- 3 SubVols for /, /home, and /var
- 1 SSD for LVM…
Zelec
- 21
- 1
2
votes
1 answer
Gentoo Linux -> Ubuntu: Can I Preserve My LVM/RAID Devices, Or Do I Need To Reformat?
I've got a Gentoo box that I'm interested in switching over to an Ubuntu box.
I currently have the partitions laid out using a mixture of RAID (mdadm) and LVM2, as specified in this document [1].
Ideally I'd like to just wipe out the non /home…
Eddie Parker
- 2,824
- 8
- 30
- 37