Lumension® KnowledgeBase

Article Number:
1734

Date Created:
06/08/2015

Last Updated:
06/09/2017

Article Type:
How-To Procedures

SuSE 12 Patching: Disabling Snapper

Description

Product:

Patch and Remediation

Versions:

Lumension Patch and Remediation 8.1 and later
Patch Agent for Linux, Unix, and Mac 8.1016

Summary:

When patching SuSE 12 endpoints, Snapper (SuSE's snapshot manager) may take an excessive number of snapshots that consume an excessive amount of disk space. You can work around this issue by disabling Snapper. This article contains instructions on how to disable it.

Details

Introduction

To patch SuSE 12 endpoints, Patch and Remediation makes use of zypper, the command line package manager for SuSE 12. However, whenever zypper installs a package, snapper (SuSE's snapshot management tool) creates two snapshots. Because Patch and Remediation treats each patch included in a SuSE deployment as a separate zypper transaction, Patch and Remediation deployments to SuSE 12 may result in an excessive number of snapshots. These snapshots may lead to disk space issues that interrupt patching and general endpoint use (think hundreds of GBs used for snapshots).

A workaround for this problem is to disable snapper. This action prevents zypper from taking snapshots during patching, saving you disk space.

Disabling Snapper

Patching SuSE 12 endpoints while snapper is enabled may result in excessive disk space consumption. To disable snapshots, you must:
  • Disable zypper snapshots
  • Disable hourly snapshots
  • Disable YaST snapshots
  1. Log in to your SuSE 12 endpoint as the root user.
  2. Disable zypper snapshots.
    1. From the dashboard, search for YaST and then open it.
    2. Open Software Management.
    3. Search for snapper-zypp-plugin and then uninstall it.
    4. From the Changed Packages dialog, select Selected by the user from the drop down (this action prevents you from installing any outstanding updates). Then click Continue.
    5. Wait for the package to uninstall. Close all the dialogs when you're done.
  3. Disable hourly snapshots.
    1. Navigate to /etc/snapper/config/root. Open the file in a text editor.
    2. Search for TIMELINE_CREATE and change its value to "no".
    3. Save your changes and close the file.
  4. Disable YaST snapshots.
    1. Navigate to /etc/sysconfig/yast2. Open the file in a text editor.
    2. Search for USE_SNAPPER and change its value to "no".
    3. Save your changes and close the file.
  5. Log off of the root account.

12345678910
Current rating: 3.7