Red Hat Bugzilla – Bug 218929
anaconda tries to grab all devices with a swap signature
Last modified: 2010-12-21 13:15:40 EST
Description of problem:
Assuming that many XEN installations will make use of the feature to directly
assign a LVM block device as a partition to the guest, we run into a problem
because anaconda tries to activate all reachable devices with a SWAP
signature. Therefore any new installation of Dom0 in an environment with
existing DomU logical volumes leads to either an error message because
activation of an unformatted SWAP device failed or the installed Dom0
occupying the guest's SWAP devices, which can be dangerous if nobody notices.
Anaconda should not only ask in the device dialog if you want to format a SWAP
device but also if you want to have it activated at all.
Version-Release number of selected component (if applicable):
RHEL 5 Beta 2
Install RHEL 5 Beta 2
Steps to Reproduce:
1. Create 2 logical volumes with a SWAP signature
2. try to install a new system using only one of these SWAP devices
The system will have both SWAP devices in /etc/fstab
Only the selected SWAP device should be in /etc/fstab
Created attachment 294642 [details]
Created attachment 294643 [details]
Since the anaconda stuff depends on the kickstart stuff I'm going to coordinate
with clumens and push the changes as soon as he modifies pykickstart.
Created attachment 294670 [details]
The documentation that has to go with the change.
I guess I don't understand why this is such a big problem. Can't you just define the virtual machine in such a way that it can't see every LV that the host provides, therefore walling anaconda off from those swap partitions that you don't want accessed?
It is a problem on dual (or multi) boot machine where you have older version of Solaris OS. Anaconda will happily trash such a partition.
The other problem - you have multiboot machine with a few versions of any Linux distribution (I have anything between 6 and 8 and counting on my test machines) and you use suspend/hibernation on those. As far as I know hibernation uses swap partition to save OS state. And as you can't stop anaconda from using ALL swap partitions - it will again trash those.
That's one thing. The other is that it is practically the only thing I (as a user) don't have a control when installing RHEL (or Fedora). And the behaviour is so similar to the line of the most popular OS on planet from one US software maker which happily overwrites your grub in master boot record after every installation... You know what I mean.
(In reply to comment #19)
> I guess I don't understand why this is such a big problem. Can't you just
> define the virtual machine in such a way that it can't see every LV that the
> host provides, therefore walling anaconda off from those swap partitions that
> you don't want accessed?
I hoped comment #20 would already contain enough arguments, but the bug still seems to be in "needinfo"... :-)
So, next to the fact that anaconda annoyes anyone who _does_ want to use multiboot installations with hibernation or _does_ want to use a raw device in a virtual guest as a swap device, it is just a bad experience for anybody who has such a setup "by accident" and has to cope with the fact that anaconda just does what it thinks is right instead of leaving the decision to the user.
Looking at the fact that virtualization is growing and people might iSCSI or fibre LUN partitions for guest swap that they will no mask against the host, we will get this request probably more often. This is the chance to fix it before it becomes a major pain.
This needs to be in Fedora before consideration for RHEL.
*** This bug has been marked as a duplicate of bug 70477 ***