Re: Crete Volgroup from anaconda ks using the whole disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Francisco Javier Lloreda Sanchez <flloreda@xxxxxxxxxx> [2013-01-21 07:22]:
> Hi David,
> The reason behind this question is I want to install a Virtual Server. 
> This server will have 2 disks, the first one for /boot and mapped to a 
> lv in the physical server, the second disk will be for system and /home 
> and will be mapped to a lv in the physical server also.
> I know /home will grow quickly due to the use of the server. So if I 
> create the PV and VG on a partition (vdb1) when I need extend the disk I 
> need to add new partitions, in a few extends I will have many partitions 
> on the disk or many new disks in the virtual server. In the other hand 
> If I create the PV and VG on the device (vdb) I just need to extend the 
> LV in the physical server, ensure the virtual server recognizes the new 
> space on the disk and pvextend, vgextend and lvextend.
> 
> Am I wrong ?

Ok, that's a valid reason, although not completely correct that it's the
only way to do it.  Doing it that way should make it easier, but it is
possible to extend the size of a partition rather than create a new one.

The caveat is that the partition you are extending has to be the last one on
the disk, which shouldn't be a problem since I'm assuming partition 1 is
/boot and partition 2 is the rest of the disk as LVM.

A very good walkthru can be found here:
http://theducks.org/2009/11/expanding-lvm-partitions-in-vmware-on-the-fly/

This is what I've done in the past, and it works just fine.  It is a bit
unnerving to delete and recreate a partition in fdisk, but it actually
works well.

Having said all that, I do like the idea of cutting out the middleman,
as it were.  I would assume that should work, and would be cleaner (and
a little less scary).  :-)

I don't know, offhand, if kickstart allows it or not.  Maybe a
pre-script to create the disk layout, but nothing I'm finding is very
hopeful.  Looking at this BZ suggests a pre-script might work for RHEL6:
https://bugzilla.redhat.com/show_bug.cgi?id=703161

-- 
David Rock
david@xxxxxxxxxxxxxx

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux