XenServer 6.2 / CentOS LVM2 package downgrade

Posted on 2013-10-18
Medium Priority
Last Modified: 2016-11-23
Hey friends,
I got myself into a bind last week.

We prepped and deployed a new Dell PowerEdge running XenServer 6.2 (software built up and tested in-house).

Per our standard process, we added Dell's OMSA packages, and during that process, used Yum to update dependencies and make sure packages are up to date (as we have done on a dozen other systems - previously on 6.0 or 6.1), and as part of that, enabled access to the CentOS base repository.

Unfortunately, I was sloppy (and a little naive) and didn't notice an LVM2 package update that got added by Yum.

The included base XenServer LVM2 package (near as I can tell) was lvm2-2.02.84-6.xs1033.src.rpm
The Yum update pulled a CentOS package, and the server is now running

The bugger is that the XenServer/XCP package had specific add in features to integrate with Snapshotting and other features in XenServer. Now I've broken those features.

I'm aware that I may be best off scrapping the product and doing a fresh install. I only have one running VM on the system, and while it's partially ramped up, it's not "full production" - I COULD export it, rebuild quickly and re-import.
However, I'm hopeful for a solution that does NOT require an onsite trip or that much time.

Any ideas?
Question by:Kordel Eberly
  • 3
  • 2
LVL 13

Expert Comment

by:Daniel Helgenberger
ID: 39584051
yum has quite a number tools to undo such things. First find the upgrade  transaction in question:
yum history list
yum history info <transaction id>
yum history undo <transaction id>

Open in new window

If you haven't installed too many packages in that particular transaction, this mostly works.

You might want to have a look at yum-versionlock plugin to prevent future updates of required package versions:

Author Comment

by:Kordel Eberly
ID: 39584081
Perhaps I'm doing something wrong, but "yum history list" is not recognized by this version of Yum (yum-3.2.22-40.el5.cento) - it just fails and displays all "valid" commands and options.

I'm definitely not a Linux pro, so maybe I'm making an amateur mistake or overlooking something?

LVL 13

Accepted Solution

Daniel Helgenberger earned 2000 total points
ID: 39584454
For some reason I assumed CentOS6 (maybe because the 6.2 in your title) - sorry.
You can still run yum downgrade:
yum downgrade lvm2-<your needed full version here>

Open in new window

Be aware: The depsolver will not necessarily work, but if you specify all the packages it should work (and thus. all the simple cases will work). downgrade operates on groups, files, provides and filelists just like the "install" command.

If you need a special version witch came with Xen:
yum downgrade /path/to/local/lvm2.rpm

Open in new window

If this is not working for you, downgrade to an earlier version of your lvm2 package in base and do then run yum localupdate:
yum localupdate /path/to/local/lvm2.rpm

Open in new window

Please read:

Author Comment

by:Kordel Eberly
ID: 39598809
YES!!! Thank you!!

This was a huge headache for several weeks. Using your instructions, combined with some other help (I realized I only had a source RPM - had to compile it first), I was able to get the correct XenServer-specific LVM2 package installed, and I just completed a successful snapshot with the new package.

Huge thanks! Kudos!

Author Closing Comment

by:Kordel Eberly
ID: 39598814
I'm sure relatively simple instructions for an experienced Linux admin, but a lifesaver to me! Very clear and straightforward instructions and examples - thank you!

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article will explain How to fix Broken backup chain in Veeam Backup & Replication.
The article describes step by step how to validate the SRA software certificate once installed on the Site Recovery Manager server. I hope it will be very useful for all administrators of virtualized environments.
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Suggested Courses

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question