Bug 819261 - Doing nothing with a disk device via GUI installer results in data loss
Summary: Doing nothing with a disk device via GUI installer results in data loss
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: anaconda
Version: 5.7
Hardware: All
OS: All
unspecified
medium
Target Milestone: rc
: ---
Assignee: Anaconda Maintenance Team
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-06 02:46 UTC by Risar
Modified: 2018-11-28 20:45 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-08 19:10:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Risar 2012-05-06 02:46:49 UTC
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):
5.7

How reproducible:
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.
  
Actual results:
See above.

Expected results:
Device configuration is left alone/as-is with no changes or modifications to the device.

Additional info:
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

Comment 1 Chris Lumens 2012-05-07 13:21:31 UTC
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*.


Note You need to log in before you can comment on or make changes to this bug.