Bug 130433 - Update 9.3 to 10.0 not possible. LVM partitions are not recognized
Summary: Update 9.3 to 10.0 not possible. LVM partitions are not recognized
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Installation (show other bugs)
Version: Final
Hardware: x86 SuSE Linux 10.0
: P5 - None : Major
Target Milestone: ---
Assignee: Thomas Fehr
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-25 05:33 UTC by Jörg Spilker
Modified: 2005-11-08 16:08 UTC (History)
0 users

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Output of vgscan/vgchange from 9.3 and 10.0 (100.86 KB, application/octet-stream)
2005-10-26 04:41 UTC, Jörg Spilker
Details
vgdisplay output and content of /etc/lvm (6.61 KB, application/x-tbz)
2005-10-26 16:25 UTC, Jörg Spilker
Details
Metadata from hde6, hdf6 (7.85 KB, application/x-tbz)
2005-10-26 19:42 UTC, Jörg Spilker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Spilker 2005-10-25 05:33:50 UTC
I can´t update 9.3 to 10.0. The problem is that the my system is using LVM for all partitions except /boot and /swap. When i´m changing to the console issueing vgchange -a y i got some error messages from LVM.
 
I can post the messages here if needed.
Comment 1 Michael Radziej 2005-10-25 10:52:34 UTC
Please post the message.

Can you please attach the /var/log/YaST2 directory (as a tar file)?
Please take a look at http://www.opensuse.org/Bug_Reporting_FAQ#YaST
if you have any questions about this.
Comment 2 Michael Radziej 2005-10-25 10:53:42 UTC
BTW, I happened to update a 9.3 to 10.0 with LVM, and it worked, so it cannot be a generic problem ==> Severity=Major.
Comment 3 Thomas Fehr 2005-10-25 11:13:55 UTC
The error messages displayed by "vgchange -a y" are definitely needed.
Additionally the output of the following commands is needed:

vgscan -vvv
vgchange -vvv -a y 

Please attach output of both commands.
Comment 4 Jörg Spilker 2005-10-26 04:41:13 UTC
Created attachment 55490 [details]
Output of vgscan/vgchange from 9.3 and 10.0

I hope this helps. It´s the output of vgscan and vgchange from both SuSE 9.3 and 10.0. 9.3 can activate the LVM group named lotus
Comment 5 Jörg Spilker 2005-10-26 04:51:29 UTC
Some additional information about the disk layout:

/dev/hdf1               1         638     5124703+   7  HPFS/NTFS
/dev/hdf2   *         639        5005    35077927+   5  Erweiterte
/dev/hdf5             639         704      530113+  83  Linux
/dev/hdf6             705        5005    34547751   8e  Linux LVM

/dev/hde1   *           1         638     5124703+   7  HPFS/NTFS
/dev/hde2             639        5005    35077927+   5  Erweiterte
/dev/hde5             639         704      530113+  82  Linux Swap / Solaris
/dev/hde6             705        5005    34547751   8e  Linux LVM

/dev/hdf5 is the root partition. All other partition are within the volume group lotus with approx. 70GB of space.
Comment 6 Thomas Fehr 2005-10-26 09:56:56 UTC
Thanks for the logs. The problem looks pretty strange.
It seems that LVM version of SL 10.0 is somehow unable to match PE size of the 
VG lotus correctly. Could either be a general bug in new LVM handling old style
PVs or there were additional checks added in new LVM that uncover an 
inconsistency that was not detected in older LVM version. I will have to look
into sources of both LVM versions to be able to say more.

Manwhile the following additional information would be helpful:
- Do you still know with which LVM version you created the VG lotus?
- Did you do something unusual with this VG (e.g. vgconvert/vgimport/vgexport/
  vgsplit)
- Did you use EVMS on SL 9.3
- please attach the output of "vgdisplay -v lotus" in SL 9.3
- please attach the complete content of /etc/lvm in SL 9.3

Maybe the following would work around your problem:
- converting the VG metadata to new on disk format in SL 9.3 with vgconvert
- try if the VG is successfully detected in SL 10.0

But be aware that this involves some risk. If the problem is not caused by
a bug in new LVM version but by an incosistency in your VG on SL 9.3 that
is simply undetected on old LVM version it might be possible that you make
your VG unreadable also under SL 9.3. So I would strongly suggest to backup
your valuable data just in case. If you try to vgconvert I would 
appreciate if you provide me the information I requested before you 
vgconvert the VG.
Comment 7 Jörg Spilker 2005-10-26 16:25:21 UTC
Created attachment 55582 [details]
vgdisplay output and content of /etc/lvm

I'm not sure but i think i originally created the volume with SL 9.0. I did not use EVMS and the only actions on the volume was to resize logical volumes. 

I would try the vgconvert this weekend after backing up the valuable data (which is /srv/ftp, all /home stuff is imported via nfs).
Comment 8 Thomas Fehr 2005-10-26 17:11:16 UTC
Thanks for the log files, on a quick look there was nothing unusual in the
metadata of your VG. I assume it is indeed a bug in lvm version on SL 10.0.
So the workaround using vgconvert should indeed help (of course I nevertheless
would advice to make a backup of valuable data anyway ;-).

I will have a look at the sources as soon as possible but unfortunately I am
busy with other tasks yet, therefore I will probably not be able provide
a fix really soon. Since the problem seems to happen when reading the
on disk metadata the following data would be very helpful to reproduce and
verify the bug locally.

dd if=/dev/hde6 of=metadata.hde6 bs=512 count=4174
dd if=/dev/hdf6 of=metadata.hdf6 bs=512 count=4174

This copies the complete metedata area of both PVs into the two files 
metadata.hde6 and metadata.hdf6. With this data I am probably able to reproduce
the problem locally after I write this metadata onto two partitions of appropriate size. Please attach this data to this bug.

I would be very interested if the workaround with vgconvert worked.
Comment 9 Jörg Spilker 2005-10-26 19:42:00 UTC
Created attachment 55624 [details]
Metadata from hde6, hdf6

Here the requested metadata. I hope this helps. Will try to convert. vgconvert -M2 lotus should be the command?
Comment 10 Thomas Fehr 2005-10-27 09:38:30 UTC
Thanks for the logs, as expected I could reproduce the problem here after
I copied the metadata to partitions of sufficient size.

Yes, "vgconvert -M2 lotus" should covert the PVs to new on-disk metadata format.
To be on the save side I would convert it while the VG is not activated (so you 
have to be either in a state where you can umount /var and /usr or you boot from
the SL 9.3 rescue system).
Comment 11 Jörg Spilker 2005-10-31 05:56:05 UTC
As you expected, after converting the volume group to LVM2 format, i can use the SuSE 10.0 installer to update my installation (but due to lots of third party packages from apt repos, there are so many unresolved dependencies, that i´ll better try a fresh installation).
Comment 12 Thomas Fehr 2005-10-31 09:47:32 UTC
Thanks for verifying this.
So at least there is a reasonably easy workaround.
Comment 13 Thomas Fehr 2005-11-08 11:06:31 UTC
I have now a fix for LVM.
The problem is that in LVM 2.01.12 added some checks for consistency that
fail for LVs with stripe sizes larger than 1 in VGs with old metadata format.

I fixed this for STABLE but wee need to fix this also in SLES9 SP3 since
we plan to use LVM 2.01.14 for SLES9 SP3. 

Gerald I need your approval to fix this also for SLES9 SP3.
Comment 14 Gerald Pfeifer 2005-11-08 15:54:21 UTC
If this is to avoid a regression, and since we already have the new version,
yes please!  Thanks for keeping this in mind, Thomas!
Comment 15 Thomas Fehr 2005-11-08 16:08:22 UTC
Yes, this is a regression intrduced with LVM 2.01.12.
I provided a package with this bug fixed in /work/src/done/SLES9-SP3/lvm2