Source:SEP sesam Server Disaster Recovery: Difference between revisions
m (Fixed description for systemd) |
(Beefalo V2-related update.) |
||
Line 4: | Line 4: | ||
<!--T:2--> | <!--T:2--> | ||
{{Navigation_latest|release=[[Special:MyLanguage/SEP_sesam_Release_Versions|4.4.3/4.4.3 ''Beefalo'']]|link=[[Special:MyLanguage/SEP_sesam_Documentation#previous|Documentation archive]]}}</translate><br /> | {{Navigation_latest|release=[[Special:MyLanguage/SEP_sesam_Release_Versions|4.4.3/4.4.3 ''Beefalo V2'']]|link=[[Special:MyLanguage/SEP_sesam_Documentation#previous|Documentation archive]]}}</translate><br /> | ||
<translate>==Overview== <!--T:3--></translate> | <translate>==Overview== <!--T:3--></translate> | ||
Line 74: | Line 74: | ||
The self-backup procedure consists of the following:</translate> | The self-backup procedure consists of the following:</translate> | ||
*<translate><!--T:24--> | *<translate><!--T:24--> | ||
When the SEP sesam self-backup starts (''SESAM_BACKUP''), the entire SEP sesam database is exported to the path <tt><SESAM_ROOT>/var/<db>[_pg]/backup</tt>. Export files have names such as ''sesam_db_20121223-20121224060003.sql.gz'' and are backed up to a pre-defined media pool. It is recommended that you configure a SEP sesam DR-dedicated media pool for storing all your SEP disaster recovery | When the SEP sesam self-backup starts (''SESAM_BACKUP''), the entire SEP sesam database is exported to the path <tt><SESAM_ROOT>/var/<db>[_pg]/backup</tt>. Export files have names such as ''sesam_db_20121223-20121224060003.sql.gz'' and are backed up to a pre-defined media pool. It is recommended that you configure a SEP sesam DR-dedicated media pool for storing all your SEP disaster recovery savesets.</translate> | ||
*<translate><!--T:25--> | *<translate><!--T:25--> | ||
Line 83: | Line 83: | ||
Information about SEP sesam's last disaster backup is also stored.</translate> | Information about SEP sesam's last disaster backup is also stored.</translate> | ||
*<translate><!--T:28--> | *<translate><!--T:28--> | ||
Finally, an email with a short recovery description and the bootstrap file as an attachment are sent regularly to the | Finally, an email with a short recovery description and the bootstrap file as an attachment are sent regularly to the email address you have configured. The bootstrap export is used exclusively for SEP sesam system recovery in the event of a disaster, therefore you should save every version of this file to a safe location. | ||
=={{anchor|preparation}}Preparing for Disaster Recovery== <!--T:29--> | =={{anchor|preparation}}Preparing for Disaster Recovery== <!--T:29--> | ||
Line 93: | Line 93: | ||
To fully utilize disaster recovery's functionality and ensure that all disaster-related information is generated and sent, the following steps must be carried out:</translate> | To fully utilize disaster recovery's functionality and ensure that all disaster-related information is generated and sent, the following steps must be carried out:</translate> | ||
<ol><li> <translate><!--T:32--> | <ol><li> <translate><!--T:32--> | ||
The backup task ''SESAM_BACKUP'' is ordinarily configured after the installation of a SEP sesam Server. Hence it should already be present. If it is not, you have to configure it: <br>Open the GUI and from the '''Main selection''' -> '''Tasks''' -> '''By | The backup task ''SESAM_BACKUP'' is ordinarily configured after the installation of a SEP sesam Server. Hence it should already be present. If it is not, you have to configure it: <br>Open the GUI and from the '''Main selection''' -> '''Tasks''' -> '''By Clients''' -> select your SEP sesam Server -> '''New Backup Task'''. The name of the backup task must be ''SESAM_BACKUP''. It typically encompasses the <tt><SESAM_ROOT>/var</tt> and <tt><SESAM_ROOT>/bin/sesam</tt> directories, and excludes the <tt>work</tt> and <tt>log</tt> directories. Click '''OK''' to save the task.</translate><br /> | ||
<translate><!--T:33--> | <translate><!--T:33--> | ||
[[image: | [[image:SEP_sesam_backup_task_Beefalo_V2.jpg|link=]]</translate> | ||
<br clear=all> | <br clear=all> | ||
<li> <translate><!--T:34--> | <li> <translate><!--T:34--> | ||
Once your disaster recovery task is configured, set up a backup schedule (''GUI -> Scheduling -> Schedules''). The SEP sesam backup should run at a time when no other activities are running in the SEP sesam environment. It is recommended to run this task every day. For details on scheduling, see [[Special:MyLanguage/Creating_a_Schedule|Creating a | Once your disaster recovery task is configured, set up a backup schedule (''GUI -> Scheduling -> Schedules''). The SEP sesam backup should run at a time when no other activities are running in the SEP sesam environment. It is recommended to run this task every day. For details on scheduling, see [[Special:MyLanguage/Creating_a_Schedule|Creating a Schedule]].</translate> | ||
<li> <translate><!--T:35--> | <li> <translate><!--T:35--> | ||
Create an event to be linked to the schedule. Select the [[Special:MyLanguage/SEP_sesam_Glossary#backup_level|backup level]] '''COPY'''. It is recommended that you choose a disaster recovery dedicated media pool for storing all your disaster recovery | Create an event to be linked to the schedule. Select the [[Special:MyLanguage/SEP_sesam_Glossary#backup_level|backup level]] '''COPY'''. It is recommended that you choose a disaster recovery dedicated media pool for storing all your disaster recovery savesets. For general information on creating a backup event, see [[Special:MyLanguage/Creating_a_Backup_Event|Creating a Backup Event]].</translate> | ||
<li> <translate><!--T:36--> | <li> <translate><!--T:36--> | ||
Activate the ''sm_disaster'' interface: In the ''SEP sesam GUI menu'', select '''Configuration''' -> '''Interfaces''' -> '''Disaster | Activate the ''sm_disaster'' interface: In the ''SEP sesam GUI menu'', select '''Configuration''' -> '''Interfaces''' -> '''Disaster Interface'''. A window with the interface script is displayed.</translate><br /> | ||
<translate><!--T:37--> | <translate><!--T:37--> | ||
[[image: | [[image:Activate_disaster_interface_Beefalo_V2.jpg|link=]]</translate> | ||
<br clear=all> | <br clear=all> | ||
Line 118: | Line 118: | ||
* <translate><!--T:41--> | * <translate><!--T:41--> | ||
'''Windows''': | '''Windows''': The MSI Installer will ask you if the existing interface should be overwritten. Choose <yes> to overwrite the existing interface. Alternatively, copy <tt><SESAM_BIN>/skel/templates/sm_disaster.ps1</tt> to <tt><SESAM_BIN>/bin/sesam/sm_disaster.ps1</tt>.</translate> | ||
* <translate><!--T:42--> | * <translate><!--T:42--> | ||
Line 124: | Line 124: | ||
}} | }} | ||
<li> <translate><!--T:43--> | <li> <translate><!--T:43--> | ||
Configure the SEP sesam email for the account ''sesam'' so that the interface sends messages after the self-backup: From the GUI menu, select '''Configuration''' -> ''' | Configure the SEP sesam email for the account ''sesam'' so that the interface sends messages after the self-backup: From the GUI menu, select '''Configuration''' -> '''Email Settings''' -> '''New'''. An ''Email Account'' window is displayed.</translate> | ||
*<translate><!--T:44--> | *<translate><!--T:44--> | ||
Line 149: | Line 149: | ||
<!--T:52--> | <!--T:52--> | ||
[[Image: | [[Image:Create_e-mail_account_Beefalo_V2.jpg|link=]]</translate> | ||
<br clear=all> | <br clear=all> | ||
</ol> | </ol> | ||
Line 165: | Line 165: | ||
{{<translate><!--T:57--> | {{<translate><!--T:57--> | ||
note</translate>|<translate><!--T:58--> | note</translate>|<translate><!--T:58--> | ||
As of SEP sesam version 4.4.3, the restore task option '' | As of SEP sesam version 4.4.3, the restore task option ''Disaster restore'' does not work on Linux systems. Instead, use the option ''Complete restore of selected task'' and perform additional steps as described below to recover your Linux server from disaster.</translate>}} | ||
<translate>==={{anchor|recovery_linux}}Recovery on Linux=== <!--T:59--></translate> | <translate>==={{anchor|recovery_linux}}Recovery on Linux=== <!--T:59--></translate> | ||
<ol><li><translate><!--T:60--> | <ol><li><translate><!--T:60--> | ||
In the first step, you will download and install the same SEP sesam Server package that was installed on the old system. It is important to provide the same operating system environment as that of the original server, therefore set up the new server system in the same way as the previous one (same hostname, same IP address). Follow the installation procedure as described in [[Special:MyLanguage/4_4_3:SEP_sesam_Quick_Install_Guide#Linux|Installing Linux Server package]]. Before starting the SEP sesam installation, make sure that you are logged in as root.</translate></li> | In the first step, you will download and install the same SEP sesam Server package that was installed on the old system. It is important to provide the same operating system environment as that of the original server, therefore set up the new server system in the same way as the previous one (same hostname, same IP address). Follow the installation procedure as described in [[Special:MyLanguage/4_4_3:SEP_sesam_Quick_Install_Guide#Linux|Installing Linux Server package]]. Before starting the SEP sesam installation, make sure that you are logged in as ''root''.</translate></li> | ||
<li><translate><!--T:61--> | <li><translate><!--T:61--> | ||
After installing the SEP sesam Server, open the GUI and from the menu choose '''File''' -> '''Import sesam database'''. Select the ''bootstrap file'' that you have saved locally on the server and click '''OK''' to import the database.</translate></li> | After installing the SEP sesam Server, open the GUI and from the menu choose '''File''' -> '''Import SEP sesam database'''. Select the ''bootstrap file'' that you have saved locally on the server and click '''OK''' to import the database.</translate></li> | ||
<translate><!--T:62--> | <translate><!--T:62--> | ||
[[Image: | [[Image:Import_bootstrap_file_Beefalo_V2.jpg|link=]]</translate> | ||
<br clear=all> | <br clear=all> | ||
<li><translate><!--T:63--> | <li><translate><!--T:63--> | ||
Line 183: | Line 183: | ||
<li><translate><!--T:65--> | <li><translate><!--T:65--> | ||
If recovery is being executed from physical media, open the GUI and perform a SEP sesam archive adjustment to update the SEP sesam media information with the physical tape library: '''Main selection''' -> '''Components''' -> '''Loaders''' -> | If recovery is being executed from physical media, open the GUI and perform a SEP sesam archive adjustment to update the SEP sesam media information with the physical tape library: '''Main selection''' -> '''Components''' -> '''Loaders''' -> select a loader -> click '''Archive Adjustment'''. For details, see [[Special:MyLanguage/Setting_up_Archive_Adjustment|Setting up Archive Adjustment]].</translate> | ||
</li> | </li> | ||
Line 202: | Line 202: | ||
From the GUI '''Main selection''' -> '''Job State''' -> '''Backups''' select the most recent ''SESAM_BACKUP'', right-click it and select '''Restore'''. The restore wizard is displayed.</translate></li> | From the GUI '''Main selection''' -> '''Job State''' -> '''Backups''' select the most recent ''SESAM_BACKUP'', right-click it and select '''Restore'''. The restore wizard is displayed.</translate></li> | ||
<li><translate><!--T:70--> | <li><translate><!--T:70--> | ||
In the '''Select | In the '''Select Task''' window, check the '''Complete restore of selected task''' box and click '''Next'''.</translate></li> | ||
<li<translate><!--T:71--> | <li<translate><!--T:71--> | ||
>In the ''' | >In the '''Target Settings''' window, under the ''Target path settings'' select the option '''New restore target''' and enter or browse for the path to some temporary directory, e.g., ''/tmp/sesam_restore''. Click '''Next''' and then '''Start''' to start the restore.</translate></li> | ||
<li><translate><!--T:72--> | <li><translate><!--T:72--> | ||
Set the profile to enable SEP sesam commands to be executed globally:</translate></li> | Set the profile to enable SEP sesam commands to be executed globally:</translate></li> | ||
Line 272: | Line 272: | ||
<li><translate><!--T:93--> | <li><translate><!--T:93--> | ||
If recovery is being executed from physical media, open the GUI and perform a SEP sesam archive adjustment to update the SEP sesam media information with the physical tape library: '''Main selection''' -> '''Components''' -> '''Loaders''' -> | If recovery is being executed from physical media, open the GUI and perform a SEP sesam archive adjustment to update the SEP sesam media information with the physical tape library: '''Main selection''' -> '''Components''' -> '''Loaders''' -> select a loader -> click '''Archive Adjustment'''. For details, see [[Special:MyLanguage/Setting_up_Archive_Adjustment|Setting up Archive Adjustment]].</translate> | ||
</li></ol> | |||
<li> <translate><!--T:94--> | <li> <translate><!--T:94--> | ||
Start the SEP sesam GUI and from the '''Main selection''' -> '''Job State''' -> '''Backups''' select the most recent ''SESAM_BACKUP'', right-click it and select '''Restore'''. The restore wizard is displayed.</translate> | Start the SEP sesam GUI and from the '''Main selection''' -> '''Job State''' -> '''Backups''' select the most recent ''SESAM_BACKUP'', right-click it and select '''Restore'''. The restore wizard is displayed.</translate> | ||
<li><translate><!--T:95--> | <li><translate><!--T:95--> | ||
In the '''Select | In the '''Select Task''' window, check the '''Disaster restore''' box and click '''Next'''.</translate> | ||
<p><translate><!--T:96--> | <p><translate><!--T:96--> | ||
[[Image: | [[Image:Disaster_restore_Beefalo_V2.jpg|750px|link=]]</translate></p> | ||
<br clear=all> | <br clear=all> | ||
<li><translate><!--T:97--> | <li><translate><!--T:97--> | ||
In the ''' | In the '''Target Settings''' window, make sure that the default settings '''Restore to original target path''' and '''Overwrite existing items''' are checked.</translate> | ||
<li><translate><!--T:100--> | <li><translate><!--T:100--> | ||
Click '''Start''' to start the restore.</translate> | Click '''Next''' and then '''Start''' to start the restore.</translate> | ||
<li><translate><!--T:101--> | <li><translate><!--T:101--> | ||
Line 301: | Line 292: | ||
<li><translate><!--T:102--> | <li><translate><!--T:102--> | ||
At the end of the recovery procedure the sesam service must be restarted.</translate> | At the end of the recovery procedure the SEP sesam service must be restarted.</translate> | ||
</ol> | </ol> | ||
Line 311: | Line 301: | ||
<!--T:105--> | <!--T:105--> | ||
Typically, an email sent by disaster interface should have the SEP sesam bootstrap database file attached. If there is no attachment, you can still perform disaster recovery by running restore from the command line. You can find the required arguments in the disaster email, namely, the label of the media currently being used and the complete restore command, which restores the data from the | Typically, an email sent by disaster interface should have the SEP sesam bootstrap database file attached. If there is no attachment, you can still perform disaster recovery by running restore from the command line. You can find the required arguments in the disaster email, namely, the label of the media currently being used and the complete restore command, which restores the data from the savesets bootstrap database file attached.</translate> | ||
*<translate><!--T:106--> | *<translate><!--T:106--> | ||
Identify the location containing SEP sesam's last disaster backup and copy the restore command, located at the very end of the disaster email. Make sure to set the profile first. For details, see [[Special:MyLanguage/FAQ#profile_setting|What happens when I set a profile?]].</translate> | Identify the location containing SEP sesam's last disaster backup and copy the restore command, located at the very end of the disaster email. Make sure to set the profile first. For details, see [[Special:MyLanguage/FAQ#profile_setting|What happens when I set a profile?]].</translate> |