PCS7 System Recovery With Veritas en
PCS7 System Recovery With Veritas en
PCS7 System Recovery With Veritas en
image of the
operating systems
during operation
Siemens
SIMATIC PCS 7 / Veritas System Recovery Industry
Online
https://support.industry.siemens.com/cs/ww/en/view/56897157 Support
This entry is from the Siemens Industry Online Support. The general terms of use
(http://www.siemens.com/terms_of_use) apply.
Security Siemens provides products and solutions with industrial security functions that support the
informa- secure operation of plants, systems, machines and networks.
tion
In order to protect plants, systems, machines and networks against cyber threats, it is
necessary to implement – and continuously maintain – a holistic, state-of-the-art industrial
security concept. Siemens’ products and solutions only form one element of such a
concept.
Siemens’ products and solutions undergo continuous development to make them more
secure. Siemens strongly recommends to apply product updates as soon as available and
to always use the latest product versions. Use of product versions that are no longer
supported, and failure to apply latest updates may increase customer’s exposure to cyber
threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security
RSS Feed under http://www.siemens.com/industrialsecurity.
Siemens AG 2018 All rights reserved
Table of content
1 Introduction ........................................................................................................ 3
2 General Information ........................................................................................... 4
2.1 Hard Disk Image ................................................................................... 4
2.2 System Configuration ........................................................................... 4
3 Introduction of a Disaster Recovery Plan (DRP) ............................................ 5
3.1 Introduction of a DRP in a New Plant ................................................... 5
3.2 Introduction of a DRP in an Existing Plant ........................................... 5
4 Hardware Environment ..................................................................................... 6
4.1 Local Backup ........................................................................................ 6
4.2 Local Backup and Central Storage ...................................................... 7
4.3 Backup via the Terminal Bus ............................................................... 8
4.4 Backup via an Additional Network ........................................................ 9
4.5 Installation of Veritas System Recovery............................................. 10
4.6 Recommendations for Time Settings ................................................. 10
4.7 Recommendations for Configuration Settings.................................... 11
4.8 Recommendations for Performance Settings .................................... 13
5 Restore with Veritas System Recovery ......................................................... 14
5.1 Recovery CD ...................................................................................... 14
5.2 Restore ............................................................................................... 15
5.3 Clear Management Data of Microsoft SQL for PCS 7 V8.0 /
V8.1 .................................................................................................... 16
1 Introduction
This document shows you a solution for creating a disk image while the system is
in operation.
It also includes instructions for configuration using the following Veritas products.
WARNING Please note that we do not give any warranty for the functioning of the
procedure described in this entry, nor do we assume any liability for any
faults that might arise when using the Veritas software or the software of
any other provider.
Please also note the system requirements of the backup software used.
Limitation
This document is not a substitute for the manual supplied with the backup software
used.
Siemens AG 2018 All rights reserved
The use of system recovery tools is not a substitute for the PCS 7 redundancy
concept or for the provision of an uninterruptible power supply (UPS) required by a
process control system.
This document deals only with the backup of the operating system and installed
software. The backup of project data is done in the SIMATIC Manager using the
"Archive" function.
2 General Information
2.1 Hard Disk Image
Using the appropriate software you can create a 1:1 image of hard disks or single
partitions. In the case of an error you can quickly restore the system by playing
back this image (Bare Metal Restore). The disadvantage here is that the backup
can only be made on systems which have practically identical hardware.
In the meantime there are also solutions available which enable an incremental
procedure. In this case, the complete hard disk or partition is imaged with the first
backup. Each subsequent backup saves only the changes. This sort of backup
procedure is necessary in particular when the system is continuously changed by
an automatic update function, for example.
system with installed software and the PCS 7 project data at drive level.
Example:
WARNING PCS 7 OS does not support saving or backup of runtime data (Alarm
Logging, Tag Logging). It is mandatory to have a redundant configuration
of the OS server or OS single station in order to keep the runtime data of
PCS 7 consistent even if the server fails.
WARNING When backing up an Engineering Station (ES) the PCS 7 (multi) project
must be closed (Multiproject Engineering Server and Distributed
Engineering Stations).
Configuration
Backup frequency
Backup plan
Number of images (number of restore instances)
Central or local storage of the images (access rights)
Creation, testing and storage of the recovery disk (boot CD / DVD)
Siemens AG 2018 All rights reserved
Runtime
Performance of the plant during image creation
Performance of the network with central storage of the images
With FAT / SAT it is absolutely necessary to test the image creation in order to
determine the load of the plant during image creation.
4 Hardware Environment
4.1 Local Backup
You have the option of storing the image of the system partition locally on the
computer. This can be an existing drive, an additionally installed internal data
memory or a data memory connected by USB or eSATA.
WARNING When backing up the system partition there is a great deal of reading and
writing. We recommend using an additional hard disk; an additional
partition is not sufficient.
When using external drives make sure that they are available at the time of
the backup.
Figure 4-1
Backup OS client
system
Siemens AG 2018 All rights reserved
Additional
int. HDD
Terminal bus
OS server (pair)
USB
External USB External
HDD HDD
Plant bus
Advantages
Low loading of the terminal bus
Low additional hardware costs
Disadvantages
System images are not stored centrally
No access to local data media if the hardware fails
External memories must always be available
WARNING If a backup is made on the partition on which the PCS 7 archives are
configured, you must make sure that there is sufficient memory available.
Figure 4-2
Backup OS client
system NAS
Offsite
copy
Additional
int. HDD
Terminal bus
OS server (pair)
USB
External USB External
HDD HDD
Siemens AG 2018 All rights reserved
Plant bus
Note With this sort of system backup there is a temporary high data transfer load on
the terminal bus. If the offsite copy is made, there might be display delays on the
OS client.
Advantages
Local backup takes less time
Central storage of the system images on a network drive or an FTP server
(NAS, for example)
High data security if the PC hardware fails
Disadvantages
High network and computer loading during the offsite copying
Note With this sort of system backup there is a high data transfer load on the terminal
bus. When the system backup is made, there might be display delays on the OS
client.
When using this configuration we recommend operating the terminal bus with a
1-Gbit network.
Figure 4-3
Backup OS client
system NAS
Siemens AG 2018 All rights reserved
Terminal bus
OS server (pair)
Plant bus
Advantages
Central storage of the system images on a computer or NAS
Simple integration of data security through a RAID system
Low additional hardware costs
Disadvantages
High loading of the terminal bus (possibly increased image opening times
during backup).
During restore with the Veritas Restore DVD it must be possible to access the
network. It might be necessary to create an appropriate computer-specific
Restore DVD.
Instructions are available in the Veritas documentation and in section 5.1.
Figure 4-4
Backup OS client
system NAS
Additional Ethernet
Plant bus
Siemens AG 2018 All rights reserved
Advantages
Central storage of the system images on a computer or NAS
Simple integration of data security through a RAID system
No loading of the terminal bus
Disadvantages
More hardware to install (additional network adapters, cables and network
distributors are necessary)
Additional administration required for the network
The order of the network cards is important for operating PCS 7 (see PCS 7
README)
During restore with the Veritas Restore DVD it must be possible to access the
network. It might be necessary to create an appropriate computer-specific
Restore DVD.
Instructions are available in the Veritas documentation and in section 5.1.
Note Please note that the settings of a firewall might hinder installation and connection
via the network. Refer to the description of Veritas to see which ports and
programs have to be configured in the firewall for operating the backup software.
You must restart the system after installing the "Backup and Recovery
Service".
WARNING If the OS server does not have a redundant configuration there might be
gaps in the alarm logging and tag logging.
Siemens AG 2018 All rights reserved
Figure 4-5
Siemens AG 2018 All rights reserved
Note You can make these settings separately for each computer requiring backup.
Note Please note that the settings of a firewall might hinder installation and connection
via the network. Refer to the description of Veritas to see which ports and
programs have to be configured in the firewall for operating the backup software.
Figure 4-6
Siemens AG 2018 All rights reserved
Since only the system partition (C:\) is to be backed up, all the other partitions
should be excluded from the monitoring, otherwise the status of all stations would
always be "At Risk".
Note You can make these settings separately for each computer requiring backup.
In order to ensure secure operation of PCS 7 you should not set the system load
too high through the backup.
Basically the following holds:
Fast backup – high system load
Slow backup – lower system load
The performance setting always reflects the balance between additional load on
the PCS 7 system and the time taken for creating an image. We recommend
setting the speed to not more than 50%.
If you make backups via the terminal bus, you should keep the network load as low
as possible. For this case, Veritas provides a throttling option for the network.
Enable the throttling option and enter the value of 2500 KB/s for maximum network
Siemens AG 2018 All rights reserved
throttling.
Figure 4-7
Figure 5-1
Siemens AG 2018 All rights reserved
5.2 Restore
In order to make a backup of the system image you start the computer using the
recovery CD.
Change the network settings as required and configure the storage path of the
backup file as network drive. Start the backup.
After successful backup of the system you still have to transfer the project data
from the ES to the target system.
Note A backup is made always of the status of the system when the backup is
created. If changes are made after this point in time, by the Windows Update
Service or automatic updating of the anti-virus software, for example, then you
have to run these updates again.
WARNING Microsoft SQL saves management data for SQL servers on the system
partition. If an image is backed up on a PC station, the management data
and any old project data is not consistent. Then you must clear the old
management data using Microsoft SQL Server Management Studio.
Siemens AG 2018 All rights reserved
Note Information about executing SQL statements and SQL scripts is available in the
Help for the Microsoft SQL Server Management Studio and at
http://www.microsoft.com
You must use "DROP" to separate databases that are in the RECOVERY
PENDING state.
You can use "DETACH" to separate all other PCS 7 databases.
Siemens AG 2018 All rights reserved
You can use the query below to determine which databases are in the RECOVERY
PENDING state.
You must separate all the databases that have the following properties.
Begin with "CC” or *ALG*
Include *TLG* in the database name
Attached is a script that separates all the PCS 7 in the MS SQL after restore. You
can execute the script in an SQL window.
OPEN cursorDatabaseRP
OPEN cursorDatabaseCC
OPEN cursorDatabaseALG
OPEN cursorDatabaseTLG
-- Drop all ALG and TLG segments remaining from restore set to
'Recovery_Pending'
FETCH NEXT FROM cursorDatabaseRP INTO @database
WHILE @@FETCH_STATUS = 0
BEGIN
IF @Database <> 'master' AND @Database <> 'model' AND @Database
<> 'msdb' AND @Database <> 'tempdb'
BEGIN
SET @Sql = 'Drop Database [' + @Database + ']'
print @Sql
EXEC sp_executesql @Sql
END
--Drop database @Database
FETCH NEXT FROM cursorDatabaseRP INTO @database
END
-- Detach CC Database
Siemens AG 2018 All rights reserved
WHILE @@FETCH_STATUS = 0
BEGIN
IF @Database <> 'master' AND @Database <> 'model' AND @Database
<> 'msdb' AND @Database <> 'tempdb'
BEGIN
SET @Sql = 'SP_DETACH_DB [' + @Database + ']'
print @Sql
EXEC sp_executesql @Sql
END
--Detach database @Database
FETCH NEXT FROM cursorDatabaseCC INTO @database
END
WHILE @@FETCH_STATUS = 0
BEGIN
IF @Database <> 'master' AND @Database <> 'model' AND @Database
<> 'msdb' AND @Database <> 'tempdb'
BEGIN
SET @Sql = 'SP_DETACH_DB [' + @Database + ']'
print @Sql
EXEC sp_executesql @Sql
END
--Detach database @Database
WHILE @@FETCH_STATUS = 0
BEGIN
IF @Database <> 'master' AND @Database <> 'model' AND @Database
<> 'msdb' AND @Database <> 'tempdb'
BEGIN
SET @Sql = 'SP_DETACH_DB [' + @Database + ']'
print @Sql
EXEC sp_executesql @Sql
END
--Detach database @Database
FETCH NEXT FROM cursorDatabaseTLG INTO @database
END
CLOSE cursorDatabaseRP
Siemens AG 2018 All rights reserved
CLOSE cursorDatabaseCC
CLOSE cursorDatabaseALG
CLOSE cursorDatabaseTLG
DEALLOCATE cursorDatabaseRP
DEALLOCATE cursorDatabaseCC
DEALLOCATE cursorDatabaseALG
DEALLOCATE cursorDatabaseTLG
Note In the case of redundant OS systems we recommend that after restore you
delete the project data on the OS before doing the download.
After Download and Start there is automatic synchronization with the redundancy
partner.
To ensure consistency of the project status, after successful backup of the system
you have to transfer the project data from the ES to the target system (download).
Details are available in the Veritas documentation or in the Veritas White Paper.
Siemens AG 2018 All rights reserved