Source: SEP sesam Logical Volume Manager (LVM) für Linux

From SEPsesam
Revision as of 13:29, 10 June 2021 by Sta (talk | contribs)
Other languages:
Copyright © SEP AG 1999-2024. Alle Rechte vorbehalten.

Jede Form der Reproduktion der Inhalte dieses Benutzerhandbuches, ganz oder in Teilen, ist nur mit der ausdrücklichen schriftlichen Erlaubnis der SEP AG gestattet. Bei der Erstellung dieses Benutzerhandbuches wurde mit größtmöglicher Sorgfalt gearbeitet, um korrekte und fehlerfreie Informationen bereit stellen zu können. Trotzdem kann die SEP AG keine Gewähr für die Richtigkeit der Inhalte dieses Benutzerhandbuches übernehmen.

Docs latest icon.png Willkommen in der aktuellsten Version der SEP sesam Dokumentation 4.4.3/5.0.0 Jaglion. Frühere Versionen der Dokumentation finden Sie hier: Documentation Archiv.


Übersicht

SEP sesam uses logical volume manager (LVM) snapshots to perform consistent backups of open files on Linux distributions. LVM snapshots enable backing up a frozen copy of the file system without taking the "live" volume offline during the backup.

A snapshot volume is a special type of volume that temporarily preserves the original data at some point in time and represents an exact copy of a logical volume (LV). It is created as a new logical volume in the same volume group as the original LV. LVM snapshots work only with partitions created with LVM (see prerequisites).

When SEP sesam backs up the LVM snapshot, the data is stored in a saveset using the original pathname.

Prerequisites

To use LVM snapshots for SEP sesam backup, make sure that the following conditions are met depending on the SEP sesam version:

  • Installed and configured SEP sesam Server and SEP sesam Linux Client with a partition configured for LVM.
  • LVM partition must be added to a volume group (VG) with sufficient free space available for an LVM snapshot.
  • SEP sesam ≥ 5.0.0 Jaglion: one or multiple data sources can be selected. Multiple data sources can be:
    • different directories on the same LVM partition
    • different directories on different LVM partitions on the same volume group (VG)
    • different directories on different LVM partitions on different volume groups (VGs)
  • SEP sesam ≤ 4.4.3.84 Beefalo V2: data to be backed up with one backup task must be on the same partition. If you want to back up data from more than one partition, you need to set up a backup task for each partition.

Activating LVM backup

For general information on backup configuration and prerequisites, see Standard Backup Procedure. This section covers only LVM-related specifics when configuring a backup task.

  1. In the Main Selection -> Tasks -> By Clients, select your Linux client then click New Backup Task. The New Backup Task window appears. You can create a new backup task or modify an existing one. To specify the Source, click the browse button. Note that the selected data must reside on the same partition. Selecting the source automatically sets the task type and task name.
    Select Backup with LVM option.
  2. Linux new backup task Beefalo V2 de.jpg


    Information sign.png Anmerkung

    The backup will fail if the source path is not on an LVM volume or if VG has no free space.

  3. Switch to the Options tab. You can set the following options in the Backup options (previously Save options) field:
    • snapsize=<size>, where <size> can be specified as:
      • 2GB
      • 10%VG
      • 20%ORIGIN;
      • The default snapshot size is 10% of the saved LVM size (10%ORIGIN).
        Information sign.png Anmerkung

        It is not recommended to use the snapsize option for thin-provisioned volumes as this slows down backup performance. Thus, as of SEP sesam ≥ 5.0.0 Jaglion, this option has no effect on source LVM volumes that are thin-provisioned.

        See Linux man page man lvcreate options -L and -l for supported values.

    • All other options of the -a switch are added to lv_create call as long option:
    • -a ignoremonitoring -> lvcreate -s -l 10%ORIGIN -n Sesam_ssid --ignoremonitoring "/dev/sesam/sesam"