Home > Articles > Networking > Storage

Like this article? We recommend

SAP R/3 Storage Management

Service-level agreements increasingly have to reflect that, in case of planned downtime such as backup, hardware/software maintenance, and R/3 upgrade, and unplanned downtime such as error analysis and restore, the system has to be available again within minutes. Figure 20 shows a combination of advanced infrastructure solutions developed by SAP's Advanced Technology Group (ATG) in cooperation with their storage partners. In this scenario, the live data is constantly copied and business continuation is allowed during split (and resynchronization) of the mirror5.

Figure 20 Split mirror backup and standby R/3 System.

Once the mirror is split, ATG creates additional copies for backup and a standby SAP R/3 System. This solution minimizes the impact on the live environment and offloads the backup activity from the live database server.

The split mirror solution was successfully implemented for a SAP R/3 database managed by DB2/390 stored on one IBM Enterprise Storage Server (ESS) using ESS's advanced functions—the local FlashCopy and synchronous Peer-to-Peer Remote Copy (PPRC).

Customers who require remote data vaulting or need to scale to a larger database size can simply extend this split mirror solution to an additional ESS. The split mirror solution described in this part of the article is an exact repetition of the solution implemented on IBM's RAMAC Virtual Array (RVA).

In this implementation, only logical volumes that contain DB2 LOGs, Bootstrap Dataset (BSDS), and ICF catalog are constantly mirrored, and all other logical volumes used by the R/3 database are synchronized only for backup and refresh of the standby system. With this setup, user or application logical errors are not copied immediately to the mirror. In case of a disaster, ATG can recover the database to a certain point in time, starting with the last backup and applying the LOGs of the live system. This process (called DB2 conditional restart) may be very time-consuming.

Business continuation in a split mirror implementation (described later) that also supports remote data vaulting (two storage subsystems) will be significantly reduced if the live storage subsystem is completely lost. To avoid having to perform a DB2 conditional restart in this situation, you need to perform constant PPRC of all logical volumes that belong to the R/3 database.

Environment Setup

Because split mirror backup/recovery is a high-availability solution, ATG highly recommends the use of two physically separated database hosts and two ESS storage systems. Each database host manages its own ESS storage system, and the fast resynchronization of the live database with a remote copy is managed by the ESS systems.

In ATG's tests, two LPARs were run in a SYSPLEX environment instead of the two physically separated database hosts. The R/3 live database was stored in one ESS cluster, the mirror, and an additional copy in the other ESS cluster (an overview of the ESS structure is discussed later in the article).

For the fast synchronization of the mirror, ATG used the synchronous Peer-to-Peer Copy (PPRC) function. To adjust these commands for a certain environment, it is necessary to know the parameters used by the PPRC commands and how to value them, as shown in Table 15.

Table 1 PPRC Parameters

Parameter

Description

ser#

A unique serial number given to each ESS at the plant.

ssid

Subsystem ID of a logical subsystem (LSS).

lss ID

Two-digit number of a logical subsystem (LSS)—last 2 digits of SSID.

linkaddr

Physical link to/from the storage system. Format: aaaa bb cc.

aaaa

Primary volume's 3990 Cluster/Interface (System Adapter ID, SAID).

bb

ESCON director "DESTINATION" address. Is 00 if this is a directly attached pair of DASD control units, or with a static ESCON switch.

cc

Reserved address; always 00 for a 3990-06.

ccuu

Address (four digits) of a device (logical volume) inside the ESS.

cca

Channel connection address of a logical volume (last two digits of ccuu).

serial

Name of a logical volume.


The logical volume addresses and names are defined by the customer's storage administrator, who provides those that fit the customer's naming conventions.

ESS Structure and Connections

The ESS is divided into two symmetrically structured units called clusters. Each cluster can take over the workload of the other, if one is unavailable.

Host and PPRC Connections

The ESS is equipped with 16 host adapters (HA) located in 4 HA bays. Each bay contains four Has, and each HA consists of two ports. In ATG's OS/390 test environment, only ESCON connections were used for the host and PPRC connections.

