Re: installing to raw whole disk device

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

 



On 02/03/2015 08:11 PM, Chuck Anderson wrote:
All the bits are there to be able to online resize a live KVM guest
[1] [2] [3] [4], except for one piece.  You can't resize the root
partition table entry without rebooting so the kernel picks up the new
partition size.  By using LVM on a partition table, you can kinda hack
around this by using --setphysicalvolumesize to the pvresize command
so it ignores the old partition size that the kernel tells it, but
this is error prone.

All this could be solved by getting rid of the partition table
completely.  If only Anaconda supported installing this way:

clearpart --all --initlabel
volgroup vg00 --pesize=32768 sda
logvol / --fstype ext4 --name=root --vgname=vg00 --size=1024 --grow

Is there anyone working on support this feature?

This is not in our current plans, but all you have to do is pvcreate and vgcreate in %pre and omit the disk(s) from clearpart. Since you want whole-disk PVs I'm assuming you don't have a deep stack on the disk initially. If you do, I suggest you make an effort to really clear all the metadata instead of dd to the first block or similar weak methods.

David


[1] http://unix-heaven.org/node/84
[2] http://unix-heaven.org/node/85
[3] http://eioki.eu/2013/07/02/live-resize-libvirt-disk-lvm-multipath
[4] http://serverfault.com/questions/604876/online-resizing-of-kvm-guest-root-filesystem

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list




[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux