|
|
(One intermediate revision by the same user not shown) |
Line 154: |
Line 154: |
| </ol> | | </ol> |
| <noinclude> | | <noinclude> |
| <translate>=={{anchor|disaster}}Recovering SEP sesam from Disaster== <!--T:53--> | | <translate>=={{anchor|disaster}}Recovering SEP sesam from disaster== <!--T:53--> |
|
| |
|
| <!--T:54--> | | <!--T:54--> |
Line 162: |
Line 162: |
|
| |
|
| <!--T:56--> | | <!--T:56--> |
| The procedure below describes the OS dependent disaster recovery process for a SEP sesam Server. Before reinstalling the SEP sesam Server and starting the actual recovery, perform the following step on both Linux and Microsoft Windows: | | The procedure below describes the disaster recovery process for a SEP sesam Server. Before reinstalling the SEP sesam Server and starting the actual recovery, perform the following step on both Linux and Microsoft Windows: |
| : Connect the backup storage hardware to the new SEP sesam server. The components will be detected and pre-configured during the SEP sesam Server installation.</translate> | | : Connect the backup storage hardware to the new SEP sesam Server. The components will be detected and pre-configured during the SEP sesam Server installation.</translate> |
| {{<translate><!--T:57-->
| |
| note</translate>|<translate><!--T:58-->
| |
| 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}}Steps=== <!--T:59--></translate> |
| <ol><li><translate><!--T:60--> | | <ol><li><translate>Save the ''bootstrap file'' (obtained via <tt>sm_distaster</tt> interface on email) to the SEP sesam Server you want to recover.</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>Depending on your operating system, install a SEP sesam Server as follows:</translate></li> |
| | {{<translate>Note</translate>|<translate>You have to 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).</translate>}} |
| | '''''<translate>On Windows</translate>''''' |
| | <ol><li><translate>Double-click the SEP sesam Server installation file. Agree to the license agreement and check the '''Disaster recovery''' box when the first dialog appears.</translate> </li> |
| | <translate> |
| | [[Image:Sesam-Server-DR_Win_Start-Dialog_en.jpg|link=]]</translate> |
| | <br clear=all> |
| | <li><translate><!--T:90--> |
| | Continue with the installation until you get to the last step ''Ready to Install SEP sesam Server version <number>''. Under the option '''Import SEP sesam Server database''' click '''Browse''' and select the ''bootstrap file'' that you have saved locally on the server, then click '''Install'''.</translate></li></ol> |
| | '''''<translate>On Linux</translate>''''' |
| | <ol><li><translate>Download and install the same SEP sesam Server package that was installed on the old system. Follow the installation procedure described in [[Special:MyLanguage/4_4_3:SEP_sesam_Quick_Install_Guide#Linux|Installing Linux Server package]].</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 SEP 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> |
Line 177: |
Line 184: |
| [[Image:Import_bootstrap_file_Beefalo_V2.jpg|link=]]</translate> | | [[Image:Import_bootstrap_file_Beefalo_V2.jpg|link=]]</translate> |
| <br clear=all> | | <br clear=all> |
| <li><translate><!--T:63-->
| | </ol> |
| After importing the bootstrap data, SEP sesam should have the basic configuration as before (for example, all existing drives). However, you should verify the following on your newly installed Linux server:</translate>
| |
| <ol style="list-style-type:lower-roman">
| |
| <li><translate><!--T:64-->
| |
| Check the system settings to ensure that the restored SEP sesam configuration conforms to the current server environment (library and drive device names, disk partition device names and mount points, etc.). If not, the SEP sesam settings must be adjusted.</translate>
| |
| | |
| <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''' -> 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:66-->
| |
| Start the whole SEP Server process daemon by running:</translate></li>
| |
| /opt/sesam/bin/sesam/sm_main stop
| |
| /opt/sesam/bin/sesam/sm_main start
| |
| {{<translate><!--T:67-->
| |
| note</translate>|<translate><!--T:68-->
| |
| If you are using SEP sesam Server on SLES12 or on other Linux distribution using systemd, use the following commands to restart the server:</translate>
| |
| | |
| systemctl stop sepsesam.service
| |
| systemctl start sepsesam.service
| |
| }}
| |
| | |
| <li><translate><!--T:69--> | | <li><translate><!--T:69--> |
| 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 SEP sesam 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-->
| |
| In the '''Select Task''' window, check the '''Complete restore of selected task''' box and click '''Next'''.</translate></li>
| |
| <li<translate><!--T:71-->
| |
| >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-->
| |
| Set the profile to enable SEP sesam commands to be executed globally:</translate></li>
| |
| source /var/opt/sesam/var/ini/sesam2000.profile
| |
| <li><translate><!--T:73-->
| |
| Then run the following:</translate></li>
| |
| sm_db import -n -f /opt/sesam/skel/db/postgres/sesam_db.sql
| |
| <li><translate><!--T:74-->
| |
| Find out which backup is the most recent one:</translate></li>
| |
| ls -lart /tmp/sesam_restore/var/opt/sesam/var/db_pg/backup/
| |
| <li><translate><!--T:75-->
| |
| Run the following command by replacing the <tt><sesam_db_file_name></tt> with actual export filename, e.g., <tt>sesam_db_20171214-20171215030025.sql.gz</tt>:</translate></li>
| |
| sm_db import -n -f /tmp/sesam_restore/var/opt/sesam/var/db_pg/backup/<sesam_db_file_name>.sql.gz
| |
| <li><translate><!--T:76-->
| |
| Run another sm_db import</translate></li>
| |
| sm_db import -n -f /opt/sesam/skel/db/postgres/sesam_insert_start.sql
| |
| <li><translate><!--T:77-->
| |
| Restore the ''.lis'' files:</translate></li>
| |
| cd /tmp/sesam_restore/var/opt/sesam/var/lis
| |
| <translate><!--T:78-->
| |
| by moving them:</translate>
| |
| mv * /var/opt/sesam/var/lis/
| |
| <li><translate><!--T:79-->
| |
| Copy the license file:</translate></li>
| |
| cp /tmp/sesam_restore/var/opt/sesam/var/ini/sm_lic.ini /var/opt/sesam/var/ini/
| |
| | |
| <translate><!--T:80-->
| |
| and confirm the overwrite:</translate>
| |
| | |
| "/var/opt/sesam/var/ini/sm_lic. ini" overwrite? y
| |
| | |
| <li><translate><!--T:81-->
| |
| Copy the <tt>sm_java.policy</tt> file:</translate></li>
| |
| cp /tmp/sesam_restore/var/opt/sesam/var/ini/sm_java.policy /var/opt/sesam/var/ini/
| |
| | |
| <translate><!--T:82-->
| |
| and confirm the overwrite:</translate>
| |
| cp:"/var/opt/sesam/var/ini/sm_java. policy" overwrite? y
| |
| <li><translate><!--T:83-->
| |
| At the end of the recovery procedure the sesam service must be restarted. Use the command:</translate></li>
| |
| sm_main stop
| |
| <translate><!--T:84-->
| |
| followed by:</translate>
| |
| | |
| sm_main start
| |
| </ol>
| |
| | |
| <translate><!--T:85-->
| |
| After restarting SEP sesam, the system is again operational with the data that was backed up in the last SEP sesam self-backup.
| |
| | |
| ==={{anchor|recovery_win}}Recovery on Windows=== <!--T:86--></translate>
| |
| <ol>
| |
| <li><translate><!--T:87-->
| |
| 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.</translate> <br />
| |
| <translate><!--T:88-->
| |
| Double-click the SEP sesam Server installation file. Agree to the license agreement and check the '''Disaster recovery''' box when the first dialog appears.</translate> </li>
| |
| <translate><!--T:89-->
| |
| [[Image:Sesam-Server-DR_Win_Start-Dialog_en.jpg|link=]]</translate>
| |
| <br clear=all>
| |
| <li><translate><!--T:90-->
| |
| Continue with the installation until you get to the last step ''Ready to Install SEP sesam Server version <number>''. Under the option '''Import SEP sesam Server database''' click '''Browse''' and select the ''bootstrap file'' that you have saved locally on the server, then click '''Install'''.</translate></li>
| |
| <li> <translate><!--T:91-->
| |
| After importing the bootstrap data, SEP sesam should have the basic configuration as before (for example, all existing drives). However, you should verify the following on your newly installed Windows server:</translate>
| |
| <ol style="list-style-type:lower-roman">
| |
| <li><translate><!--T:92-->
| |
| Check the system settings to ensure that the restored SEP sesam configuration conforms to the current server environment (library and drive device names, disk partition device names and mount points, etc.). If not, the SEP sesam settings must be adjusted.</translate>
| |
| | |
| <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''' -> 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-->
| |
| 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 Task''' window, check the '''Disaster restore''' box and click '''Next'''.</translate> | | In the ''Select Task'' window, check the '''Disaster restore''' box and click '''Next'''.</translate> |
| <p><translate><!--T:96--> | | <p><translate><!--T:96--> |
| [[Image:Disaster_restore_Beefalo_V2.jpg|780px|link=]]</translate></p> | | [[Image:Disaster_restore_Beefalo_V2.jpg|780px|link=]]</translate></p> |
| <br clear=all> | | <br clear=all> |
| <li><translate><!--T:97--> | | <li><translate><!--T:97--> |
| In the '''Target Settings''' window, make sure that the default settings '''Restore to original target path''' and '''Overwrite existing items''' are selected.</translate> | | In the ''Target Settings'' window, make sure that the default settings '''Restore to original target path''' and '''Overwrite existing items''' are selected.</translate> |
|
| |
|
| <li><translate><!--T:100--> | | <li><translate><!--T:100--> |
Line 290: |
Line 199: |
|
| |
|
| <li><translate><!--T:101--> | | <li><translate><!--T:101--> |
| After the restore has been completed, the dialog '''Complete the disaster restore''' appears asking whether you want to import the database automatically. Confirm by clicking '''OK'''.</translate> | | After the restore has been completed, the dialog '''Complete the disaster restore''' appears asking whether you want to import the database automatically. Confirm by clicking '''OK'''.</translate></li></ol> |
| | |
| <li><translate><!--T:102--> | |
| At the end of the recovery procedure the SEP sesam service must be restarted.</translate>
| |
| </ol> | |
|
| |
|
| <translate><!--T:103--> | | <translate>After restarting the SEP sesam GUI, the system is again operational with the data that was backed up in the last SEP sesam self-backup. |
| After restarting the SEP sesam GUI, the system is again operational with the data that was backed up in the last SEP sesam self-backup. | |
|
| |
|
| ==={{anchor|command}}Alternative recovery procedure using command line=== <!--T:104--> | | ==={{anchor|command}}Alternative recovery procedure using command line=== <!--T:104--> |