Figure 21 shows the SAIDs of the ESCON ports of ATG's test ESS (from the front)5. The highlighted ports are used for PPRC between the two ESS clusters. The primary logical partition on the host mainframe (LPAR) and ESS cluster 1, and the secondary LPAR and ESS cluster 2 are connected by eight ESCON connections each.

Figure 21 Overview of test ESS.

ATG chose this configuration to treat their test ESS as two separate storage systems. This is, however, not the recommended configuration.

In general, a host is connected to ports located in all four HA bays. This configuration will increase the availability. If one connection, an HA bay, or even a cluster is not available, the Common Parts Interconnect (CPI) bus will give access to the data.

From the host or ESS storage system point of view, data will be transferred on logical paths. The maximum logical paths per ESCON port is 64. To maximize the PPRC I/O throughput, ATG used 4 ESCON connections (corresponding to 256 logical paths) between the 2 ESS clusters.

Volume Layout and Definition Of The Mirror

ATG's live database (consists of DB2 BSDS, LOGs, catalog and directory; all R/3 pagesets (table and index spaces); and ICFCAT and user catalog) is spread across 48 logical volumes (3390-3). This set of volumes was named DBt2, as shown in Figure 225.

Figure 22 Volume layout.

Volume set DBt0 is the mirror of the live database, created by PPRC. Because PPRC copies tracks from one volume to another, the copy will differ from the original only in the device address. During the PPRC process that makes the DBt0 volumes accessible on the secondary side (RECOVER), ATG renames the volumes to their original names. In the end, names and contents of the catalog datasets are unchanged and still reflect the volumes used by DBt2. Volume set DBt1 is a local FlashCopy (on the same cluster or storage system) of the mirror—the secondary runtime instance.

To maximize I/O throughput, it is recommended to spread the volumes evenly across all available logical subsystems (LSSs). In ATG's environment, eight LSSs exist on each cluster (see Figure 21). Every LSS in cluster 1 contains six DBt2 volumes, and every LSS in cluster 2 contains six DBt0 and six DBt1 volumes.

Split Mirror Backup

The live system is in normal read/write operation. Only the LOG-volumes (DB2 LOGs, BSDS, ICFCAT, and user catalog) are in a constant synchronous PPRC connection. After the last resynchronization (BACKUP), all other PPRC volume pairs were suspended, and they are now accessible as usual simplex volumes, as shown in Figure 235.

Figure 23 Split mirror backup solution.

Split Mirror Backup Process

On the primary side, ATG suspends the LOG-volume pairs. This allows them to operate on the primary and secondary sides without any mutual influence. On the secondary side, the LOG-volumes are made simplex and are varied together with all other DBt0 and DBt1 volumes online (step 1).

The next step is to FlashCopy the DBt0 volumes to the DBt1 volumes (step 2). This safety copy will help ATG recover from a disaster that may happen during the resynchronization of the mirror. A user or application logical error during the resynchronization would immediately make the mirror also inconsistent. The safety copy DBt1 will enable recovery of the database with a DB2 conditional restart on the secondary side, while the live system is available for error analysis.

At this point in time, ATG is ready for the resynchronization of the mirror. All PPRC pairs again are established in RESYNC mode, which copies only those tracks updated during the period of suspension (step 3).

As soon as this process is 99% finished, ATG causes DB2 to suspend all writes (step 4) coming from the R/3 application. This DB2 function throttles down application writes, but no R/3 application process will recognize this; a process will slow down only as long as ATG causes DB2 to resume write operations.

Once the remaining 1% of updated tracks is also synchronized, ATG suspends all PPRC pairs (step 5). Immediately after the mirror is split, DB2 resumes all write operations (step 6).

NOTE

Only in the short period between step 4 and step 6 were application writes slowed down.

The Live System Is Now Back to Normal Read/Write Operation

On the secondary side, ATG now makes all DBt0 volumes simplex and varies them together with all other DBt0 and DBt1 volumes online (step 7). Because the DBt0 volumes need to be as fast as possible to establish the PPRC pair between the LOG-volumes, ATG copies with FlashCopy all DBt0 volumes to DBt1 (step 8). As soon as the FlashCopy relationship is established (LOGICAL COMPLETE), FlashCopy allows read/write access although the tracks are not yet physically copied.

