Can I use an lvm snapshot to "undo" an rpm install ?

Posted on 2012-08-13
Last Modified: 2012-08-14
We have lots of  linux machines and little disk space.  

Most of our hosts are ESX although we have physical linux boxes also.

In the past we have installed rpm files that messed up the box and have problems getting them back up to get the rpm back off the box.

Can we do a lvm snapshot before and roll it back if there is a problem.  

As I understand a vmware ESX snapshot takes as much disk space as the original disk ( it is pretty much a mirror of the orignal machine ).   We have little disk space and clearly can not do the snapshot on the vmware side.  Snapshots on netapp filers take less than 1% of the disk space.  LVM snapshots likely fit somewhere between.  Does someone know how much space ( overhead ) a lvm snapshot takes

redhat linux 5.0

Question by:TIMFOX123
    LVL 116

    Accepted Solution

    Snapshots at a VMware level just tracks block changes. When a snapshot is created, changes are no l;onger written to the parent disk, but a child "delta" disk is created of the block changes that occur in the VM. Later when the snapshot is deleted, these are merged with the parent disk.

     I'm not sure where you have read VMware Snapshots equal original disk size. Maybe you have read this:-

    Snapshot files can grow to the same size as the original base disk file, which is why the provisioned storage size of a virtual machine increases by an amount equal to the original size of the virtual machine multiplied by the number of snapshots on the virtual machine.


    Can grow to a maximum size, but they start of at 100MB, and grow depending on block changes in the VM !

    So it depends on how large the changes are in the VM, which are tracked.

    BUT be warned if low on datastore space. Try it, create a snapshot, wait 60 seconds, and then delete it. (see the size!).

    NetApp snapshots can be more efficient.

    See my EE Article

    HOW TO: VMware Snapshots :- Be Patient

    Author Closing Comment

    ths works

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
    This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now