Bug 499819 - anaconder ignoring --useexisting --noformat for volgroup
anaconder ignoring --useexisting --noformat for volgroup
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: anaconda (Show other bugs)
rawhide
x86_64 Linux
low Severity medium
: ---
: ---
Assigned To: Anaconda Maintenance Team
Fedora Extras Quality Assurance
anaconda_trace_hash:a8f0a36cdc82ccd3c...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-08 08:29 EDT by Chris Rouch
Modified: 2009-05-11 13:26 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-05-11 13:26:52 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Attached traceback automatically from anaconda. (241.89 KB, text/plain)
2009-05-08 08:29 EDT, Chris Rouch
no flags Details

  None (edit)
Description Chris Rouch 2009-05-08 08:29:47 EDT
The following was filed automatically by anaconda:
anaconda 11.5.0.47 exception report
Traceback (most recent call first):
  File "/usr/lib/anaconda/storage/devicelibs/lvm.py", line 397, in lvactivate
    raise LVMError("lvactivate failed for %s" % lv_name)
  File "/usr/lib/anaconda/storage/devices.py", line 1996, in setup
    lvm.lvactivate(self.vg.name, self._name)
  File "/usr/lib/anaconda/storage/deviceaction.py", line 270, in execute
    self.device.setup()
  File "/usr/lib/anaconda/storage/devicetree.py", line 659, in processActions
    action.execute(intf=self.intf)
  File "/usr/lib/anaconda/storage/__init__.py", line 234, in doIt
    self.devicetree.processActions()
  File "/usr/lib/anaconda/packages.py", line 117, in turnOnFilesystems
    anaconda.id.storage.doIt()
LVMError: lvactivate failed for priroot
Comment 1 Chris Rouch 2009-05-08 08:29:55 EDT
Created attachment 343075 [details]
Attached traceback automatically from anaconda.
Comment 2 Chris Rouch 2009-05-08 08:34:39 EDT
I've installed F10 via kickstart with 3 volume groups - privg, secvg and datavg. I'm now attempting to install F11 via kickstart onto privg. I have this in my kickstart file:

clearpart --none
part /boot   --fstype ext3  --onpart=/dev/sda2
part pv.01 --onpart=/dev/sda6
part pv.02 --onpart=/dev/sda7

volgroup privg pv.01 --useexisting --noformat
volgroup datavg pv.02 --useexisting --noformat

logvol /          --fstype ext3 --useexisting --name=priroot   --vgname=privg --grow --size=6000
logvol /var       --fstype ext3 --useexisting --name=privar   --vgname=privg --size=1024
logvol /tmp       --fstype ext3 --useexisting --name=pritmp   --vgname=privg --size=1024
logvol swap       --fstype swap --useexisting --name=priswap   --vgname=privg --size=1024

logvol /data       --fstype ext3 --useexisting --name=data   --noformat --vgname=datavg
logvol /home       --fstype ext3 --useexisting --name=home   --noformat --vgname=datavg


But the installation fails, and lvm shows that privg and datavg no longer exist.
Comment 3 Chris Rouch 2009-05-08 08:57:32 EDT
Disk layout before installation:

# fdisk -l

Disk /dev/sda: 30.0 GB, 30064771072 bytes
255 heads, 63 sectors/track, 3655 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000602b2

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          25      200781   83  Linux
/dev/sda2              26          50      200812+  83  Linux
/dev/sda3              51          75      200812+  83  Linux
/dev/sda4              76        3655    28756350    5  Extended
/dev/sda5              76        1477    11261533+  8e  Linux LVM
/dev/sda6            1478        2879    11261533+  8e  Linux LVM
/dev/sda7            2880        3261     3068383+  8e  Linux LVM

--------------
lvm before installation:

# vgdisplay -v
    Finding all volume groups
    Finding volume group "datavg"
  --- Volume group ---
  VG Name               datavg
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               2.91 GB
  PE Size               32.00 MB
  Total PE              93
  Alloc PE / Size       92 / 2.88 GB
  Free  PE / Size       1 / 32.00 MB
  VG UUID               neHsfF-KXLT-7UiO-jtw2-0XS7-dS5Z-oy6dqY

  --- Logical volume ---
  LV Name                /dev/datavg/data
  VG Name                datavg
  LV UUID                U7DfKP-BR1G-3Ap4-i4Tv-ogaa-PQjZ-fvftkS
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.41 GB
  Current LE             45
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:4

  --- Logical volume ---
  LV Name                /dev/datavg/home
  VG Name                datavg
  LV UUID                JwkhKC-zRD2-GOw4-ByRZ-1yY4-IWL2-OAfH5C
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.47 GB
  Current LE             47
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:5

  --- Physical volumes ---
  PV Name               /dev/sda7
  PV UUID               v0er3z-QhU3-C02B-GNDj-RnXF-ajOF-qpFJ0c
  PV Status             allocatable
  Total PE / Free PE    93 / 1

    Finding volume group "privg"
  --- Volume group ---
  VG Name               privg
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  5
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                4
  Open LV               4
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               10.72 GB
  PE Size               32.00 MB
  Total PE              343
  Alloc PE / Size       342 / 10.69 GB
  Free  PE / Size       1 / 32.00 MB
  VG UUID               nHtycD-4e55-Mn9d-Cc4M-1yVf-zTHE-K2GHdH

  --- Logical volume ---
  LV Name                /dev/privg/priroot
  VG Name                privg
  LV UUID                J43Ha2-NI25-PCBl-TLxY-8RvV-CGkK-J07eJT
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                7.69 GB
  Current LE             246
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

  --- Logical volume ---
  LV Name                /dev/privg/pritmp
  VG Name                privg
  LV UUID                vel3VT-W2Re-ONeA-YOYX-QYOd-GySK-9nczqQ
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1

  --- Logical volume ---
  LV Name                /dev/privg/privar
  VG Name                privg
  LV UUID                tSJKBB-247l-4Zqv-WsbE-FjKr-KOob-be6ASe
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2

  --- Logical volume ---
  LV Name                /dev/privg/priswap
  VG Name                privg
  LV UUID                vp3cVl-IHdp-s77q-RiBD-WTXF-kecC-gk2lXQ
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3

  --- Physical volumes ---
  PV Name               /dev/sda6
  PV UUID               nDMcr2-1Z32-rX3w-8Kul-eewc-HFyy-2ZxRw1
  PV Status             allocatable
  Total PE / Free PE    343 / 1

    Finding volume group "secvg"
  --- Volume group ---
  VG Name               secvg
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  5
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                4
  Open LV               4
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               10.72 GB
  PE Size               32.00 MB
  Total PE              343
  Alloc PE / Size       342 / 10.69 GB
  Free  PE / Size       1 / 32.00 MB
  VG UUID               PV9qCy-HZ9I-992q-VMdC-cwJi-DIqV-8AfKLT

  --- Logical volume ---
  LV Name                /dev/secvg/secroot
  VG Name                secvg
  LV UUID                HXst8l-aFNX-ssnK-Pu8m-vQ0D-QqGG-0Ld0xK
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                7.69 GB
  Current LE             246
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:6

  --- Logical volume ---
  LV Name                /dev/secvg/secvar
  VG Name                secvg
  LV UUID                XE7DPq-p3et-b5en-4Xg9-KeZd-MEJI-KKXRrS
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:7

  --- Logical volume ---
  LV Name                /dev/secvg/sectmp
  VG Name                secvg
  LV UUID                UUBPRt-9mBr-AFz4-FK8z-h5xr-QFLE-N1khSm
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:8

  --- Logical volume ---
  LV Name                /dev/secvg/secswap
  VG Name                secvg
  LV UUID                JC2F1u-TEvg-SHBV-PMeI-848c-AIzO-OKn6tx
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:9

  --- Physical volumes ---
  PV Name               /dev/sda5
  PV UUID               mY3f9G-Wj47-TLQ1-eFqq-8Ju0-9cbk-ZBxDxA
  PV Status             allocatable
  Total PE / Free PE    343 / 1
Comment 4 Chris Lumens 2009-05-08 11:10:19 EDT
I think you need to add a --noformat option to your part commands, too.  If you do that, does that solve the problem?  I realize this is kind of a pain to setup and retest.
Comment 5 Chris Rouch 2009-05-11 03:20:51 EDT
I added --noformat as suggested. The installation completed successfully. This is a change for F11 - it worked without this option for F8 and F10.
Comment 6 Chris Lumens 2009-05-11 13:26:52 EDT
I'd call the previous behavior a bug, then, as what you've got on the part command says "Use the existing sda6 partition, but do not use the existing filesystem."  That's what the --noformat flag does, so I don't see why you wouldn't need to explicitly specify it on those part lines too.  We don't know at the time those are processed that there's going to be a preexisting volgroup used on top of them.

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