NOTE

Before a task can update a track on the source that has not yet been copied, FlashCopy copies the track to the target volume. The following reads to this old track on the target volume will be satisfied from the target volume. After some time, all tracks will have been copied to the target volume, and the FlashCopy relationship will end.

Immediately after the logical complete message, ATG again establishes the PPRC pairs in RESYNC mode (step 9) for the LOG volumes.

The Environment Is Now Back to Normal Processing

In ATG's test scenario, it is assumed that the standby system also has to be available as soon as possible. Therefore, after the first FlashCopy is physically completed, a second FlashCopy is started from DBt1 to DBt1' (step 10). ATG has to wait for the physical completion of the FlashCopy started in step 8 because a source and target volume can be involved in only one FlashCopy relationship at a time.

As soon as this second FlashCopy is logically completed, ATG restarted the standby system; after the copy is physically completed, the contents of the DBt1' volumes are moved to tape (step 11).

Process Automation

The detailed description of the split-mirror backup shows the complexity of this process. Of course, the process can be managed by system administrators, but to avoid additional points of failures, ATG has to concentrate on the automation of this process.

A single PPRC command is actually synchronous, but if a set of commands (for example, RECOVER for all volume pairs that contain the live database) is started under ICKDSF or TSO BATCH (IKJEFT01), ATG is not sure if all commands finished successfully at the point in time that the process gets back control. The same is true for MVS commands, such as VARY, which varies volumes ONLINE or OFFLINE.

ATG solved the latter problem with a WAIT loop that runs a certain amount of time to ensure that the command successfully finished. PPRC offers the QUERY command to get information about the progress of a command. This information is presented formatted or unformatted on an output screen (in the SYSLOG or in a dataset).

From the operations point of view, this is not handy because, for every QUERY call, ATG gets a huge message output in the MVS system log. To find out, for example, whether all paired volumes are synchronized, a program that scans this output is needed.

Suspension of Application Writes

For a recovery, DB2 on OS/390 needs consistency points (checkpoints identified by a highly written RBA) that are established by the commands QUIESCE or ARCHIVE LOG, but these commands wait for COMMIT. With SAP's recommended DB2 parameter settings, the commands will wait 15 seconds less than the resource timeout. This means that if there is continuous activity in the SAP R/3 System, the commands may never finish successfully.

Be aware that the SUSPEND log write command is not a DB2 checkpoint. This means that pages modified in DB2 buffers will not be flushed out to disk. But all log buffers will be written to disk, and, due to the log-write latch, all application writes will be suspended. After the successful execution of this command, all PGLOGRBAs in the table and index spaces are less than or equal the RBA achieved by this command. The latter will enable a normal DB2 restart on the copied DBt1 volume set to get a consistent SAP R/3 database image.

Recovery

The backup process described earlier will provide a physical dump of the live database achieved at the moment of application write suspension. This dump will be on tape and on the DBt1' volumes of the secondary storage system.

The contents of the DBt1 volumes differ from that of the DBt1' volumes in that, after the restart of the standby system, all modifications done by transactions open at the moment of write suspension are rolled back. The LOG volumes of the DBt0 volumes contain the contents of the live system's LOG volumes, and all other DBt0 volumes have the same contents as their corresponding DBt1' volumes. Immediately after application writes are resumed, the contents of all DBt0, DBt1, and DBt1' volumes (with the exception of the DBt0 LOG volumes) will go out-of-date.

The kind of recovery scenario that a customer will apply depends on his service-level agreements. He may decide to offer the users temporarily a read-only system (DBt1), and he might try to find a reverse-engineering process that will recover a consistent live system.

If the error analysis or the reverse-engineering process takes too long, the customer may decide to go back to the last backup. In this case, the DBt1' image will be copied back to DBt2, and DB2 will be restarted. In the latter scenario, the customer may lose too much work; therefore, he may decide to recover to a point in time closer to the disaster. In this case, the DBt0 image will be copied back to DBt2, and the DB2 LOGs will be applied. This DB2 conditional restart process can be very time-consuming.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020