Re: LVM with YaST



houghi wrote:
Stephen Chadfield wrote:
houghi <houghi@xxxxxxxxxxxxxxxxxx> wrote:
I am experimenting a bit with LVM on my 10.0 system. Now wha I did was
fist have just one partion on one drive in LVM. That one is backup and
is 123GB large. /dev/hdf3

Now I wanted to add another 37GB from another drive and partition. That
is /dev/hde2. When I look in YaST, I see the colume group systen, the
Size is 151.6GB and that looks just great.

However when I do a `df -h`, I get :
/dev/mapper/system-LVM
123G 111G 12G 91% /media/backup

So why does it not see the extra space?
It won't automatically expand the size of any partitions contained
within a volume group.

So how do I add extra volume to LVM?

After you have added the extra partition/disk to the volume group,
you can extend the logical volume and then you have to resize
the underlying filesytem.

Not sure about doing all of that via YaST, but easily done
from the command line... something like the following...

pvceate /dev/sdb7
vgextend system /dev/hde2
lvextend -L +37G /dev/system/LVM
(note.. you might not get all 37G, might choose +36G or +35G)
resize_reiserfs /dev/system/LVM

Adding new disks/partitions to a volume group simply adds
space to the pool from which logical volumes use. You can
then create new logical volumes or extend existing ones. Just
adding drive space to the volume group does NOT affect
the existing logical volumes.. you have to tell it what to
do with the extra volume group space.
.



Relevant Pages

  • Resizing LVM partition
    ... Then I tried to resize with parted of systemrescuecd the LVM ... How I can to extend a LVM partition? ...
    (Debian-User)
  • Re: Resizing LVM partition
    ... Then I tried to resize with parted of systemrescuecd the LVM ... How I can to extend a LVM partition? ...
    (Debian-User)
  • Re: Extend LVM partition *backwards*
    ... meaning that it starts at a lower cylinder than the LVM partition). ... I'd like to extend the LVM partition backwards over the unused ... having unnecessary physical partitions lying around and jut stitching ...
    (alt.linux)
  • When LVM Goes Bad
    ... I believe LVM is the default on Fedora partitioning now, at least I didn't love it that much that I would have selected it, and it is on all my boxes now. ... However LVM makes less sense on, say, a laptop which has and will only ever have a single 2.5" HDD for storage that is permanently available with the laptop. ... The resulting symptom was that the partition contents were no longer recognized as containing a logical volume or a volume group, nor pvscan, although pvdisplay could see it was a physical volume if pointed directly at the partition. ... Whether this explained the loss of LVMness or a subsequent logical brain damage that happened elsewhere did it I don't know. ...
    (Fedora)
  • Re: Hosed Grub with the push of a button
    ... occupies part of the LVM. ... I don't think the developers of the program counted on some crazy button changing the partition table with one touch. ... Did it write over that portion of the disk or did it actually format the portion and place information from some storage chip on the mother board. ... My guess would be that the motherboard has a chip inside that has a compressed image of what was originally installed on the computer, like what a install CD would have. ...
    (Fedora)