FS#19454 - LVM: Entering bigger size for lv than the vg is, AIF fails
Attached to Project:
Release Engineering
Opened by Lukas Grässlin (lukasg) - Friday, 14 May 2010, 10:37 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Monday, 26 November 2012, 04:50 GMT
Opened by Lukas Grässlin (lukasg) - Friday, 14 May 2010, 10:37 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Monday, 26 November 2012, 04:50 GMT
|
Details
If I create a logical volume and the size is prompted and I
enter a value that exceeds the size of the volumegroup
the installer of course fails creating the logical volume and I'm not able to proper exit or rollback the changes. I'm in a loop: The installer always says, that it cannot create the lv and after confirming this it tries again etc. After I flood-confirmed :) the installer exits with "ERROR: process_filesystem needs a partition as $1" |
This task depends upon
Closed by Gerardo Exequiel Pozzi (djgera)
Monday, 26 November 2012, 04:50 GMT
Reason for closing: Deferred
Monday, 26 November 2012, 04:50 GMT
Reason for closing: Deferred
We should:
- warn the user about big LV/VG sizes
- maybe, more properly check returncode of lvcreate/vgcreate calls, if possible.
however, an issue we do currently have is that process_filesystems() does multiple iterations (and doesn't stop right away on failure), attempting to do the same thing a few times before finally giving up. so i'll change that to abort right away.
but still, you should see that it failed and be allowed to rollback.
i guess i'll just have to try it myself.