Red Hat Bugzilla – Bug 819261
Doing nothing with a disk device via GUI installer results in data loss
Last modified: 2016-10-30 18:57:43 EDT
Description of problem:
Installing over a system with multiple disk devices present, one with content that needs to be maintained results in Anaconda's configuration showing that two conflicting options were used for the device which was ignored with a volumegroup present:
#volgroup STOR --noformat --useexisting --pesize=4096
--noformat, which specifies to use an existing logical volume and *** do not format *** it.
--useexisting, which specifies to use an existing logical volume and *** reformat *** it.
This is clearly not optimal as it creates what can only be described as a race condition between the two options. The result is the current state which has data available on the disk/VG in question (confirmed using dd and hexdump) but no clear way to tell the system how to access it post-install.
Version-Release number of selected component (if applicable):
Do nothing with an existing/detected VG in the installer and the above flags will be applied, resulting in the LVM data being lost do to the apparent formatting of the disk/LUN.
Steps to Reproduce:
1. Run the installer, ignoring a specific device (eg /dev/sdb)
2. Wait for the install to finish, verify that pvs / pvdisplay no longer shows the PV
3. No profit.
Device configuration is left alone/as-is with no changes or modifications to the device.
The installer detects the configuration of the PV and VG without issue, so clearly the problem takes place as part of the installation. SF # affiliated with bug = 00635279
anaconda doesn't really use threads in RHEL5, so this is definitely not a race condition.
Whenever you report an installer bug, please attach the log files as well. If you've already finished the installation and rebooted, they are in /var/log/anaconda*.