Bug 843001 - RHEV-H install failed to wipe lvm if the exist VG spans multiple disks
RHEV-H install failed to wipe lvm if the exist VG spans multiple disks
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ovirt-node (Show other bugs)
6.3
x86_64 Linux
high Severity high
: rc
: ---
Assigned To: Mike Burns
Virtualization Bugs
TUI installation
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-25 05:17 EDT by cshao
Modified: 2016-04-26 11:19 EDT (History)
11 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-07-25 10:17:50 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
ovirt.log (24.47 KB, text/plain)
2012-07-25 05:18 EDT, cshao
no flags Details

  None (edit)
Description cshao 2012-07-25 05:17:20 EDT
Description of problem:
Install RHEL OS spans multiple disks first, and then install RHEV-H.
RHEV-H install failed with reinstall / uninstall parameters.
RHEV-H install still failed even without any parameters.
If install RHEL into one PV, and then install RHEV-H can successful.

Version-Release number of selected component (if applicable):
rhev-hypervisor6-6.3-20120710.0.el6_3

How reproducible:
100%

Steps to Reproduce:
1. Install RHEL OS spans multiple disks first.
2. TUI install RHEV-H with reinstall / uninstall parameters.
3. TUI install RHEV-H without any parameters.
4. Focus on install process.
  
Actual results:
1. RHEV-H install failed with reinstall / uninstall parameters.
2. RHEV-H install still failed even without any parameters.


==================================
# lvs
  LV      VG       Attr     LSize   Pool Origin Data%  Move Log Copy%  Convert
  lv_home VolGroup -wi-ao-- 411.25g                                           
  lv_root VolGroup -wi-ao--  50.00g                                           
  lv_swap VolGroup -wi-ao--   7.75g                                           

]# pvs
  PV         VG       Fmt  Attr PSize   PFree
  /dev/sda2  VolGroup lvm2 a--    3.25g    0 
  /dev/sdb1  VolGroup lvm2 a--  465.76g    0 

# vgs
  VG       #PV #LV #SN Attr   VSize   VFree
  VolGroup   2   3   0 wz--n- 469.00g    0 

ovirt.log
===============
ERROR - storage - The volume group "Bmn3BA-W84s-ne3e-bfYf-MCu4-aAz8-vdyVLv" spans multiple disks.
ERROR - storage - This operation cannot complete.  Please manually cleanup the storage using standard disk tools.
ERROR - storage - Wiping LVM on /dev/mapper/1ATA_WDC_WD5000AAKS-75V0A0_WD-WCAWF6238839 Failed

Expected results:
RHEV-H install can successful even the exist VG spans multiple disks

Additional info:
If install RHEV-H spans multiple disks, and then install RHEV-H can successful with reinstall / uninstall parameters or without any parameters.
Comment 1 cshao 2012-07-25 05:18:42 EDT
Created attachment 600247 [details]
ovirt.log
Comment 3 Mike Burns 2012-07-25 10:17:50 EDT
This is working as designed.

The default action of reinstall/uninstall is to wipe HostVG devices.  In the case of a RHEL install with a VG not named HostVG, the user can specify storage_init=/dev/sda,/dev/sdb and we'll wipe those devices directly.  

If it's not HostVG and not specified in storage_init, then we assume that we cannot do anything with those devices.  This assumption is to avoid possible data loss in the event those are shared disks, or if the machine is dual boot, or some other situation where the data is needed, we require the admin to specify all disks being wiped.  

In the event that the user wants to wipe /dev/sda and /dev/sdb but only install RHEVH on /dev/sda, then they will need to run uninstall against /dev/sda,/dev/sdb and then install separately.

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