Source:Restore from tape via SBC without a valid SEP sesam database: Difference between revisions

From SEPsesam
(Minor correction.)
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Copyright SEP AG en}}
<translate><!--T:1-->
<noinclude><div class="noprint"><languages />
{{Copyright SEP AG|en}}
{{Draft}}


Restore with SESAM Backup from tape without sm_recover.
<!--T:2-->
{{Navigation_latest|release=[[SEP_sesam_Release_Versions|4.4.3/4.4.3 ''Beefalo V2'']]|link=[[Special:MyLanguage/SEP_sesam_Documentation|Documentation archive]]}}</translate></div><br />


== Goals ==
<translate>==Overview== <!--T:3--></translate>
Restore of a SESAM server without sm_recover only with sbc directly off a tape.
<div class="noprint"><div class="boilerplate metadata" id="Additional resources" style="background-color:#ecedf1; color:#8695a7; border: 1px ridge #cdd3db; margin: 0.5em; padding: 0.5em; float: right; width: 35%; "><center><b><translate><!--T:4--> Additional resources</translate></b></center>


== Prerequisite ==
{|style="margin: auto; margin-bottom:1em; width:100%; border:0px solid grey;"
1) Correctly set up OS with working Tape drive or loader device
| rowspan="2" style="padding:0px 10px 0px;" |
2) Correctly installed SEP Sesam server (identical version to the preceiding system)
[[File:SEP_next.png|45px|link=Special:MyLanguage/SBC_CLI|SBC CLI]]
3) Medium which contains a corretly saved SESAM-BACKUP
| style="padding:0px 40px 0px 10px; color: grey; font-size: 90%; text-align:left;" | <translate>
<!--T:5-->
See also: [[Special:MyLanguage/SBC_CLI|SBC CLI]] – [[Special:MyLanguage/Restore|Restore]] – [[Special:MyLanguage/SEP_sesam_Configuration_–_First_Steps#disaster_recovery|Configuring <tt>SESAM_BACKUP</tt>]] – [[Special:MyLanguage/FAQ#tape_media|FAQ: How to restore all the data from tape media without the SEP sesam DB]]</translate>
|}


== Displaying the savesets on the tape via sm_sms_interface ==
{|style="margin: auto; margin-bottom:1em; width:100%; border:0px solid grey;"
| rowspan="2" style="padding:0px 10px 0px;" | [[File:SEP Tip.png|45px|link=Special:MyLanguage/FAQ#restore|FAQ]]
| style="padding:0px 40px 0px 10px; color: grey; font-size: 90%; text-align:left;" | <translate>
<!--T:6-->
Check [[Special:MyLanguage/FAQ#restore|FAQ]] to find the answers to most common questions.</translate>
|}


{{note|In case of a Windows System replace the tape device identifier (/dev/nst0) with the corresponding Windows Device (Tape0)}}
{|style="margin: auto; margin-bottom:1em; width:100%; border:0px solid grey;"
| rowspan="2" style="padding:0px 10px 0px;" | [[File:SEP Troubleshooting.png|45px|link=Special:MyLanguage/Troubleshooting_Guide|Troubleshooting Guide]]
| style="padding:0px 40px 0px 10px; color: grey; font-size: 90%; text-align:left;" | <translate>
<!--T:7-->
Problems? See the [[Special:MyLanguage/Troubleshooting_Guide|Troubleshooting Guide]].</translate>
|}</div>
<translate><!--T:8-->
This article describes how to restore the SEP sesam Server from tape via <tt>sbc</tt> without using [[Special:MyLanguage/FAQ#tape_media|<tt>sm_recover</tt>]]. For details on ''SBC CLI'' usage and available commands, see [[Special:MyLanguage/SBC_CLI|SBC CLI]].


===Prerequisites=== <!--T:9--></translate>
*<translate><!--T:10--> Operating system with working tape drive or loader device.</translate>
*<translate><!--T:11--> Installed SEP sesam Server (identical version to the preceding system): Install the same SEP sesam Server package that was installed on the old system and set up the new server system in the same way as the previous one. For details on installation, see [[Special:MyLanguage/4_4_3:SEP_sesam_Quick_Install_Guide|SEP sesam Quick Install Guide]].</translate>
*<translate><!--T:12-->
A medium that contains correctly saved <tt>SESAM_BACKUP</tt> (containing <tt><SESAM_VAR></tt> and <tt><SESAM_ROOT>/bin/sesam</tt> directories). For details, see [[Special:MyLanguage/SEP_sesam_Configuration_–_First_Steps#disaster_recovery|Configuring <tt>SESAM_BACKUP</tt>]].


[[Image:sms4.jpg]]
==Restore procedure== <!--T:28-->
The restore of the SEP sesam Server described below is a two-step procedure consisting of determining the required saveset information and restoring via <tt>sbc</tt>.


Important information here:
=== {{anchor|sm_sms}}Listing the savesets on the tape via <tt>sm_sms_interface</tt> === <!--T:29-->
1) Segment number (4)
2) Saveset name (SC20090610105624)
3) Tape Label (cefix00001)
4) Tape ID (1)


== Restore of the saveset via sbc ==
<!--T:30-->
[[Image:Restore.jpg]]
Use the <tt>sm_sms_interface</tt> command to access the [[Special:MyLanguage/SEP_sesam_Glossary#SMS|SMS Server]] and identify the available savesets on tape.</translate>
[[Image:restore_suc.jpg]]
<ol><li><translate><!--T:15-->
Insert the tape with the <tt>SESAM_BACKUP</tt> backup savesets and identify the savesets on the tape device by using the command:</translate></li>
Restore is done with the sbc command which contains the following information:
  sm_sms_interface dir -d <tape_device>
   
{{<translate><!--T:16--> note</translate>|<translate><!--T:17--> On Windows, replace the tape device identifier (<tt>/dev/nst0</tt>) with the corresponding Windows device (<tt>Tape0</tt>).</translate>}}
'''sbc -r -l FULL -C <control_host>:11001 -S <storage_host>:11001 -d SMS:<tape_device> -t <tape_name>:<tape_id> -s <saveset_id> -n <segmentnummer> -R / -o overwrite'''


If a restore of a database has to be done to a dumpfile, the command will have to look like this (in Linux):
</noinclude><translate>
'''sbc -r -l FULL -C <client_host>:11001 -S <server_host>:11001 -d SMS:<tape_device>  
<!--T:31-->
-t <tape_name>:<tape_id> -s <saveset_id> -n <segmentnummer> -o over -F none @@file:/tmp/restore_db.sql'''
[[Image:sms4.jpg|link=]]</translate>
<br clear=all>


<translate><!--T:18--> Obtain the required information from the output as shown in the example below:</translate>
*<translate><!--T:19--> The first number in the highlighted line is the ''segment number''; in our example: </translate> ''4''.
*<translate><!--T:20--> The ''SavesetName'' is SEP sesam unique identification assigned to a saveset; in our example:</translate> ''SC20090610105624''.
*<translate><!--T:21--> The ''Tapelabel'' in the header displays the ''<tape_name>''; in our example: </translate> ''cefix00001''.
*<translate><!--T:32--> The ''TapeID'' in the header displays the ''<tape_id>''; in our example: </translate> (''1'')
<noinclude>
<translate>
=== {{anchor|sbc}}Restoring from tape via <tt>sbc</tt>=== <!--T:33--> </translate>


'''control_host''' is always the Sesam server itself
<li><translate><!--T:23--> Restore the saveset by using the following <tt>sbc</tt> command:</translate></li>
sbc -r -l FULL -C <control_host>:11001 -S <storage_host>:11001 -d SMS:<tape_device> -t <tape_name>:<tape_id> -s <saveset_id> -n <segment_number> '''-R''' / '''-o overwrite'''


'''storage_host''' can be the Sesam server or a Remote Device Server (RDS), where the medium is attached at.
{{<translate><!--T:36--> Note</translate>|
*<translate><!--T:37--> In our example, the command overwrites the existing data files (<tt>-o overwrite</tt>)! Make sure to remove the ''overwrite'' option if you do not want to overwrite the files.</translate>
*<translate><!--T:38--> You can change the restore target by specifying <tt>-R <restore_target></tt>.</translate>}}
*<translate><!--T:24--> '''''<control_host>''''' is the name of the SEP sesam Server.</translate>


== See also ==
*<translate><!--T:25-->
[[Special:MyLanguage/SBC_CLI|SBC CLI]]
'''''<storage_host>''''' is the SEP sesam Server or Remote Device Server (RDS) with the attached medium.
 
<!--T:35-->
[[Image:Restore.jpg|link=]]
</translate><br clear=all>
</ol>
 
<translate>
== See also == <!--T:27-->
[[Special:MyLanguage/SBC_CLI|SBC CLI]] – [[Special:MyLanguage/Restore|Restore]] – [[Special:MyLanguage/SEP_sesam_Configuration_–_First_Steps#disaster_recovery|Configuring <tt>SESAM_BACKUP</tt>]] – [[Special:MyLanguage/FAQ#tape_media|FAQ: How to restore all the data from tape media without the SEP sesam DB]]</translate></noinclude>

Revision as of 12:59, 7 December 2020

Other languages:

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.

Draft.png WORK IN PROGRESS
This article is in the initial stage and may be updated, replaced or deleted at any time. It is inappropriate to use this document as reference material as it is a work in progress and should be treated as such.


Docs latest icon.png Welcome to the latest SEP sesam documentation version 4.4.3/4.4.3 Beefalo V2. For previous documentation version(s), check Documentation archive.


Overview

This article describes how to restore the SEP sesam Server from tape via sbc without using sm_recover. For details on SBC CLI usage and available commands, see SBC CLI.

Prerequisites

  • Operating system with working tape drive or loader device.
  • Installed SEP sesam Server (identical version to the preceding system): Install the same SEP sesam Server package that was installed on the old system and set up the new server system in the same way as the previous one. For details on installation, see SEP sesam Quick Install Guide.
  • A medium that contains correctly saved SESAM_BACKUP (containing <SESAM_VAR> and <SESAM_ROOT>/bin/sesam directories). For details, see Configuring SESAM_BACKUP.

Restore procedure

The restore of the SEP sesam Server described below is a two-step procedure consisting of determining the required saveset information and restoring via sbc.

Listing the savesets on the tape via sm_sms_interface

Use the sm_sms_interface command to access the SMS Server and identify the available savesets on tape.

  1. Insert the tape with the SESAM_BACKUP backup savesets and identify the savesets on the tape device by using the command:
  2. sm_sms_interface dir -d <tape_device>
    Information sign.png Note
    On Windows, replace the tape device identifier (/dev/nst0) with the corresponding Windows device (Tape0).

    Sms4.jpg

    Obtain the required information from the output as shown in the example below:

    • The first number in the highlighted line is the segment number; in our example: 4.
    • The SavesetName is SEP sesam unique identification assigned to a saveset; in our example: SC20090610105624.
    • The Tapelabel in the header displays the <tape_name>; in our example: cefix00001.
    • The TapeID in the header displays the <tape_id>; in our example: (1)

    Restoring from tape via sbc

  3. Restore the saveset by using the following sbc command:
  4. sbc -r -l FULL -C <control_host>:11001 -S <storage_host>:11001 -d SMS:<tape_device> -t <tape_name>:<tape_id> -s <saveset_id> -n <segment_number> -R / -o overwrite
    Information sign.png Note
    • In our example, the command overwrites the existing data files (-o overwrite)! Make sure to remove the overwrite option if you do not want to overwrite the files.
    • You can change the restore target by specifying -R <restore_target>.
    • <control_host> is the name of the SEP sesam Server.
    • <storage_host> is the SEP sesam Server or Remote Device Server (RDS) with the attached medium.

    Restore.jpg

See also

SBC CLIRestoreConfiguring SESAM_BACKUPFAQ: How to restore all the data from tape media without the SEP sesam DB