Forum archive
Failed increase LVM volume size
Hi All,
I was running out of space on my root partition for an OTRS instance of Turnkey-Linux, so I tried to follow the instructions given on blog entry: /blog/extending-lvm
I first powered down the Turnkey VM, increased the virtual disk size in XenServer from 8GB to 16GB, and started the VM again.
Once it had loaded, I started cfdisk, and created a new partion (sda6) filling up the 8GB free space.
I then ran pvcreate /dev/sda6, but it gave me a message (that I not longer have access to) but suggested the device didn't exist. So I restarted the VM (as I thought the post had suggested).
But now when I boot the VM, I get the following: ALERT! /dev/mapper/turnkey-root does not exist. Dropping to a shell! ...and then loads BusyBox to a RAMdisk.
dmesg shows sda still has partitions: sda1 sda2 < sda5 sda6 >
blkid only shows sda1 (assuming this is /boot)
I have tried googling this, and the pages I found seem to omit assumed knowledge... I am at a loss!
ref: http://www.planamente.ch/emidio/docs/linux/lvm-html/linuxdoc/lvm-6.html
EDIT: I have also run lvm from the (initramfs) prompt - vgscan and pvscan all come up blank.
EDIT #2: After running lvm from the (initramfs) prompt, and running pvscan -vv I saw:
/dev/sda5: size is 16273409 sectors
/dev/sda5: size is 16273409 sectors
/dev/sda5: Label for sector 1 found at sector 2 - ignoring
/dev/sda5: No label detected
Thanks in advance for any help.
If you can build a new Base Appliance with a bigger LVM system you might find it easier just to do a TKLBAM-Restore to get a bigger system. Do you have any sort of Snapshot that you can go to that has good/stable drives that you can use as a base for the Restore?