Is it possible to create a volume group from a logical volume instead of a physical volume? If so, are there any pitfalls in doing so?
Use case:
Installing OpenStack Compute on a a system that already has all of the physical volumes assigned to a singe volume group. The nova-volume service requires a separate volume group, as described in the documentation.
I attempted to do a logical volume resize yesterday using the follwoing commands
$sudo pvdisplay
"/dev/sda8" is a new physical volume of "113.11 GiB"
--- NEW Physical volume ---
PV Name /dev/sda8
VG Name
PV Size 113.11 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE
I'm planning to use LVM for KVM, and when I try to create a VG it fails, so how can I create my VG and LV ?
Thanks
[root@server ~]# vgcreate virtual-machines /dev/sda
Device /dev/sda not found (or ignored by filtering).
Unable to add physical volume '/dev/sda' to volume group 'virtual-machines'.
[root@server ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3
I apologize is this isn't an appropriate post for the 'advanced' UNIX, so please let me know if I should post this under UNIX for dummies, but here's my problem in a nutshell: I having problems creating a mirrored logical volume.
I have created two new physical volumes
Code:
root@ubuntu:/home/ubuntu# pvcreate /dev/sdc1 /dev/sdd1
Physical volume "/dev/sdc1" successfully crea
Hi,
I run Fedora 17.
I created a physical volume of 30GB on a disk with 60GB of space so there is 30GB of free space. On the physical volume, I created my volume group and logical volumes. I assigned all the space in the physical volume to my volume group.
I don't think you can resize an LVM PV with parted so I suspect that you will need to create a new partition alongside the existing one, then use pvcreate to create a new physical volume and a... [by TrevorH]
I want to try using LVM snapshots for backups. I'm working on an older CentOS 5 box, but I'm not sure if I can do it. From what I read, it seems like I need extra space on the physical disk in which to create a new volume. Is that the case? To me, from looking at the LVM command output, it looks like everything is full...
Hi,
I'm installing Ubuntu Server 12.04.2 LTS so it can run OpenStack, and I have an 'OS' physical volume/volume group that automounts at boot, so the LUKS obviously asks for the passphrase for that at boot, but the 'cinder-volumes' physical volume & subsequent volume group doesn't have anything to mount, so I don't know how to make the prompt to decrypt it happen.
I want to enter the 'cinder
I followed this guide: http://www.mongodb.org/display/DOCS/Amazon+EC2+Quickstart to set up Mongodb.
It had me create a RAID 10 array out of the four devices on EBS. Then it had me create a physical volume, a volume group, and three logical volumes out of that RAID 10 array.