Source:SEP sesam Logical Volume Manager (LVM) for Linux: Difference between revisions

From SEPsesam
(Added -a allow_no_lvm=1 (ASE))
(renewing screenshots)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<translate><!--T:1-->
<noinclude><div class="noprint"><languages />
<div class="noprint"><languages />{{Copyright SEP AG‎|en}}
<br />


<!--T:2-->
<translate>==Overview== <!--T:3--></translate>
{{Navigation_latest|release=[[Special:MyLanguage/SEP_sesam_Release_Versions|4.4.3/5.0.0 ''Jaglion'']]|link=[[Special:MyLanguage/SEP_sesam_Documentation#previous|Documentation archive]]}}</div>


 
</div></noinclude><translate><!--T:13-->
==Overview== <!--T:3--></translate>
SEP sesam uses ''LVM (Logical Volume Manager)'' snapshots to perform consistent backups of open files on Linux distributions. LVM snapshots allow to back up a frozen copy of the file system without taking the "live" volume offline during the backup.  
<div class="boilerplate metadata" id="Additional resources" style="background-color: #f0f0f0; color:#636f73; border: 1px ridge #cdd3db; margin: 0.5em; padding: 0.5em; float: right; width: 35%; "><center><b><translate><!--T:4-->
Additional resources</translate></b></center>
 
{|style="margin: auto; margin-bottom:1em; width:100%; border:0px solid grey;"
| rowspan="2" style="padding:0px 10px 0px;" | <translate><!--T:5-->
[[File:SEP_next.png|45px|link=Special:MyLanguage/Standard_Backup_Procedure|Standard Backup Procedure]] </translate>
| style="padding:0px 40px 0px 10px; color: grey; font-size: 90%; text-align:left;" | <translate><!--T:6-->
See also: [[Special:MyLanguage/Standard_Backup_Procedure|Standard Backup Procedure]] – [[Special:MyLanguage/4_4_3_Beefalo:Advanced_Backup_and_Restore_Options#Linux_client|Linux Client Backup]]</translate>
|}
 
{|style="margin: auto; margin-bottom:1em; width:100%; border:0px solid grey;"
| rowspan="2" style="padding:0px 10px 0px;" | <translate><!--T:7-->
[[File:SEP Tip.png|45px|link=Special:MyLanguage/FAQ|FAQ]]</translate>
| style="padding:0px 40px 0px 10px; color: grey; font-size: 90%; text-align:left;" | <translate><!--T:8-->
Check [[Special:MyLanguage/FAQ|FAQ]] to find the answers to most common questions.</translate>
|}
 
{|style="margin: auto; margin-bottom:1em; width:100%; border:0px solid grey;"
| rowspan="2" style="padding:0px 10px 0px;" |
<translate><!--T:9-->
[[File:SEP Troubleshooting.png|45px|link=Special:MyLanguage/Troubleshooting_Guide|Troubleshooting Guide]]</translate>
| style="padding:0px 40px 0px 10px; color: grey; font-size: 90%; text-align:left;" |
<translate><!--T:10-->
Problems? Check [[Special:MyLanguage/Troubleshooting_Guide|Troubleshooting Guide]].</translate>
|}
 
{|style="margin: auto; margin-bottom:1em; width:100%; border:0px solid grey;"
| rowspan="2" style="padding:0px 10px 0px;" | <translate><!--T:11-->
[[File:icon_archived_docs.png|45px|link=Special:MyLanguage/SEP_sesam_Documentation#previous|Documentation archive]]</translate>
| style="padding:0px 40px 0px 10px; color: grey; font-size: 90%; text-align:left;" | <translate><!--T:12-->
If you are using an older SEP sesam version, refer to [[Special:MyLanguage/SEP_sesam_Documentation#previous|Documentation archive]].</translate>
|}</div>
<translate><!--T:13-->
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.  


<!--T:14-->
<!--T:14-->
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 [[Special:MyLanguage/SEP_sesam_Logical_Volume_Manager_(LVM)_for_Linux#prerequisites|prerequisites]]).  
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|prerequisites]]).  


<!--T:15-->
<!--T:15-->
When SEP sesam backs up the LVM snapshot, the data is stored in a saveset using the original pathname.
When SEP sesam backs up the LVM snapshot, the data is stored in a saveset using the original pathname. After the backup, SEP sesam performs a cleanup of all LVM snapshots that were created by the same backup job but not deleted (purged) due to errors, etc. You can change this behaviour as described in [[#snapshot|step 2 below]].</translate>


==={{anchor|prerequisites}}Prerequisites=== <!--T:16-->
==={{anchor|prerequisites}}<translate><!--T:16-->
Prerequisites===


<!--T:17-->
<!--T:17-->
Line 68: Line 34:
[[Special:MyLanguage/SEP_sesam_Release_Versions|''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.</translate></li></ul>   
[[Special:MyLanguage/SEP_sesam_Release_Versions|''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.</translate></li></ul>   


<translate>
== {{anchor|LVM_backup}}<translate><!--T:21-->
== {{anchor|LVM_backup}}Activating LVM backup == <!--T:21-->
Activating LVM backup ==


<!--T:22-->
<!--T:22-->
Line 78: Line 44:


<translate><!--T:24-->
<translate><!--T:24-->
Select the '''Backup with LVM''' option.</li>
Select the '''Backup with LVM''' option.<br />
[[image:Linux_new_backup_task_Beefalo_V2.jpg|link=]]</translate>
[[image:Linux_new_backup_task.jpg|600px|link=]]</translate>
<br clear=all>
<br clear=all></li>
{{<translate><!--T:25-->
{{note|<translate><!--T:26-->
note</translate>|
The backup will fail if the source path is not on an LVM volume or if VG has no free space.</translate>}}  
 
<translate><!--T:26-->
The backup will fail if the source path is not on an LVM volume or if VG has no free space.</translate>
}}  
<li><translate><!--T:27-->
<li><translate><!--T:27-->
Switch to the '''Options''' tab. You can set the following options in the '''Backup options''' (previously ''Save options'') field:</translate></li>
Switch to the '''Options''' tab. You can set the following options in the '''Backup options''' (previously ''Save options'') field:</translate></li>
Line 97: Line 59:
The default snapshot size is 10% of the saved LVM size (10%ORIGIN).</translate>
The default snapshot size is 10% of the saved LVM size (10%ORIGIN).</translate>


{{<translate>
{{note|<translate><!--T:38-->
<!--T:37-->
It is not recommended to use the ''snapsize'' option for thin-provisioned volumes as this slows down backup performance. Thus, as of [[Special:MyLanguage/SEP_sesam_Release_Versions|''SEP sesam ≥ 5.0.0 Jaglion'']], this option has no effect on source LVM volumes that are thin-provisioned.</translate>}}  
note</translate>|
<translate>
<!--T:38-->
It is not recommended to use the ''snapsize'' option for thin-provisioned volumes as this slows down backup performance. Thus, as of [[Special:MyLanguage/SEP_sesam_Release_Versions|''SEP sesam ≥ 5.0.0 Jaglion'']], this option has no effect on source LVM volumes that are thin-provisioned.</translate>
}}  
 
</ul>
</ul>
<li><translate>
<li><translate>
Specify a normal ''Path'' backup instead of LVM when creating a backup task with a source other than an LVM path.</translate></li>
<!--T:39-->
  -a allow_no_lvm=1
To allow non-LVM paths to be added as backup sources to the task (with the ''Backup with LVM'' option), set this option </translate></li>
 
<pre>  -a allow_no_lvm=1</pre>
<translate><!--T:40--> In this case, a normal ''Path'' backup is created for the non-LVM source.</translate>
<li>{{anchor|snapshot}}<translate><!--T:41--> By default, SEP sesam automatically deletes the snapshots created by the same backup task after the backup. To delete all SEP sesam snapshots, use the '''deleteall''' command:</translate>
<pre> -a snapshot=deleteall</pre>
<translate><!--T:42--> If you want to keep the snapshots after the backup is complete, use '''keepsnap''':</translate>
<pre> -a snapshot=keepsnap</pre>
<translate><!--T:43--> To prevent the snapshots from being deleted before the backup starts (SEP sesam default behaviour), use the command:</translate>
<pre> -a snapshot=nodeletebefore</pre>
</li>
<li><translate><!--T:31-->
<li><translate><!--T:31-->
All other options of the '''-a''' switch are added to the <tt>lv_create</tt> call as long option:</translate></li>
All other options of the '''-a''' switch are added to the <tt>lv_create</tt> call as a long option:</translate>
  -a ignoremonitoring ->  lvcreate -s -l 10%ORIGIN -n Sesam_ssid --ignoremonitoring  "/dev/sesam/sesam"
<pre> -a ignoremonitoring ->  lvcreate -s -l 10%ORIGIN -n Sesam_ssid --ignoremonitoring  "/dev/sesam/sesam"</pre>


<translate><!--T:30-->
<translate><!--T:30-->
See [https://linux.die.net/man/8/lvcreate Linux man page <tt>man lvcreate</tt>] options '''-L''' and '''-l''' for supported values.</translate>
See [https://linux.die.net/man/8/lvcreate Linux man page <tt>man lvcreate</tt>] options '''-L''' and '''-l''' for supported values.</translate></li>
</ul></ol>
</ul></ol>


<translate><div class="noprint">
<noinclude><div class="noprint">
==See also== <!--T:32-->
{{Copyright}}</div></noinclude>
[[Special:MyLanguage/Standard_Backup_Procedure|Standard Backup Procedure]] – [[Special:MyLanguage/4_4_3_Beefalo:Advanced_Backup_and_Restore_Options#Linux_client|Linux Client Backup]]</translate></div>

Latest revision as of 15:30, 9 June 2023

Other languages:


Overview

SEP sesam uses LVM (Logical Volume Manager) snapshots to perform consistent backups of open files on Linux distributions. LVM snapshots allow to back 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. After the backup, SEP sesam performs a cleanup of all LVM snapshots that were created by the same backup job but not deleted (purged) due to errors, etc. You can change this behaviour as described in step 2 below.

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 the Backup with LVM option.
    Linux new backup task.jpg
  2. Information sign.png Note
    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 Note
        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.
    • To allow non-LVM paths to be added as backup sources to the task (with the Backup with LVM option), set this option
    •   -a allow_no_lvm=1

      In this case, a normal Path backup is created for the non-LVM source.

    • By default, SEP sesam automatically deletes the snapshots created by the same backup task after the backup. To delete all SEP sesam snapshots, use the deleteall command:
       -a snapshot=deleteall

      If you want to keep the snapshots after the backup is complete, use keepsnap:

       -a snapshot=keepsnap

      To prevent the snapshots from being deleted before the backup starts (SEP sesam default behaviour), use the command:

       -a snapshot=nodeletebefore
    • All other options of the -a switch are added to the lv_create call as a long option:
        -a ignoremonitoring ->  lvcreate -s -l 10%ORIGIN -n Sesam_ssid --ignoremonitoring  "/dev/sesam/sesam"
      See Linux man page man lvcreate options -L and -l for supported values.
Copyright © SEP AG 1999-2024. All rights reserved.
Any form of reproduction of the contents or parts of this manual is allowed only with the express written permission from SEP AG. When compiling and designing user documentation SEP AG uses great diligence and attempts to deliver accurate and correct information. However, SEP AG cannot issue a guarantee for the contents of this manual.