Transcript
Page 1: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Softek AdvancedCopy Manager Operator's Guide

10.2

for HP-UX

Page 2: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Preface

++ Purpose

This manual describes the operations on Softek AdvancedCopy Manager.

++ Intended Readers

This manual is intended for a system administrator who performs storage management using Softek AdvancedCopy Manager.

++ Organization

This manual has the following chapters:

+ Chapter 1 Overview of Softek AdvancedCopy Manager

This chapter describes the overview of Softek AdvancedCopy Manager.

+ Chapter 2 Starting and Stopping a Daemons

This section describes starting and stopping a daemons provided by Softek AdvancedCopy Manager.

+ Chapter 3 Security Operation Using Authentication Feature

This chapter describes the security operation on Softek AdvancedCopy Manager.

+ Chapter 4 Backup Operation

This chapter describes the backup operation.

+ Chapter 5 Backup Operation in the SP Series

This chapter describes the backup operation in the SP series.

+ Chapter 6 Replication Operation

This chapter describes the replication operation.

+ Chapter 7 Operation Maintenance

This chapter describes maintaining a database, performing troubleshooting, and other maintenance methods in the operation.

+ Chapter 8 Commands

This chapter describes commands.

+ Chapter 9 Notes on Operations

This chapter describes notes on the operations.

+ Appendix A Preprocessing and Postprocessing of Backup and Restoration

This appendix describes shell scripts used for preprocessing and postprocessing for backup and restoration.

+ Appendix B Replication Scripts

This appendix describes replication scripts used by Softek AdvancedCopy Manager.

Related Manuals

The following shows the manual system of Softek AdvancedCopy Manager. · Softek AdvancedCopy Manager Installation Guide

Describes installing Softek AdvancedCopy Manager. · Softek AdvancedCopy Manager Operator's Guide (This Manual)

Describes operating Softek AdvancedCopy Manager. · Softek AdvancedCopy Manager User's Guide

Describes operating the Web-GUI on Softek AdvancedCopy Manager. · Softek AdvancedCopy Manager Messages

Describes messages output by Softek AdvancedCopy Manager and action required for them. · Softek AdvancedCopy Manager Operator's Guide for cluster environment

This manual explains the installation, customization, and operation of Softek AdvancedCopy Manager when it is used in a cluster system.

You are recommended to read this manual first to have overall understanding before reading other manuals.

++ Conventions

i

Page 3: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

ii

· Microsoft(R) Windows NT(R) Server network operating system Version 4.0 and Microsoft(R) Windows NT(R) Workstation operating system Version 4.0 are abbreviated as WindowsNT.

· Microsoft(R) Windows(R) 95 operating system is abbreviated as Windows95. · Microsoft(R) Windows(R) 98 operating system is abbreviated as Windows98. · Microsoft(R) Windows(R) 2000 Professional, Microsoft(R) Windows(R) 2000 Server, and Microsoft(R)

Windows(R) 2000 Advanced Server are abbreviated as Windows2000. · Microsoft(R) Windows(R) Millennium Edition is abbreviated as Windows Me. · Microsoft(R) Windows(R) XP Professional and Microsoft(R) Windows(R) XP Home Edition are abbreviated as

Windows XP. · Solaris (TM) Operating Environment is referred to as Solaris OE. · Manager of Softek AdvancedCopy Manager is abbreviated as Manager of AdvancedCopy Manager. · Agent of Softek AdvancedCopy Manager is abbreviated as Agent of AdvancedCopy Manager. ++ Trademarks

Windows, WindowsNT, SQL Server, and Internet Explorer are registered trademarks of Microsoft Corporation in the United States and other countries.

The Netscape logo and the Netscape product and service names are trademarks or registered trademarks of Netscape Communications Corporation in the United States and other countries.

Sun, Sun Microsystems, the Sun Logo, Solaris and all Solaris based marks and logos are trademarks of Sun Microsystems, Inc. in the U.S.A and other countries, and are used under license.

UNIX is a registered trademark exclusively licensed by X/Open Company Limited in the United States and other countries.

ORACLE is a registered trademark of Oracle Corporation.

HP-UX is a registered trademark of Hewlett-Packard Company.

Linux is a trademark or registered trademark of Mr. Linus Torvalds in the United States and other countries.

Page 4: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Chapter 1 Overview of Softek AdvancedCopy Manager

This chapter describes the overview of Softek AdvancedCopy Manager.

1.1 What is Softek AdvancedCopy Manager?

Softek AdvancedCopy Manager is a product that realizes storage management in an open system and provides the following solutions.

1.1.1 High-speed backup (24-hour basis)

A hardware function [Advanced Copy Function (OPC,EC)] of Fujitsu's disk array units (ETERNUS/GR Series) is used to back up data fast. The advanced copy function, being a fast data copy function independent of a data size, can always maintain fixed backup time even if the data to be backed up increases. Thus, the backup time does not increase even if the data amount increases.

This function can drastically reduce the time in which work must be stopped to perform backup.

Thereby, the time that work is interrupted for backup is still significantly reduced.

In addition, operations management can be used as a remote copy function for remote sites to create remote copies between Fujitsu disk array units on a SAN-WAN-SAN connection. Remote copying can also provide a disaster recovery solution because disk arrays containing backup data can be stored in an earthquake-resistant location.

1.1.2 High-speed replication

The hardware function (advanced copy function [OPC/EC]) of the Fujitsu disk array unit (ETERNUS/GR Series) enables data to be used for purposes other than the original purpose and replicated data (copy) to be collected as a protection against data corruption.

If recovery from a disaster is necessary, replication (copying) can be performed for disk array units located at a remote site that has an SAN environment.

1.2 Product Configuration of Softek AdvancedCopy Manager

1.2.1 Function system

HP-UX version Softek AdvancedCopy Manager consists of the following functions:

[Table 1.1 Functions]

Function name Description

HP-UX version Agent of Softek AdvancedCopy Manager

Operates on the Storage management server, and two or more Storage servers are managed. Backup management and replication management are performed.

This product is used combining the manager of Softek AdvancedCopy Manager of the Solaris OE version, the Windows version, or the Linux version.

· This product, which is included as a component of the SP5000 Basic Package, enables integrated backup in

the SP series. For more information on the SP series, see the Storage Management Processor Operator's Manual.

The Softek AdvancedCopy Manager server type depends on the operating environment. · Storage server

The Storage server is a server which executes the backup business and the replication business that AdvancedCopy Manager offers. The Agent of softek AdvancedCopy Manager is introduced into the Storage server. However, only when the Storage server is one, the Manager of Softek AdvancedCopy Manager is introduced on the system.

1

Page 5: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

· Storage management server The Storage management server manages the Storage servers and only one Storage management server can be set in the system. The Manager of softek AdvancedCopy Manager is introduced into the Storage management server.

Three operating environment forms shown below can be built with the number of the Storage servers which can be used by operating of Softek AdvancedCopy Manager. · When only one Storage server is set

In this operating environment, only Manager of AdvancedCopy Manager needs to be installed (Manager of AdvancedCopy Manager includes the Agent functions of AdvancedCopy Manager).

[Figure 1.1 When only one Storage server is set]

· When two or more Storage servers are set

When two or more AdvancedCopy Manager servers are available, set only one of them up as the Storage management server or set up a new server with no disk drive connected as the Storage management server. Each operation environment is explained below.

a. When the Storage server is operated as a Storage management server One of the servers functions as a Storage management server. The Storage management server has a repository where the information on operating and management of all Storage servers is stored. When many Storage servers exist, all of them compete for accesses to the repository. This will affect other applications running on to the same server. Therefore, the Storage management server should be considered as a dedicated server. When a special Storage management server cannot be prepared with the system configuration, becomes an operation form shown in Figure 1.2. ( One Storage management server and others become a Storage server.)

[Figure 1.2 When the Storage server is operated as a Storage management server ]

2

Page 6: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

a. Setting up the special Storage management server This setup composes of two or more Storage servers with a dedicated Storage management server.

[Figure 1.3 When a special Storage server is a Storage management server ]

1.2.2 System configuration

The system configuration of Softek AdvancedCopy Manager is shown below.

3

Page 7: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

[Figure 1.4 System configuration used when the storage management server runs on WindowsNT/2000]

4

Page 8: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

[Figure 1.5 System configuration used when the storage management server runs on Solaris OE / Linux]

1.3 Function Overview of Softek AdvancedCopy Manager

1.3.1 What is the backup function

The backup function of Softek AdvancedCopy Manager provides operation management for high-speed backup by using the OPC (One Point Copy) function of a Fujitsu disk array unit (ETERNUS3000, GR720, GR730, GR740) and the ROPC (Remote One Point Copy), EC (Equivalent Copy), and REC (Remote Equivalent) functions of a GR740, GR820 and GR840.

This function realizes the following backup operation:

+High-speed backup operation

The advanced copy function (OPC/EC function) of the disk array unit is used to perform high-speed backup between volumes regardless of volume capacities. This function drastically reduces the length of time that work is inevitably interrupted during backup.

+Backup operation in the SP series

SP series products work closely with GR series disk array units in the management and operation of storage that is independent of the server.

With Softek AdvancedCopy Manager, a backup/restore function linked to the backup function of the SP series is provided so that SP series disks can be integrated in the same way that volumes of other GR series disk array. This function is in addition to the management of SP series disks already available in the SP series.

+Policy management function

The policy management function manages the number of preservation generations of backup and the number of

5

Page 9: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

interval days in which backup should be performed (displays the delay when displaying information) for a volume to be backed up.

+Storage configuration management function

The storage configuration management function manages the configurations of volumes to be backed up and volumes to which a backup should be saved.

On Softek AdvancedCopy Manager, a volume to be backed up is called a transaction volume; a volume to which a backup should be saved is called a backup volume.

+Backup and restore functions

The backup and restore functions back up and restore a specified volume.

· The backup function with ROPC/REC is available only for backup disk array units on the same storage server.

+History information management function

The history information management function manages, out of the information that has been backed up in the past, the information in preservation generations as history.

+Consistency recovery function

The consistency recovery function resolves inconsistencies in the Softek AdvancedCopy Manager backup management information caused by a system or other type of failure.

1.3.2 What is the replication function

The replication function of Softek AdvancedCopy Manager provides operation management of replications by using the OPC (One Point Copy) function of a Fujitsu disk array unit (ETERNUS3000, GR720, GR730, GR740) and the ROPC (Remote One Point Copy), EC (Equivalent Copy), and REC (Remote Equivalent) functions of the GR740, GR820 and GR840.

As a result, the following replication operations become possible.

+High-speed replication operation

The advanced copy function (OPC/EC function) of the disk array unit is used to perform high-speed replication between volumes regardless of volume capacities. This function drastically reduces the length of time that work is inevitably interrupted during replication.

Since this function, unlike the backup function, does not manage histories, it is suitable for temporary backup. In addition, when the replication function is used with EC, this kind of replication can also be used as an update (incremental) backup operation.

+Consistency recovery function

The consistency recovery function resolves inconsistencies in the Softek AdvancedCopy Manager replication management information caused by a system or other type of failure.

1.3.3 Authentication feature function

In relation to the backup function and provided by Softek AdvancedCopy Manager, this function manages users who have acquired access rights, providing security controls in the identification of function users. For more information, see Chapter 3, "Security Operation Using Authentication Feature" in "Windows, Solaris OE or Linux Softek AdvancedCopy Manager Operator's Guide". Note also that the replication function is not a target of the authentication feature.

1.3.4 Web client screen

At Softek AdvancedCopy Manager, they are an environmental setup and employment. It is possible to carry out on a Web client screen. The main functions are as follows. · Security management

Operation restrictions of the user of Softek AdvancedCopy Manager can carry out by GUI operation. · Backup management

6

Page 10: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Employment (a definition of a server or a device, backup, restoration, etc. to employ) of backup management of Softek AdvancedCopy Manager can carry out by GUI operation.

By the web browser, a Web client screen can be used by accessing a management server. (It can be operated from the terminal with which AdvancedCopy Manager is not installed)

Not only a Web client screen but the operation by the command is possible for employment of backup management.

For more information, see " Chapter 1 Softek AdvancedCopy Manager Web Client" in "Solaris OE, Windows or Linux version Softek AdvancedCopy Manager User's Guide".

1.4 Operating Environment of Softek AdvancedCopy Manager

1.4.1 Hardware requirements

One of the following hardware devices is required to perform backup management or replication management. In addition, an advanced copy license and copy table size need to be set up. · ETERNUS3000 disk array unit · GR720 disk array unit · GR730 disk array unit · GR740 disk array unit · GR820 disk array unit · GR840 disk array unit

1.4.2 Software requirements

1.4.2.1 Agent of Softek AdvancedCopy Manager

[Table 1.2 Software requirements for Agent of Softek AdvancedCopy Manager]

Product name Requirement Remarks

HP-UX 11.00, 11i Required Support OS

Solaris OE version Manager of Softek AdvancedCopy Manager 10.2 or

Windows version Manager of Softek AdvancedCopy Manager V10.0L30 or

Linux version Manager of Softek AdvancedCopy Manager V10.0L30

Required The manager product of Softek AdvancedCopy Manager

MC/Service Guard 11.13 Conditionally required

For cluster operation with Agent of Softek AdvancedCopy Manager

1.5 Prerequisites for Backup/Replication Operation

HP-UX can use Logical Volume Manager (LVM) to control the disk storage space.

The use of LVM requires the following conditions. If LVM is not used, no special conditions are required.

In LVM, more than one logical volume can be defined for a physical disk (LU: Logical Unit). The boundaries of the logical volumes can be defined independently of the boundaries of the physical disks.

However, Softek AdvancedCopy Manager performs backup/replication in units of physical disks. Therefore, the following condition must be met to perform backup/replication under HP-UX: · As shown in Figure 1.6, there is 1 physics disk in a volume group, and create logical volumes in such a

manner that a physical disk equals n logical volumes. If this condition is not satisfied, the configuration of the logical volume must be modified to meet the above condition.

7

Page 11: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

[Figure 1.6 Example of creating a Volume Group]

8

Page 12: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Chapter 2 Starting and Stopping Daemons

This chapter explains how to activate and stop different daemons provided by Softek AdvancedCopy Manager.

For more information on how to activate and stop the daemons described in this chapter, see chapter 8.4.2, "Starting and stopping AdvancedCopy Manager daemons."

2.1 Daemons that Configure Softek AdvancedCopy Manager

Agent of Softek AdvancedCopy Manager is configured with the following daemons:

[Table 2.1 Types of daemons that configure Agent of Softek AdvancedCopy Manager]

Daemon type Description

The communication daemon Communicates with the Storage management server

2.2 Starting a Daemons

Normally, the Softek AdvancedCopy Manager daemons are automatically activated. However, if activation fails or the daemon is stopped, activate the daemon on each server by executing the following command:

# /opt/swstorage/bin/startacm

About starting the daemon on the cluster operation, see Chapter 4, "Starting and Stopping a Daemon," in the Softek AdvancedCopy Manager Operator's Guide for cluster environment.

2.3 Stopping a Daemons

Stop daemons from the Storage management server and the Storage server. Normally, they are automatically stopped when the system stops.

To stop a daemon on a server, execute the following command on the server:

# /opt/swstorage/bin/stopacm

About stopping the daemon on the cluster operation, see Chapter 4, "Starting and Stopping a Daemon," in the Softek AdvancedCopy Manager Operator's Guide for cluster environment.

9

Page 13: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

10

Page 14: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Chapter 3 Security Operation Using Authentication Feature

Softek AdvancedCopy Manager controls who can access the backup management. Thereby, the security operation which specifies the person using the function is enabled. For details, see Chapter 3,"Security Operation Using Authentication Feature" in "Windows, Solaris OE or Linux Softek AdvancedCopy Manager Operator's Guide". In addition, the replication management is outside the object of an authentication feature.

11

Page 15: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

12

Page 16: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Chapter 4 Backup Operations

This chapter explains backup operations of Softek AdvancedCopy Manager.

HP-UX version Softek AdvancedCopy Manager's Agent enables the backup operation described in this chapter by linking with Softek AdvancedCopy Manager's Manager running under Windows, Solaris OE or Linux. In addition, the backup/restore unit in the HP-UX system is a physical disk (LU: Logical Unit). But in the case of the physical disk which constitutes LVM(Logical Volume Manager), it is managed/operated per volume group.

4.1 Overview

This chapter describes the backup and restore functions of Softek AdvancedCopy Manager.

Softek AdvancedCopy Manager performs high-speed backup between volumes, regardless of the volume capacities, using the advanced copy function (OPC or EC function) of a disk array unit.

Backup that uses the One Point Copy (OPC) or Remote One Point Copy (ROPC) function of a GR series disk array unit is called snapshot fast backup. Backup that uses the Equivalent Copy (EC) or Remote Equivalent Copy (REC) function is called synchronized high-speed backup.

Automatic snap shot backup can be scheduled without first estimating the time required because it does not require backup synchronous processing. Note, however, that when the save number is 1, a state in which there is no backup data may occur, because a snap shot backup deletes the history prior to copy processing.

Because synchronized high-speed backup deletes the history after the completion of backup processing, there is no status in which backup data does not exist even though the generation number is 1. However, synchronized high-speed backup requires one more backup volume than snapshot fast backup. Synchronized high-speed backup also requires synchronized backup processing before the backup execution command is entered. Therefore, execution of automatic synchronized high-speed backup must be scheduled so that the time required for synchronized processing is estimated in advance. Synchronized backup processing is then started based on the estimated time, and the backup execution command is entered after equivalency maintain status has been achieved.

Softek AdvancedCopy Manager automatically manages and selects a medium to be used for backup (a backup volume).

Softek AdvancedCopy Manager also manages the backup carriers and generations and allows you to restore data from the latest or other past generations.

[Figure 4.1 Managing a backup volume]

The One Point Copy (OPC) function can be used for the Fujitsu GR720, GR730, and GR740 disk array units. The Remote One Point Copy (ROPC), Equivalent Copy (EC), and Remote Equivalent Copy (REC) function can be used only for the GR740.

13

Page 17: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

4.1.1 Snapshot backup processing

The OPC (One Point Copy) /ROPC (Remote One Point Copy) function of the disk array unit GR series is used to copy data from a transaction volume to an unused backup volume.

The snapshot fast backup performs processing as follows: 1. Execute the backup execution command ((1) in Figure 4.2). The following processing will be performed: - If backup volumes under generation management exist for all the generations, the oldest backup

volume will be assumed as an unused backup volume. - An unused backup volume will be acquired from the unused backup volume management area. 2. Data on the transaction volume will be copied to the acquired unused backup volume ((2) to (4) in Figure 4.2). 3. Backup carrier information will be set.

[Figure 4.2 Snapshot fast backup processing]

The snapshot fast backup is completed as soon as you specify to execute backup. The actual data copying will be internally performed by the OPC function of the disk array unit GR series.

· If all generations of backup volumes are managed, and if no backup volume can be obtained from the unused

region in the backup volume management area, backup copies cannot be created. · The backup function which used ROPC is restricted to the disk array equipment in the same Storage server.

4.1.1.1 Snapshot backup processing of Volume Group

When the transaction volume is a volume group, copy processing by OPC/ROPC function of disk array equipment GR series is performed to the physical whole disk corresponding to the volume group. Therefore, when two or more logical volumes exist in a volume group, the data of all logical volumes is backed up (Figure 4.3).

14

Page 18: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

If using a volume group for backup operation, it needs to be cautious of the following points. · When the transaction volume is a volume group, construct the logical disk which equals the transaction

volume, in a volume group different from the transaction group, and register into backup volume the volume group whose physical disk is the same size (Figure 4.3).

· When matching and operating transaction volume and backup volume, the correspondence file of transaction volume and backup volume a "device map file" is created. "Device map" required especially if backing up in a volume group unit.

· In backup processing, since the LVM composition information on backup volume will be rewritten for the LVM information on transaction volume, LVM composition information is restored in the processing after backup. For more information, see Appendix A, "Preprocessing and Postprocessing of Backup and Restoration".

· When backing up a volume group, on the administrator responsibility for backup, correct the script used for preprocessing and postprocessing of backup to unmount / mount all logic volumes. For more information, see Appendix A, "Preprocessing and Postprocessing of Backup and Restoration".

· When two or more physical disks exist in the volume group which registered with transaction volume, backup serves as an error.

[Figure 4.3 Transaction volume and backup volume for two or more logical disks]

4.1.2 Synchronized high-speed backup processing

The Equivalent Copy (EC) or Remote Equivalent Copy (REC) function of the GR series of disk array units is used to copy data from a transaction volume to an unused backup volume.

Synchronized high-speed backup performs processing as follows: 1. Execute the synchronized backup processing start command ((1) in Figure 4.4). An unused backup volume

having the same capacity as the transaction volume is selected from the unused backup management area, and the synchronized backup processing starts.

2. The transaction and backup volumes are both placed in equivalence status. From this point on, equivalence between the transaction volume and backup volume is maintained. This status is referred to as equivalency maintain status ((3) in Figure 4.3).

3. Execute the backup execution command ((4) in Figure 4.4). The backup synchronization processing stops and the backup history information is set.

4. If the backup data exceeds the number of generations when backup has been completed, the oldest backup volume is treated as an unused backup volume.

The backup execution command cannot be executed before the transaction and backup volumes have become equivalent.

15

Page 19: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

[Figure 4.4 Backup using the synchronized high-speed backup function]

· If all generations of backup volumes are managed, and if no backup volume can be obtained from the unused

region in the backup volume management area, backup copies cannot be created. · The backup function which used ROPC is restricted to the disk array equipment in the same Storage server.

4.1.2.1 Synchronized high-speed backup processing of Volume Group

When the transaction volume is a volume group, copy processing by EC/REC function of disk array equipment GR series is performed to the physical whole disk corresponding to the volume group. Therefore, when two or more logical volumes exist in a volume group, the data of all logical volumes is backed up (Figure 4.3).

If using a volume group for backup operation, it needs to be cautious of the following points. · When the transaction volume is a volume group, construct the logical disk which equals the transaction

volume, in a volume group different from the transaction group, and register into backup volume the volume group whose physical disk is the same size (Figure 4.3).

· When matching and operating transaction volume and backup volume, the correspondence file of transaction volume and backup volume a "device map file" is created. "Device map" required especially if backing up in a volume group unit.

· In backup processing, since the LVM composition information on backup volume will be rewritten for the LVM information on transaction volume, LVM composition information is restored in the processing after backup. For more information, see Appendix A, "Preprocessing and Postprocessing of Backup and Restoration".

· When backing up a volume group, on the administrator responsibility for backup, correct the script used for

16

Page 20: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

preprocessing and postprocessing of backup to unmount / mount all logic volumes. For more information, see Appendix A, "Preprocessing and Postprocessing of Backup and Restoration".

· When two or more physical disks exist in the volume group which registered with transaction volume, backup serves as an error.

· In the case where backup volume is a volume group, do not execute the vgchange (1M) command under synchronous processing (EC/REC) execution. If backup volume being deactive under synchronous processing execution, it not only becoming impossible to make it active again but it will be in the state where operation of a stop of synchronous processing, backup execution command, backup synchronous processing cancel command, etc. cannot be performed.

4.1.3 Restoration processing

This chapter describes restoring data on Softek AdvancedCopy Manager.

The restoration operation refers to restoring data from a backup volume managed by the backup carrier information to a transaction volume.

The restoration operation from a backup volume refers to using the OPC function provided by the disk array unit to restore data from a backup volume to a transaction volume.

If the data on a backup volume under carrier management is restored to a transaction volume, the carrier management information will not change.

In addition, although restoration processing is performed to the operating volume which becomes a backing up agency, it is also possible to change a restoration place.

If transaction volume contents are rewritten in the period between collection of the latest backup volume and a subsequent restore operation, rewritten data is not assured.

[Figure 4.5 Notes on restore operations in Softek AdvancedCopy Manager]

4.1.3.1 Restoration processing of Volume Group

When the transaction volume is a volume group, copy processing by OPC/ROPC function of disk array equipment GR series is performed to the physical whole disk corresponding to the volume group. Therefore, when two or more logical volumes exist in a volume group, the data of all logical volumes is backed up (Figure 4.6).

17

Page 21: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

If using a volume group for backup operation, it needs to be cautious of the following points. · When restoring a volume group, on the administrator responsibility for backup, correct the script used for

preprocessing and postprocessing of backup to unmount / mount all logic volumes. For more information, see Appendix A, "Preprocessing and Postprocessing of Backup and Restoration".

[Figure 4.6 Restoration for two or more logical disks]

4.2 Operation Design

This chapter describes the backup operation on Softek AdvancedCopy Manager.

Design a backup operation as follows: · Deciding a server on which the backup operation should be performed · Deciding a backup target · Deciding a backup policy · Preparing a backup volume · Preparing the automatic backup operation

4.2.1 Deciding a server on which the backup operation should be performed

The backup operation can be performed on one of the following servers. · Storage management server

Multiple storage servers are managed and operated on a unified and centralized basis. A storage management server can also serve as a storage server. However, a Storage management server is of the Windows, Solaris OE or Linux Softek AdvancedCopy Manager.

· Storage server Softek AdvancedCopy Manager can be operated. The HP-UX Softek AdvancedCopy Manager corresponds to this employment form.

The locale of the internal code system (code system specified when installing Softek AdvancedCopy Manager on the Storage management server) used by Softek AdvancedCopy Manager must be installed on all Storage servers.

18

Page 22: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

[Figure 4.7 Configuration of servers on which the backup operation should be performed]

4.2.2 Deciding a backup target

The backup/restoration unit of the HP-UX Softek AdvancedCopy Manager is a physical disk (LU: Logical Unit). But in the case of the physical disk which constitutes LVM (Logical Volume Manager), it is managed / operated per volume group. The disk which is managed / operated is called a transaction volume. A transaction volume to be backed up must be placed on the disk array unit GR series.

For information on setting up a transaction volume, see Chapter 4.4.8, "Setting the operation type for a device".

The following is note for using a volume group as operating volume:

· Do not register two or more physical disks into one volume group.

For backup targets, do not select disks in which a system is stored or Softek AdvancedCopy Manager is installed.

4.2.3 Deciding a backup policy

To setup a backup policy on a transaction volume, set the following items:

+Number of preservation generations

The number of preservation generations refers to how many generations of backup data should be kept.

The snapshot fast backup first releases the oldest generation from the generation management. If a system failure or any other failure occurs while the backup is running, there may not be as many generations of backup data as required. In such a case, you are recommended to perform backup immediately again.

By snapshot type high-speed backup, when employing the number of preservation generations as 1, we recommend you to use together the employment which evacuates backup data to a tape etc.

A synchronous high-speed backup operation releases the oldest generation from generation management after backup of the latest generation is completed. Thus, backup volumes for (number of backup generations + 1) are necessary.

+Interval days

The interval days refers to an interval at which backup should be performed.

The delay of backup is displayed if more days than the specified number of interval days have passed

19

Page 23: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

after the last backup date.

Note that backup is not performed periodically even if you have specified the interval days.

For information on setting a backup policy, see chapter 4.4.10,"Setting backup policies".

4.2.4 Preparing a backup volume

Prepare the backup volume.

In Softek AdvancedCopy Manager, the disk in which the transaction data used as the candidate for backup is stored is called transaction volume. A backup volume must be placed on the disk array unit GR series.

The backup volume size must equal the transaction volume size. The number of backup volumes used for snapshot-type high-speed buffer operations and that for synchronous high-speed buffer operations are listed below:

Backup Number of required backup volumes

For snapshot fast backup Number of backup generations

For synchronized high-speed backup Number of backup generations + 1

When backup policies have already been set for multiple transaction volumes, the registration of a backup policy for a newly registered transaction volume requires that the following number of backup volumes be registered beforehand:

Backup Number of required backup volumes

For snapshot fast backup

Total number of backup generations in the registered backup policies + number of generations in the new backup policy being set

For synchronized high-speed backup

Total number of backup generations in the registered backup policies + number of registered transaction volumes + number of generations in the new backup policy being set + 1

The following is note for using a volume group as operating volume:

· Do not register two or more physical disks into one volume group. · Create a logical disk so that it does not consist of two or more physical disks. · It is necessary to be the same physical size as transaction volume. In addition, if in the case of

a volume group, it is necessary to also make it into the logical disk whose volume group is different from the transaction volume and is of the same composition as the transaction volume.

For backup volumes, do not select disks in which a system is stored or Softek AdvancedCopy Manager is installed.

For information on setting a backup volume, see Chapter 4.4.8, "Setting the operation type for a device".

4.2.5 Preparing the automatic backup operation

The backup operation of Softek AdvancedCopy Manager can be automated using SystemWalker/OperationMGR, etc.

+Automatic snapshot fast backup

Automatic snapshot fast backup can be executed in one of the following two ways. · Start the backup command in a job net of a batch job every time when a backup should be collected.

20

Page 24: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

· Start the backup command at the specified time.

+Automatic synchronized high-speed backup

For synchronized high-speed backup, the transaction and backup volumes must be in equivalency maintain status at the scheduled time for backup.

For this reason, if synchronized high-speed backup is automated, the synchronized backup processing start command and the backup execution command must be started separately, as described below.

+Starting the synchronized backup processing start command

At first, theoretically calculate the time required for the synchronized backup processing. Execute the synchronized backup processing start command by specifying the time obtained by subtracting that theoretical time or more from the time that the backup execution command is to start. The transaction and backup volumes will then be in equivalency maintain status when backup is executed.

The time between the start of synchronized backup processing and the transition to equivalency maintain status depends on the capacity of the volume to be copied.

+Starting the backup execution command

Use either of the following methods to automatically execute the backup execution command: · Start the backup execution command in a job net of a batch job at the same time at which the backup data is

to be collected.

21

Page 25: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

If there are other jobs (jobs A and B in the figure) to be executed before the backup execution command in the job net, the start time of the backup execution command cannot be determined. Assume that the start time of the backup execution command is the time obtained by adding the shortest time required for jobs A and B to the job net start time. Determine the start time of the synchronized backup processing start command by subtracting the estimated time from the start time of the backup execution command.

· Start the backup execution command with the time specified.

4.3 Flow of Operation

The following shows the flow of backup operation on a regular transaction volume.

22

Page 26: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

4.4 Preparations

The following preparations are required before the backup operation is started.

23

Page 27: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

4.4.1 Activating daemons

Before starting a backup operation, daemons on the Storage management server and Storage servers must be activated. Normally, they are automatically activated when the system starts.

When starting goes wrong for a certain reason, and when a demon is stopped at once, it is necessary to start a demon by each server. Please Refer to Chapter 2 "Starting and Stopping Daemons" of this Manual of Service about Starting of Demon.

4.4.2 Setting an access permission

When performing backup employment from a backup management screen, an access permission of each operation of a backup management screen is set up. For details of the Setting Method, see Chapter 3, "Security Operation Using Authentication Feature" in "Windows, Solaris OE or Linux Softek AdvancedCopy Manager Operator's Guide".

When only a command performs backup employment, a setup of an access permission is not required.

4.4.3 Starting the initial window

Specify the following URL to start the initial window of Softek AdvancedCopy Manager.

http://storage-management-server-address(:port-number)/swstorage/index.html

The following GUI (server list view) will be started.

When applying only by the command, without using GUI, it is not necessary to perform this operation.

All GUI operations of Softek AdvancedCopy Manager are available on a Storage management server. For more about GUI operation, see "Windows, Solaris OE or Linux Softek AdvancedCopy Manager User's Guide".

4.4.4 Registering a storage server

The Storage management server registers the Storage server to be managed. When the Storage server is operated as a Storage management server does not need to add a server.

Select the [Operation] menu, select [Addition of Server]. The following window will be displayed.

24

Page 28: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

For storage server to be added, specify a server name, IP address, and port number required for communications.

In cluster operation, specify the logical IP address of the Storage server as IP address. And specify the port number registered at the time of the cluster setup of Storage server transaction.

The port number is specified as the "communications service port number", when Softek AdvancedCopy Manager's Agent was installed.

The [O.K.] button is pushed after inputting the above item, and additional processing of a Storage server is carried out.

In addition, this processing can be carried out also by the server information addition command (stgxfwcmaddsrv). Please refer to the employment guide to OS of a Storage management server.

4.4.5 Fetching device information on a storage server

Before the backup management can be performed, device information on a storage server must be temporarily stored to the repository. To acquire information on a device on the storage manager server, select [Acquisition and reflection of Information of all devices]. The following window will be displayed.

Check the server from which device information should be acquired and then press the [OK] button.

After device information is acquired from each server, the following dialog will be displayed.

25

Page 29: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

The new devices detected will be displayed in the uppermost list box. Move a device to be managed to the list box on the left. The second list box displays devices currently under management but not detected. Move a device that you no longer want to manage to the list box on the right. The lowermost list box displays devices whose device information has been updated (e.g., the mount point name has been changed).

The [OK] button is pushed after carrying out the above operation, and acquisition processing of device information is carried out.

In addition, this processing can be carried out also by the device information collection/reflection command (stgxfwcmsetdev). Please refer to the employment guide to OS of a Storage management server.

· The time required for this operation is proportional to the total number of devices defined on the Storage server.

If the number of devices is large, perform this operation while the CPU load and I/O load are low. As a guideline for reference, each operation takes about 0.5 s per device (partition) in a state without load.

· About a device of LVM, only a volume group and a logical device are fetched, but the physical device which constitutes a logical device is not.

4.4.6 Displaying the backup management window

On the server list view, select the [File] menu and then [Backup Management]. The server list view for the backup management will be displayed.

26

Page 30: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

All GUI operations of Softek AdvancedCopy Manager are available on a Storage management server. For more about GUI operation, see "Windows, Solaris OE or Linux Softek AdvancedCopy Manager User's Guide".

4.4.7 Setting the environment for a backup operation server

Set the environment for each storage server. From the Backup Management window, select backup management in the tree displayed on the left side. Then, select the storage server in a list panel displayed on the right side of the window. Finally, select [Set Storage Server Configuration Information] from the [Operations] menu. The following setup window will be displayed.

If the target Storage server is Solaris OE and the SymfoWARE database exists in the Storage server, a recovery control file output place directory and a work directory are inputted. When a SymfoWARE database does not exist in a Storage server, or when a Storage server is WindowsNT/2000, HP-UX or Linux, this input item cannot serve as a half-tone display, and cannot be inputted.

After completing the input of necessary items, click the [OK] button.

You need to make this environment setting also on the storage management server if it serves also as a storage server. This step is not required if the environment setting has already been made on the storage servers.

You can also make this environment setting also using the storage server configuration information setting command.

27

Page 31: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

All GUI operations of Softek AdvancedCopy Manager are available on a Storage management server. For more about GUI operation, see "Windows, Solaris OE or Linux Softek AdvancedCopy Manager User's Guide".

4.4.8 Setting the operation type for a device

Set up the following device operation type, before backing up in a storage server. The operation type is as follows: · Define the volume to be backed up as a transaction volume. · Prepare backup volumes. Prepare as many volumes, each of which has the same size as the transaction

volume, as the number required for the backup type, and define them as the backup volumes: Backup Number of required backup volumes

Snapshot fast backup Number of backup generations

Synchronized high-speed backup Number of backup generations + 1

Set an operation type on the server list view. On the server list view, select a storage server and select the [Operation] menu and then [Set Device Information]. The following setup window will be displayed.

A volume displayed in "Other Volume" field has no specified device operation type. Set a device operation type as follows: · Setting as a "Transaction Volume"

After selecting a target volume, click the [<] button on the "Transaction volume" side. The target volume will be moved to the "Transaction volume" field.

· Setting as a "Backup Volume" After selecting a target volume, click the [<] button on the "Backup volume" side. The target volume will be moved to the "Backup volume" field.

After making settings for all the volumes, click the [OK] button.

You can make this setting also using the device information setting command (swstdevinfoset).

A logical volume of LVM cannot be registered as transaction volume or backup volume. Register per

28

Page 32: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

volume group.

The size of backup volume must be equal to that of transaction volume. In addition, if in the case of a volume group, it is necessary to also make it into the logical disk whose volume group is different from the transaction volume and is of the same composition as the transaction volume.

For using a volume group as a transaction volume, it is necessary to create a logic disk as follows:

· Do not register two or more physical disks into one volume group. · Create a logical disk so that one logical disk does not consist of two or more physical disks.

For backup targets, do not select disks in which a system is stored or Softek AdvancedCopy Manager is installed.

When changing the size of physical disk registered as a transaction volume, or the construction of a volume group, delete the volume from the registered transaction volumes. Next, after following the process of Fetching device information on a Storage server again, re-register the volume by executing the device information setting command.

When changing the size of physical disk registered as a backup volume, or the construction of a volume group, delete the volume from the registered backup volumes. Then, after following the process of Fetching device information on a Storage server again, re-register the volume by executing the device information setting command.

All GUI operations of Softek AdvancedCopy Manager are available on a Storage management server. For more about GUI operation, see "Windows, Solaris OE or Linux Softek AdvancedCopy Manager User's Guide".

You can check what has been registered as follows: · Checking on a GUI window

You can view information on a transaction volume on the transaction volume list view or information on a backup volume on the backup volume list view. For more information on each of these views, see "Windows, Solaris OE or Linux Softek AdvancedCopy Manager User's Guide".

· Checking using a command You can view information on a registered transaction volume or backup volume using the device usage status display command.

When the registered contents are checked by the GUI screen or the command, the value displayed on the "Size" column is physical disk size. When a volume group is registered, it is also the physical disk size which constitutes a volume group.

29

Page 33: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

4.4.9 Setting options

Set options when performing backup to a backup volume in a cabinet that is not the same as the cabinet containing the transaction volume.

Create the following files to set options:

For normal operation (non-cluster)

/etc/opt/FJSVswsts/data/DEFAULT/check.ini

For cluster operation

/etc/opt/FJSVswsts/<logical-node-name(*1)>/data/DEFAULT/check.ini

(*1) Logical node name of AdvancedCopy Manager specified during setting up of a cluster.

Code as follows:

[check]

RemoteCopy=Yes

· If the option settings file is changed after operation starts, backup may not be able to continue. For this reason,

do not change the option settings file after the start of operation. · To change the option settings file, you must set the backup policy again.

4.4.10 Setting backup policies

For a transaction volume registered on a storage server, set the following backup policy: · Number of preservation generations

Means how many generations of backup data should be kept. · Interval days

Means the number of days before next backup should be performed. If the specified number of days is exceeded, you will be prompted to perform backup on the GUI window of Softek AdvancedCopy Manager.

To set a backup policy on the server list view, you display storage servers in a tree view on the server list view. The list of transaction volumes and backup volumes on this storage server will be displayed. After selecting a transaction volume for which you want to set a backup policy, click the right mouse button. From the popup menu, select [Set Backup Policy]. The following setup window will be displayed.

On this window, specify the number of interval days and the number of preservation generations and click the [OK] button. Perform this procedure on all the transaction volumes. You can set a backup policy also using the backup policy setting command (swstbkpolset).

· Even if the number of interval days has been specified, Softek AdvancedCopy Manager does not automatically

collect backup. This value is used only to prompt the user to perform backup when the number of backup interval days is exceeded.

· When you set a backup policy, there must be as many registered backup volumes as required to perform backup according to the specified backup policy. For information on the necessary number of backup volumes,

30

Page 34: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

see Chapter 4.2.4, "Preparing a backup volume". · Even though the number of backup volumes required for the backup may not have been registered

beforehand when backup policies for synchronized high-speed backup were set, the number required can be set if the number of backup volumes that are required for snapshot fast backup have been registered. However, synchronized high-speed backup may not be able to be executed.

All GUI operations of Softek AdvancedCopy Manager are available on a Storage management server. For more about GUI operation, see "Windows, Solaris OE or Linux Softek AdvancedCopy Manager User's Guide".

You can check what has been defined as follows: · Checking on a GUI window

You can view information on a backup policy on the transaction volume list view. For more information on the view, see the " Windows or Solaris Softek AdvancedCopy Manager User's Guide".

· Checking using a command You can view information on a defined backup policy using the backup policy display command (swstbkpoldisp).

4.4.11 Customizing a script of Preprocessing and Postprocessing

When the operation corresponds to following either, it is necessary to customize the script used for preprocessing and postprocessing of backup. · Backup target is a volume group. · For reasons of operation, avoid unmount/mount processing of a transaction volume in which the file system

has been built. · Describe special processing in a script of preprocessing and postprocessing. About customize method, see Appendix A, "Preprocessing and Postprocessing of Backup and Restoration".

4.4.12 Preparing a device map file

In the backup operation on Softek AdvancedCopy Manager, a backup volume with the same capacity as a transaction volume is automatically selected from the registered backup volumes.

If the backup volume is recognized in a "Device map file", i.e., a file defining the correspondence between transaction and backup volumes, it must be created.

Create a device map file anywhere on the storage server that performs backup. If you specify this file while performing backup, an operation in recognition of the backup destination is enabled.

4.4.12.1 Describing a device map file

The following shows a description example of a device map file.

The following lists rules for creating a device map file. · Describe a transaction volume and a corresponding target backup volume in one line. Separate a transaction

volume and a backup volume with one or more "half-size blank or tab characters". One or more "half-size

31

Page 35: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

blank or tab characters" may be included between the beginning of a line and a transaction volume name or between the end of a backup volume name and the end of a line (new line character).

· A blank line ("half-size blank or tab characters") may be included in a file. · The portion from the symbol "#" to the end of a line is assumed as a comment. · You cannot specify more than one target backup volumes for one work disk in one device map file. In such a

case, the information in the line first found will be valid. While a device map file is read, the system will not detect such a redundant line.

· A device map file may include descriptions of transaction volumes other than the processing target. (See the description example provided in the beginning of this chapter.)

4.5 Operation

This chapter describes the backup operation on Softek AdvancedCopy Manager.

Before performing the backup operation, make environment settings required for the backup operation according to Chapter 4.4, "Preparations".

Softek AdvancedCopy Manager has two kinds of backup operation as follows. · Snapshot fast backup operations · Synchronous high-speed backup operations

4.5.1 Performing the snapshot fast backup

Perform the snapshot fast backup as follows: 1. Before backing up a general file system, stop work. 2. Display the transaction volume list view and select a volume to be backed up.

3. From the [Operation] menu, select [Backup] to display the following window.

4. Check the displayed server names and transaction volume names and perform the following: - To use a volume automatically selected by Softek AdvancedCopy Manager a backup volume:

Click the [OK] button. - To use a specific volume as a backup volume:

Specify a device map file created on the storage server that performs backup (e.g., /home/usr1/devmap1) and then click the [OK] button.

32

Page 36: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

5. After the backup is completed, the following window will be displayed. Click the [OK] button and you will be

sent back to the transaction volume list view.

6. This completes backup. Now you can restart work. At this point, however, the physical copying of a volume is

not completed at the back end. To check the status of physical copying, do as follows: 7. Display the transaction volume list view and check the [Status] field of a target transaction volume. You can

check the current copying status because this field displays the progress status of copying processing.

8. To check the latest copying status, either: - Click the [PF5] key, or - Select [Refresh] from the View menu. 9. If you have stopped work in Step 1, restart the work.

· You can perform backup also using the backup execution command. · You can check the backup status also using the backup execution status display command.

33

Page 37: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

All GUI operations of Softek AdvancedCopy Manager are available on a Storage management server. For more about GUI operation, see "Windows, Solaris OE or Linux Softek AdvancedCopy Manager User's Guide".

4.5.2 Performing the synchronized high-speed backup

Perform the synchronized high-speed backup for a transaction volume as follows: 1. Display the transaction volume list view and select a volume to be backed up.

2. On the [Operation] menu, select [Start Synchronization processing] to display the following window.

3. Check the displayed server name and transaction volume name, and perform one of the following operations: - To use a volume automatically selected by Softek AdvancedCopy Manager as a backup volume:

Click the [OK] button. - To use a specific volume as a backup volume:

Specify a device map file name created on the storage server (e.g., /home/usr1/devmap1) for which backup will be performed and then click the [OK] button.

34

Page 38: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

4. When the synchronized backup processing is completed, the window shown below appears. Click the [OK]

button to return to the transaction volume list view.

5. Physical copying from the transaction volume to backup volume now starts. To check the status of the physical

copying, do the following: 6. Display the transaction volume list view and check the [Status] field of the target transaction volume. This field

displays the progress of the coping processing. Use it to check the current status of the copying. 7. To check the latest copying status, perform one of the following operations: - Click the [PF5] key. - Select [Refresh] from the View menu. 8. The transaction and backup volumes enter equivalency maintain status when the [Status] field indicates

[Backup Preparation Completed]. 9. To create a backup history, select the target transaction volume from the transaction volume list view and

select [Backup] from the [Operation] menu. The following window appears.

10. Check the displayed server name and transaction volume name, and click the [OK] button. 11. When the backup is completed, the window shown below appears. Click the [OK] button to return to the

transaction volume list view.

35

Page 39: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

· The backup execution command causes an error if it is executed before the transaction and backup volumes

have entered equivalence status. · The device map cannot be specified during backup.

· Backup synchronous processing is started with Backup synchronous processing start command. · A backup synchronous processing state is checked with Backup synchronous processing progress display

command. · Backup can also be executed with the backup execution command. · The backup status can also be checked with the backup execution status display command.

All GUI operations of Softek AdvancedCopy Manager are available on a Storage management server. For more about GUI operation, see "Windows, Solaris OE or Linux Softek AdvancedCopy Manager User's Guide".

4.5.3 Performing restoration

This chapter describes restoring a volume or data that has been backed up.

4.5.3.1 Restoring an entire volume

Restore all the data in a volume, which has been backed up in the snapshot fast backup as follows: 1. Stop work if you want to perform restoration on a general file system. 2. Display the transaction volume list view. Select a volume to be restored.

3. From the [Operation] menu, select [Restore] to display the following window. As the restore source volume, the

latest backup destination volume for the concerned transaction volume will be selected.

36

Page 40: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

4. Check the name of volume to restore.

As the name of volume to restore, a transaction volume name selected in the transaction volume list view will be displayed. Click the [OK] button to restore data to this transaction volume. To change the restore destination, mark the Name of volume to restore checkbox, and then click the [...] button. The following window will be displayed.

Select a volume to which you want to restore data and then click the [OK] button. You will be sent back to the restore window. Check that the name of volume to restore is correct and then click the [OK] button on the [Restore Window].

5. The following window will appear when the restoration is completed. Click the [OK] button and you will be sent back to the transaction volume list view.

6. This completes restoration. Now you can restart the work. At this point, however, the physical copying of a

volume is not completed at the back end. To check the status of physical copying, do as follows: 7. Display the transaction volume list view and check the [Status] field of a target transaction volume. You can

check the current restoration (physical copying) status because this field displays the progress status of copying processing.

37

Page 41: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

8. To check the latest information, either: - Click the [PF5] key, or - Select [Refresh] from the View menu. 9. If the transaction was stopped in 1, restart it.

· You can perform restoration also using the restore execution command. · You can check the restore status also using the restore execution status display command (swstbackstat). · See the Softek AdvancedCopy Manager User's Guide for restoration in which absolute generations and

relative generations are indicated in the backup data that is subject to history management. (For absolute generations, 1 is assigned to the data backed up first and the number increases sequentially. For relative generations, 1 is assigned to the latest data, and the number increases as the data becomes older.)

Because there are notes about restoration of a volume group, be sure to look through chapter 4.1.3.1 "Restoration processing of Volume Group".

All GUI operations of Softek AdvancedCopy Manager are available on a Storage management server. For more about GUI operation, see "Windows, Solaris OE or Linux Softek AdvancedCopy Manager User's Guide".

4.5.3.2 Restoring an individual file

Restore an individual file as shown below. Note that you cannot restore an individual file on the GUI window. 1. Mount backup volume. To check backup volume by the history list view or executing history information display

command. 2. Copy files to restore by the cp command. 3. Unmount backup volume.

4.5.4 Managing a backup history

Display backup history information to check backup volume names, backup date, etc. of backup data under generation management for a transaction volume.

· Backup history information is used to manage only information stored on a backup volume. · Any backup history information exceeding the number of preservation generations defined in a backup policy

will be automatically deleted.

4.5.4.1 Displaying a backup history

You can display a backup history on the backup history list view. To display the backup history list view, first access

38

Page 42: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

the server list view, display a storage server in a tree view, and select a transaction volume on the storage server.

You can display a backup history also using the history information display command.

All GUI operations of Softek AdvancedCopy Manager are available on a Storage management server. For more about GUI operation, see "Windows, Solaris OE or Linux Softek AdvancedCopy Manager User's Guide".

4.5.4.2 Deleting a backup history

Delete a backup history on the server list view. If you display a storage server in a tree view on the server list view, a list of transaction volumes on this storage server will be displayed. After selecting a transaction volume history for which you want to delete a backup history, click the right mouse button and, from the popup menu, select [Delete History]. The following setup window will be displayed.

Carefully check the displayed server name and transaction volume name and click the [OK] button.

You can delete a backup history also using the history information delete command.

All GUI operations of Softek AdvancedCopy Manager are available on a Storage management server. For more about GUI operation, see "Windows, Solaris OE or Linux Softek AdvancedCopy Manager User's Guide".

39

Page 43: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

4.6 Changing the setting information

You need to change the setting information of Softek AdvancedCopy Manager if any change is made on a storage server or device used in the backup operation. This chapter describes changing the setting information when various changes are made.

4.6.1 Adding a device

After a device is added to any storage server, incorporate it in the backup operation of Softek AdvancedCopy Manager as follows: 1. Display the initial window. For more information, see Chapter 4.4.3, "Starting the initial window". 2. Fetch all the device information for a storage server. When device information is fetched, a newly added

device will be detected. Move it to the [Device to be added] field. For information on fetching device information, see Chapter 4.4.5, "Fetching device information on a storage server".

3. Display the backup management window. For more information, see Chapter 4.4.6, "Displaying the backup management window".

4. Set the operation type for a device that has been added. For more information, see Chapter 4.4.8, "Setting the operation type for a device".

5. If the added device has been defined as a transaction volume, set a backup policy for it. For more information, see Chapter 4.4.10, "Setting backup policies".

4.6.2 Deleting a device

This chapter describes deleting a device depending on the device type.

4.6.2.1 Deleting a transaction volume

To delete a transaction volume, follow the steps shown below. 1. Display the backup management window. For more information, see Chapter 4.4.6, "Displaying the backup

management window". 2. Delete a backup history for the transaction volume to be deleted. For more information, see Chapter 4.5.4.2,

"Deleting a backup history". 3. Delete a backup policy for the transaction volume to be deleted.

If you display a storage server in a tree view, a list of transaction volumes on this storage server will be displayed. After selecting the transaction volume for which you want to delete, select delete backup policy. You can click the right mouse button or from the popup menu, select [Delete backup policy]. The following setup window will be displayed.

Carefully check the displayed server name and transaction volume name and click the [OK] button.

4. Delete device information for a transaction volume to be deleted. After selecting a storage server, select [Set Device Information] from the [Operation] menu. The following setup window will be displayed.

40

Page 44: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Move a target transaction volume displayed in the "Transaction Volume" field to the "Other Volume" field. Click the [>] button to move a transaction volume.

You can execute this processing also using the history information delete command, backup policy deletion command, or device information setting command.

4.6.2.2 Deleting a backup volume

To delete a backup volume follow the steps as shown below. 1. Display the backup management window. For more information, see Chapter 4.4.6, "Displaying the backup

management window". 2. Send the backup volume to be deleted into the unused status.

When a volume is unused, this volume does not exist in a backup history. If the volume exists in a backup history, delete the backup history. If the volume is already unused, skip to the next step.

3. Delete device information for the backup volume to be deleted. After selecting a Storage server, select [Set Device Information] from the [Operation] menu. Then, the following setup window will be displayed.

41

Page 45: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Move a target backup volume displayed in the "Backup Volume" field to the "Other Volume" field. Click the [>] button to move a backup volume.

If a backup volume is deleted, an already defined backup policy may no longer be met (e.g., the number of backup volumes is less than the number of preservation generations). In such a case, the backup operation can no longer be continued. To avoid such a status, be sure to check already defined backup policies before deleting a backup volume.

If only an insufficient number of backup volumes exist as described earlier, first register a backup volume and then delete the target backup volume.

You can execute this processing also using the history information deletion command, or device information setting command.

4.6.3 Adding a storage server

Add a storage server to the backup operation as follows: 1. Display the initial window. For more information, see Chapter 4.4.3, "Starting the initial window. 2. Register a storage server. For more information, see Chapter 4.4.4, "Registering a storage server". 3. Fetch all the information of devices connected to the added storage server. For more information, see Chapter

4.4.5, "Fetching device information on a storage server". 4. Display the backup management window. For more information, see Chapter 4.4.6, "Displaying the backup

management window". 5. Set the information for the storage server. For more information, see Chapter 4.4.7, "Setting the environment

for a backup operation server". 6. Set the operation type for a device whose information has been fetched in Step 3. For more information, see

Chapter 4.4.8, "Setting the operation type for a device". 7. Set a backup policy for all the transaction volumes registered in Step 5. For more information, see Chapter

4.4.10, "Setting backup policies".

4.6.4 Deleting a Storage server

To delete a Storage server follow the steps as shown below. In addition, be sure to do this work before removing the

42

Page 46: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Storage server for deletion. 1. Display the backup management window. For more information, see Chapter 4.4.6, "Displaying the backup

management window". 2. Delete the backup history for all the transaction volumes on the Storage server to be deleted. For more

information, see Chapter 4.5.4.2, "Deleting a backup history". 3. Delete the backup policy for all the transaction volumes on the storage server to be deleted.

If you display a Storage server in a tree view, a list of transaction volumes on this Storage server will be displayed. After selecting a transaction volume for which you want to delete, delete the backup policy. Click the right mouse button and from the popup menu, select [Delete backup policy]. The following setup window will be displayed.

Carefully check the displayed server name and transaction volume name and click the [OK] button.

4. Delete device information on the Storage server to be deleted. After selecting a Storage server, select [Set Device Information] from the [Operation] menu. The following setup window will be displayed.

Move all the volumes displayed in the "Transaction Volume" and "Backup Volume" fields to the "Other Volume" field. Click the [>] button to move volumes.

5. Display the initial window. For more information, see Chapter 4.4.3, "Starting the initial window". 6. Delete a Storage server.

Select a Storage server and select [Deletion of Server] from the [Operation] menu. The following window will be displayed.

43

Page 47: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Carefully check the server name and click the [OK] button. In addition, this processing can be carried out also by the server information deletion command. Please refer to the Operator's guide to OS of a Storage management server.

4.7 Stopping the Operation

To stop a backup operation, stop daemons on the Storage server. Normally, they are automatically stopped when the system stops.

It is possible to also make it stop individually to stop a demon by a certain reason. For more Details, see "Chapter 2 Starting and Stopping a Deamons" of this Manual.

When the daemons stop, all functions of AdvancedCopy Manager running on the Storage server stop.

Stop daemons on a Storage management server only after checking that all the Storage servers that it manages are stopped.

44

Page 48: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Chapter 5 Backup with the SP Series

This chapter describes backup with the SP Series.

HP-UX version Softek AdvancedCopy Manager's Agent enables the backup operation described in this chapter by linking with Softek AdvancedCopy Manager's Manager running under Windows, Solaris OE or Linux. In addition, the backup/restore unit in the HP-UX system is a physical disk (LU: Logical Unit). But in the case of the physical disk which constitutes LVM(Logical Volume Manager), it is managed/operated per volume group.

5.1 Overview

In backup management, the volumes that are backed up with linkage to models of the SP series are managed as transaction volumes under control of the SP series models.

At the time of performing backup/restore, these volumes are backed up/restored with models of the SP series.

See the Storage Management Processor Administrator's Guide for details on how to back up/restore these volumes.

[Figure 5.1 Backup management configuration ]

5.2 Operation Design

Design/set up the backup operation as described below: 1. Determining the server to perform backup 2. Determining the backup target 3. Determining a backup policy 4. Preparing a backup volume

5.2.1 Determining the server to perform backup

Determine the server that will be used to perform backup.

45

Page 49: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

The following servers can be used to perform backup: · Storage management server

This server performs central management and operation of multiple Storage servers. The Storage management server can also act as a Storage server However, a Storage management server is of the Windows, Solaris OE or Linux Softek AdvancedCopy Manager.

· Storage server This server controls Softek AdvancedCopy Manager. The HP-UX Softek AdvancedCopy Manager corresponds to this employment form.

The locale of the internal code system (code system specified in case Softek AdvancedCopy Manager is installed in a Storage management server) which Softek AdvancedCopy Manager uses needs to be installed on all Storage servers.

[Figure 5.2 Example of Storage management server and Storage server configuration]

5.2.2 Determining the backup target

To perform backup management in linkage with models of the SP series, define the backup target as a transaction volume of the SP series.

The backup/restoration unit of the HP-UX Softek AdvancedCopy Manager is a physical disk (LU:Logical Unit). But in the case of the physical disk which constitutes LVM (Logical Volume Manager), it is managed / operated per volume group. The disk which is managed / operated is called a transaction volume.

Because the device to be backed up must be managed by a model of the SP series, system design and setup with

46

Page 50: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

respect to the SP series models must be performed first. See the Storage Management Processor Administrator's Guide and Storage Management Processor Installation Guide for details on how to perform system design and setup with respect to the devices of the SP series.

Specify the devices for which backup is to be performed with the device information setting command. The setting status with respect to the devices for which backup is to be performed can be referenced by the device usage status display command.

The following is note for using a volume group as operating volume:

· Do not register two or more physical disks into one volume group.

For backup targets, do not select disks in which a system is stored or Softek AdvancedCopy Manager is installed.

5.2.3 Determining a backup policy

Set a backup policy for the transaction volume controlled by the SP series. Do not use Softek AdvancedCopy Manager. Instead, use the SP series GUI.

See the Direct Backup User's Guide for details on how to set the backup policy via the SP series GUI.

Because the policy for the transaction volume operated by the SP series must be set by the SP series GUI, the following commands cannot be executed for a transaction volume controlled by the SP series:

· Backup policy setting command · Backup policy display command · Backup policy deletion command

5.2.4 Preparing a backup volume

In backup/restore linking with the SP series, a backup volume is managed by the SP series. When you design/setup the backup volume, do not use Softek AdvancedCopy Manager. Instead, use the SP series GUI. For more information about the SP-series GUI, see the Direct Backup User's Guide.

5.3 Flow of Operation

The following figure shows the flow of backup with the SP series.

47

Page 51: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

5.4 Preparations

Before the start of backup, the following preparations are required.

5.4.1 Activating daemons

Before starting a backup operation, daemons on the Storage management server, Storage servers, and SP servers must be activated. Normally, they are automatically activated.

Usually, although it rises automatically at the time of starting of a system, when starting goes wrong for a certain reason, and when a demon is stopped at once, it is necessary to start a demon by each server. Please Refer to

48

Page 52: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Chapter 2 "Starting and Stopping Daemons" of this Manual of Demon about Starting of Demon.

5.4.2 Setting an access permission

Set the access permission for the backup operation management window. For details of the setting, see Chapter 3, "Security Operation Using Authentication Feature" in "Windows, Solaris OE or Linux Softek AdvancedCopy Manager Operator's Guide".

When only a command performs backup employment, a setup of the right to access is not required.

5.4.3 Starting the initial window

Use the following URL to start the Softek AdvancedCopy Manager initial window:

http://storage-management-server-address(:port-number)/swstorage/index.html

The following GUI (server list view) starts.

When applying only by the command, without using GUI, it is not necessary to perform this operation.

All GUI operations of Softek AdvancedCopy Manager are available on a Storage management server. For more about GUI operation, see "Windows, Solaris OE or Linux Softek AdvancedCopy Manager User's Guide".

5.4.4 Registering Storage server and SP server

Register the Storage server and SP server to be managed. When the Storage server is operated as a Storage management server does not need to add a server.

Select [Addition of Server] from the [Operation] menu. The following window appears.

49

Page 53: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Specify the server name, IP address, and port required for communication with the Storage server to be added.

In cluster operation, specify the logical IP address of the Storage server as IP address. And specify the port number registered at the time of the cluster setup of Storage server transaction.

The [OK] button is pushed after inputting the above item, and additional processing of a Storage server is carried out.

In addition, this processing can be carried out also by the server information addition command (stgxfwcmaddsrv). Please refer to the operator's guide to OS of a Storage management server.

When the SP server is registered, the Softek AdvancedCopy Manager server list view appears, as shown below

5.4.5 Fetching device information on a storage server

To perform backup management, information on the devices of each Storage server must be stored in the repository. To fetch information on the devices of each Storage server, choose "Acquisition and reflection of information on all devices" from the Operation menu. The following window opens. Information about the hardware of the SP server need not be acquired because the SP server is not managed by AdvancedCopy Manager.

50

Page 54: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Confirm the server for which you want to fetch device information, and then click the OK button.

After device information is fetched from each server, the following dialog box opens.

The uppermost list box is displayed when a new device is detected. Move the entries for devices to be managed into the left box. The second list box displays currently managed devices that cannot be detected at this time. When you want to exclude a device from management, move the device entry into the right-hand box. The lowermost list box displays devices for which information has been updated (those, for example, for which the mount point name has been changed).

After performing the above operation, click the OK button to reflect the configuration information.

The [OK] button is pushed after carrying out the above operation, and acquisition processing of device information is carried out.

In addition, this processing can be carried out also by the device information collection/reflection command (stgxfwcmsetdev). Please refer to the operator's guide to OS of a Storage management server.

51

Page 55: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

· The time required for this operation is proportional to the total number of devices defined on the Storage server. If the number of devices is large, perform this operation while the CPU load and I/O load are low. As a guideline for reference, each operation takes about 0.5 s per device (partition) in a state without load.

· About a device of LVM, only a volume group and a logical device are fetched, but the physical device which constitutes a logical device is not.

5.4.6 Displaying the backup management window

When [Backup Management] is selected from the [File] menu of the server list view, the backup management server list view appears.

All GUI operations of Softek AdvancedCopy Manager are available on a Storage management server. For more about GUI operation, see "Windows, Solaris OE or Linux Softek AdvancedCopy Manager User's Guide".

5.4.7 Setting the environment for a backup operation server

Set the environment for each storage server. When [Set Server Information] is selected from the Operation menu while the storage server is selected on the backup management window, the following setting window appears.

If the target Storage server is Solaris and the SymfoWARE database exists in the Storage server, a recovery control file output place directory and a work directory are inputted. When a SymfoWARE database does not exist in a

52

Page 56: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Storage server, or when a Storage server is WindowsNT/2000, HP-UX or Linux, this input item cannot serve as a half-tone display, and cannot be inputted.

After completing the input of necessary items, click the [OK] button.

You need to make this environment setting also on the storage management server if it serves also as a storage server. This step is not required if the environment setting has already been made on the storage servers.

You can also make this environment setting also using the storage server configuration information setting command.

All GUI operations of Softek AdvancedCopy Manager are available on a Storage management server. For more about GUI operation, see Windows, Solaris OE or Linux Softek AdvancedCopy Manager User's Guide".

5.4.8 Setting the operation type for a device

Before performing backup, set the operation type of the device as follows: · Define each volume to be backed up as a transaction volume. · Define each backup destination volume as a backup volume.

+Defining the transaction volume

Set an operation type on the server list view. On the server list view, select a storage server and select the [Operation] menu and then [Set Device Information]. The following setup window will be displayed.

53

Page 57: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

A volume displayed in "Other volume" field has no specified device operation type. Set a device operation type as follows: · Setting as a "transaction volume which performs SP series employment" After selecting a target volume, click the [<] button on the "Transaction volume(SP)" side. The target volume will be moved to the "Transaction volume(SP)" field.

You can make this setting also using the device information setting command (swstdevinfoset).

Because the device to be backed up must be managed by a model of the SP series, system design and setup must have been performed with respect to the SP series. See the Storage Management Processor Administrator's Guide and Storage Management Processor Installation Guide for details on the method of design and setup with respect to the SP series.

When changing the size of physical disk registered as a transaction volume, or the construction of a volume group, delete the volume from the registered transaction volumes. Next, after following the process of Fetching device information on a Storage server again, re-register the volume by executing the device information setting command.

The setting status of the device to be backed up can be referenced with the device usage status display command.

+Defining the backup volume

For backup/restore in linkage with a model of the SP series, the backup volume specified as the backup destination is managed by the SP series model and system design and setup of the backup volume is to be performed via the SP series GUI. See the Direct Backup User's Guide for details on the SP series GUI.

5.4.9 Setting backup policies

Set the backup policy for the transaction volume under control of the SP series model by using the SP series GUI.

See the Direct Backup User's Guide for details on the SP series GUI.

Because the backup policy for the transaction volume controlled by the SP series model is set by the SP series model, the following commands cannot be executed for the transaction volume operated by the SP series model:

· Backup policy setting command · Backup policy display command · Backup policy deletion command

5.4.10 Customizing a script of Preprocessing and Postprocessing

When the operation corresponds to following either, it is necessary to customize the script used for preprocessing and postprocessing of backup. · Backup target is a volume group. · For reasons of operation, avoid unmount/mount processing of a transaction volume in which the file system

has been built. · Describe special processing in a script of preprocessing and postprocessing. About customize method, see Appendix A, "Preprocessing and Postprocessing of Backup and Restoration".

5.5 Operation

This chapter describes how to perform backup with models of the SP series.

54

Page 58: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Before performing backup, set up the environment needed for backup, as described in Chapter 5.4 "Preparations".

The same operations as performed by the commands used for backup can also be performed via the SP series GUI. See the Direct Backup User's Guide for details on the SP series GUI.

5.5.1 Executing backup

Perform backup in linkage with models of the SP series with the backup execution command.

Because the SP series manages disks for backup in linkage with the SP series, confirm the backup status by using the SP series GUI. See the Direct Backup User's Guide for details on the SP series GUI.

+Snap shot backup

To perform snap shot backup, use the backup execution command.

+Synchronous high-speed backup

Perform synchronous high-speed backup as described below: 1. Start backup synchronous processing by executing the backup synchronous processing start command. To

cancel backup synchronous processing, use the backup synchronous processing cancel command. 2. It checks that the backup volume under backup synchronous processing is in an equivalent nature

maintenance state. It carries out by the situation check of backup, and GUI of SP series. 3. Execute the backup execute command.

5.5.2 Executing restore

Perform restore in linkage with models of the SP series by using the restore execution command. To stop restore operations, and to terminate restore operations that cannot be terminated even if an error occurs, use the GUI of the SP series.

For information about the GUI of the SP series, refer to the Direct Backup User's Guide.

Contents of a transaction volume cannot be used if a restore operation for the volume has been canceled.

In linkage with models of the SP series, the SP series models manage the disks for restore. Therefore, confirm the restore status by using the SP series GUI. See the Direct Backup User's Guide for details on the SP series GUI.

5.5.3 Managing backup histories

In linkage with models of the SP series, the SP series models manage the history of backups.

Therefore, the backup history cannot be displayed or deleted using Softek AdvancedCopy Manager.

Use the SP series GUI to display or delete the backup history. See the Direct Backup User's Guide for details on the SP series GUI.

5.6 Stopping Backup

To stop the backup, stop the service on the storage server. In general, the service stops when the system stops.

It is possible to also make it stop individually to stop a demon by a certain reason. For Details, Please Refer to Chapter 2 "Starting and Stopping Daemons" of this Manual of Demon.

When the service stops, all functions of AdvancedCopy Manager running on the Storage server stop.

55

Page 59: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

56

Before stopping the service or daemon running on the Storage management server, confirm that the operations on all managed Storage servers have stopped.

5.7 Steps for Increases/Decreases in the Number of GR Cabinets to Be Managed

In Softek AdvancedCopy Manager, information about GR cabinets managed by devices of the SP series is stored in a repository. When adding GR cabinets to or removing GR cabinets from those managed by devices of the SP series, these changes must be reflected in the repository.

5.7.1 Reflecting changes

After starting the Web GUI of Softek AdvancedCopy Manager, refer to Chapter 1.2.6.5, "Changing GR cabinet management information of the SP series," in the Softek AdvancedCopy Manager User's Guide, to perform the operation to reflect changes.

Page 60: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Chapter 6 Replication Operation

This chapter explains Softek AdvancedCopy Manager replication in an HP-UX system.

HP-UX version Softek AdvancedCopy Manager's Agent enables the replication operation described in this chapter by linking with Softek AdvancedCopy Manager's Manager running under Windows, Solaris OE or Linux. In addition, the replication unit in the HP-UX system is a physical disk (LU: Logical Unit). But in the case of the physical disk which constitutes LVM(Logical Volume Manager), it is managed/operated per volume group.

6.1 Overview

This chapter explains the Softek AdvancedCopy Manager replication function.

Using the advanced copy function (OPC/EC or ROPC/REC function) of a disk array unit, the Softek AdvancedCopy Manager replication function performs high-speed replication between volumes, regardless of the volume capacities.

Replication that uses the One Point Copy (OPC) or Remote One Point Copy (ROPC) function of a GR series disk array unit is called snapshot replication. Replication that uses the Equivalent Copy (EC) or Remote Equivalent Copy (REC) function is called synchronized replication.

The replication function creates copies so that the information at a certain point of time can be used for some other purpose than the original one. It can be used independently of or combined with the backup function.

6.1.1 Snapshot replication processing

Replicas are created by copying from an original volume to a replica volume using the OPC or ROPC function of a GR series disk array unit.

The snapshot replication performs the following two types of processing: 1. When a copy is created, the snapshot processing (OPC or ROPC) from the original volume to the replica

volume is executed with the replication creation command (swsrpmake). The replication creation command dismounts or mounts the original volume. This processing determines the original data (for details, see Appendix B, "Replication Script"). ((1) to (4) in Figure 6.1)

2. If the user wants to re-create a replica, only the replication creation command is required. If the previous snapshot processing is in progress, it is stopped and new snapshot processing is started.

57

Page 61: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

[Figure 6.1 Snapshot replication processing]

Snapshot replication is completed when the replication creation command is issued. The actual data is internally copied by the OPC or ROPC function of the GR series disk array unit.

· The GR740 unit is required when snapshot replication uses the ROPC function of a GR series disk array unit.

6.1.2 Synchronized replication processing

Replicas are created by copying from the original volume to the replica volume using the EC or REC function of a GR series disk array unit.

Synchronized replication uses two methods to create a copy: full copying and incremental copying. (In full copying, the original volume is completely copied; it is not partially copied. In incremental copying, only the data from the previous copy that has been updated is copied.) · Creating replicas with full copying

Use this method to create the first copy in a replication. · Creating copies with incremental copying

Use this method to create later copies once a previous replica already exists. Copies are created by reflecting the data that has been updated after a previous has been made (full copying and incremental copying).

The following is the procedure for synchronized replication: 1. Upon starting synchronized processing from the original volume to the replica volume, using the synchronous

processing start command (swsrpstartsync) , full copying, likewise, starts. ((1) in Figure 6.2)

58

Page 62: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

2. Full copying is complete. The original volume and replica volume both enter equivalence status. From this point on, updating of the original volume is sequentially reflected in the replica volume so that data equivalence is always maintained (equivalency holding state). (States in (2) and (3) in Figure 6.2)

3. Synchronized processing is temporarily stopped with the replication creation command (swsrpmake) to create a copy of the original volume. The replication creation command dismounts or mounts the original volume. This processing determines the original data (for details, see Appendix B, "Replication Script"). After execution of the replication creation command, the replica volume can be accessed (copy established status). (States in (3) and (4) in Figure 6.2)

4. To create another copy, the synchronized processing that has been temporarily stopped is restarted with the synchronous processing start command. For this copy, only the updated data (incremental) on the original volume since the previous copy was made until the restart of synchronized processing is copied to the replica volume. ((4) in Figure 6.2)

5. When copying of the incremental data has been completed, the status returns to equivalency holding state again. (States in (5) and (6) in Figure 6.2)

6. When this status has been set, the copy is re-created with the replication creation command. ((6) in Figure 6.2)

[Figure 6.2 Synchronized replication processing]

· The GR740 is required to use the EC or REC function of a GR series disk array unit for synchronized

replication. · The replication creation command cannot be executed unless both the original volume and replica volume are

in equivalence status.

In the case where backup volume is a volume group, do not execute the vgchange (1M) command

59

Page 63: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

under synchronous processing (EC/REC) execution. If backup volume being deactive under synchronous processing execution, it not only becoming impossible to make it active again but it will be in the state where operation of a stop of synchronous processing, backup execution command, backup synchronous processing cancel command, etc. cannot be performed.

When you have made it unactive accidentally, please make copy place volume active after carrying out the forcible stop of the synchronous processing using GRmgr etc.

6.2 Operation Design

This chapter explains the operation of Softek AdvancedCopy Manager replication.

Design replication with the following procedure: · Determine the server that performs replication. · Determine the replication target.

6.2.1 Determining the server that performs replication

Determine the server that performs replication.

The following servers are used to perform replication: · Storage management server

Multiple storage servers are unified and operated centrally. The storage management server can also be used as a storage server. However, a Storage management server is of the Windows, Solaris OE or Linux Softek AdvancedCopy Manager.

· Storage server Softek AdvancedCopy Manager operations are performed. The HP-UX Softek AdvancedCopy Manager corresponds to this employment form.

[Figure 6.3 Configuration of the servers that perform replication]

The following requirements apply when box-tobox replication is performed using the remote copying function (ROPC or REC) of a GR series disk array unit:

60

Page 64: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

· The ROPC or REC function must be installed in both boxes. · Both boxes must already be connected using an FC remote adapter (FCRA). In a connection

that uses an FCRA, data flows only from INIT side to TARG side. For bi-direction copying, at least two FCRA connections are required.

6.2.2 Determining a replication target

Determine the original volume and replica volume to be used in the replication. · The original volume is the volume on which the data to be copied is stored. · The replica volume is the volume on which a copy of the data on the original volume is stored. In addition, determine the following attributes to be assigned to the original volume and replica volume: 1. Copy direction

Determine the direction of copying used in replication. Specify one of the following directions: - bi-direction: Copying is bidirectional between the original volume and replica volume. - uni-direction: Copying is done only from the original volume to the replica volume. During this operation,

copying from the replica to the original volume is to be disabled. 2. Operation servers (used only for server-to-server replication)

For server-to-server replication, replication of the target original volume or replica volume can be performed only with either the original sever or replica server.

- Original server: Storage server to which the original volume is connected - Replica server: Storage server to which the replica volume is connected

[Figure 6.4 Servers used in performing replication]

In this manual, a storage server used to perform replication is called the operation server. An original server or replica server is specified as the operation server.

An operation server can use all of the replication functions. In contrast, any other type of server can use only the information display function and operation release function.

Make into a replication object neither the disk with which the system is stored, nor the disk with which Softek AdvancedCopy Manager is installed.

6.2.2.1 Notes on the replication volume

There are points which it is careful of for every combination of the original volume and replica volume used for replication operation.

+About a disk size of an original volume and a replica volume

When the size of physical disk (which constructs the logical disk in case of it) of an original volume differs from that of a replica volume, a physical copy is carried out according to the one where size is smaller. Since lack of data occurs in

61

Page 65: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

this case, the physical disk size of replica volume is the same as that of original volume, or to use a large thing.

+Using a volume group for an original volume or a replica volume

When the original volume is a volume group, for using the replica volume after replication, the replica volume needs to be the volume group of the same logical volume composition as the original volume, and the same physical disk size (Figure 6.5).

In addition, when a composition of the volume group cannot be supported by Softek AdvancedCopy Manager, it cannot register with a replication management function. For detail about the logical disk composition which cannot be supported, see Chapter 1.5, "Prerequisites for Backup/Replication Operation".

[Figure 6.5 Original volume and replica volume for two or more logical disks]

6.3 Flow of Operations

The following figure shows the flow of the replication operations.

62

Page 66: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

6.4 Preparations

The following preparations are required before replication can start.

6.4.1 Starting a daemon

Before replication is started, the Softek AdvancedCopy Manager daemon must be started on the storage management server and storage server. In general, the daemon is automatically started at system startup.

When starting goes wrong for a certain reason, and when a demon is stopped at once, it is necessary to start a demon by each server. For information about starting the Daemons, see Chapter 2 "Starting and Stopping Daemons".

6.4.2 Starting the initial screen

Use the following URL to start the Softek AdvancedCopy Manager initial screen:

http:// storage-management-server-address(:port-number)/swstorage/index.html

The following GUI (server list screen) will be started.

63

Page 67: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

When applying only by the command, without using GUI, it is not necessary to perform this operation.

All GUI operations of Softek AdvancedCopy Manager are available on a Storage management server. For more about GUI operation, see "Windows, Solaris OE or Linux Softek AdvancedCopy Manager User's Guide".

6.4.3 Registering a storage server

The Storage management server registers the Storage server to be managed. When the Storage server is operated as a Storage management server does not need to add a server.

Select the [Operation] menu, select [Addition of Server]. The following window appears.

For a storage server to be added, specify a server name, IP address, and port number required for communications. The port number is specified as the "communications service port number", when Agent of Softek AdvancedCopy Manager was installed.

In cluster operation, specify the logical IP address of the Storage server as IP address. And specify the port number registered at the time of the cluster setup of Storage server transaction.

The [OK] button is pushed after inputting the above item, and additional processing of a Storage server is carried out.

In addition, this processing can be carried out also by the server information addition command (stgxfwcmaddsrv). Please refer to the employment guide to OS of a Storage management server.

64

Page 68: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

6.4.4 Fetching device information from a storage server

Before the backup management can be performed, device information on a storage server must be temporarily stored to the repository. To acquire information on a device on the storage manager server, the [Operation] menu, select [Acquisition and reflection of Information on all devices]. The following window appears.

After checking the server from which device information should be acquired , click the [OK] button.

After the device information has been obtained from each server, the following dialog box appears.

The new devices detected will be displayed in the uppermost list box. Move a device to be managed to the list box on the left. The second list box displays devices currently under management but not detected. Move a device that you no longer want to manage to the list box on the right. The lowermost list box displays devices whose device information has been updated (e.g., the mount point name has been changed).

After the above operations, click the [OK] button to accept the configuration information.

In addition, this processing can be carried out also by the device information collection/reflection command (stgxfwcmsetdev). Please refer to the employment guide to OS of a Storage management server.

65

Page 69: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

· The time required for this operation is proportional to the total number of devices defined on the Storage server.

If the number of devices is large, perform this operation while the CPU load and I/O load are low. As a guideline for reference, each operation takes about 0.5 s per device (partition) in a state without load.

· About a device of LVM, only a volume group and a logical device are fetched, but the physical device which constitutes a logical device is not.

6.4.5 Setting the original volume and replica volume

Use the replication volume information setting command (swsrpsetvol) to set the original volume and replica volume that will be used in the replication. The information on the registered original volume and replica volume can be checked with the replication volume information display command (swsrpvolinfo).

When specifying the volume of another storage server in server-to-server replication, specify the volume in the format "volume-name@storage-server-name."

6.4.6 Customizing a script of Preprocessing and Postprocessing

When the operation corresponds to following either, it is necessary to customize the script used for preprocessing and postprocessing of replication. · Replication target is a volume group. · For reasons of operation, avoid unmount/mount processing of a transaction volume in which the file system

has been built. · Describe special processing in a script of preprocessing and postprocessing. About customize method, see Appendix B, "Replication script".

6.5 Operations

This chapter explains Softek AdvancedCopy Manager replication.

Before performing backup, see Chapter 6.4, "Preparations," to set up the environment required for replication.

6.5.1 Executing snapshot replication

Use the replication creation command (swsrpmake) to perform snapshot replication.

6.5.2 Executing synchronized replication

Perform synchronized replication using the following procedure: 1. Start synchronized processing using the synchronous processing start command (swsrpstartsync). Use the

replication cancellation command (swsrpcancel) to cancel synchronized processing that has already started. 2. After making sure that equivalency holding state has been established with the operation status display

command, temporarily stop synchronized processing with the replication creation command (swsrpmake) to create a replica of the original volume.

3. To copy the updated (incremental) data, restart synchronized processing with the synchronous processing start command.

6.5.3 Backup and restoration using the replication function

Data can be restored from the replica volume to the original volume if a volume pair has been defined bi-direction copying with the replication volume information setting command (swsrpsetvol).

In contrast to executing replication, restoration can also be performed by specifying the original volume and replica volume in the replication creation command (swsrpmake).

6.6 Changing the Setting Information

When a storage server or device required in the replication operation has been changed, the information set in Softek AdvancedCopy Manager must be changed. This chapter explains how to change the information set in Softek AdvancedCopy Manager.

6.6.1 Changing an original volume or replica volume

To change the attributes (copy direction, operation servers of server-to-server replication) of the otihinsl volume and replica volume that are set, delete the information with the replication volume information deletion command (swsrpdelvol) and then reexecute the replication volume information setting command (swsrpsetvol).

66

Page 70: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

6.6.2 Deleting an original volume or replica volume

To delete the original volume or replica volume that are set, use the replication volume information deletion command (swsrpdelvol).

6.6.3 Changing the device information of an original or replica volume

When making the size of device information and composition change which are used for an original / replica volume, a device composition is changed after deletion processing of the original / replica volume, and setting processing of the volume is performed.

Be sure to do the following work before making the size of an original / replica volume or a composition change. When not doing this work, deletion of the original / replica volume after device composition change may not be able to be performed. 1. Perform deletion processing to the original / replica volume for device change. For details, see Chapter 6.6.2,

"Deleting an original volume or replica volume". 2. Change the device composition. 3. Perform the additional processing of a device. For more information, see Chapter 6.4.4, "Fetching device

information from a storage server". 4. Perform setting of the original / replica volume.

6.7 Stopping the Operation

To stop the replication processing, that is in progress, or to change the snapshot replication into the synchronized replication, use the replication cancellation command (swsrpcancel).

When stopping replication operation, the demon on a Storage server is stopped. Usually, it stops automatically at the time of a stop of a system.

It is possible to also make it stop individually to stop a demon by a certain reason. For Details, Please Refer to Chapter 2 "Starting and Stopping Daemons" of this Manual of Service.

When the daemon stops, all functions of AdvancedCopy Manager running on the storage server stop.

Before stopping the storage management server daemon, make sure that operations on all storage servers under management have stopped.

67

Page 71: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

68

Page 72: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Chapter 7 Operation Maintenance

This chapter describes maintaining a database, performing troubleshooting, and changing the operation information.

7.1 Maintaining a Database

Softek AdvancedCopy Manager holds various repositories and management information as employment information. They are named generically and it is called a database in this chapter. A database is important information. You are recommended to periodically back up a periodical database, when the capacity of repositories becomes insufficient by long-time running and employment changed from the first time plan, in preparation for the unexpected accident. (It differs from the database used for the transaction of the database of ORACLE etc.)

The following table lists instances when the acquisition timing is needed.

Server type Type Acquisition timing and method

Storage server Backup management list

After backup is completed

Backing up a backup management list

Storage server Replication management list

After replication is completed

Backing up a replication management list

Storage management server Database

When configuration information is changed due to, for example, addition of a storage server or fetching of device information, or when operation information for backup management or replication management is changed

Maintaining a database

Storage management server

Authentication management list

After authentication is set

Shell script for outputting definition information

Storage management sever/storage server

Registry

When a storage server is added or the server information (server name, IP address, or port number) on the storage management server is changed

Backing up a registry

7.1.1 Maintaining a backup a management list

This chapter describes maintenance of a backup management list. A backup management list is maintained on the server that performs the backup operation.

7.1.1.1 Backing up a backup management list

Back up the backup management.

For more information, see chapter 8.1.3.2, "Resource backup command (swstresback)."

7.1.1.2 Restoring a backup management list

Restore the backup management list.

For more information, see chapter 8.1.3.3, "Resource restore command (swstresrst)."

7.1.1.3 Preserving the volume configuration infomation

When the transaction volume or backup volume is a volume group, the volume configuration information file "/etc/lvmconf/volume-group-name.conf" is needed to restore the volume configuration information in the processing after backup / restoration.

In order to prepare for the system crash, be sure to maintain the above-mentioned file to another medium at the time of creating the volume group.

Usually, a volume configuration information file "/etc/lvmconf/volume-group-name.conf" is automatically created at the time of vgcreate (1M) execution. Moreover, if vgcfgbackup (1M) is used, backup of

69

Page 73: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

volume configuration information can be created by arbitrary file names. For details, see the online manual.

7.1.2 Maintaining a replication management list

This chapter describes maintenance of a replication management list.

7.1.2.1 Backing up a replication management list To back up a replication management list, back up the repository of the storage management server. For information about backing up a repository, see chapter 8.1.3.1 in "Solaris OE Softek AdvancedCopy Manager Operator's Guide", chapter 9.1.3.1 in "Windows Softek AdvancedCopy Manager Operator's Guide" or chapter 8.1.3.1 in "Linux Softek AdvancedCopy Manager Operator's Guide".

· Operation information for replication management is saved in a repository. · It is recommended that a replication management list be backed up when operation information for replication

management is changed with the replication volume information setting command (swsrpsetvol) or the replication volume information deletion command (swsrpdelvol).

7.1.2.2 Restoring a replication management list

Take the following steps to restore a replication management list.

Restore the repository on the storage management server. For information about restoring a repository, see chapter 8.1.3.3 in "Solaris OE Softek AdvancedCopy Manager Operator's Guide", chapter 9.1.3.3 in "Windows Softek AdvancedCopy Manager Operator's Guide" or chapter 8.1.3.3 in "Linux Softek AdvancedCopy Manager Operator's Guide".

On the storage server, execute the resource adjustment command (swsrprecoverres) with the r option specified. For details of the resource adjustment command, see chapter 8.3.3.1, "Resource adjustment command."

· When the procedure above is performed, operation information for replication management of a repository is

copied to a storage server, where it is available for use. · When the operation information for replication management in the repository does not need to be changed and

only the operation information for replication management on the storage server is incorrect for some reason, perform the procedure above.

7.1.2.3 Preserving the volume configuration infomation

When the original volume or replica volume is a volume group, the volume configuration information file "/etc/lvmconf/volume-group-name.conf" is needed to restore the volume configuration information in the script of postprocessing.

In order to prepare for the system crash, be sure to maintain the above-mentioned file to another medium at the time of creating the volume group.

Usually, a volume configuration information file "/etc/lvmconf/volume-group-name.conf" is automatically created at the time of vgcreate (1M) execution. Moreover, if vgcfgbackup (1M) is used, backup of volume configuration information can be created by arbitrary file names. For details, see the online manual.

7.1.3 Maintaining a database

For information about maintaining a database used by a storage management server, see chapter 8.1.3 in "Solaris OE Softek AdvancedCopy Manager Operator's Guide", chapter 9.1.3 in "Windows Softek AdvancedCopy Manager Operator's Guide" or chapter 8.1.3 in "Linux Softek AdvancedCopy Manager Operator's Guide".

7.1.4 Maintaining authentication management list

For information about maintaining an authentication management, see chapter 8.1.4 in "Solaris Softek AdvancedCopy Manager Operator's Guide",chapter 9.1.4 in "Windows Softek AdvancedCopy Manager Operator's Guide" or chapter

70

Page 74: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

8.1.4 in "Linux Softek AdvancedCopy Manager Operator's Guide".

7.1.5 Maintaining a registry

This chapter describes maintaining a registry. Perform this procedure on a storage management server or a storage server.

7.1.5.1 Backing up a registry

Back up the following file by executing the cp command. a. File names

In the case of a non-cluster /etc/opt/swstorage/swnode.ini

In the case of a cluster /etc/opt/swstorage/Logic node name/swnode.ini

b. Execution example Save it in the /backup directory. # cp /etc/opt/swstorage/swnode.ini /backup

7.1.5.2 Restoring a registry

Restore the following file by executing the cp command: a. File names

In the case of a non-cluster /etc/opt/swstorage/swnode.ini

In the case of a cluster /etc/opt/swstorage/Logic node name/swnode.ini

b. Execution example Restore the following file saved in the /backup directory: # cp /backup/swnode.ini /etc/opt/swstorage

7.2 Troubleshooting

7.2.1 Troubleshooting for insufficient free space in a repository

For information about what to do if there is insufficient free space in a repository used by a storage management server, see chapter 8.2.1 in "Solaris OE Softek AdvancedCopy Manager Operator's Guide",chapter 9.2.1 in "Windows Softek AdvancedCopy Manager Operator's Guide" or chapter 8.2.1 in "Linux Softek AdvancedCopy Manager Operator's Guide".

7.2.2 Collecting maintenance information

7.2.2.1 Collecting information using a Web window

Collect information as follows: 1. Start the Java Plug-in control panel.

Start the Java Plug-in control panel as follows: Select [Settings] - [Control Panel] - [Java Plug-in].

2. Make the startup settings of the Java console. On the Java control panel, access the [Basics] tag, mark the [Display Java Console] check box, click the [Apply] button, and exit the Java Plug-in control panel.

3. Start the Web window of Softek AdvancedCopy Manager. 4. The Java console will be started and a message will be output. Save the message to a file, and attach the file

to your report.

7.2.2.2 Collecting error survey information

Log into the storage management server and the storage server. Collect the following information. 1. When an error occurs during backup management

Type Storage management server Storage server

Event log Must be collected. Must be collected.

71

Page 75: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Trace log

Acquire the files under the following directory:

/var/opt/FJSVswtrc/trc/

/var/opt/FJSVswstf/

Acquire the files under the following directory:

/var/opt/FJSVswtrc/trc/

Backup management list Need not be collected.

Acquire the files under the following directory:

/etc/opt/FJSVswsts (Note) Note: When cluster operation is performed, the backup management data set is located on the shared disk, where a symbolic link is set. Therefore, when collecting the information, also collect the data on the shared disk as follows. # cd /etc/opt

# tar -cvfh /tmp/FJSVswsts_node1.tar FJSVswsts 2. When an error occurs during replication management

Type Storage management server Storage server

System log Must be acquired. Must be acquired.

Trace log

Get the files under the following directory:

/var/opt/FJSVswtrc/trc/

/var/opt/FJSVswstf/

Get the files under the following directory:

/var/opt/FJSVswtrc/trc/

Replication management list Replication management list

Get the files under the following directory:

/etc/opt/FJSVswsrp (Note) Note: When cluster operation is performed, the replication management data set is located on the shared disk, where a symbolic link is set. Therefore, when collecting the information, also collect the data on the shared disk as follows. # cd /etc/opt

# tar -cvfh /tmp/FJSVswsrp_node1.tar FJSVswsrp

7.2.3 Troubleshooting for a failure in access to a repository database

For information about finding a cause for a failure in access to a repository database and what to do in such a case, see chapter 8.2.3 in "Solaris OE Softek AdvancedCopy Manager Operator's Guide",chapter 9.2.3 in "Windows Softek AdvancedCopy Manager Operator's Guide" or chapter 8.2.3 in "Linux Softek AdvancedCopy Manager Operator's Guide".

7.3 Troubleshooting for a hardware error, etc. occurring during backup

This chapter describes what to do for a hardware error, etc. occurring during a backup using Softek AdvancedCopy Manager.

7.3.1 Overview

If a hardware error occurs during backup operation, the following symptoms are generated: · The backup execution status display command (swstbackstat) displays "failed" in the Status column. · The synchronous backup operation status display command (swstsyncstat) displays "failed" in the Status

column. · The restoration execution status display command (swstreststat) displays "failed" in the Status column. · The history information display command (swsthistdisp) displays "failed" in the Status column. · Code swst0634, swst0719, or swst0902 is displayed during command execution. If the execution status display command and history information display command display "failed" in the Status column, a hardware error has occurred during physical copying, and the copy processing has failed.

If swst0634, swst0719, or swst0902 is output during command execution and the same error occurs even if the command is reexecuted, a hardware error has occurred, causing AdvancedCopy to fail.

If a hardware error occurs during remote copying, the following symptoms may be generated:

72

Page 76: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

· The backup execution status display command (swstbackstat) displays "halt" in the Status column. · The synchronous backup operation status display command (swstsyncstat) displays "halt" in the Status

column. · The restoration execution status display command (swstreststat) displays "halt" in the Status column. · The history information display command (swsthistdisp) displays "halt" in the Status column. If the execution status display command and history information display command display "halt" in the Status column, a hardware error has occurred during physical copying, and the remote copy processing has failed.

If these symptoms are generated, a hardware error may have occurred in the transaction volume or backup volume. Check the hardware status, and if a hardware error is found, remove the cause of the error, and reexecute the processing.

7.3.2 Troubleshooting

7.3.2.1 Troubleshooting for a hardware error, etc. on a transaction volume

When a hardware obstacle occurs in operating volume, please perform the repair work of an obstacle according to the following procedures. 1. If an error occurred during physical copying, cancel the the processing in which the error occurred. - If an error occurred during backup (OPC) physical copy: swsthistdel command - If an error occurred during synchronous processing (EC): swstcancelsync command - If an error occurred during restore (OPC) physical copy: swstcancelrest command 2. Execute the execution status display commands (swstbackstat,swstsyncstat,swstreststat), and history

information display command (swsthistdisp) to verify that no other errors are found. 3. Remove the hardware error of the transaction volume. 4. Execute the restoration execution command (swstrestore) to restore the transaction volume.

7.3.2.2 Troubleshooting for a hardware error, etc. on a backup volume

When a hardware obstacle occurs in backup volume, please perform repair work, such as an obstacle, according to the following procedures. 1. Cancel the processing in which the error occurred. - If an error occurred during backup (OPC) physical copy: swsthistdel command - If an error occurred during synchronous processing (EC): swstcancelsync command - If an error occurred during restoration (OPC) physical copy: swstcancelrest command 2. If the processing cannot be canceled by using the command, use GRmgr to cancel it. 3. Execute resource match command (swstsrsemtch) 4. Cancel the processing in which the error occurred. At this point, the execution status display commands

(swstbackstat, swstreststat) and history information display command (swsthistdisp) display "succeeded" in the Status column. However, because the copy processing is suspended, be sure to cancel the commands. If an error occurred in the synchronous processing (EC), the command has already been canceled, so no response is required.

- If an error occurred during backup (OPC) physical copy: swsthistdel command - If an error occurred during restoration (OPC) physical copy: swstcancelrest command 5. Execute the execution status display commands (swstbackstat,swstsyncstat,swstreststat) and history

information display command (swsthistdisp) to verify that no other errors are found. 6. Use the device information setting command (swstdevinfoset) to delete the backup volume in which the error

occurred. 7. Use the device information setting command (swstdevinfoset) to register a new backup volume. If the backup

volume in which the error occurred is repaired and reused, execute [Collect or reflect the information for a specific device] from the initial window and store the information again in the backup volume.

8. Reexecute the processing in which the error occurred.

7.3.2.3 Troubleshooting for an error (halt) on a remote copy processing

1. Remove the hardware error. 2. The suspended copy processing is reexecuted.

7.4 Troubleshooting for a Hardware Error or Other Error Occurring during Replication

This chapter describes the corrective action for hardware or other error occurring during Softek AdvancedCopy Manager replication.

73

Page 77: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

7.4.1 Overview

If a hardware error occurs during replication operation, the following symptoms are generated: · The operation status display command (swsrpstat) displays "failed" or "?????"in the Status column. · Code swsrp2606 is output during command execution. · Code swsrp0634k swsrp0719, or swsrp0902 is output during command execution. If the operation status display command displays "failed" in the Status column, and swsrp2606 is output during command execution, a hardware error has occurred during physical copying, and the copy processing has failed.

If swsrp0634, swsrp0719, or swsrp0902 is output during command execution, and the same error occurs even if the command is reexecuted, a hardware error has occurred, causing AdvancedCopy to fail.

If a hardware error occurs during remote copying, the following symptoms may be generated: · The operation status display command (swsrpstat) displays "halt" in the Status column. · Code swsrp2648 is output during command execution. If the operation status display command displays "halt" in the Status column, and swsrp2648 is output during command execution, a hardware error has occurred during physical copying, and the remote copy processing has failed.

If these symptoms are generated, a hardware error may have occurred in the original or replica volume. Check the hardware status, and if a hardware error is found, remove the cause of the error and reexecute the command.

7.4.2 Troubleshooting

7.4.2.1 Troubleshooting for a hardware error on a replication volume

When a hardware obstacle occurs in duplicate volume, please perform the repair work of an obstacle according to the following procedures. 1. Use the operation cancel command (swsrpcancel) to cancel the processing in which the error occurred. If the

processing cannot be canceled from the operator server when interserver replication is performed, cancel it from a nonoperator server.

2. If the processing cannot be canceled by using the command, use GRmgr to cancel it. 3. Execute the resource adjustment command (swsrprecoverres) 4. Execute the operation status display command (swsrpstat) to verify that no other errors are found. 5. Use the replication volume information deletion command (swsrpdelvol) to delete the replication volume in

which the error occurred. 6. Use the replication volume information setting command (swsrpsetvol) to register a new replication volume. If

the replication volume in which the error occurred is repaired and reused, execute [Collect or reflect the information for a specific device] from the initial window and store the information again in the replication volume.

7. Reexecute the processing in which the error occurred.

7.4.2.2 Troubleshooting for an error (halt) on a remote copy processing

1. Remove the hardware error. 2. The suspended copy processing is reexecuted.

7.5 Changing the Operating Environment

7.5.1 Changing the IP address of a storage management server

For information about changing the IP address of a storage management server, see chapter 8.5.1 in "Solaris OE Softek AdvancedCopy Manager Operator's Guide",chapter 9.5.1 in "Windows Softek AdvancedCopy Manager Operator's Guide" or chapter 8.5.1 in "Linux Softek AdvancedCopy Manager Operator's Guide".

7.5.2 Changing the IP address of a storage server

Change the IP address of a storage server as follows:

For more information on the Web window, see chapter 1.2.6.1, "Changing the IP address of a storage server" of the "Windows, Solaris OE or Linux version Softek AdvancedCopy Manager User's Guide". 1. When you define by the Storage server used as the candidate for change as a replication source or replication

destination volume using a replication management function, please delete a setup of an original / replica volume with reference to Chapter 6.6.2 "Deleting an original volume or replica volume" in the Softek AdvancedCopy Manager Operator's Guide.

2. On a target storage server, stop daemons of Softek AdvancedCopy Manager. For more information on stopping a service, see Chapter 2, "Starting and Stopping a Daemons".

74

Page 78: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

3. On the storage server, change the system IP address. 4. On the storage server, start daemons of Softek AdvancedCopy Manager. For more information on starting a

service, see Chaper 2, "Starting and Stopping a Daemons". Later, follow steps 5 and 6 if the address is changed by using the Web screen, and follow step 7 if the address is changed by using a command.

5. On the server list view on the initial window of Softek AdvancedCopy Manager, select a server with information to be changed, select [Change of server] from the [Operation] menu, and display the [Change of server] window.

6. On the [Change of server] window, change the IP address and click the [OK] button. 7. Refer to the operator's guide to OS of a Storage management server for the details of a server information

change command.

About change by cluster operation, see "Changing the IP address of a storage server transaction," in the "Softek AdvancedCopy Manager Operator's Guide for cluster environment" corresponding to the cluster system.

7.5.3 Changing the port number of a storage management server

For information about changing the port number of a storage management server, see chapter 8.5.3 in "Solaris OE Softek AdvancedCopy Manager Operator's Guide", chapter 9.5.3 in "Windows Softek AdvancedCopy Manager Operator's Guide" or chapter 8.5.3 in "Linux Softek AdvancedCopy Manager Operator's Guide".

7.5.4 Changing the port number of a storage server

Change the port number of a storage server as follows:

For more information on the Web window, see chapter 1.2.6.2, "Changing the port number of a storage server" of the "Windows, Solaris OE or Linux version Softek AdvancedCopy Manager User's Guide". 1. When you define by the Storage server used as the candidate for change as a replication source or replication

destination volume using a replication management function, please delete a setup of an original / replica volume with reference to Chapter 6.6.2 "Deleting an original volume or replica volume" in the Softek AdvancedCopy Manager Operator's Guide.

2. On a target storage server, stop services of Softek AdvancedCopy Manager. For more information on stopping a deamon, see Chapter 2, "Starting and Stopping a Daemons".

3. On the storage server, change the port number of the communications daemon (stgxfws) of Softek AdvancedCopy Manager. When the storage server is being operated on the cluster, change the port number of the communication daemon (stgxfws_logic node name) of Storage server transaction.

4. On the storage server, start daemons of Softek AdvancedCopy Manager. For more information on starting a daemon, see Chapter 2, "Starting and Stopping a Daemons". Later, follow steps 5 and 6 if the address is changed by using the Web screen, and follow step 7 if the address is changed by using the command.

5. On the server list view on the initial window of Softek AdvancedCopy Manager, select a server with information to be changed, select [Change of server] from the [Operation] menu, and display the [Change of server] window.

6. On the [Change of server] window, change the port number and click the [OK] button. 7. Refer to the operator's guide to OS of a Storage management server for the details of a server information

change command.

About change by cluster operation, see "Changing the port number of a storage server transaction," in the "Softek AdvancedCopy Manager Operator's Guide for cluster environment" corresponding to the cluster system.

7.5.5 Changing the server name of a storage management server

For information about changing the server name of a storage management server, see chapter 8.5.5 in "Solaris OE Softek AdvancedCopy Manager Operator's Guide",chapter 9.5.5 in "Windows Softek AdvancedCopy Manager Operator's Guide" or chapter 8.5.5 in "Linux Softek AdvancedCopy Manager Operator's Guide".

7.5.6 Changing the server name of a storage server

Change the server name of a storage server as follows:

For more information on the Web window, see chapter 1.2.6.4, "Changing the server name of a storage server" of the

75

Page 79: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

"Windows,Solaris OE or Linux version Softek AdvancedCopy Manager User's Guide". 1. Delete a storage server environment. For information on the deletion method, see chapter 4.6.4, "Deleting a

storage server ". Later, follow steps 2 and 3 if the address is changed by using the Web screen, and follow step 4 if the address is changed by using the command.

2. On the server list view on the initial window of Softek AdvancedCopy Manager, select a server with information to be changed, select [Change of server] from the [Operation] menu, and display the [Change of server] window.

3. On the [Change of server] window, change the server name and click the [OK] button. 4. Refer to the operator's guide to OS of a Storage management server for the details of a server information

change command.

About change by cluster operation, see "Changing the server name of a storage server transaction," in the "Softek AdvancedCopy Manager Operator's Guide for cluster environment" corresponding to the cluster system.

7.5.7 Changing the device configuration

Changing the device configuration refers to any of the following: · Mount name change · Change from File System operation to RawDevice operation · Capacity change of partitions (mainly for re-creation of LUN mapping) · Start position for change of partitions (mainly for re-creation of LUN mapping)

7.5.7.1 Backup management

Change the device configuration in the following procedure. This processing is executed for all volumes on the disk where the volume whose device configuration is to be changed is located. 1. Check whether there is a transaction volume on the target disk that needs to be backed up. If it does, delete

the transaction volume. For information on deleting a transaction volume, see chapter 4.6.2.1, "Deleting a transaction volume".

2. Check whether a backup volume exists in the target disk. If it does, delete the backup volume. For information on deleting a backup volume, see chapter 4.6.2.2, "Deleting a backup volume".

3. Because the postchange device configuration needs to be reflected in the Softek AdvancedCopy Manager data set, execute device information change processing for Softek AdvancedCopy Manager. Refer to Section 4.4.5, "Fetching device information on a storage server," for details on changing the device information.

4. Set a deleted transaction volume or backup volume again in the backup operation. Refer to Section 4.4.8, "Setting the operation type for a device," for details on adding the transaction volume or backup volume.

7.5.7.2 Replication management

Change the device configuration as shown below. When executed, this processing applies to all the volumes on a disk on which a volume whose device configuration to be changed is stored. 1. Check whether there are any replication volumes on the target disk. If there are, delete them. For information

about deleting a replication volume, see chapter 6.6.2, "Deleting an original volume or replica volume." 2. Because the postchange device configuration needs to be reflected in the Softek AdvancedCopy Manager

data set, execute device information change processing for Softek AdvancedCopy Manager. Refer to Section 6.4.4, "Fetching device information from a storage server," for details on changing the device information.

3. Set a deleted replica volume again in the replication operation. Refer to Section 6.4.5, "Setting the original volume and replica volume," for details on adding the replica volume.

7.5.8 Changing the IP address for GUI connection of a Storage management server

For information about changing the server name of a storage management server, see chapter 8.5.8 Changing the IP address for GUI connection of a Storage management server in "Solaris OE Softek AdvancedCopy Manager Operator's Guide",chapter 9.5.8 Changing the IP address for GUI connection of a Storage management server in "Windows Softek AdvancedCopy Manager Operator's Guide" or chapter 8.5.8 Changing the IP address for GUI connection of a Storage management server in "Linux Softek AdvancedCopy Manager Operator's Guide".

7.5.9 Change of deletion/password of the user who specified it as the repository access user

For information about Change of deletion/password of the user who specified it as the repository access user, see chapter 8.5.9 in "Solaris OE Softek AdvancedCopy Manager Operator's Guide", chapter 9.5.9 in "Windows Softek

76

Page 80: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

AdvancedCopy Manager Operator's Guide" or chapter 8.5.9 in "Linux Softek AdvancedCopy Manager Operator's Guide".

7.5.10 About change of the employment environment in cluster employment

Please refer to each item of the "Operator's Guide for cluster environment" corresponding to the cluster system about change of the following environment on cluster operation. · Changing the IP address of a storage server transaction · Changing the port number of a storage server transaction · Changing the server name of a storage server transaction · Changing the logic node name · Changing the server name · Changing the shared disk for AdvancedCopy Manager share data

77

Page 81: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

78

Page 82: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Chapter 8 Commands

This chapter describes using commands.

Only a root user can execute all the commands of backup operation. When a command is executed by other users, the message of "swst0601 This Command cannot be run. This is because the user is not a root user." is outputted and it ends in an error.

In cluster operation, some commands need an environment variable (SWSTGNODE) and the node that can execute a command is also decided. About executing a command on cluster operation, see "Commands," in the "Softek AdvancedCopy Manager Operator's Guide for cluster environment" corresponding to the cluster system.

8.1 Backup Management Commands

This chapter describes operations using backup management commands. It is necessary to execute the command of backup management by the root user.

Only a root user can execute all the commands of backup management. When command execution is carried out by other users, a message " swst0601 This Command cannot be run. This is because the user is not a root user." is outputted and then, an error end.

8.1.1 Environment definition commands

This chapter describes environment definition commands for backup management.

To define a backup management environment, use the following commands:

Function Command name Description

Storage server configuration information setting command swstsvrset Sets the configuration information of a storage

server.

Storage server configuration information display command swstsvrdisp Displays the configuration information of a

storage server.

Device information setting command swstdevinfoset Sets the use of a device.

Device usage status display command swstdevdisp Displays the information of a device.

Backup policy setting command swstbkpolset Sets a backup policy.

Backup policy display command swstbkpoldisp Displays a backup policy that has been set.

Backup policy deletion command swstbkpoldel Deletes a backup policy that has been set

8.1.1.1 Storage server configuration information setting command (swstsvrset)

This command sets configuration information of a storage server. Execute this command to declare that this storage server is subject to the backup operation. a. Specification

[To be executed on a storage server] # /opt/FJSVswsts/bin/swstsvrset [To be executed on a storage management server] # /opt/FJSVswsts/bin/swstsvrset [-h Server]

b. Description of options

79

Page 83: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Option Description

-h

Specifies the name of a storage server to be subject to the backup operation. This option is valid only on a storage management server.

If this option is omitted, the storage server on which the command is entered will be subject to the processing.

c. End status = 0: Normal end > 0: Abnormal end

d. Execution example Set configuration information of a storage server. # /opt/FJSVswsts/bin/swstsvrset swstsvrset completed #

Set configuration information of a storage server (job1) from a storage management server. # /opt/FJSVswsts/bin/swstsvrset -h job1

swstsvrset completed

#

This command can be executed only while none of the following commands are running.

· Storage server configuration information setting command(swstsvrset) · Backup policy setting command (swstbkpolset) · Backup policy deletion command (swstbkpoldel) · Backup execution command (swstbackup) · Restore execution command (swstrestore) · Restore cancellation command (swstcancelrest) · Backup synchronous processing start command (swststartsync) · Backup synchronous processing cancel command (swstcancelsync) · Device information setting command (swstdevinfoset) · History information deletion command (swsthistdel) · Resource backup command (swstresback) · Resource restore command (swstresrst) · Resource match command (swstsrsemtch)

8.1.1.2 Storage server configuration information display command (swstsvrdisp)

This command displays configuration information of a storage server, which has been set using the storage server configuration information setting command. a. Specification

[To be executed on a storage server]

# /opt/FJSVswsts/bin/swstsvrdisp

[To be executed on a storage management server]

# /opt/FJSVswsts/bin/swstsvrdisp [-h Server] b. Description of options

Option Description

-h Specifies a storage server name.

This option is valid only on a storage management server. c. End status

= 0: Normal end > 0: Abnormal end

80

Page 84: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

d. Execution example Display configuration information of a storage server (Work1). # /opt/FJSVswsts/bin/swstsvrdisp Storage-Server = Work1 #

The following information will be displayed. Title Description

Storage-Server Displays a storage server name.

8.1.1.3 Device information setting command (swstdevinfoset)

Set a volume that has been allocated to the disk array unit GR series, as a transaction or backup volume.

A transaction volume refers to a volume that stores work data to be backed up.

A backup volume refers to a volume used to store a backup of this transaction data.

When backup/restore is operated in cooperation with the SP series, it is necessary to do the registration setting as a transaction volume by which the SP series is operated.

a. Specification method [To be executed on a storage server] # /opt/FJSVswsts/bin/swstdevinfoset -t [-f] | -b | -o Device-Name [To be executed on a storage management server] # /opt/FJSVswsts/bin/swstdevinfoset [-h Server] -t [-f] | -b | -o Device-Name

b. Description of options Option Description

-h Specifies a storage server name.

This option is valid only on a storage management server.

-t Register the specified device as a transaction volume.

Cannot be specified at the same time as the -b and -o options.

-f

Register the specified device as a transaction volume for operation with SP-series devices.

Specify this option together with the -t option.

Cannot be specified at the same time as the -b and -o options.

-b Register the specified device as a backup volume.

Cannot be specified at the same time as the -t and -o options.

-o Deregister the specified device if it has been registered as a work or backup volume.

Cannot be specified at the same time as the -t and -b options. c. Description of operand

Operand Description

Device-Name Specify a device name.

Specify the name of a block device. d. End status

= 0: Normal end > 0: Abnormal end

e. Execution example Register a device (/dev/dsk/c1t0d0) as a transaction volume. # /opt/FJSVswsts/bin/swstdevinfoset -t /dev/dsk/c1t0d0 swstdevinfoset completed

81

Page 85: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

# Register a device (/dev/dsk/c1t0d2) as a backup volume. # /opt/FJSVswsts/bin/swstdevinfoset -b /dev/dsk/c1t0d2

swstdevinfoset completed

# Register a device (/dev/dsk/c1t1d0) as a transaction volume for operation with SP-series devices. # /opt/FJSVswsts/bin/swstdevinfoset -t -f /dev/dsk/c1t1d0

swstdevinfoset completed

# Deregister a device (/dev/dsk/c1t0d0) that has been registered as a transaction volume. # /opt/FJSVswsts/bin/swstdevinfoset -o /dev/dsk/c1t0d0

swstdevinfoset completed

#

No device can be registered as a transaction volume if:

· Another device with the same logical volume information has already been registered as a transaction volume.

· The space of the device to be registered overlaps the space of an already registered work or backup volume.

· An attempt is made to specify a GR-series device in which no SP-series device is installed as a transaction volume for operation with SP-series devices.

No device can be registered as a backup volume if:

· Another device with the same logical volume information has already been registered as a backup volume.

· The space of the device to be registered overlaps the space of an already registered transaction or backup volume.

· The device to be set up is already mounted. However, when setting a volume group as backup volume, the check of whether the logical volume in a volume group is mounted is not carried out. In case you set a volume group as backup volume, make logical volume unmount beforehand.

· When the device which it is going to set up is registered as a replication destination volume of replication management.

· When the device which it is going to set up is registered as replication source volume of the duplicate volume information in which the bidirectional copy of replication management is possible.

The following is note for using a volume group as transaction volume:

· Do not register two or more physical disks into one volume group. · Create a logical disk so that it does not consist of two or more physical disks. · The volume group which is not active cannot be set as transaction volume.

The following is note for using a volume group as backup volume:

· Do not register two or more physical disks into one volume group. · Create a logical disk so that it does not consist of two or more physical disks. · It is necessary to be the same physical size as transaction volume. In addition, if in the case of

a volume group, it is necessary to also make it into the logical disk whose volume group is different from the transaction volume and is of the same composition as the transaction volume.

82

Page 86: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

· The volume group which is not active cannot be set as backup volume.

You must delete related backup history information before:

· Changing a backup volume to a transaction volume · Canceling the setting of a backup volume

You must delete a backup policy specified on a transaction volume before:

· Changing a transaction volume to a backup volume · Canceling the setting of a transaction volume · Changing the transaction volume to a transaction volume subject to the SP operation

In order to make a configuration change of transaction volume or backup volume, delete a setting of transaction volume or backup volume, and re-register.

The following changes are possible only after the backup policies managed with SP-series devices are deleted:

· Change of a business volume for operation with SP-series devices into a transaction volume for any operation other than for operation with SP-series devices

· Change of a transaction volume for operation with SP-series devices into a backup volume · Cancellation of settings of a transaction volume for operation with SP-series devices

This command can be executed only while none of the following commands are running.

· Storage server configuration information setting command (swstsvrset) · Device information setting command(swstdevinfoset) · Backup policy setting command (swstbkpolset) · Backup policy deletion command (swstbkpoldel) · Backup execution command (swstbackup) · Restore execution command (swstrestore) · Restore cancellation command (swstcancelrest) · Backup synchronous processing start command (swststartsync) · Backup synchronous processing cancel command (swstcancelsync) · History information deletion command (swsthistdel) · Resource match command (swstsrsemtch) · Resource backup command (swstresback) · Resource restore command (swstresrst)

8.1.1.4 Device usage status display command (swstdevdisp)

This command displays information of a transaction or backup volume or any other definable device, which has been set using the device information setting command (swstdevinfoset). a. Specification method

[To be executed on a storage server]

# /opt/FJSVswsts/bin/swstdevdisp [-h Storage-Server] [-t] [-b] [-o] [Device-Name]

[To be executed on a storage management server]

83

Page 87: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

# /opt/FJSVswsts/bin/swstdevdisp [-h Server] [-t] [-b] [-o] [Device-Name] b. Description of options

Option Description

-h Specifies a storage server name.

This option can be specified only on a storage management server.

-t Displays information on a device that has been set as a transaction volume.

Displays device information on all the transaction volumes if the device name in an operand is omitted.

-b Displays a device that has been set as a backup volume.

Displays device information on all the backup volumes if the device name in an operand is omitted.

-o Displays all the devices other than those set as a work or backup volume.

Displays all the devices other than those set as a transaction or backup volume if the device name in an operand is omitted.

Information on a device that has been set as a transaction volume will be displayed if all of the t, b, and o options are omitted.

c. Description of operand Operand Description

Device-Name

Specify a device name.

Specify the name of a block device.

Displays device information on all the transaction volumes if this operand as well as the options are omitted.

d. End status = 0: Normal end > 0: Abnormal end

e. Execution example Display the usage statuses of the registered devices. # /opt/FJSVswsts/bin/swstdevdisp -tb

Server Device Size Device-Mode Mount-Point (Method) Backup-Engine

Work 2 /dev/dsk/c1t0d0 1.0 Gbyte Transaction /mnt/tran1 (vxfs) AdvancedCopy

Work 2 /dev/vg01 2.0 Gbyte Transaction /---- (----) SP

Work 2 /dev/dsk/c1t0d2 1.0 Gbyte Backup (used) ---- (----) AdvancedCopy

Work 2 /dev/dsk/c1t0d3 1.0 Gbyte Backup (free) ---- (----) AdvancedCopy

Work 2 /dev/vg02 2.0 Gbyte Backup (free) ---- (----) AdvancedCopy

Work 2 /dev/dsk/c1t0d7 1.0 Gbyte Backup (free) ---- (----) AdvancedCopy

:

#

The following information will be displayed. Title Description

Server Displays a storage server name.

Device Displays a AdvancedCopy Manager device name.

Size Displays the size of a partition allocated to a device.

Also in case a volume group, displays the physical disk size from which a logic disk is constituted.

Device-Mode Displays a character string by which a device can be identified. · "Transaction": Represents a transaction volume.

84

Page 88: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

· "Backup": Represents a backup volume. · "Other": Represents a device that can be registered as a

work or backup volume. A backup volume is indicated as "Backup (used)" if it is being used or "Backup (free)" if it is not used.

Mount-Point (Method)

Displays the mount point of a device. The file system type of the mount point is displayed inside the parentheses.

Backup-Engine

Displays the operation type. · "AdvancedCopy": Backup operation using Softek

AdvancedCopy Manager · "SP": Backup operation with an SP-series device

8.1.1.5 Backup policy setting command (swstbkpolset)

This command sets a backup policy (numbers of preservation generations and interval days).

The number of preservation generations means how many generations of backup data should be kept.

The number of interval days means the number of days after execution of backup in which the next backup should be performed.

Even if the number of interval days is specified, Softek AdvancedCopy Manager does not automatically collect backup.

Setting a backup policy cannot be used for the transaction volume by which the SP series is operated.

When you specify a backup policy, there must be as many backup volumes required operating according to the specified backup policy. To view information on the number of backup volumes required to perform the backup operation, see chapter 4.2.4, "Preparing a backup volume".

a. Specification method [To be executed on a storage server] # /opt/FJSVswsts/bin/swstbkpolset [-i Interval-Days] [-s Save-Number][Device-Name] [To be executed on a storage management server] # /opt/FJSVswsts/bin/swstbkpolset [-h Server][-i Interval-Days] [-s Save-Number][Device-Name]

b. Description of options Option Description

-h Specifies a storage server name.

This option can be specified only on a storage management server.

-i Specifies the number of interval days. You can specify a value between 1 and 366. If this option is omitted during initial registration, 30 will be set. If this option is omitted during update, the existing value will be inherited.

-s Specifies the number of preservation generations. You can specify a value between 1 and 31. If this option is omitted during initial registration, 2 will be set. If this option is omitted during update, the existing value will be inherited.

c. Description of operand Operand Description

Device-Name Specify a AdvancedCopy Manager device name.

85

Page 89: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

If the device name is omitted, the backup policy will be set for all the transaction volumes.

When a device name is omitted, a backup policy is set up to all operating volumes.

d. End status = 0: Normal end > 0: Abnormal end

e. Execution example To set 3 as the save number of a transaction volume(/dev/dsk/c1t0d0) as a backup policy: # /opt/FJSVswsts/bin/swstbkpolset -s 3 /dev/dsk/c1t0d0 /dev/dsk/c1t0d0 swstbkpolset completed #

If this command without a transaction volume name is executed, backup policies are set for all transaction volumes excluding those targeted for operation with SP-series devices.

Change of the number of preservation generations can be performed if there "there is little history information in the time" than "the number of preservation generations to set up."

No backup policy can be set if:

· There are not as many backup volumes as the specified number of preservation generations. · Registration is attempted by specifying a transaction volume for operation with SP-series

devices. · An option for more number of preservation generations than can be specified is specified. · An option for more interval days than can be specified is specified.

This command can be executed only while none of the following commands is executed.

· Resource match command (swstsrsemtch) · Device information setting command (swstdevinfoset) · Storage server configuration information setting command (swstsvrset) · Resource backup command (swstresback) · Resource restore command (swstresrst)

8.1.1.6 Backup policy display command (swstbkpoldisp)

This command displays a backup policy that has been set for a transaction volume.

This command cannot be used for the transaction volume by which the SP series is operated.

a. Specification method [To be executed on a storage server]

# /opt/FJSVswsts/bin/swstbkpoldisp [Device-Name]

[To be executed on a storage management server]

86

Page 90: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

# /opt/FJSVswsts/bin/swstbkpoldisp [-h Server] [Device-Name] b. Description of options

Option Description

-h Specifies a storage server name.

This option can be specified only on a storage management server. c. Description of operand

Operand Description

Device-Name

Specify a AdvancedCopy Manager device name.

Specify the name of a block device.

If the device name is omitted, a backup policy for a transaction volume with a registered backup policy will be displayed.

d. End status = 0: Normal end > 0: Abnormal end

e. Execution example To display the backup policies of a transaction volume(/dev/dsk/c1t0d0): # /opt/FJSVswsts/bin/swstbkpoldisp /dev/dsk/c1t0d0 Server Device Interval-Days Save-Number Mount-Point (Method) Transaction2 /dev/dsk/c1t0d0 30 3 /mnt/tran1 (vxfs) #

The following information will be displayed. Title Description

Server Displays a storage server name.

Device Displays a device name.

Interval-Days Displays a number of interval days.

Save-Number Displays a number of preservation generations.

Mount-Point (Method)

Displays the mount point of a device. The file system type of the mount point will be displayed inside the parentheses.

8.1.1.7 Backup policy deletion command (swstbkpoldel)

This command deletes a backup policy that has been set.

If the transaction volume to be deleted has backup history information, delete the backup history information and then execute this command.

This command cannot be used for the transaction volume by which the SP series is operated.

a. Specification method [To be executed on a storage server] # /opt/FJSVswsts/bin/swstbkpoldel Device-Name [To be executed on a storage management server] # /opt/FJSVswsts/bin/swstbkpoldel [-h Server] Device-Name

b. Description of options Option Description

-h Specifies a storage server name.

This option can be specified only on a storage management server. c. Description of operand

Operand Description

Device-Name Specify a AdvancedCopy Manager device name.

87

Page 91: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Specify the name of a block device. d. End status

= 0: Normal end > 0: Abnormal end

e. Execution example To delete the backup policies of a transaction volume (/dev/dsk/c1t0d0): # /opt/FJSVswsts/bin/swstbkpoldel /dev/dsk/c1t0d0 /dev/dsk/c1t0d0 swstbkpoldel completed #

No backup policy can be deleted if:

· The transaction volume to be deleted has backup history information. · A transaction volume whose backup policies are to be deleted has already started backup

synchronous processing.

This command can be executed only while none of the following commands are running.

· Storage server configuration information setting command (swstsvrset) · Device information setting command (swstdevinfoset) · Resource match command (swstsrsemtch) · Resource backup command (swstresback) · Resource restore command (swstresrst)

8.1.2 Operation commands

This chapter describes operation commands for backup management.

To operate backup management, use the following commands:

Function Command name Description

Backup execution command swstbackup Performs the synchronous high-speed backup or snapshot-type high-speed backup operation.

Backup execution status display command swstbackstat Displays the backup progress status.

Restore execution command swstrestore Performs restoration.

Restore cancellation command swstcancelrest Cancels the execution of restoration.

Restore execution status display command swstreststat Displays the execution status of restoration.

History information display command swsthistdisp Displays the history information that has been

backed up.

History information deletion command swsthistdel Deletes the history information that has been

backed up.

Backup synchronous processing start command swststartsync Starts backup synchronous processing.

Backup synchronous processing cancel command swstcancelsync Aborts backup synchronous processing.

Backup synchronous processing progress display command

swstsyncstat Displays the progress of the backup synchronous processing.

Execution status display command swstexecstat Displays the execution status of a command

executed on a transaction volume.

88

Page 92: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

8.1.2.1 Backup execution command (swstbackup)

As for this command, operation changes with states of the advanced copy under execution. · When synchronous processing (EC) is not performed

Snapshot processing (OPC) is performed and performed information, such as the date and backup volume of a copy place, is registered into backup history information. Backup of such a form is called snapshot type high-speed backup.

· When synchronous processing (EC) is performed The state of synchronous processing is checked and, in the case of an equivalent nature maintenance state, backup synchronous processing is suspended. Information, such as time and backup volume of a copy place, is simultaneously registered into backup history information. Backup of such a form is called synchronous high-speed backup. (It becomes an error end when an equivalent nature maintenance state is not reached)

In both cases, it is established as backup and access of backup volume is attained from immediately after this command execution.

Softek AdvancedCopy Manager executes a backup preprocessing Shell script(OpcBackup.pre) before executing backup and then a backup post processing Shell script (OpcBackup.post) after executing backup. You can customize these Shell script. For more information, see Appendix A, "Preprocessing and Postprocessing of Backup and Restoration". a. Specification method

[To be executed on a storage server] # /opt/FJSVswsts/bin/swstbackup Device-Name [-Xdevmap Device-Map-File] [To be executed on a storage management server] # /opt/FJSVswsts/bin/swstbackup [-h Server] Device-Name [-Xdevmap Device-Map-File]

b. Description of options Option Description

-h Specifies a storage server name.

This option can be specified only on a storage management server.

-Xdevmap

Specifies a target backup volume to perform the snapshot fast backup. In the operand, specify a device map file in which a combination of a transaction volume and a target backup volume is described. If this option is not specified, the target backup volume will be automatically selected. To execute this command on a remote basis using the -h option, specify a device map file (of a storage server) using an absolute pathname. A file name specified in Device-Map-File must not include any national character.

c. Description of operand Operand Description

Device-Name Specifies a device name.

Specify the name of a block device. d. End status

= 0: Normal end > 0: Abnormal end

e. Execution example Back up a business volume # /opt/FJSVswsts/bin/swstbackup /dev/dsk/c1t0d0

/dev/dsk/c1t0d0 swstbackup completed

# Back up a business volume (/dev/dsk/c1t0d0) in operation with SP-series devices # /opt/FJSVswsts/bin/swstbackup /dev/dsk/c1t0d0

/dev/dsk/c1t0d0 swstbackup completed

#

89

Page 93: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

To guarantee data, this command performs backup after inhibiting access to transaction and backup volumes from other processes. Thus, the drive letters of devices are not assigned. This command terminates with an error if a drive letter of a transaction volume is assigned or if:

· The mount point has directories to which other volumes are to be mounted. · The volume has a file in use.

To mount a transaction volume from a server other than the server on which this command is entered, unmount the transaction volume, using the authority of the backup administrator. If the transaction volume must not be unmounted, create backup copies with the following procedure:

1. Execute the sync command to synchronize the transaction volume and file system. 2. Execute this command. 3. Execute the fsck command to check the file system.

When setting the volume group as a transaction volume, and backing up or restoring it, modify the preprocessing and postprocessing script for backup on administrator responsibility such that unmount/mount of all logical devices is carried out.

You cannot perform backup in the following cases. In these cases, do as described in [System Administrator's Response] in a message that will be output.

· No backup policy has been specified for the specified transaction volume. · Backup executed one generation earlier was unsuccessful. · A transaction volume on which OPC is in progress has been specified. · Synchronous backup processing is performed in a transaction volume to be processed, but the

state of equivalence is not reached. · The mount point set at registration of a transaction volume has been changed. · Restoration is being executed using backup history information that will cause a generation

overflow. · No unused backup volume to be used as the copying destination could be acquired. · Any of the cabinet information (cabinet identifier, OLU number, EXTENT start position, and

EXTENT size) of a transaction volume has been changed. · A backup volume defined as the copy destination is mounted. · Changing into the logic disk composition which cannot be supported by AdvancedCopy

Manager. · A volume group is in an un-active state in volume group specification.

When as follows, output place backup volume cannot be specified and backup cannot be performed. · When the backup volume specified by the device map file (or operand of the to option) cannot use it as backup

volume of the operating volume used as a pair. Namely, when either of the following conditions is not satisfied. 1. The specified backup volume is in an intact state. 2. The partition size of operating volume and backup volume is the same. · When an error is in the description about the object operating volume of a device map file (refer to chapter

4.4.12.1 "Preparing a device map file" of this manual). · When the word character of each country is contained in the device map file name.

This command can be executed only while none of the following commands are running.

· Storage server configuration information setting command (swstsvrset)

90

Page 94: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

· Device information setting command (swstdevinfoset) · Resource match command (swstsrsemtch) · Resource backup command (swstresback) · Resource restore command (swstresrst)

8.1.2.2 Backup execution status display command (swstbackstat)

This command displays the completion status of backup that is being performed using the backup execution command.

Information on the execution situation is not displayed for the business volume to operate the SP series.

Please do not use the OPC stop function of GRmgr while executing the snap shot type high speed backup. When the OPC stop function of GRmgr is used, it is displayed in this command regardless of the success or failure of an actual backup as succeeded.

a. Specification method [To be executed on a storage server] # /opt/FJSVswsts/bin/swstbackstat [Device-Name] [To be executed on a storage management server] # /opt/FJSVswsts/bin/swstbackstat [-h Server] [Device-Name]

b. Description of options Option Description

-h Specifies a storage server name.

This option can be specified only on a storage management server. c. Description of operand

Operand Description

Device-Name

Specifies a device name corresponding to a transaction volume.

Specify the name of a block device.

If this operand is omitted, the backup execution statuses of all the transaction volumes will be displayed.

d. End status = 0: Normal end > 0: Abnormal end

e. Execution example Display the actual copying execution status. # /opt/FJSVswsts/bin/swstbackstat

Server Transaction-Disk Backup-Disk Status Execute

Work 1 /dev/dsk/c1t0d0 /dev/dsk/c1t0d3 succeeded ----

Work 1 /dev/vg01 ---- ---- ----

:

# Display the execution status of transaction volumes in operation with SP-series devices. # /opt/FJSVswsts/bin/swstbackstat

Server Transaction-Disk Backup-Disk Status Execute

Work 3 /dev/dsk/c1t1d0 ---- ---- ----

Work 3 /dev/vg01 ---- ---- ----

91

Page 95: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

:

# The following information will be displayed. Keyword Description

Server Displays a storage server name.

Transaction-Disk Displays the device name of a transaction volume.

Backup-Disk Displays a backup volume name.

If no backup has been collected, "----" will be displayed.

Status

Displays a backup completion status using one of the following character strings. · "----": No backup has been collected (no history exists). · "succeeded": Backup has been completed. · "executing": Copying using OPC is in progress. · "failed": Copying using OPC has been interrupted due to an

error. · "halt": Copying using OPC has been halt status.

Execute Displays how much has been copied in percentage if "executing" is displayed in the Status field. Displays "----" unless "executing" is displayed.

You cannot perform displaying the backup processing status in the following cases

· Changing into the logic disk composition which cannot be supported by AdvancedCopy Manager.

· A volume group is in an un-active state in volume group specification.

If "failed" or "halt" is displayed in the "Status" field, a hardware error may have occurred. After removing the cause of the hardware error, delete the backup history information using the history deletion command.

8.1.2.3 Restore execution command (swstrestore)

The data which exists in backup history information is restored by using OPC.

Restoration of each individual file cannot be performed because copying between devices will be performed.

When the restore execution command is executed, Softek AdvancedCopy Manager performs the restore preprocessing Shell script(OpcRestore.pre) before copying data using OPC and then the restore postprocessing Shell script(OpcRestore.post) after copying data using OPC. You can customize these Shell script. For more information, see Appendix A, "Preprocessing and Postprocessing for Backup and Restoration".

You can restore data to any device other than a transaction volume. When you do so, the device must not be registered as a transaction volume and the device must have the same space size as the specified transaction volume.

a. Specification method [To be executed on a storage server] # /opt/FJSVswsts/bin/swstrestore [-g Generation-No | -v Version-No] [-r

92

Page 96: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Restore-Device-Name] Device-Name [To be executed on a storage management server] # /opt/FJSVswsts/bin/swstrestore [-h Server] [-g Generation-No | -v Version-No] [-r Restore-Device-Name] Device-Name

b. Description of options Option Description

-h Specifies a storage server name.

This option can be specified only on a storage management server.

-g Specifies the relative generation number of data to be restored.

Check the relative generation number using the history information display command (swsthistdisp).

-v Specifies the absolute generation number of data to be restored.

Check the absolute generation number using the history information display command (swsthistdisp).

-r Specifies a restore destination device name to restore data to any other device than a transaction volume.

Note: If neither the -g or -v option is specified, the latest information out of information under history management will be restored.

c. Description of operand Operand Description

Device-Name Specifies a device name corresponding to a transaction volume.

Specify the name of a block device. d. End status

= 0: Normal end > 0: Abnormal end

e. Execution example Restore data with relative generation number 2 (For information on the relative generation number, see data displayed using the history information display command). # /opt/FJSVswsts/bin/swstrestore -g 2 /dev/dsk/c1t0d0 /dev/dsk/c1t0d0 swstrestore completed #

Restore transaction volumes in operation with SP-series devices. # /opt/FJSVswsts/bin/swstrestore /dev/dsk/c1t0d0

/dev/dsk/c1t0d0 swstrestore completed

#

On a transaction volume on which a file system has been constructed physically, restore a specific file as follows:

1. Mount a backup volume. Check the backup volume by executing the Backup History List view/History information display command.

2. Copy the file to be restored by executing, for example, the cp command. 3. Unmount the backup volume.

In restoring a specific file in the operating volume which is having the file system of a volume group built, the following procedures perform.

1. Mount a backup volume. Check the backup volume by executing the Backup History List view/History information display command.

2. Copy the file to be restored by executing, for example, the cp command. 3. Unmount the backup volume.

93

Page 97: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

If a transaction volume is mounted from a server other than the server on which this command is entered, execute this command after unmounting the transaction volume, using the authority of the backup administrator.

You cannot perform restoration in the following cases. In these cases, do as described in [System Administrator's Response] in a message that will be output.

· Both a relative and absolute generation numbers have been specified. · A device registered as a transaction volume has been specified in a parameter in the -r option. · When a device registered as a backup volume has been specified in a parameter in the -r

option, the device has been registered in the backup registration information of a certain transaction volume. If you restore data to a backup volume without registered backup data, and the backup volume is used to back up a certain transaction volume, then data will be overwritten. You are recommended not to specify a backup volume as a restore destination device.

· You perform restoration immediately after performing backup (the actual copying using OPC is in progress). In this case, perform restoration after the actual copying using OPC is completed. Alternatively, on a transaction volume on which a file system has been constructed, perform restoration according to the method described in Points.

· A transaction volume in the process of synchronous backup processing is specified. · Any of the cabinet information (cabinet identifier, OLU number, EXTENT start position, and

EXTENT size) of a transaction volume to be restored has been changed. · The mount point set at registration of a transaction volume has been changed. · Changing into the logic disk composition which cannot be supported by AdvancedCopy

Manager. · A volume group is in an un-active state in volume group specification.

This command can be executed only while none of the following commands are running.

· Storage server configuration information setting command (swstsvrset) · Device information setting command (swstdevinfoset) · Resource match command (swstsrsemtch) · Resource backup command (swstresback) · Resource restore command (swstresrst)

8.1.2.4 Restore cancellation command (swstcancelrest)

This command cancels OPC-based restoration. If you have executed the restore execution command and while data is copied using OPC, an abnormality due to a hardware error is detected. Then, remove the cause of the hardware error and perform restoration again using the restore execution command (swstrestore).

Check whether an abnormality has occurred using the restore execution status display command (swstreststat).

If you cancel OPC-based restoration using this command, the transaction volume will be in an incomplete status and can no longer be used because part of the data has already been copied. Perform restoration again using the restore execution command (swstrestore).

The restoration cannot be canceled by using this command for the transaction volume to operate the SP series.

a. Specification method [To be executed on a storage server] # /opt/FJSVswsts/bin/swstcancelrest [-g Generation-No | -v Version-No] [-r Restore-Device-Name] Device-Name [To be executed on a storage management server]

94

Page 98: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

# /opt/FJSVswsts/bin/swstcancelrest [-h Server] [-g Generation-No | -v Version-No] [-r Restore-Device-Name] Device-Name

b. Description of options Option Description

-h Specifies a storage server name.

This option can be specified only on a storage management server.

-g

Specifies the relative generation number of data being restored.

This option cannot be specified at the same time as the -v option.

Check the relative generation number using the restore execution status display command (swstreststat).

-v

Specifies the absolute generation number of data being restored.

This option cannot be specified at the same time as the -g option.

Check the absolute generation number using the restore execution status display command (swstreststat).

-r

Specifies the device name if data is restored to any other device than a transaction volume.

Check the device name using the restore execution status display command (swstreststat).

Note: The restoration of the latest history information will be canceled if neither the -g or -v option is specified. c. Description of operand

Operand Description

Device-Name Specifies a device name.

Specify the name of a block device. d. End status

= 0: Normal end > 0: Abnormal end

e. Execution example Cancel restore processing of a transaction volume (/dev/dsk/c1t0d0). # /opt/FJSVswsts/bin/swstcancelrest -g 1 /dev/dsk/c1t0d0 /dev/dsk/c1t0d0 swstcancelrest completed. #

You cannot cancel restoration if:

· The history specified in the -g or -v option does not exist. · Restoration is not performed on the device specified in the -r option. · Restoration is not performed from the specified history. In this case, processing is terminated

with an information message "swst0303 Restoration for specified restoration device is not performed". (The end status is a normal end.)

· Changing into the logic disk composition which cannot be supported by AdvancedCopy Manager.

· A volume group is in an un-active state in volume group specification.

This command can be executed only while none of the following commands are running.

· Storage server configuration information setting command (swstsvrset) · Device information setting command (swstdevinfoset) · Resource match command (swstsrsemtch) · Resource backup command (swstresback) · Resource restore command (swstresrst)

95

Page 99: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

8.1.2.5 Restore execution status display command (swstreststat)

This command displays the execution status of restoration.

Information on the execution situation is not displayed for the transaction volume to operate the SP series.

Do not use the OPC stop function of GRmgr while the snapshot fast backup is in progress. If you use the OPC stop function of GRmgr, this command displays "succeeded" whether or not the restoration has actually been successful.

a. Specification method [To be executed on a storage server]

# /opt/FJSVswsts/bin/swstreststat [-g Generation-No | -v Version-No] [Device-Name]

[To be executed on a storage management server]

# /opt/FJSVswsts/bin/swstreststat [-h Server ] [-g Generation-No | -v Version-No] [Device-Name]

b. Description of options

Option Description

-h Specifies a storage server name.

This option can be specified only on a storage management server.

-g Specifies the relative generation number of data whose restore execution status should be displayed.

-v Specifies the absolute generation number of data whose restore execution status should be displayed.

Note: The restore execution statuses of all the history will be displayed if both the -g and -v options are omitted.

c. Description of operand Operand Description

Device-Name

Specifies a device name.

Specify the name of a block device.

If this operand is omitted, the restore execution statuses of all the transaction volumes will be displayed.

d. End status = 0: Normal end > 0: Abnormal end

e. Execution example Display the restore processing status of transaction volumes. # /opt/FJSVswsts/bin/swstreststat

Server Transaction-Disk Generation Version Backup-Disk Restore-Disk Status Execute

Work 2 /dev/dsk/c1t0d0 1 10 /dev/dsk/c1t0d8 /dev/dsk/c1t0d11 executing 75%

Work 2 /dev/dsk/c1t0d2 ---- ---- ---- ---- ---- ----

Work 2 /dev/dsk/c1t0d5 2 12 /dev/dsk/c1t0d9 ---- succeeded ---

Work 2 /dev/dsk/c1t0d6 3 13 /dev/dsk/c1t0d10 /dev/dsk/c1t0d12 executing 75%

96

Page 100: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

:

# The following information will be displayed. Title Description

Server Displays a storage server name.

Transaction-Disk Displays the device name of a transaction volume.

Generation Displays the relative generation number of restored backup data.

"----" will be displayed if no generation number is specified in the -g or -v option and no history being restored exists.

Version Displays the absolute generation number of restored backup data.

"----" will be displayed if no generation number is specified in the -g or -v option and no history being restored exists.

Backup-Disk Displays the name of a backup volume from which data should be copied and restored.

"----" will be displayed if restoration is not in progress.

Restore-Disk

Displays a restore target device name unless data is copied and restored to a transaction volume.

"----" will be displayed if restoration is not in progress or data is restored to a transaction volume.

Status

Displays an execution status. · "----": No copying using OPC is in progress. · "executing": Copying using OPC is in progress. · "succeeded": Copying using OPC has been completed. · "failed": Copying using OPC has been interrupted due to an error. · "halt": Copying using OPC has been halt status.

Execute Displays how much has been copied in percentage if "executing" is displayed in the Status field. Displays "----" unless "executing" is displayed.

If "failed" is displayed in the "Status" field, a hardware error may have occurred. After removing the cause of the hardware error, use the restore cancellation command (swstcancelrest) to cancel restoration.

If no generation number has been specified in the -v or -g option, the restore execution statuses of all the history will be displayed. If, at this time, restoration is not in progress from any of the history, "----" will be displayed in all the information fields other than "Server" and "Transaction-Disk".

You cannot perform displaying the restore processing status in the following cases

· Changing into the logic disk composition which cannot be supported by AdvancedCopy Manager.

· A volume group is in an un-active state in volume group specification.

8.1.2.6 History information display command (swsthistdisp)

This command displays history information that has been backed up.

97

Page 101: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Backup history information is not displayed for the transaction volume to operate the SP series. a. Specification method

[To be executed on a storage server] # /opt/FJSVswsts/bin/swsthistdisp [Device-Name] [To be executed on a storage management server] # /opt/FJSVswsts/bin/swsthistdisp [-h Server] [Device-Name]

b. Description of options Option Description

-h Specifies a storage server name.

This option can be specified only on a storage management server. c. Description of operand

Operand Description

Device-Name

Specifies a device name corresponding to a transaction volume.

Specify the name of a block device.

If this operand is omitted, the backup history information of all the transaction volumes will be displayed.

d. End status = 0: Normal end > 0: Abnormal end

e. Execution example Display the backup history information of all the transaction volumes. # /opt/FJSVswsts/bin/swsthistdisp

Server=StrgSV01 Device=/dev/dsk/c1t0d0 Mount-Point=/mnt/tran1 (vxfs)

Generation Version Backup-Date Backup-Device Status Execute

1 10 2000/11/12 22:00 /dev/dsk/c1t0d2 succeeded ----

2 9 2000/11/11 22:00 /dev/dsk/c1t0d4 succeeded ----

:

# Display the backup history information of transaction volumes in operation with SP-series devices. # /opt/FJSVswsts/bin/swsthistdisp

Server=StrgSV01 Device=/dev/dsk/vg01 Mount-Point=---- (----)

:

# The following information will be displayed. Keyword Description

Server Displays a storage server name.

Device Displays a device name.

Mount-Point Displays the mount point name of the device and the file system type in parentheses.

Generation Displays a relative generation number.

This item will not be displayed if no backup history information exists.

Version Displays an absolute generation number.

This item will not be displayed if no backup history information exists.

Backup-Date Displays a date at which backup has been completed.

This item will not be displayed if no backup history information exists.

Backup-Device Displays the name of a backup volume to which data has been backed up.

98

Page 102: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

This item will not be displayed if no backup history information exists.

Status

Displays an actual copying execution status using one of the following character strings. · "succeeded": Copying using OPC has been completed. · "executing": Copying using OPC is in progress. · "failed": Copying using OPC has been interrupted due to an error. · "halt": Copying using OPC has been halt status. This item will not be displayed if no backup history information exists.

Execute Displays how much has been copied in percentage if "executing" is displayed in the Status field. Displays "----" unless "executing" is displayed.

This item will not be displayed if no backup history information exists.

You cannot perform processing of displaying history information in the following cases

· Changing into the logic disk composition which cannot be supported by AdvancedCopy Manager.

· A volume group is in an un-active state in volume group specification.

If "failed" or "halt" is displayed in the "Status" field, a hardware error may have occurred. After removing the cause of the hardware error, delete the backup history information using the history deletion command.

8.1.2.7 History information deletion command (swsthistdel)

This command deletes back history information.

The backup volume of the deleted history is released and turns into empty backup volume.

If the history information display command displays "failed" in the "Status" field, a hardware error may have occurred. After removing the cause of the hardware error, use this command to delete backup history information.

a. Specification method [To be executed on a storage server] # /opt/FJSVswsts/bin/swsthistdel -g Generation-No| -v Version-No | -z Device-Name [To be executed on a storage management server] # /opt/FJSVswsts/bin/swsthistdel [-h Server] -g Generation-No| -v Version-No | -z Device-Name

b. Description of options Option Description

-h Specifies a storage server name.

This option can be specified only on a storage management server.

-g

Specifies the relative generation number of backup history information to be deleted.

This option cannot be specified at the same time as the -v or -z.

Check the relative generation number using the history information display command (swsthistdisp).

-v Specifies the absolute generation number of backup history information to be deleted.

99

Page 103: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

This option cannot be specified at the same time as the -g or -z.

Check the absolute generation number using the history information display command (swsthistdisp).

-z Specifies to delete all the backup history information.

This option cannot be specified at the same time as the -g or -v. c. Description of operand

Operand Description

Device-Name Specifies a device name corresponding to a transaction volume.

Specify the name of a block device. d. End status

= 0: Normal end > 0: Abnormal end

e. Execution example Delete the backup history of absolute generation number 10 in a transaction volume (/dev/dsk/c1t0d0). # /opt/FJSVswsts/bin/swsthistdel -v 10 /dev/dsk/c1t0d0 /dev/dsk/c1t0d0 swsthistdel completed #

You cannot delete backup history information if:

· The backup history information specified in the -g or -v option does not exist. · The specified backup history information is used in restoration. · Changing into the logic disk composition which cannot be supported by AdvancedCopy

Manager. · A volume group is in an un-active state in volume group specification.

This command can be executed only while none of the following commands are running.

· Storage server configuration information setting command (swstsvrset) · Device information setting command (swstdevinfoset) · Resource match command (swstsrsemtch) · Resource backup command (swstresback) · Resource restore command (swstresrst)

8.1.2.8 Backup synchronous processing start command (swststartsync)

This command starts backup synchronous processing (starts disk-to-disk copy using EC). a. Specification method

[To be executed on a storage server]

# /opt/FJSVswsts/bin/swststartsync Device-Name [-Xdevmap Device-Map-File]

[To be executed on a storage management server]

# /opt/FJSVswsts/bin/swststartsync [-h Server] Device-Name [-Xdevmap Device-Map-File]

b. Description of options

Option Description

-h Specify the name of a Storage server.

100

Page 104: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

This option can be specified only on the Storage management server.

-Xdevmap

Specifies a target backup volume to perform the backup synchronous processing. In the operand, specify a device map file in which a combination of a transaction volume and a target backup volume is described. If this option is not specified, the target backup volume will be automatically selected. To execute this command on a remote basis using the -h option, specify a device map file (of a storage server) using an absolute pathname. A file name specified in Device-Map-File must not include any national character.

c. Description of operand Operand Description

Device-Name Specifies a device name.

Specify the name of a block device d. End status

= 0: Normally terminated > 0: Abnormally terminated

e. Execution example Start synchronous backup processing of a transaction volume (/dev/dsk/c1t0d0). # /opt/FJSVswsts/bin/swststartsync /dev/dsk/c1t0d0 /dev/dsk/c1t0d0 swststartsync completed. #

Start synchronous backup processing of transaction volumes(/dev/dsk/c1t0d0) in operation with SP-series devices. # /opt/FJSVswsts/bin/swststartsync /dev/dsk/c1t0d0

/dev/dsk/c1t0d0 swststartsync completed.

#

When you execute the backup synchronous processing start command for a transaction volume to which the backup synchronous processing is being executed, the message, "swst0301 Backup synchronous processing is being executed." is output and then the command is terminated normally.

You cannot start backup synchronous processing in the following cases. In any of the cases below, take an action according to the "System administrator response" message.

· When specifying a device that does not support the EC function. · When the backup volumes required to start backup synchronous processing cannot be

obtained. · When specifying a device that is being restored by OPC. · When mounting the backup volume to which data is copied. · Changing into the logic disk composition which cannot be supported by AdvancedCopy

Manager. · A volume group is in an un-active state in volume group specification.

In the case where backup volume is a volume group, do not execute the vgchange (1M) command to un-activate (deactivate) the volume group under synchronous processing (EC/REC) execution. If backup volume being un-active under synchronous processing execution, it not only becoming impossible to make it active again but it will be in the state where operation of a stop of synchronous processing, backup execution command, backup synchronous processing cancel command, etc. cannot be performed. If being un-activate accidentally, make backup volume active after forcible stopping of the synchronous processing using GRmgr, etc.

101

Page 105: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

When any of the following commands is running, this command cannot be executed: · Resource match command (swstsrsemtch) · Storage server configuration information setting command (swstsvrset) · Device information setting command (swstdevinfoset) · Resource backup command (swstresback) · Resource restore command (swstresrst)

8.1.2.9 Backup synchronous processing cancel command (swstcancelsync)

This command cancels backup synchronous processing.

If the system detects an error while backup synchronous processing is being executed, the copying being performed at that time terminates abnormally. In such a case, use this command to cancel the backup synchronous processing. Use the backup synchronous processing progress display command (swstsyncstat) to check for the error. a. Specification method

[To be executed on a storage server] # /opt/FJSVswsts/bin/swstcancelsync Device-Name [To be executed on a storage management server] # /opt/FJSVswsts/bin/swstcancelsync [-h Server] Device-Name

b. Description of options Option Description

-h Specify the name of a Storage server.

This option can be specified only with a Storage management server. c. Description of operand

Operand Description

Device-Name Specifies a device name.

Specify the name of a block device. d. End status

= 0: Normally terminated > 0: Abnormally terminated

e. Execution example Cancel synchronous backup processing of a transaction volume (/dev/dsk/c1t0d0). # /opt/FJSVswsts/bin/swstcancelsync /dev/dsk/c1t0d0 /dev/dsk/c1t0d0 swstcancelsync completed. #

Cancel synchronous backup processing of transaction volumes (/dev/dsk/c1t0d0) in operation with SP-series devices. # /opt/FJSVswsts/bin/swstcancelsync /dev/dsk/c1t1d0

/dev/dsk/c1t1d0 swstcancelsync completed.

#

You cannot perform cancel processing of synchronous backup processing in the following cases

· Changing into the logic disk composition which cannot be supported by AdvancedCopy Manager.

· A volume group is in an un-active state in volume group specification.

This command cannot be executed when any of the following commands is running:

· Resource match command (swstsrsemtch) · Device information setting command (swstdevinfoset) · Storage server configuration information setting command (swstsvrset)

102

Page 106: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

· Resource backup command (swstresback) · Resource restore command (swstresrst)

8.1.2.10 Backup synchronous processing progress display command (swstsyncstat)

This command displays the status of the backup synchronous processing.

Information on execution situation is not displayed for the transaction volume to operate the SP series.

a. Specification method [To be executed on a storage server] # /opt/FJSVswsts/bin/swstsyncstat [Device-Name] [To be executed on a storage management server] # /opt/FJSVswsts/bin/swstsyncstat [-h Server] [Device-Name]

b. Description of options Option Description

-h Specify the name of a Storage server.

This option can be specified only with the Storage management server. c. Description of operand

Operand Description

Device-Name

Specifies a device name.

Specify the name of a block device.

When you omit the device name, the system displays the status of backup synchronous processing for all of the transaction volumes.

d. End status = 0: Normally terminated > 0: Abnormally terminated

e. Execution example Display the synchronous backup processing status of a transaction volume (/dev/dsk/c1t0d0). # /opt/FJSVswsts/bin/swstsyncstat /dev/dsk/c1t0d0

Server Transaction-Disk Backup-Disk Status Execute

Work 1 /dev/dsk/c1t0d0 /dev/dsk/c1t0d2 executing 75%

# Display the synchronous backup processing status of all business volumes. # /opt/FJSVswsts/bin/swstsyncstat

Server Transaction-Disk Backup-Disk Status Execute

Work 1 /dev/dsk/c1t0d0 /dev/dsk/c1t0d2 executing 75%

Work 1 /dev/dsk/c1t0d1 /dev/dsk/c1t0d3 equivalent 100%

Work 1 /dev/dsk/c1t0d5 /dev/dsk/c1t0d7 failed ----

Work 1 /dev/dsk/c1t0d6 ---- ---- ----

# Display information about a transaction volume (/dev/dsk/c1t0d0) in operation with SP-series devices. # /opt/FJSVswsts/bin/swstsyncstat /dev/dsk/c1t0d0

Server Transaction-Disk Backup-Disk Status Execute

Work 2 /dev/dsk/c1t0d0 ---- ---- ----

# The table below lists the meaning of each title.

103

Page 107: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Title Description

Server Indicates the name of the Storage server.

Transaction-Disk Indicates the name of the transaction volume.

Backup-Disk Indicates the name of the backup volume.

When backup synchronous processing is not being executed, the system displays "----".

Status

Indicates the status of backup synchronous processing: · "----": Backup synchronous processing is not being executed. · "executing": Backup synchronous processing is being executed

but equivalency maintain status has not been established. · "equivalent": Equivalency maintain status is established. · "failed": Backup synchronous processing was abnormally

terminated. · "nosession": No session exists (inconsistent resource

information). · "halt": Backup synchronous processing is being halt status.

Execute

Indicates the progress of the backup synchronous processing as a percentage (0 to 100%).

When backup synchronous processing is not being executed, the system displays "----".

You cannot perform processing of displaying status of the synchronous processing in the following cases

· Changing into the logic disk composition which cannot be supported by AdvancedCopy Manager.

· A volume group is in an un-active state in volume group specification.

If "failed" or "halt" is indicated as the status of the backup synchronous processing (in the Status field), a hardware failure is considered. First eliminate the hardware failure, then execute the backup synchronous processing cancel command (swstcancelsync) to cancel the backup synchronous processing executed.

If "nosession" is indicated as the status of the backup synchronous processing (in the Status field)," resource information having inconsistency is considered. Use the resource match command (swstsrsemtch) to remove the inconsistency from the resource information.

8.1.2.11 Execution status display command (swstexecstat)

This command displays the execution status of other commands executed on a transaction volume. The execution status of OPC/EC will be displayed if OPC/EC is being executed.

Information on execution situation is not displayed for the transaction volume to operate the SP series.

a. Specification method [To be executed on a storage server] # /opt/FJSVswsts/bin/swstexecstat [-j] [Device-Name] [To be executed on a storage management server]

104

Page 108: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

# /opt/FJSVswsts/bin/swstexecstat [-h Server] [-j] [Device-Name] b. Description of options

Option Description

-h Specifies a storage server name.

This option can be specified only on a storage management server.

-j Specifies to display information in another format. c. Description of operand

Operand Description

Device-Name

Specifies a device name corresponding to a transaction volume.

Specify the name of a block device.

If this operand is omitted, the execution statuses of all the transaction volumes will be displayed.

d. End status = 0: Normal end > 0: Abnormal end

e. Execution example Display the execution statuses of transaction volumes. # /opt/FJSVswsts/bin/swstexecstat

Server Device Last-Backup-Date Interval Status Mount-Point (Method) Execute

Work 1 /dev/dsk/c1t0d0 2000/12/11 12:20 OK IDLE /mnt/trans1 (vxfs) ----

Work 1 /dev/dsk/c1t0d5 2000/12/10 12:20 DELAY=1 EXEC /mnt/usr1 (vxfs) sync(22%)

Work 1 /dev/dsk/c1t0d6 2000/12/09 12:20 DELAY=2 EXEC /mnt/usr2 (vxfs) snapshot(45%)

:

# Display the execution status of transaction volumes in operation with SP-series devices. # /opt/FJSVswsts/bin/swstexecstat

Server Device Last-Backup-Date Interval Status Mount-Point (Method) Execute

Work 3 /dev/dsk/c1t1d0 ----/--/-- --:-- ---- IDLE /mnt/usr1 (ufs) ----

Work 3 /dev/dsk/c1t1d1 ----/--/-- --:-- ---- IDLE /mnt/usr2 (ufs) ----

:

# The following information will be displayed. Keyword Description

Server Displays a storage server name.

Device Displays a AdvancedCopy Manager device name.

Last-Backup-Date Displays the last backup date.

* Displays the time when the backup execution command was accepted.

Interval

Displays how many days have passed after the specified number of interval days since the last backup date has been exceeded. This item will be displayed as "DELAY=number-of-days-passing". "OK" will be displayed if the number of interval days has not been exceeded.

Status

Displays whether any of the following commands is being executed on a transaction volume. If so, "EXEC" will be displayed. Otherwise, "IDLE" will be displayed. · Backup policy setting command (swstbkpolset) · Backup policy deletion command (swstbkpoldel) · Backup execution command (swstbackup) · Restore execution command (swstrestore)

105

Page 109: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

· History information deletion command (swsthistdel) · Backup synchronous processing start command

(swststartsync) · Backup synchronous processing cancel command

(swstcancelsync) · Restore cancellation command (swstcancelrest)

Mount-Point(Method) Displays the mount point name of a transaction volume and FStype in parentheses.

Execute

Displays the name of a command being executed or the copying progress ratio. · "----": Neither a command or OPC/EC is being executed. · "swststartsync": Backup synchronous processing start

command is being executed. · "swstcancelsync": Backup synchronous processing cancel

command is being executed. · "swstbackup": The backup execution command is being

processed. · "swstrestore": The restore execution command is being

processed. · "swstcancelrest": The restore cancellation command is being

processed. · "swstbkpolset": The backup policy setting command is being

processed. · "swstbkpoldel": The backup policy deletion command is

being processed. · "swsthistdel": The history information deletion command is

being processed. · "swstcancelrest": The restore cancellation command is being

processed. · "sync(xxx%)": How far the EC operation has progressed. · "sync(failed)": EC has been abnormally terminated. · "sync(halt)": EC has been halt status. · "snapshot(xxx%)": Progress ratio of backup using OPC · "snapshot(failed)": Backup using OPC has abnormally

terminated. · "snapshot(halt)": Backup using OPC has been halt status. · "restore(xxx%)": Progress ratio of restoration using OPC · "restore(failed)": Restoration using OPC has abnormally

terminated. · "restore(halt)": Restoration using OPC has been halt status.

If multiple processes are performed on transaction volumes (for example, when the backup synchronous processing start command is issued while a real copy of the snap shot backup is being handled), the display in the Execute field conforms to the following rule:

- The display of a command name takes priority if both copying and command execution are in progress. - When a disk copy of the snap shot backup and a disk copy of the backup synchronous processing are

being handled simultaneously, the progress of the disk copy of the backup synchronous processing is displayed. (A disk copy for restoration is not performed during disk copy of the snap shot backup or backup synchronous processing due to a restriction of the GR series.)

The execution example of using the "-j" option is as follows: # /opt/FJSVswsts/bin/swstexecstat -j

Server Device Execute-Date Status Mount-Point (Method) Execute

Work 1 /dev/dsk/c1t0d0 2000/12/11 12:20 IDLE /usr1 (ufs) ----

Work 1 /dev/dsk/c1t0d2 2000/12/10 12:20 EXEC /usr2 (ufs) sync(22%)

Work 1 /dev/dsk/c1t0d5 2000/12/09 12:20 EXEC /usr3 (ufs) snapshot(45%)

:

# The following information will be displayed. Keyword Description

Server Displays a storage server name.

106

Page 110: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Device Specifies a AdvancedCopy Manager device name.

Execute-Date Displays the command execution time.

Status

Displays whether any of the following commands is being executed on a transaction volume. If so, "EXEC" will be displayed. Otherwise, "IDLE" will be displayed. · Backup policy setting command (swstbkpolset) · Backup policy deletion command (swstbkpoldel) · Backup execution command (swstbackup) · Restore execution command (swstrestore) · History information deletion command (swsthistdel) · Backup synchronous processing start command

(swststartsync) · Backup synchronous processing cancel command

(swstcancelsync) · Restore cancellation command (swstcancelrest)

Mount-Point(Method) Displays the mount point name of a transaction volume and FStype in parentheses.

Execute

Displays the name of a command being executed or the copying progress ratio. · "----": Neither a command or OPC/EC is being executed. · "swststartsync": Backup synchronous processing start

command is being executed. · "swstcancelsync": Backup synchronous processing cancel

command is being executed. · "swstbackup": The backup execution command is being

processed. · "swstrestore": The restore execution command is being

processed. · "swstcancelrest"": The restore cancellation command is

being processed. · "swstbkpolset": The backup policy setting command is being

processed. · "swstbkpoldel": The backup policy deletion command is

being processed. · "swsthistdel": The history information deletion command is

being processed. · "swstcancelrest": The restore cancellation command is being

processed. · "sync(xxx%)": How far the EC operation has progressed. · "sync(failed)": EC has been abnormally terminated. · "sync(halt)": EC has been halt status. · "snapshot(xxx%)": Progress ratio of backup using OPC · "snapshot(failed)": Backup using OPC has abnormally

terminated. · "snapshot(halt)": Backup using OPC has been halt

status."restore(xxx%)": Progress ratio of restoration using OPC

· "restore(failed)": Restoration using OPC has abnormally terminated.

· "restore(halt)": Restoration using OPC has been halt status.

You cannot perform processing of displaying the execution status in the following cases

· Changing into the logic disk composition which cannot be supported by AdvancedCopy Manager.

· A volume group is in an un-active state in volume group specification.

If "sync (failed),", "snapshot(failed)", or "restore(failed)", "sync (halt)", "snapshot(halt)" or "restore(halt)"

107

Page 111: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

is displayed in the "Execute" field, a hardware error may have occurred. After removing the cause of the hardware error, do as follows:

· For "sync (failed)" Execute the backup synchronous processing cancel command (swstcancelsync) to cancel the backup synchronous processing.

· If "snapshot(failed)" is displayed Delete backup history information using the history information deletion command (swsthistdel).

· If "restore(failed)" is displayed Cancel restoration using the restore cancellation command (swstcancelrest).

8.1.3 Maintenance commands

This chapter describes maintenance commands for backup management.

To operate backup management, use the following maintenance commands:

Function Command name Description

Resource match command swstsrsemtch Recovers the consistency of information in a backup

management list.

Resource backup command swstresback Backs up a backup management list and a recovery control file.

Resource restore command swstresrst Restores a backup management list and a recovery control file.

8.1.3.1 Resource match command (swstsrsemtch)

This command makes recovery to make resource information consistent if a system failure, etc. has made the resource information inconsistent. a. Specification method

[To be executed on a storage server] # /opt/FJSVswsts/bin/swstsrsemtch [-x] [To be executed on a storage management server] # /opt/FJSVswsts/bin/swstsrsemtch [-x] [-h Server]

b. Description of operands Operand Description

-h Specifies a storage server name.

This option can be specified only on a storage management server.

-x Gets consistency with a repository. Specify this option if the consistency between a backup management list and a repository comes to be inconsistent.

c. Execution example # /opt/FJSVswsts/bin/swstsrsemtch swstsrsemtch completed #

This command can be executed only while none of the following commands are running.

· Device information setting command (swstdevinfoset) · Backup policy setting command (swstbkpolset) · Backup policy deletion command (swstbkpoldel) · Backup execution command (swstbackup) · Restore execution command (swstrestore) · Restore cancellation command (swstcancelrest) · Backup synchronous processing start command (swststartsync) · Backup synchronous processing cancel command (swstcancelsync) · History information deletion command (swsthistdel) · Storage server configuration information setting command (swstsvrset)

108

Page 112: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

· Resource match command(swstsrsemtch) · Resource backup command(swstresback) · Resource restore command(swstresrst)

8.1.3.2 Resource backup command (swstresback)

This command backs up a backup management listto a specified directory. a. Specification method

# /opt/FJSVswsts/bin/swstresback Backup-Directory b. Description of operand

Operand Description

Backup-Directory Specifies the name of a directory to which a backup management list should be saved.

c. Execution example Create backup copies of the backup management list and recovery control file in /home/backup. # /opt/FJSVswsts/bin/swstresback /home/backup

swstresback completed

#

You cannot perform backup if:

· The specified directory does not exist. · Copying of data to the specified directory failed because of insufficient free space, etc.

This command can be executed only while none of the following commands are running.

· Device information setting command (swstdevinfoset) · Backup policy setting command (swstbkpolset) · Backup policy deletion command (swstbkpoldel) · Backup execution command (swstbackup) · Restore execution command (swstrestore) · Restore cancellation command (swstcancelrest) · Backup synchronous processing start command (swststartsync) · Backup synchronous processing cancel command (swstcancelsync) · History information deletion command (swsthistdel) · Storage server configuration information setting command (swstsvrset) · Resource match command(swstsrsemtch) · Resource backup command(swstresback) · Resource restore command(swstresrst)

8.1.3.3 Resource restore command (swstresrst)

The backup management list is restored from the specified directory. a. Specification method

# /opt/FJSVswsts/bin/swstresrst Backup-Directory b. Description of operand

Operand Description

Backup-Directory Specify the name of the directory to which to save the backup management log.

c. Execution example Create backup copies of the backup management log and in /home/backup. # /opt/FJSVswsts/bin/swstresrst /home/backup

swstresrst completed

#

109

Page 113: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

You cannot perform restoration if:

· The specified directory does not exist. · No backup management list exists in the specified directory. · Copying of data from the specified directory for restoration failed because of insufficient free

space, etc.

This command can be executed only while none of the following commands are running.

· Storage server configuration information setting command (swstsvrset) · Device information setting command (swstdevinfoset) · Backup policy setting command (swstbkpolset) · Backup policy deletion command (swstbkpoldel) · Backup execution command (swstbackup) · Restore execution command (swstrestore) · Restore cancellation command (swstcancelrest) · Backup synchronous processing start command (swststartsync) · Backup synchronous processing cancel command (swstcancelsync) · History information deletion command (swsthistdel) · Resource match command(swstsrsemtch) · Resource backup command(swstresback) · Resource restore command(swstresrst)

8.2 Configuration Management Commands

This chapter is explaining operation by the command of the composition management which manages the information on a device used as the server which performs backup employment and replication employment, or the candidate for employment.

8.2.1 Management server information change command (stgcmmodnode)

This command changes the server change information of the Storage management server. Concretely, execute this command for the following purposes: · To change the IP address of the Storage management server or the PORT number (stgxfws) used by the

communication daemon Follow the procedure below:

1. Change server information by executing this command on the Storage management server. 2. Change server information of the Storage management server by executing this command on every

Storage server. This command must be executed on all Storage servers managed by the Storage management server.

· To change the server name of the Storage management server Follow the procedure below:

1. Change the server name from the initial window of the Storage management server. 2. Change the server name of the Storage management server by executing this command on every

Storage server. This command must be executed on all Storage servers managed by the Storage management server.

This command has the following two functions: · Displays storage management server information specified on the storage server on which this command is

currently executed · Changes storage management server information. a. Specification method

# /opt/FJSVswstf/bin/stgcmmodnode [-i IP-address] [-p PORT number] [-n server name]

b. Description of options Option Description

None Displays the server information currently managed.

-i Specifies the IP address of a storage management server to change the IP address of the storage management server.

110

Page 114: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

-p Specifies the port number of a storage management server to change the port number of the storage management server.

-n Specifies the server name of a storage management server to change the server name of the storage management server. This option cannot be specified if this command is executed on a storage management server.

c. End status = 0: Normal end > 0: Abnormal end

d. Execution example Display server information. # /opt/FJSVswstf/bin/stgcmmodnode swstf2413 IP Address = 10.10.10.10 swstf2413 PORT Number = 1226 swstf2413 Storage Management Server's Name = fujitsu-storage-management-server #

Change the IP address of a storage management server to 10.12.13.14. # /opt/FJSVswstf/bin/stgcmmodnode -i 10.12.13.14

swstf2401 AdvancedCopy Manager registry updated.

The following lists notes on this command.

· This command can be executed only by root users. · As the PORT number of a storage management server, you can specify a value between 1 and

65535. · In this command, specify the same value as the one specified on a storage management server.

A error will occur in the operation if an invalid value is specified. · If this command is executed, restart the AdvancedCopy Manager daemons.

8.2.2 Repository access user change command (stguserset)

Repository access user change command (stguserset) is executed by the Storage management server.

Please refer to the Operator's guide to OS of a Storage management server.

8.2.3 GUI connection information setting command (stgguiipset)

GUI connection information setting command (stgguiipset) is executed by the Storage management server.

Please refer to the Operator's guide to OS of a Storage management server.

8.2.4 Server information addition command (stgxfwcmaddsrv)

Server information addition command (stgxfwcmaddsrv) is executed by the Storage management server.

Please refer to the Operator's guide to OS of a Storage management server.

8.2.5 Server information change command (stgxfwcmmodsrv)

Server information change command (stgxfwcmmodsrv) is executed by the Storage management server.

Please refer to the Operator's guide to OS of a Storage management server.

8.2.6 Server information deletion command (stgxfwcmdelsrv)

Server information deletion command (stgxfwcmdelsrv) is executed by the Storage management server.

Please refer to the Operator's guide to OS of a Storage management server.

8.2.7 Device information collection/reflection command (stgxfwcmsetdev)

Device information collection/reflection command (stgxfwcmsetdev) is executed by the Storage management server.

Please refer to the Operator's guide to OS of a Storage management server.

111

Page 115: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

8.2.8 Device information deletion command (stgxfwcmdeldev)

Device information deletion (stgxfwcmdeldev) is executed by the Storage management server.

Please refer to the Operator's guide to OS of a Storage management server.

8.2.9 Server information display command (stgxfwcmdispsrv)

Server information display command (stgxfwcmdispsrv) is executed by the Storage management server.

Please refer to the Operator's guide to OS of a Storage management server.

8.2.10 Device information display command (stgxfwcmdispdev)

Device information display command (stgxfwcmdispdev) is executed by the Storage management server.

Please refer to the Operator's guide to OS of a Storage management server.

8.2.11 Partition information display command (stgxfwcmdisppat)

Partition information display command (stgxfwcmdisppat) is executed by the Storage management server.

Please refer to the Operator's guide to OS of a Storage management server.

8.3 Replication Management Command

This chapter describes operations using Replication Management Commands. It is necessary to execute the command of replication management by the root user.

Only a root user can execute all the commands of replication management. When command execution is carried out by other users, a message " swst0601 This Command cannot be run. This is because the user is not a root user." is outputted and then, an error end.

8.3.1 Environment definition commands

This chapter describes environment definition commands for replication management. To define a replication management environment, use the following commands:

Function Command name Description

Replication volume information setting command swsrpsetvol Sets the information about a replication

volume.

Replication volume information display command swsrpvolinfo Displays the information about a

replication volume.

Replication volume information deletion command swsrpdelvol Deletes replication volume information

that has been set.

8.3.1.1 Replication volume information setting command (swsrpsetvol)

This command sets the replication source and replication destination volumes that will be used in a replication operation. Execute this command to declare that the replication operation will performed using the specified replication volumes. a. Specification method

[To be executed on a storage server]

For replication on a server

/opt/FJSVswsrp/bin/swsrpsetvol [-n] [-u] Original-Volume-Name Replica-Volume-Name

For replication between servers

/opt/FJSVswsrp/bin/swsrpsetvol [-n] [-u] -o (ORG|REP) Original-Volume-Name Replica-Volume-Name

[To be executed on a storage management server]

112

Page 116: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

For replication on a server

/opt/FJSVswsrp/bin/swsrpsetvol -h Server-Name [-n] [-u] Original-Volume-Name Replica-Volume-Name

For replication between servers

/opt/FJSVswsrp/bin/swsrpsetvol -h Server-Name [-n] [-u] -o (ORG|REP) Original-Volume-Name Replica-Volume-Name

b. Description of options Option Description

-h

Specifies the name of a storage server subject to the replication operation. This option is valid only on a storage management server.

If this option is omitted, the storage server on which the command is entered will be the target to the processing.

-u

Specifies the direction of copying.

If this option is specified, copying from a replication source volume to a replication destination volume is performed only in this direction. Copying from a replication destination volume to a replication source volume is prohibited.

If this option is omitted, copying between the replication source and replication destination volumes interactively is bidirectional.

-o

Specifies the operation server.

Specify one of the following for this operand:

ORG: Sets the replication source server as the operation server.

REP: Sets the replication destination server as the operation server.

On the server that is not specified as the operation server, only the following commands can be executed for a replication volume:

Replication volume information display command

Operation status display command

Replication cancellation command (The forcible stop option is required.)

This option is valid only for replication between servers.

-n

If this option is omitted, replication volume information cannot be set when the sizes of the replication source volume and replication destination volume are different.

When this option is specified, the sizes of the replication source volume and replication destination volume are not checked. Use this option when volume sizes are different (for example, for replication between different OSs).

When the volume sizes of the replication source volume and replication destination volume are different, copying is performed as follows:

The address at which copying starts is the first sector of the replication destination volume.

The copy data size is the size of the smaller volume. c. Description of operands

Operand Description

Original-Volume-Name Specifies a replication source volume name. For the volume names of other servers, use the format "volume-name@storage-server-name."

Replica-Volume-Name Specifies a replication destination volume name. For the volume names of other servers, use the format "volume-name@storage-server-name."

d. End status = 0: Normal end > 0: Abnormal end

113

Page 117: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

e. Execution example Set replication volume information by specifying volume/dev/dsk/c1t2d0 of storage server SRC-SV as the replication source volume and volume /dev/dsk/c1t2d0 of storage server TARG-SV as the replication destination volume. In addition, specify one-way copying for the copy direction and specify the replication source server (SRC-SV) as the operation server. The example below shows the command executed on SRC-SV. # /opt/FJSVswsrp/bin/swsrpsetvol -u -o ORG /dev/dsk/c1t2d0 /dev/dsk/c1t2d0@TARG-SV swsrpsetvol completed #

When the same settings are made from TARG-SV, the example is as follows (be careful with the volume name): # /opt/FJSVswsrp/bin/swsrpsetvol -u -o ORG /dev/dsk/c1t2d0@SRC-SV /dev/dsk/c1t2d0 swsrpsetvol completed #

Replication volume information cannot be set if:

· Replication volume information has already been set. · The specified replication source volume and replication destination volume are set as the

replication destination volume and the replication source volume. · The n option is not specified when the sizes of the replication source volume and the replication

destination volume are different. · Two volumes that have the same cabinet information (cabinet identifier, OLU number, EXTENT

start position, and EXTENT size) as the cabinet information of the specified two volumes have already been set as replication volumes.

· The replication destination volume has been registered as a backup volume of the backup management function.

· The replication source volume has been registered as a backup volume of the backup management function and bi-directional copying is specified as a replication volume attribute.

· The specified replication destination volume and replication source volume are volumes belonging to other servers (at least one volume must be a volume on the local server).

· If the replication source volume and the replication destination volume are located on another disk array device, the remote copy function of the disk array device is not correctly set.

· Communication with the storage management server fails. · Communication with a destination server fails for replication between servers. · Changing into the logic disk composition which cannot be supported by AdvancedCopy

Manager. · A volume group is in an un-active state in volume group specification.

Note the following points when using a volume group as an original volume or replica volume:

· Be sure to specify the pairs of a volume group as an original volume and replica volume. However, excluding between other platforms.

· The same volume group cannot be registered as an original volume and replica volume. · When registering a volume group as an original volume and replica volume, make those logical

disk composition the same.

Note the following points about creating copy source volumes and copy destination volumes on Solaris system:

· When creating multiple volumes (slices) on the same disk, volume areas must not overlap. · When using a physical disk on Solaris, create volumes (slices) so that VTOC is not contained in

them. · Specify each volume defined in units of slices as a copy source volume or a copy destination

volume. Do not specify any volume defined as an entire disk.

114

Page 118: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

When you change physical information on volumes (partition size, drive letter, and cabinet information on a disk array device) using such functions as an OS management tool (for example, Disk Administrator) or GRmgr provided by the disk array device, you need to reset the registered replication volume information associated with the changed volumes, according to the following procedures:

1. Delete the replication volume information by the replication volume information deletion command (swsrpdelvol).

2. In an initial screen, "information acquisition / reflection" of all devices are performed. Or device information acquisition / reflection command (stgxfwcmsetdev) is executed in a Storage management server.

3. Reset the replication volume information by the replication volume informatin setting command (swsrpsetvol).

When you use a replication destination volume by mounting or by allocating a drive letter after creating a replication, the size of the replication destination volume must exactly match the size of the replication destination volume to the byte. If you do not use a replication destination volume (for example, when you need copy data, you restore it to the replication source volume and then use it), the size of the replication destination volume can be larger than the size of the replication source volume.

This command cannot be executed while any of the following commands is running:

· Replication volume information setting command (swsrpsetvol) · Replication volume information deletion command (swsrpdelvol) · Synchronous processing start command (swsrpstartsync) · Replication creation command (swsrpmake) · Replication cancellation command (swsrpcancel) · Resource adjustment command (swsrprecoverres)

8.3.1.2 Replication volume information display command (swsrpvolinfo)

This command displays the replication volume information registered by the replication volume setting command. a. Specification method

[To be executed on a storage server]

/opt/FJSVswsrp/bin/swsrpvolinfo [Original-Volumue-Name]

[To be executed on a storage management server]

/opt/FJSVswsrp/bin/swsrpvolinfo -h Server-Name [Original-Volume-Name] b. Description of options

Option Description

-h Specifies a storage server name.

This option is valid only on a storage management server. c. Description of operands

Operand Description

Original-Volume-Name

Specifies a replication source volume name. For the volume names of other servers, use the format "volume-name@storage-server-name."

Displays all the replication volume information for the specified replication source volume. If this operand is omitted, all the replication volume information existing on the storage server on which this command is executed is displayed.

d. End status = 0: Normal end > 0: Abnormal end

e. Execution example Direct that all the replication volume information on a storage management server be displayed on storage server SRC-SV.

# /opt/FJSVswsrp/bin/swsrpvolinfo -h SRC-SV

115

Page 119: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Server Original-Volume Size Replica-Volume Size Copy Op-Server

SRC-SV /dev/dsk/c1t2d0@SRC-SV 4.0Gbyte /dev/dsk/c1t2d0@TARG-SV 4.0Gbyte uni-direction original

SRC-SV /dev/dsk/c1t2d1@SRC-SV 4.0Gbyte /dev/dsk/c1t2d1@TARG-SV 5.0Gbyte bi-direction original

SRC-SV /dev/dsk/c1t2d2@SRC-SV 9.1Gbyte /dev/dsk/c1t2d2@TARG-SV 9.1Gbte bi-direction replica

# The following information will be displayed. Title Description

Server Displays a storage server name.

Original-Volume Displays a replication source volume name.

Size Displays the volume size.

Also in case a volume group, displays the physical disk size from which a logic disk is constituted.

Replica-Volume Displays a replication destination volume name.

Copy

Displays the copying direction.

uni-direction: One-way copying from a replication source volume to a replication destination volume is allowed.

bi-direction: Bidirectional copying is allowed.

Op-Server

Displays the operation server of a pair of replication volumes.

original: The replication source server is the operation server.

replica: The replication destination server is the operation server.

Replication volume information cannot be displayed if:

· The specified volume is not set as a replication source volume

This command cannot be executed while the following command is running:

· Resource adjustment command (swsrprecoverres)

8.3.1.3 Replication volume information deletion command (swsrpdelvol)

Delete the replication volume information that has been set.

If copy processing is being performed on a replication volume that is to be deleted, execute the command after the copy processing has stopped. a. Specification method

[To be executed on a storage server]

/opt/FJSVswsrp/bin/swsrpdelvol [-e] Original-Volume-Name Replica-Volume-Name

[To be executed on a storage management server]

/opt/FJSVswsrp/bin/swsrpdelvol -h Server-Name [-e] Original-Volume-Name Replica-Volume-Name

b. Description of options Option Description

-h Specifies a storage server name.

This option is valid only on a storage management server.

-e Specifies deleting replica volume information, without checking the execution state of an advanced copy. Use this option, only when it is clear that the advanced copy is not executed.

116

Page 120: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

c. Operand の Description Operand Description

Original-Volume-Name Specifies a replication source volume name. For the volume names of other servers, use the format "volume-name@storage-server-name."

Replica-Volume-Name Specifies a replication destination volume name. For the volume names of other servers, use the format "volume-name@storage-server-name."

d. End status = 0: Normal end > 0: Abnormal end

e. Execution example Delete replication volume information on storage server SRC-SV. # /opt/FJSVswsrp/bin/swsrpdelvol /dev/dsk/c1t2d0 /dev/dsk/c1t2d0@TARG-SV swsrpdelvol completed #

Replication volume information cannot be deleted if:

· The specified replication source volume and the replication destination volume are not set as replication volumes.

· The copy processing (synchronization processing and snapshot processing) is performed between replication volumes.

· For server-to-server replication, the storage server that executed the command is not the operation server of the replication volume.

· Communication with a storage management server fails. · For server-to-server replication, communication with a destination server fails. · Changing into the logic disk composition which cannot be supported by AdvancedCopy

Manager. · A volume group is in an un-active state in volume group specification. · When logical volume is deleted, or when logical volume composition is changed into the

composition which cannot be supported by AdvancedCopy Manager, replica volume information cannot be deleted. In this case, perform processing of (A) or (B) shown below. (A):Specify -e option and execute this command, after checking that the advanced copy is not carried out in the replica volume to delete (when the advanced copy is carried out, stop an advanced copy with disk array equipment, or cope with (B)). (B):Execute this command after re-creating logical volume in the composition which AdvancedCopy Manager can support or making logical volume composition the original state.

This command cannot be executed while any of the following commands is running:

· Replication volume information setting command (swsrpsetvol) · Replication volume information deletion command (swsrpdelvol) · Synchronous processing start command (swsrpstartsync) · Replication creation command (swsrpmake) · Replication cancellation command (swsrpcancel) · Resource adjustment command (swsrprecoverres)

8.3.2 Operation commands

This chapter describes operation commands for replication management.

To operate replication management, use the following commands:

Function Command name Description

Synchronous processing start command swsrpstartsync Starts replication while the synchronous type replication

function is performed.

Replication creation swsrpmake Creates replication while the snapshot type and the

117

Page 121: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

command synchronous type replication functions are performed.

Operation status display command swsrpstat Displays the status of replication operation

Replication cancellation command swsrpcancel

Cancels the replication processing while the snapshot type and the synchronous type replication functions are performed.

8.3.2.1 Synchronous processing start command (swsrpstartsync)

Start the synchronous type replication processing (copying between disks by EC and REC).

Copy all the specified replication destination and replication source volumes (start of the synchronization processing), or copy (restart of the synchronization processing) updated data (difference). Use this command at the start of operation or when you want to reflect updated data (difference) from the equivalency holding state. a. Specification method

[To be executed on a storage server]

/opt/FJSVswsrp/bin/swsrpstartsync [-y] [-t] [-m] From-Volume-Name To-Volume-Name

[To be executed on a storage management server]

/opt/FJSVswsrp/bin/swsrpstartsync -h Server-Name [-y] [-t] [-m] From-Volume-Name To-Volume-Name

b. Description of options Option Description

-h This option is valid only on a storage management server.

This option can be specified only on a storage management server.

-y

Specifies that synchronization processing is started in synchronous write mode (mode in which data is copied to the replication destination volume synchronized with writing to the replication source volume). This option is valid only when total copy for intercabinet replication is started. If this option is omitted, asynchronous write mode (mode in data is copied to the replication destination volume unsynchronized with writing to the replication source volume) is used.

The synchronization processing of intracabinet replication is always performed in synchronous write mode.

-m

For server-to-server replication, specifies that communication processing with non-operation servers is not performed. When this option is specified, volume status check processing and the preprocessing for the replication destination volume of a non-operation server are not performed.

This option is valid only during server-to-server replication.

-t Specifies that preprocessing for the replication destination volume is not performed.

c. Description of operands Operand Description

From-Volume-NameSpecifies a replication source volume name. Specifies the replication source volume or the replication destination volume set with the replication volume information setting command.

To-Volume-Name Specifies a replication destination volume name. Specifies the replication source volume or the replication destination volume set with the copy volume information setting command.

d. End status = 0: Normal end > 0: Abnormal end

e. Execution example Start replication from /dev/dsk/c1t2d0 of a storage management server to /dev/dsk/c1t2d0@TARG-SV of storage server SRC-SV. # /opt/FJSVswsrp/bin/swsrpstartsync -h SRC-SV /dev/dsk/c1t2d0 /dev/dsk/c1t2d0@TARG-SV

FROM=/dev/dsk/c1t2d0@SRC-SV,TO=/dev/dsk/c1t2d0@TARG-SV swsrpstartsync completed

118

Page 122: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

#

Replication cannot be started if:

· The specified replication source volume and replication destination volume are not set as replication volumes.

· A replication source volume is specified as the copy place volume and a replication destination volume is specified as the copied material volume, and one-way copy is set as the copy attribute of the replication volume.

· Volume information (medium identifier, OLU, EXTENT start position, and EXTENT size) is changed after operation starts. In this case, operation cannot continue for the corresponding volume. Stop the replication operation for the corresponding volume, and then delete and set the replication volume information.

· For server-to-server replication, the storage server on which the command is executed is not the operation server of the replication volume.

· For server-to-server replication, communication with a destination server fails. · Replication cannot be started as a result of the preceding advanced copy function. · Changing into the logic disk composition which cannot be supported AdvancedCopy Manager. · A volume group is in an un-active state in volume group specification.

When the replication to perform corresponds to either of the following conditions, please perform drive character release or unmount of copy place volume before executing a command.

· When a replication is performed between different OS's · When the sizes of replication source volume and replication destination volume differ · When the file systems of replication source volume and replication destination volume differ

When performing neither drive character release nor unmount in the above-mentioned case, post-processing of the copy place volume at the time of duplicate creation serves as an error.

The processing of this command varies according to the status of the synchronization processing of the specified replication source and replication destination volumes.

Status of synchronization processing Processing

Unmount status Start of total copy

Total or incremental copy status Abnormal end

Equivalency maintain status Abnormal end

Replication established status (halt status) Start of incremental copy

Before starting the replication, run the replication preprocessing script for the replication destination volume. The contents of this script can be customized. For more information, see Appendix B, Replication Scripts. If you do not want to implement the preprocessing script, use the -t option.

To protect processing that accesses a replication destination volume, set the copied material volume before starting replication so that other processes cannot access it. To do so, cancel the drive letter of the replication destination volume or execute unmount. If you cannot cancel the drive letter of the replication destination volume or execute unmount because of the situations described below, this command fails and terminates.

· There is a directory in which other volumes are mounted under the mount point. · A file on the volume is being used. In addition, if the replication destination volume is being

119

Page 123: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

used from a server other than the server on which this command is entered, the replication-operation administrator must disable access to the replication destination volume by cancellation of the share setting, unmounting, or some other method.

· When setting the volume group which consists of two or more logical disks as a original volume, and replicating it, make all logical devices unmount/mount on administrator responsibility.

In the case where replica volume is a volume group, do not execute the vgchange (1M) command to un-activate (deactivate) the replica volume under synchronous processing (EC/REC) execution. If replica volume being un-active under synchronous processing execution, it not only becoming impossible to make it active again but it will be in the state where operation of a stop of synchronous processing, replication creation command, replication cancellation command, etc. cannot be performed. If being un-activate accidentally, make replica volume active after forcible stopping of the synchronous processing using GRmgr, etc.

This command cannot be executed while any of the following commands is running:

· Replication volume information setting command (swsrpsetvol) · Replication volume information deletion command (swsrpdelvol) · Resource adjustment command (swsrprecoverres)

8.3.2.2 Replication creation command (swsrpmake)

When synchronization processing (EC) is not performed, start snapshot processing (OPC) to create a replication volume.

When synchronization processing is performed, check whether the status of the processing is equivalency holding state. If the status is equivalency holding state, suspend the synchronization processing and create a replication volume. The status in which synchronization processing is suspended is referred to as the replication established status. After this command is executed, the replication volume (replication destination volume) can be accessed.

This command executes the replication preprocessing and postprocessing scripts before a replication is created. For details of these scripts, see Appendix B, "Replication Scripts." a. Specification method

[To be executed on a storage server]

/opt/FJSVswsrp/bin/swsrpmake [-f] [-t] [-m] From-Volume-Name To-Volume-Name

[To be executed on a storage management server]

/opt/FJSVswsrp/bin/swsrpmake -h Server-Name [-f] [-t] [-m] From-Volume-Name To-Volume-Name

b. Description of options Option Description

-h Specifies a storage server name.

This option can be specified only on a storage management server.

-m

For server-to-server replication, specifies that communication processing with the non-operation server is not performed. When this option is specified, volume status check processing and preprocessing and post processing are not performed for the non-operation server volume.

This option is valid only during server-to-server replication.

-f Specifies that the preprocessing and post processing for a replication source volume are not performed.

-t Specifies that the preprocessing and post processing for a replication destination volume are not performed.

c. Description of operands Operand Description

From-Volume-Name Specifies a replication source volume. Specifies the replication source volume or the replication destination volume that was set with the

120

Page 124: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

replication volume information setting command.

To-Volume-Name Specifies a replication destination volume. Specifies the replication source volume or the replication destination volume that was set with the replication volume information setting command.

d. End status = 0: Normal end > 0: Abnormal end

e. Execution example The Storage management server instructs Storage server: SRC-SV to create a copy of /dev/dsk/c1t2d0 in /dev/dsk/c1t2d0@TARG-SV. # /opt/FJSVswsrp/bin/swsrpmake -h SRC-SV /dev/dsk/c1t0d2 /dev/dsk/c1t2d0@TARG-SV

FROM=/dev/dsk/c1t2d0@SRC-SV,TO=/dev/dsk/c1t2d0@TARG-SV swsrpmake completed

#

Replication cannot be created if:

· The specified replication source and replication destination volumes are not set as replication volumes.

· The synchronization processing from the specified replication source volume to the replication destination volume is not in the equivalency maintain status.

· After operation starts, physical volume information (medium identifier, OLU, EXTENT start position, and EXTENT size) is changed. In this case, operation for the corresponding volume cannot continue. Stop the replication operation for the volume, and then delete and set the replication volume information.

· A replication source volume or a replication destination volume has multiple mount points. · For server-to-server replication, the storage server on which the command is executed is not

the operation server of the replication volume. · For server-to-server replication, communication with a destination server fails. · Changing into the logic disk composition which cannot be supported AdvancedCopy Manager. · A volume group is in an un-active state in volume group specification.

When the replication to perform corresponds to either of the following conditions, please perform drive character release or unmount of copy place volume before executing a command.

· When a replication is performed between different OS's · When the sizes of replication source volume and replication destination volume differ · When the file systems of replication source volume and replication destination volume differ

When performing neither drive character release nor unmount in the above-mentioned case, post-processing of the copy place volume at the time of duplicate creation serves as an error.

Before a replication is created, the replication preprocessing and postprocessing scripts for the replication source volume are executed (for synchronized replication, only preprocessing script is executed). After the replication has been created, the replication postprocessing script for the replication source volume and replication destination volume is executed. The contents of the script can be customized. For more information, see Appendix B, "Replication Scripts" If you do not want to implement the preprocessing and postprocessing scripts, use the -f option and the -t option.

If this command is executed during execution of snapshot processing, stop the copy processing in progress and start the snapshot processing again.

121

Page 125: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

To protect the data, set the replication source volume before creating a replication so that other processes cannot access the volume. To do so, cancel the drive letter of the replication source volume or execute unmount. If you cannot cancel the drive letter of the replication source volume or execute unmount because of the situations described below, this command fails and terminates.

· There is a directory in which other volumes are mounted under the mount point. · A file on the volume is being used. In addition, if the replication source volume is being used

from a server other than the server on which this command is entered, the backup-operation administrator must disable access to the replication source volume by cancellation of the share setting, unmounting, or some other method. If for whatever reason you do not want to remove the share setting of the replication source volume or execute unmount or some other method, see Appendix B, "Replication Scripts" and note the following.

- When setting the volume group which consists of two or more logical disks as a original volume, and replicating it, make all logical devices unmount/mount on administrator responsibility.

- When the replication source volume is being used by backup management, unmount may not possible. If so, "swsrp2613 An error occurred on the preprocessing script at replication creation. Error code = 2" is output.

- For replication preprocessing, execute the UNIX sync command to synchronize volumes and the file system.

· In replication post-processing, execute the fsck command to check the file system at the copy destination.

This command cannot be executed while any of the following commands is running:

· Replication volume information setting command (swsrpsetvol) · Replication volume information deletion command (swsrpdelvol) · Resource adjustment command (swsrprecoverres)

8.3.2.3 Operation status display command (swsrpstat)

This command displays the operation status of the specified volume. If a volume is not specified, the operation status of each replication volumes is displayed. a. Specification method

[To be executed on a storage server]

/opt/FJSVswsrp/bin/swsrpstat [Original-Volume-Name]

[To be executed on a storage management server]

/opt/FJSVswsrp/bin/swsrpstat -h Server-Name [Original-Volume-Name] b. Description of options

Option Description

-h Specifies a storage server name.

This option can be specified only on a storage management server. c. Description of operands

Operand Description

Original-Volume-Name

Specifies a replication source volume name. For the volume names of other servers, use the format "volume-name@storage-server-name."

Displays all operation statuses for the specified replication source volume. If this operand is omitted, all the operation statuses of the storage server on which this command is executed are displayed.

d. End status = 0: Normal end > 0: Abnormal end

e. Execution example Direct that all the replication operation statuses for storage server SRC-SV be displayed on the storage management server. # /opt/FJSVswsrp/bin/swsrpstat -h SRC-SV

122

Page 126: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Server Original-Volume Replica-Volume Direction Status Execute

SRC-SV /dev/dsk/c1t2d0@SRC-SV /dev/dsk/c1t2d0@TARG-SV regular replicated ----

SRC-SV /dev/dsk/c1t2d1@SRC-SV /dev/dsk/c1t2d1@TARG-SV ---- ---- ----

SRC-SV /dev/dsk/c1t2d2@SRC-SV /dev/dsk/c1t2d2@TARG-SV reverse snap 45%

# The following information will be displayed. Title Description

Server Displays a storage server name.

Original-Volume Displays a replication source volume name.

Replica-Volume Displays a replication destination volume name.

Direction

Displays the copy direction. · regular: Copying from the replication source to the replication

destination is being performed. · reverse: Copying from the replication destination to the replication

source is being performed. · ----: Copying is not performed.

Status

Displays the progress. · ---- : Copying is not being performed. · sync : Total copy or incremental copy is being performed. · equivalent : Equivalency maintain status · replicated : Replication established status · failed : Error suspend status · halt : Hard suspend status · snap : Snapshot processing is being performed. · ????? : Copy situation cannot be acquired.

Execute Displays the rate of copying progress as a percentage. When copying is not being performed, "----" is displayed.

When the execution status (status displayed in the Status field) is one of the following, take appropriate action.

Status display Corrective action

Failed A hardware error may have occurred. Correct the hardware error, and then use the replication cancellation command to stop operation.

Halt A hardware error during replication operation between cabinets may occur. Correct the hardware error, and then use the replication cancellation command to stop the copy operation.

????? Copy situation cannot be acquired. A hardware error may have occurred if the result is the same after reexecution. Correct the hardware error, and then reexecute the command.

The operation status cannot be displayed if:

· The volumes are not set as replication volumes. · Changing into the logic disk composition which cannot be supported AdvancedCopy Manager. · A volume group is in an un-active state in volume group specification.

This command cannot be executed while the following command is running:

123

Page 127: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

· Resource adjustment command (swsrprecoverres)

8.3.2.4 Replication cancellation command (swsrpcancel)

This command stops snapshot processing (OPC) and synchronization processing (EC) of the specified replication volume. Use this command when an error is detected during the replication operation and when you want to stop replication processing. a. Specification method

[To be executed on a storage server]

/opt/FJSVswsrp/bin/swsrpcancel [-c] [-f] [-t] [-m] From-Volume-Name To-Volume-Name e

[To be executed on a storage management server]

/opt/FJSVswsrp/bin/swsrpcancel -h Server-Name [-c] [-f] [-t] [-m] From-Volume-Name To-Volume-Name

b. Description of options Option Description

-h Specifies a storage server name.

This option can be specified only on a storage management server.

-c

Specifies that the copy processing is forcibly stopped from a non-operation server when the operation server cannot be used because of a system failure. If this option is used, the copy processing is stopped without implementing preprocessing and postprocessing. If this option is used, a contradiction arises in the synchronization processing management information on the operation server. Therefore, after recovery of the operation server, enter the resource adjustment command on the operation server.

This option cannot be specified on the operation server.

-m

For server-to-server replication, specifies that communication processing with non-operation servers is not performed. When this option is specified, volume status check processing and preprocessing and postprocessing for the replication destination volume of a non-operation server are not performed.

This option is valid only during server-to-server replication.

-f Specifies that preprocessing and postprocessing for the replication source volume are not performed.

-t Specifies that preprocessing and postprocessing for the replication destination volume are not performed.

c. Description of operands Operand Description

From-Volume-NameSpecifies a replication source volume name. Specifies the replication source volume or the replication destination volume set with the replication volume information setting command.

To-Volume-Name Specifies a replication destination volume name. Specifies the replication source volume or the replication destination volume set with the copy volume information set command.

d. End status = 0: Normal end > 0: Abnormal end

e. Execution example On the storage management server, direct that copying from /dev/dsk/c1t2d0 to /dev/dsk/c1t2d0@TARG-SV is stopped for storage server SRC-SV. #/opt/FJSVswsrp/bin/swsrpcancel -h SRC-SV /dev/dsk/c1t2d0 /dev/dsk/c1t2d0@TARG-SV FROM=/dev/dsk/c1t2d0@SRC-SV,TO=/dev/dsk/c1t2d0@TARG-SV swsrpcancel completed #

Copy processing cannot be performed if:

· The specified replication source volume and replication destination volume are not set as

124

Page 128: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

replication volumes. · The copy processing is not performed for the specified replication source and replication

destination volumes. · For server-to-server replication, the storage server on which the command is executed is not

the operation server of the replication volume. · For server-to-server replication, communication with a destination server fails. · Changing into the logic disk composition which cannot be supported AdvancedCopy Manager. · A volume group is in an un-active state in volume group specification.

The volume information for the specified volume is not checked (check for matching of the volume information in the management list and the actual physical information). Operation is canceled unconditionally using the volume information in the management list.

The following processing is performed depending on the operation status of the specified replication source volume and replication destination volume.

Operation status Processing

Reverse copy direction Suspends the processing.

Not operating yet Suspends the processing.

Total or incremental copy is performed

Suspends synchronization processing. The replication destination volume cannot be used.

Equivalency maintain status

Suspends synchronization processing. The replication destination volume can be used as a copy

Replication established status

Suspends synchronization processing. The replication destination volume can be used as a copy

Snapshot processing is being performed

Stops the snapshot processing. The replication destination volume cannot be used.

Preprocessing and postprocessing for a replication source and replication destination volumes are performed only when the status of synchronization processing is equivalency maintain.

This command cannot be executed while any of the following commands is running:

· Replication volume information setting command (swsrpsetvol) · Replication volume information deletion command (swsrpdelvol) · Resource adjustment command (swsrprecoverres)

8.3.3 Maintenance commands

This chapter describes the maintenance commands for replication management.

Use the following maintenance commands for replication management.

Function Command name Description

Resource adjustment command swsrprecoverres Restores the consistency of information in a replication

management list.

8.3.3.1 Resource adjustment command (swsrprecoverres)

This command executes recovery to make replication management information consistent if a system failure or other problem has made the replication management information inconsistent.

125

Page 129: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

a. Specification method [To be executed on a storage server]

/opt/FJSVswsrp/bin/swsrprecoverres [-r] [-p] [-s]

[To be executed on a storage management server]

/opt/FJSVswsrp/bin/swsrprecoverres -h Server-Name [-r] [-p] [-s] b. Description of operands

Operand Description

-h Specifies a storage server name.

This option can be used only on a storage management server.

-r

Specify this option when an incorrect status exists in the replication management list (for example, the replication volume information setting command or the replication volume information deletion command that update the replication management list terminate suddenly because of a forced stop or a system failure, or the replication management list has been deleted by mistake).

When this option is specified, the following processing to re-create the replication management list is performed.

Replication management information in the storage management server repository is downloaded to the storage server, and the replication volume information is restored.

The disk array device is queried, and the execution information for the synchronization processing is restored. (The processing with the -s option specified is performed. This option includes -s option processing.)

-p Specifies not to perform any postprocessing that has not been performed. This option can be used when the replication creation command processing terminates suddenly because of a forced stop or system failure.

-s

Specify this operand when the replication management list containing synchronization processing information has been deleted by mistake.

Querying the disk array device enables the execution information for synchronization processing to be restored.

In addition, when you use the -r option, you do not need to specify this option since specifying "-r -s" is the same as specifying "-r").

c. End status = 0: Normal end > 0: Abnormal end

d. Execution example Perform resource adjustment. #/opt/FJSVswsrp/bin/swsrprecoverres

swsrprecoverres completed

#

The resource adjustment processing cannot be performed if:

· Communication with a storage management server fails and the -r option is specified. · The -r option is not specified when this command is executed after processing by the replication

volume information setting command and the replication volume information deletion command has been forcibly terminated.

· When specifying -r or -s option, and corresponding to the following conditions, this command terminates with an error.

- Changing into the logic disk composition which cannot be supported AdvancedCopy Manager.

- A volume group is in an un-active state in volume group specification.

126

Page 130: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

The consistency of resource information is restored only for the storage server on which this command is executed. When a resource inconsistency occurs during processing related to replication between servers, this command must be executed both on the storage server on which the processing was performed and on the storage server with which communication is being made.

This command cannot be executed while any of the following commands is running:

· Replication volume information setting command (swsrpsetvol) · Replication volume information display command (swsrpvolinfo) · Replication volume information deletion command (swsrpdelvol) · Synchronous processing start command (swsrpstartsync) · Replication creation command (swsrpmake) · Replication status display command (swsrpstat) · Replication cancellation command (swsrpcancel) · Resource adjustment command (swsrprecoverres)

8.4 Starting and Stopping Daemons

AdvancedCopy Manager daemons can be started in the ways explained in this chapter.

A note on this command is as follows:

· Execute this command using the same LANG environment variable that of the code system used by the system.

· Only a root user can execute this command.

8.4.1 Starting and stopping the communication daemon

· Starting the communication daemon Enter the following command to stop the communication daemon: # /opt/FJSVswstf/bin/stgfwcom start

· Stopping the communication daemon Enter the following command to stop the communication daemon: # /opt/FJSVswstf/bin/stgfwcom stop

8.4.2 Starting and stopping AdvancedCopy Manager daemons

The daemons listed below are started and stopped together:

Server type Storage server

Daemon name Communication daemon · * For information about starting Storage management server daemons, see chapter 9.4.5 in "Solaris Softek

AdvancedCopy Manager Operator's Guide", or chapter 2 in "Windows Softek AdvancedCopy Manager Operator's Guide".

· Starting a AdvancedCopy Manager daemon Enter the following command to start a AdvancedCopy Manager daemon: # /opt/swstorage/bin/startacm

· Stopping a AdvancedCopy Manager daemon Enter the following command to stop a AdvancedCopy Manager daemon: # /opt/swstorage/bin/stopacm

127

Page 131: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

128

Page 132: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Chapter 9 Notes on Operations

This chapter provides notes on the operations of Softek AdvancedCopy Manager.

9.1 Notes on Backup and Replication Operation

This chapter provides notes on the backup and replication operation.

9.1.1 General notes

This chapter provides general notes on the backup and replication operation.

+Locale of a Storage Server

On all the storage servers, the locale of an internal code system to be used by Softek AdvancedCopy Manager (a code system to be specified when Softek AdvancedCopy Manager is installed on a storage management server) must be installed.

Between a Storage management server and a Storage server, when language environment (LANG) differs, management is needed. The combination and solution are shown below.

Storage management server Storage server Solution

Windows (SJIS) Windows (SJIS) Not required

Windows (SJIS) Solaris OE (EUC)

The SJIS package needs to be installed on the Storage server.

Windows (SJIS) HP-UX (EUC)

The SJIS package needs to be installed on the Storage server.

Windows (SJIS) Linux (EUC) Not required

Solaris OE: Depends on locale setting (standard EUC)

Windows (SJIS)

Not required (When the Storage server is EUC, the Storage server responds normally.)

Solaris OE: Depends on locale setting (standard EUC)

Solaris OE (EUC)

Not required (for the same code)

When the management server is SJIS, the JIS package needs to be installed on the Storage server.

Solaris OE: Depends on locale setting (standard EUC)

HP-UX (EUC)

Not required (for the same LANG)

When the management server is SJIS, the JIS package needs to be installed on the Storage server.

Solaris OE: Depends on locale setting (standard EUC) Linux (EUC) Not required

Linux (EUC) Windows (SJIS)

Not required (When the Storage server is EUC, the Storage server responds normally.)

Linux (EUC) Solaris OE (EUC) Not required

Linux (EUC) HP-UX (EUC) Not required

Linux (EUC) Linux (EUC) Not required

Install SUNWjpck (SJIS package) as required for the response. After the package is installed, perform the operation "Collect or reflect the information for each device" again from the Web client.

+Exclusion from Backup or replication Targets

The following devices must not be subject to the backup or replication operation. · Device on which the system is stored · Device on which Softek AdvancedCopy Manager has been installed · Device on which the resource files of Softek AdvancedCopy Manager exists

129

Page 133: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

+Fetching of Device Information

Before starting the backup or replication operation, fetch device information managed by all the storage servers on the Web window of Softek AdvancedCopy Manager. This operation will take time proportional to the total number of devices defined on the selected storage servers. If many devices are involved, perform this operation while the CPU load or I/O load is low.

As a guide, about 0.5 seconds are required per device (disk) under a no-load condition.

+Notes at the time of multipass employment

When the device is being made multipass composition, even if one of the two's path is blockaded, a path shift is not carried out automatically.

When one of the two's path is blockaded, please re-perform backup after the following management implementation. 1. The following commands are carried out and a path is switched. Please execute the following commands to a

normal device. Since a system will stop if it performs to an unusual device, be careful. /usr/sbin/pvchange -s /dev/dsk/c*t*d*

2. A backup command is executed again.

9.1.2 Notes on the snapshot high-speed backup

This chapter provides notes on the snapshot high-speed backup.

+Number of Required Backup Volumes

The snapshot high-speed backup requires as many backup volumes as the number of specified generations. Thus, the snapshot backup is disabled if: · All the specified number of generations have been backed up, and · No new volume that can be used as a backup volume exists.

+Continuous Backup

Performing the snapshot high-speed backup continuously with the same transaction volume specified will perform the backup operation in parallel.

Performing the snapshot high-speed backup continuously more often than the number of preservation generations will cancel the backup operations starting from the oldest one. In other words, you cannot simultaneously perform the backup operation more often than the specified number of generations.

9.1.3 Notes on synchronous high-speed backup

This chapter includes some notes on synchronous high-speed backup.

+Backup processing

The backup execution command cannot be executed before the transaction and backup volumes have become equivalency holding state.

+Backup policy settings

Backup policies can be set if the number of registered backup volumes is enough for snapshot-type high-speed backup operation even if the number is not enough for synchronous high-speed backup operation. In this event, synchronized backup may not be possible.

+Volume group operation under synchronous processing

In the case where backup volume is a volume group, do not execute the vgchange (1M) command under synchronous processing (EC/REC) execution. If backup volume being deactive under synchronous processing execution, it not only becoming impossible to make it active again but it will be in the state where operation of a stop of synchronous processing, backup execution command, backup synchronous processing cancel command, etc. cannot be performed.

9.1.4 Notes on restoration

This chapter provides notes on restoration.

130

Page 134: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

+Timing of Restoration

If data on a transaction volume has been rewritten since the latest backup data is collected to a backup volume and until restoration is performed, the rewritten data shall not be guaranteed.

[Figure 9.1 Notes on restoration of Softek AdvancedCopy Manager]

9.1.5 Notes on synchronous replication

This chapter provides notes on synchronous replication.

+Volume group operation under synchronous processing

In the case where replica volume is a volume group, do not execute the vgchange (1M) command under synchronous processing (EC/REC) execution. If replica volume being deactive under synchronous processing execution, it not only becoming impossible to make it active again but it will be in the state where operation of a stop of synchronous processing, replication creation command, replication cancellation command, etc. cannot be performed.

9.2 Notes on the Web Window Environment

This chapter provides notes on the Web window environment.

+Settings of Java Plug-in Properties

After installing the Java Plug-in, display the Properties window of the Java Plug-in.

Select [Settings] - [Control Panel] - [Java Plug-in].

Table 9.1 shows the relationships between the settings on the Java Plug-in Properties window and the operations on the Web window. Depending on the settings made on the Properties window, the Web window may not normally

131

Page 135: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

operate. The Web window can operate by the default values that Plug-in has been installed. You need not change the settings in particular.

[Table 9.1 Settings of the Java Plug-in and operations on the Web window]

Tag name

Setting value name Setting Default

value Remarks

Enabling the Java Plug-in

Must be checked Checked

Unless this item is checked, a message "Java is disabled" will be displayed on the Java console and the Web window cannot be started.

Displaying the Java console Optional Not

checked

You are recommended to check this item although it is optional. The operating status of the Web window will be displayed on the "Java Console" and can be used as investigation information if any error occurs on the Web window.

Caching JAR to memory

Recommended to be checked Checked

If this item is checked, you can bring up more quickly from the initial window a management window that has been brought up once.

Basics

Parameter for Java execution

Not specified Not specified

This item will be meaningless if specified.

Java Run Time Environment

Using the Java Plug-in by default

Using the Java Plug-in by default

Specify the Run Time level at which the Web window should run. Do not specify any other level. If this item is not checked, a malfunction may occur.

Enabling the Just in Time Compiler

Must be checked Checked If this item is not checked, a

malfunction may occur.

Details

Enabling debugging

Must not be checked

Not checked

If this item is checked, a malfunction may occur.

Proxy Using the browser settings

Must be checked Checked If this item is not checked, a

malfunction may occur.

+Proxy Settings of Web Browser

Before using the Web window, specify an IP address or server name for a storage management server on the Web browser. At this time, do not specify the proxy of the Web browser as the IP address or server name. · For Navigator 4.5 or later Select the [Edit] menu and then [Settings] to display the Settings dialog box. From the category (tree), select [Details] and then [Proxy], check [Manually set up the proxy], and click the Display button to display the Manually Set Up Proxy dialog box. In the [Do not use the proxy for a domain starting with:] box, specify the IP address of a storage management server. · For Explorer 4.0 Select the [View] menu and then [Internet Options] to display the Internet Options dialog box. From the dialog box, select the [Connection] tag and click the [LAN Connection] button. Then, the [Local Area Network (LAN) Settings] dialog will be displayed. Click the [Details] button to display the [Proxy Settings] dialog. Then, in the [Do not use the proxy for an address starting with:] box in the [Proxy Settings] dialog, specify the IP address of a storage management server. · For Explorer 5.0 or later Select the [Tools] menu and then [Internet Options] to display the Internet Options dialog box. From the dialog box, select the [Connection] tag and click the [LAN Connection] button. Then, the [Local Area Network (LAN) Settings] dialog will be displayed. Click the [Details] button to display the [Proxy Settings] dialog. Then, in the [Do not use the proxy for an address starting with:] box in the [Proxy Settings] dialog, specify the IP address of a storage management

132

Page 136: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

server.

133

Page 137: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

134

Page 138: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Appendix A Preprocessing and Postprocessing of Backup and Restoration

This appendix describes shell scripts used for preprocessing and postprocessing of backup and restoration in HP-UX Softek AdvancedCopy Manager.

A.1 Overview

Shell scripts used for preprocessing and postprocessing of backup or restoration are started before and after backup or restoration when a backup or restore execution command is executed.

These shell scripts describe processing required by Softek AdvancedCopy Manager to back up or restore a transaction volume.

This chapter describes the setup of preprocessing and postprocessing.

A.2 Preprocessing and Postprocessing of Backup

Backup on Softek AdvancedCopy Manager must be performed basically while access to a transaction volume from other processes is inhibited.

Therefore, when a transaction volume is a physical disk, the preprocessing acquires the mount status of a transaction volume using the transaction volume name and then performs the following processing:

Transaction volume status Preprocessing

Mounted Unmount a transaction volume.(*1)

Unmounted Take no action.

*1 If the transaction volume cannot be unmounted, customize the shell script for pre-processing. For information on this customization, see the section on "When you do not want to unmount a transaction volume."

What to do in the postprocessing must be determined depending on what has been done in the preprocessing.

Preprocessing Postprocessing

A transaction volume was unmounted. Remount the transaction volume.

Take no action. Take no action.

If no transaction volume has been mounted since the start of system operation (e.g., a transaction volume used as a database), neither pre- nor post-processing is performed.

If special preprocessing or postprocessing is required, you need to add the concerned processing to a shell script.

For backing up the volume group that includes logical volume in which the file system has been built, see "Backup a volume group" and the script of preprocessing and postprocessing has to be customized to execute unmount/mount processing for all logical volume in which the file system has been built.

If post-processing was failed, execute the Resource match command because the consistency of resource information may be incomplete.

A.2.1 Preprocessing of backup

The name of the shell script for pre-processing before backup processing is as follows.

In the case of non-cluster employment

/etc/opt/FJSVswsts/sh/OpcBackup.pre

In the case of cluster employment

/etc/opt/FJSVswsts / <logic node name> / sh/OpcBackup.pre

135

Page 139: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

#!/bin/sh

# Softek AdvancedCopy Manager

# All Rights Reserved, Copyright FUJITSU LIMITED, 2002

#

# Preprocessing of backup processing

#

# Argument: $1 Device or VG name of transaction disk

# $2 Mount point of transaction disk

# $3 Device or VG name of backup disk

#

# Error number

# 1: Argument error(system error)

# 2: umount error

# 3: VG configuration file not found error

# Argument check

case $# in

1)

;;

2)

;;

3)

;;

*)

exit 1

;;

esac

device=$1

mount_point=$2

bk_device=$3

# Determination postprocessing file name

if [ "$SWSTGNODE" != "" ]

then

swstg_node="/`echo $SWSTGNODE`"

else

swstg_node=""

fi

# Device type check

trans="`echo $device | grep "/dev/dsk/"`"

lvmtrans="`echo $device | grep "/dev/"`"

if [ "$trans" != "" ]

then

dev_type="physical"

dev="`echo $device | sed "s/¥/dev¥/dsk¥///"`"

136

Page 140: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

post_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".pre"

fstype_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".fstype"

bd_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".bd"

elif [ "$lvmtrans" != "" ]

then

dev_type="logical"

# /dev/XXXX -> XXXX

dev="`echo $device | awk -F¥/ '{ print $3 }'`"

post_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".pre"

fstype_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".fstype"

bd_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".bd"

else

exit 0

fi

# Save VG name of backup disk

bk_trans="`echo $bk_device | grep "/dev/dsk/"`"

bk_lvmtrans="`echo $bk_device | grep "/dev/"`"

if [ "$bk_trans" = "" -a "$bk_lvmtrans" != "" ]

then

bk_vg_name="`echo $bk_device | awk -F¥/ '{ print $3 }'`"

cfg_file="/etc/lvmconf/"$bk_vg_name".conf"

if [ ! -r $cfg_file ]

then

exit 3

fi

echo $bk_device > $bd_file

fi

# When the transaction disk is a physical device #############################

if [ "$dev_type" = "physical" ]

then

if [ "$mount_point" != "" ]

then

# When device cannot be unmounted --- 1

#

# if [ "$device" = "/dev/dsk/c*t*d*" ]

# then

# if [ "$bk_device" != "" ]

# then

# echo $bk_device > $bd_file

# fi

# df -ln $mount_point 2>/dev/null | awk -F: '{ print $2 }' | awk '{ print $1 }' > $fstype_file

137

Page 141: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

# sync

# sync

# echo "fsck" > $post_file

#

# When device can be unmounted --- 2

# else

df -ln $mount_point 2>/dev/null | awk -F: '{ print $2 }' | awk '{ print $1 }' > $fstype_file

/usr/sbin/umount $mount_point 2>/dev/null

if [ $? != 0 ]

then

exit 2

fi

echo "mount" > $post_file

# fi

# When device was not mounted --- 3

#

else

echo "none" > $post_file

fi

# When the transaction disk is a volume group ################################

elif [ "$dev_type" = "logical" ]

then

# When devices of volume group cannot be unmounted --- 4

#

# # Specify the name of volume group not to unmount

# if [ "$device" = "/dev/****" ]

# then

# if [ "$bk_device" != "" ]

# then

# echo $bk_device > $bd_file

# fi

# sync

# sync

# echo "fsck" > $post_file

# fi

#

# When devices of volume group can be unmounted --- 5

#

# # Specify the name of volume group to unmount

# if [ "$device" = "/dev/****" ]

# then

# # Unmount all logical volumes of the volume group

138

Page 142: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

# mount_point="/**"

# /usr/sbin/umount $mount_point 2>/dev/null

# if [ $? != 0 ]

# then

# exit 2

# fi

# echo "mount" > $post_file

# fi

#

# When devices of volume group was not mounted --- 6

#

# # Specify the name of volume group to do nothing

# if [ "$device" = "/dev/****" ]

# then

echo "none" > $post_file

# fi

fi

exit 0

+When you do not want to unmount operating volume

To operating volume not to unmount although mounted, please eliminate the comment ("#") of the 89-98th lines, and 101th line (in case physical volume) or 126-135st line (in case volume group) by the editor etc., and point to the target device in if sentence of the 89th or 126nd line.

In addition, please do not perform update operation of a file system of transaction volume after performing the sync command of the 96th line or the 132th line until postprocessing of backup. If update operation of a file system is performed in the meantime, the backup is extracted in the state with an imperfect file system, and the fsck command which is carried out by the postprocessing of backup may serve as an error.

A.2.2 Postprocessing of backup

The name of the shell script for pre-processing before backup processing is as follows.

In the case of non-cluster employment

/etc/opt/FJSVswsts/sh/OpcBackup.post

In the case of cluster employment

/etc/opt/FJSVswsts / <logic node name> / sh/OpcBackup.post

#!/bin/sh

# Softek AdvancedCopy Manager

# All Rights Reserved, Copyright FUJITSU LIMITED, 2002

#

# Postprocessing of backup processing

#

# Argument: $1 Device or VG name of transaction disk

# $2 Mount point of transaction disk

#

# Error number

# 1: Argument error (system error)

139

Page 143: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

# 2: mount error

# 3: vgcfgrestore error

# 4: fsck error

# Argument check

case $# in

1)

;;

2)

;;

*)

exit 1

;;

esac

device=$1

mount_point=$2

# Determination of postprocessing file name

if [ "$SWSTGNODE" != "" ]

then

swstg_node="/`echo $SWSTGNODE`"

else

swstg_node=""

fi

# Device type check

trans="`echo $device | grep "/dev/dsk/"`"

lvmtrans="`echo $device | grep "/dev/"`"

if [ "$trans" != "" ]

then

dev_type="physical"

dev="`echo $device | sed "s/¥/dev¥/dsk¥///"`"

post_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".pre"

fstype_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".fstype"

bd_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".bd"

elif [ "$lvmtrans" != "" ]

then

dev_type="logical"

# /dev/vgXX -> vgXX

dev="`echo $device | awk -F¥/ '{ print $3 }'`"

post_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".pre"

fstype_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".fstype"

bd_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".bd"

else

140

Page 144: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

exit 0

fi

# Confirmation of postprocessing

if [ ! -r $post_file ]

then

exit 0

fi

post="`cat $post_file`"

# Confirmation of FStype

if [ ! -r $fstype_file ]

then

fs=""

else

fs="`cat $fstype_file`"

fi

# Restore VG Configuration

if [ -r $bd_file ]

then

bk_device="`cat $bd_file`"

bk_trans="`echo $bk_device | grep "/dev/dsk/"`"

bk_lvmtrans="`echo $bk_device | grep "/dev/"`"

if [ "$bk_trans" = "" -a "$bk_lvmtrans" != "" ]

then

bk_vg_name="`echo $bk_device | awk -F¥/ '{ print $3 }'`"

cfg_file="/etc/lvmconf/"$bk_vg_name".conf"

if [ ! -r $cfg_file ]

then

exit 3

fi

bk_pv_rname="`vgcfgrestore -n $bk_device -l 2> /dev/null | awk '{print $1}' | grep ¥"/dev/rdsk¥"`"

if [ "$bk_pv_rname" = "" ]

then

exit 3

fi

vgchange -a n $bk_device > /dev/null 2>&1

reststatus=0

for bk_pv_rname1 in $bk_pv_rname

do

vgcfgrestore -n $bk_device $bk_pv_rname1 > /dev/null 2>&1

if [ $? = 0 ]

then

reststatus=1

141

Page 145: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

break

fi

done

if [ "$SWSTGNODE" != "" ]

then

vgchange -c y $bk_device > /dev/null 2>&1

vgchange -a e $bk_device > /dev/null 2>&1

else

vgchange -a y $bk_device > /dev/null 2>&1

fi

if [ $reststatus = 0 ]

then

exit 3

fi

fi

fi

# No processing

# When device was not mounted --- 3

# When devices of volume group was not mounted --- 6

if [ "$post" = "none" ]

then

rm -rf $post_file 2> /dev/null

rm -rf $fstype_file 2> /dev/null

rm -rf $bd_file 2> /dev/null

exit 0

fi

# mount processing

if [ "$post" = "mount" ]

then

# When device can be unmounted --- 2

if [ "$dev_type" = "physical" ]

then

/usr/bin/df -l $device > /dev/null 2>&1

if [ $? != 0 ]

then

if [ ! -r $fstype_file ]

then

/usr/sbin/mount $device $mount_point 2> /dev/null

else

if [ "$fs" = "" ]

then

/usr/sbin/mount $device $mount_point 2> /dev/null

142

Page 146: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

else

/usr/sbin/mount -F $fs $device $mount_point 2> /dev/null

fi

fi

if [ $? != 0 ]

then

exit 2

fi

fi

# elif [ "$dev_type" = "logical" ]

# then

#

# When devices of volume group can be unmounted --- 5

# # Specify the name of volume group to mount

# if [ "$device" = "/dev/vg**" ]

# then

# # Mount all logical volumes of the volume group

# fs="hfs"

# fs="vxfs"

# lvname="/dev/vg**/*****"

# lv_mount_point="/**"

#

# /usr/bin/df -l $lvname > /dev/null 2>&1

# if [ $? != 0 ]

# then

# /usr/sbin/mount -F $fs $lvname $lv_mount_point 2> /dev/null

# if [ $? != 0 ]

# then

# exit 2

# fi

# fi

# fi

fi

rm -rf $post_file 2> /dev/null

rm -rf $fstype_file 2> /dev/null

rm -rf $bd_file 2> /dev/null

exit 0

fi

# fsck processing

# When device cannot be unmounted --- 1

# When devices of volume group cannot be unmounted --- 4

143

Page 147: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

if [ "$post" = "fsck" ]

then

if [ -r $bd_file ]

then

bk_device="`cat $bd_file`"

bk_trans="`echo $bk_device | grep "/dev/dsk/"`"

if [ "$bk_trans" != "" ]

then

if [ ! -r $fstype_file ]

then

fsck -y $bk_device > /dev/null 2>&1

else

if [ "$fs" = "" ]

then

fsck -y $bk_device > /dev/null 2>&1

else

fsck -y -F $fs $bk_device > /dev/null 2>&1

fi

fi

if [ $? != 0 ]

then

exit 4

fi

# else

# # Specify the name of volume group to fsck

# if [ "$bk_device" = "/dev/vg**" ]

# then

# fs="hfs"

# fs="vxfs"

# lvname="/dev/vg**/r*****"

#

# fsck -F $fs -y $lvname > /dev/null 2>&1

# if [ $? != 0 ]

# then

# exit 4

# fi

# fi

fi

fi

rm -rf $post_file 2> /dev/null

rm -rf $fstype_file 2> /dev/null

rm -rf $bd_file 2> /dev/null

exit 0

144

Page 148: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

fi

exit 0

+Backup a volume group

When backing up a volume group that includes the logical volumes in which a file system is constructed, please eliminate the comment ("#") of the 136-146th lines in the preprocessing script (OpcBackup.pre) and 148-165th line in the postprocessing script (OpcBackup.post) by the editor etc., and modify the comment sentence so that the unmount/mount processing is carried out for all logical volumes in which a file system is constructed.

When the volume group containing the logic volume by which the file system was built is a candidate for backup, it is necessary to correct an order processing script.

Please comment ("#")-turn the exit sentence of the 121st line of a pretreatment script (OpcBackup.pre) after correcting a script.

◆Please eliminate the comment ("#") of the 140-150th line of a pretreatment script (OpcBackup.pre), and the comment ("#") of the 159-181st line of a post-processing script (OpcBackup.post) by the editor etc., and correct the description in a comment suitably so that unmount/mount processing is carried out to all the logic volumes by which the file system was built.

◆It is the volume group in which backup volume contains the logic volume by which the file system was built, and when not unmounting operating volume with a pretreatment, it is necessary to carry out fsck to all the logic volumes contained in backup volume by post-processing. Please eliminate the comment ("#") of the 216-229th line of a post-processing script (OpcBackup.post) by the editor etc., and correct the description in a comment suitably so that fsck processing is carried out to all the logic volumes by which the file system was built.

Note that unmount/mount processing to a volume group is not carried out in the state where not customized.

When backup volume is a volume group, in order to enable use of backup volume as LVM, volume group configuration information is restored by the vgcfgrestore command in the postprocessing of backup. In the above-mentioned script, volume configuration information is restored from the standard backup file "/etc/lvmconf/volume-group-name.conf". Please customize the script, when volume group configuration information is backed up by another file.

Please correct suitably parameters, options, etc. of the OS command, such as the mount command and the fsck command, according to employment.

A.3 Preprocessing and Postprocessing of Restoration

In Softek AdvancedCopy Manager, restore processing must be performed while transaction volumes are unmounted.

Thus, when transaction volume is a physical disk, the mount state of the transaction volume is determined using its name and the following processing is then performed in pre-processing:

Transaction volume status Preprocessing

Mounted Unmount the transaction volume.

Unmounted Take no action.

What to do in the postprocessing must be determined depending on what has been done in the preprocessing.

Preprocessing Postprocessing

A transaction volume was unmounted. Remount the transaction volume.

Take no action. Take no action.

If special preprocessing or postprocessing is required, you need to add the concerned processing to a shell script.

145

Page 149: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

When restoring a volume group that includes the logical volumes in which a file system is constructed, see "Restore a volume group", and customize the script of preprocessing and postprocessing so that the unmount/mount processing is carried out for all logical volumes in which a file system is constructed.

If pos-tprocessing was failed, execute the Resource match command because the consistency of resource information may be incomplete.

A.3.1 Preprocessing of restoration

The name of the shell script for pre-processing before restore processing is as follows.

In the case of non-cluster employment

/etc/opt/FJSVswsts/sh/OpcRestore.pre

In the case of cluster employment

/etc/opt/FJSVswsts / <logic node name> / sh/OpcRestore.pre

#!/bin/sh

# Softek AdvancedCopy Manager

# All Rights Reserved, Copyright FUJITSU LIMITED, 2002

#

# Preprocessing of restoration processing

#

# Argument: $1 Device or VG name of transaction disk

# $2 Mount point of transaction disk

#

# Error number

# 1: Argument error (system error)

# 2: umount error

# 3: VG configuration file not found error

# Argument check

case $# in

1)

;;

2)

;;

*)

exit 1

;;

esac

device=$1

mount_point=$2

# Determination of postprocessing file name

if [ "$SWSTGNODE" != "" ]

then

146

Page 150: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

swstg_node="/`echo $SWSTGNODE`"

else

swstg_node=""

fi

# Device type check

trans="`echo $device | grep "/dev/dsk/"`"

lvmtrans="`echo $device | grep "/dev/"`"

if [ "$trans" != "" ]

then

dev_type="physical"

dev="`echo $device | sed "s/¥/dev¥/dsk¥///"`"

post_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".pre"

fstype_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".fstype"

elif [ "$lvmtrans" != "" ]

then

dev_type="logical"

# /dev/vgXX -> vgXX

dev="`echo $device | awk -F¥/ '{ print $3 }'`"

post_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".pre"

fstype_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".fstype"

else

exit 0

fi

# When the transaction disk is a physical device #############################

if [ "$dev_type" = "physical" ]

then

# When device was mounted --- 1

if [ "$mount_point" != "" ]

then

df -ln $mount_point 2>/dev/null | awk -F: '{ print $2 }' | awk '{ print $1 }' > $fstype_file

/usr/sbin/umount $mount_point 2> /dev/null

if [ $? != 0 ]

then

exit 2

fi

echo "mount" > $post_file

# When device was not mounted --- 2

else

echo "none" > $post_file

fi

# When the transaction disk is a volume group ################################

147

Page 151: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

elif [ "$dev_type" = "logical" ]

then

# Check VG configuration file exists

vg_name="`echo $device | awk -F¥/ '{ print $3 }'`"

cfg_file="/etc/lvmconf/"$vg_name".conf"

if [ ! -r $cfg_file ]

then

exit 3

fi

# When devices of volume group was mounted --- 3

# # Specify the name of volume group to unmount

# if [ "$device" = "/dev/vg**" ]

# then

#

# # Unmount all logical volumes of the volume group

# mount_point="/**"

# /usr/sbin/umount $mount_point 2>/dev/null

# if [ $? != 0 ]

# then

# exit 2

# fi

# echo "mount" > $post_file

# fi

# When devices of volume group was not mounted --- 4

# # Specify the name of volume group to do nothing

# if [ "$device" = "/dev/vg**" ]

# then

echo "none" > $post_file

# fi

fi

exit 0

Restore processing is not possible on a mounted transaction volume that cannot be unmounted. Specify a device at the restore destination.

A.3.2 Postprocessing of restoration

The name of the shell script for post-processing after restore processing is as follows.

In the case of non-cluster employment

/etc/opt/FJSVswsts/sh/OpcRestore.post

In the case of non-cluster employment

/etc/opt/FJSVswsts/ <logic node name> /sh/OpcRestore.post.

#!/bin/sh

# Softek AdvancedCopy Manager

# All Rights Reserved, Copyright FUJITSU LIMITED, 2002

#

148

Page 152: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

# Postprocessing of restoration processing

#

# Argument: $1 Device or VG name of transaction disk

# $2 Mount point of transaction disk

#

# Error number

# 1: Argument error (system error)

# 2: mount error

# 3: vfcfgrestore error

# 4: fsck error

# Argument check

case $# in

1)

;;

2)

;;

*)

exit 1

;;

esac

device=$1

mount_point=$2

# Determination of postprocessing file name

if [ "$SWSTGNODE" != "" ]

then

swstg_node="/`echo $SWSTGNODE`"

else

swstg_node=""

fi

trans="`echo $device | grep "/dev/dsk/"`"

lvmtrans="`echo $device | grep "/dev/"`"

if [ "$trans" != "" ]

then

dev_type="physical"

dev="`echo $device | sed "s/¥/dev¥/dsk¥///"`"

post_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".pre"

fstype_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".fstype"

elif [ "$lvmtrans" != "" ]

then

dev_type="logical"

# /dev/vgXX -> vgXX

dev="`echo $device | awk -F¥/ '{ print $3 }'`"

149

Page 153: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

post_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".pre"

fstype_file="/etc/opt/FJSVswsts"$swstg_node"/data/DEFAULT/"$dev".fstype"

else

exit 0

fi

# Confirmation of postprocessing

if [ ! -r $post_file ]

then

exit 0

fi

post="`cat $post_file`"

# Confirmation of FStype

if [ ! -r $fstype_file ]

then

fs=""

else

fs="`cat $fstype_file`"

fi

# Restore VG Configuration

if [ "$dev_type" = "logical" ]

then

vg_name="`echo $device | awk -F¥/ '{ print $3 }'`"

cfg_file="/etc/lvmconf/"$vg_name".conf"

if [ ! -r $cfg_file ]

then

exit 3

fi

pv_rname="`vgcfgrestore -n $device -l 2> /dev/null | awk '{print $1}' | grep ¥"/dev/rdsk¥"`"

if [ "$pv_rname" = "" ]

then

exit 3

fi

vgchange -a n $device > /dev/null 2>&1

reststatus=0

for pv_rname1 in $pv_rname

do

vgcfgrestore -n $device $pv_rname1 > /dev/null 2>&1

if [ $? = 0 ]

then

reststatus=1

break

150

Page 154: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

fi

done

if [ "$SWSTGNODE" != "" ]

then

vgchange -c y $device > /dev/null 2>&1

vgchange -a e $device > /dev/null 2>&1

else

vgchange -a y $device > /dev/null 2>&1

fi

if [ $reststatus = 0 ]

then

exit 3

fi

fi

# No processing

# When device was not mounted --- 2

# When devices of volume group was not mounted --- 4

if [ "$post" = "none" ]

then

rm -rf $post_file 2> /dev/null

rm -rf $fstype_file 2> /dev/null

exit 0

fi

# mount processing

if [ "$post" = "mount" ]

then

# When device was mounted --- 1

if [ "$dev_type" = "physical" ]

then

/usr/bin/df -l $device > /dev/null 2>&1

if [ $? != 0 ]

then

if [ ! -r $fstype_file ]

then

/usr/sbin/mount $device $mount_point 2> /dev/null

else

if [ "$fs" = "" ]

then

/usr/sbin/mount $device $mount_point 2> /dev/null

else

/usr/sbin/mount -F $fs $device $mount_point 2> /dev/null

151

Page 155: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

fi

fi

if [ $? != 0 ]

then

exit 2

fi

fi

# elif [ "$dev_type" = "logical" ]

# then

#

# When devices of volume group was mounted --- 3

# # Specify the name of volume group to mount

# if [ "$device" = "/dev/vg**" ]

# then

# # Mount all logical volumes of the volume group

# fs="hfs"

# fs="vxfs"

# lvname="/dev/vg**/*****"

# lv_mount_point="/**"

#

# fsck -F $fs -y $lvname > /dev/null 2>&1

# if [ $? != 0 ]

# then

# exit 4

# fi

# /usr/bin/df -l $lvname > /dev/null 2>&1

# if [ $? != 0 ]

# then

# /usr/sbin/mount -F $fs $lvname $lv_mount_point 2> /dev/null

# if [ $? != 0 ]

# then

# exit 2

# fi

# fi

# fi

fi

rm -rf $post_file 2> /dev/null

rm -rf $fstype_file 2> /dev/null

exit 0

fi

exit 0

152

Page 156: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

+Restore a volume group

When the volume group containing the logic volume by which the file system was built is a candidate for restoration, it is necessary to correct an order processing script.

Please comment ("#")-turn a part for exit of the 95th line of a pretreatment script (OpcRestore.pre) after correcting a script.

◆Please eliminate the comment ("#") of the 99-110th line of a pretreatment script (OpcRestore.pre), and the comment ("#") of the 149-176th line of a post-processing script (OpcRestore.post) by the editor etc., and correct the description in a comment suitably so that unmount/mount processing is carried out to all the logic volumes by which the file system was built.

◆When operating volume is mounted at the time of backup, and when fsck is not being carried out to backup volume, it is necessary to carry out fsck to all the logic volumes by which the file system in operating volume was built after restoration.

Note that unmount/mount processing to a volume group is not carried out in the state where not customized.

When transaction volume is a volume group, in order to enable use of backup volume as LVM, volume group configuration information is restored by the vgcfgrestore command in the postprocessing of restoration. In the above-mentioned script, volume configuration information is restored from the standard backup file "/etc/lvmconf/volume-group-name.conf". Please customize the script, when volume group configuration information is backed up by another file.

Please correct suitably parameters, options, etc. of the OS command, such as the mount command and the fsck command, according to employment.

153

Page 157: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

154

Page 158: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Appendix B Replication script

This chapter explains the shell scripts that perform the pre- and post-processing of replication in Softek AdvancedCopy Manager.

B.1 Overview

The shell scripts that perform the pre- and post-processing of replication start before and after replication (copy) processing.

These shell scripts contain processing code required by Softek AdvancedCopy Manager for the copy source volume and copy destination volume.

This chapter describes the setup of preprocessing and postprocessing.

B.2 Preprocessing and Postprocessing of Replication

The replication preprocessing and postprocessing in Softek AdvancedCopy Manager needs to be performed for both the replication source volume and the replication destination volume. However, the purpose for each is different. · Preprocessing and postprocessing for a replication source volume

The purpose of the processing is to freeze the replication source data in a state in which consistency is temporarily ensured. Replication source data is frozen temporarily in preprocessing, and after the replication has been created, the frozen status is released in postprocessing.

· Preprocessing and postprocessing for a replication destination volume The purpose of the processing is to prevent any application from accessing a replication destination volume during replication (copy) processing. In preprocessing, replication data for the destination is placed in access-disabled status, and after the replication has been created, this status is released in postprocessing.

Specific processing performed in preprocessing and postprocessing varies according to the data on the volume. The next section describes the preprocessing and postprocessing of a file system and a database.

B.2.1 Preprocessing and postprocessing for a file system

The preprocessing and postprocessing for a file system is the unmount processing and mount processing of the file system. (For Windows, the processing consists of allocating and canceling a drive letter.) The preprocessing and postprocessing for the replication source volume ensure the integrity of the replication source data. The preprocessing and postprocessing for the replication destination volume are performed to make access from other processes during synchronization processing and snapshot copying impossible. If no volume is mounted, the preprocessing and postprocessing are not performed.

When the replication target volume is a physical disk, the implementation status of the preprocessing and postprocessing for a file system is shown below. This table shows whether preprocessing and postprocessing are performed depending on the command type .It also shows the copy status upon execution of the command.

[Table B.1 Preprocessing and postprocessing for a file system]

Command Copy status Source/target Preprocessing Postprocessing

Source X X Replication start command

(swsrpstartsync)

uncopy or

replication establishment target O--*1 X

Source O O Replication making command

(swsrpmake) equivalence maintenance target X O--*2

Source O O equivalence maintenance target X O--*2

Source X X Replication establishment target X X

Source X X

Replication cancellation command

(swsrpcancel)

copying target X X

Snap shot replication making uncopy Source O O

155

Page 159: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

command

(swsrpmake) target O O

O : executed, X : not executed

The postprocessing for the preprocessing performed in (1) is performed in (2). In the postprocessing in (2), re-mount is performed for the mount point where unmount was performed in the preprocessing in (1).

The preprocessing and postprocessing for a file system can be customized. The processing is started in accordance with the table above when a replication management command is executed. For replication between servers, these scripts are executed by remote execution by TCP/IP in the preprocessing and postprocessing of a volume that is not connected.

The operation image before and after processing is shown in Figure B.1.

[Figure B.1 Snapshot replication processing of snapshot]

If processing other than the standard preprocessing and postprocessing is required in the preprocessing and postprocessing, customize the scripts.

When the replication target is the volume group that includes logical volume in which the file system has been built, see "When the replication target is a volume group" and the script of preprocessing and postprocessing has to be customized to execute unmount/mount processing for all logical volume in which the file system has been built.

If the replication target volume cannot be unmounted for reasons of the operation, see "When you do not want to unmount the replication target volume" and customize the script for preprocessing.

156

Page 160: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

· Softek AdvancedCopy Manager does not support any functions for the preprocessing and postprocessing of a

database. You will need to perform your own preprocessing and postprocessing before and after the execution of a Softek AdvancedCopy Manager command.

B.2.2 Preprocessing when replication is executed

The replication source volume (RepSrcPre.js) and the replication destination volume (RepDstPre.js) are prepared for a pretreatment script, and it is stored in the following directory subordinates. Please customize a script according to the necessity for processing.

In the case of non-cluster employment

/etc/opt/FJSVswsrp/sh directory subordinate

In the case of cluster employment

/etc/opt/FJSVswsrp/<logic node name>/sh directory subordinate · RepSrc.pre (copy source volume script)

#!/bin/sh

# Softek AdvancedCopy Manager

# All Rights Reserved, Copyright FUJITSU LIMITED, 2002

#

# Preprocessing of Replication(Source) processing

#

# Argument: $1 Device name of Source disk

# $2 Mount point of Source disk

#

# Error number

# 1: Argument error(system error)

# 2: umount error

# Argument check

case $# in

2)

;;

*)

exit 1

;;

esac

device=$1

mount_point=$2

# Device type check

# Determination postprocessing file name

trans="`echo $device | grep "/dev/dsk/"`"

lvmtrans="`echo $device | grep "/dev/"`"

if [ "$trans" != "" ]

then

dev_type="physical"

# /dev/dsk/c?t?d? -> c?t?d?

157

Page 161: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

dev="`echo $device | sed "s/¥/dev¥/dsk¥///"`"

post_file="/etc/opt/FJSVswsrp/"$SWSTGNODE"/data/DEFAULT/"$dev".spre"

fstype_file="/etc/opt/FJSVswsrp/"$SWSTGNODE"/data/DEFAULT/"$dev".sfstype"

elif [ "$lvmtrans" != "" ]

then

dev_type="logical"

# /dev/vgXX -> vgXX

dev="`echo $device | awk -F¥/ '{ print $3 }'`"

post_file="/etc/opt/FJSVswsrp/"$SWSTGNODE"/data/DEFAULT/"$dev".spre"

else

exit 0

fi

# When the disk is a physical device #############################

if [ "$dev_type" = "physical" ]

then

if [ "$mount_point" != "" ]

then

# When device cannot be unmounted --- 1

# # Specify the name of volume group not to unmount

# if [ "$device" = "/dev/dsk/c*t*d*" ]

# then

# sync

# sync

# echo "none" > $post_file

#

# When device can be unmounted --- 2

# else

df -ln $mount_point 2>/dev/null | awk -F: '{ print $2 }' | awk '{ print $1 }' > $fstype_file

/usr/sbin/umount $mount_point 2>/dev/null

if [ $? != 0 ]

then

exit 2

fi

echo "mount,$mount_point" > $post_file

# fi

# When device was not mounted --- 3

else

echo "none" > $post_file

fi

# When the disk is a volume group ################################

elif [ "$dev_type" = "logical" ]

158

Page 162: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

then

# When devices of volume group cannot be unmounted --- 4

#

# # Specify the name of volume group not to unmount

# if [ "$device" = "/dev/vg**" ]

# then

# sync

# sync

# echo "none" > $post_file

# fi

#

# When devices of volume group can be unmounted --- 5

#

# # Specify the name of volume group to unmount

# if [ "$device" = "/dev/vg**" ]

# then

# # Unmount all logical volumes of the volume group

# mount_point="/**"

# /usr/sbin/umount $mount_point 2>/dev/null

# if [ $? != 0 ]

# then

# exit 2

# fi

# echo "mount" > $post_file

# fi

#

# When devices of volume group was not mounted --- 6

#

# # Specify the name of volume group to do nothing

# if [ "$device" = "/dev/vg**" ]

# then

echo "none" > $post_file

# fi

fi

exit 0 · RepDst.pre (copy destination volume script)

#!/bin/sh

# Softek AdvancedCopy Manager

# All Rights Reserved, Copyright FUJITSU LIMITED, 2002

#

# Preprocessing of Replication(Destination) processing

#

# Argument: $1 Device name of Destination disk

159

Page 163: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

# $2 Mount point of Destination disk

#

# Error number

# 1: Argument error(system error)

# 2: umount error

# Argument check

case $# in

2)

;;

*)

exit 1

;;

esac

device=$1

mount_point=$2

# Device type check

# Determination postprocessing file name

trans="`echo $device | grep "/dev/dsk/"`"

lvmtrans="`echo $device | grep "/dev/"`"

if [ "$trans" != "" ]

then

dev_type="physical"

# /dev/dsk/c?t?d? -> c?t?d?

dev="`echo $device | sed "s/¥/dev¥/dsk¥///"`"

post_file="/etc/opt/FJSVswsrp/"$SWSTGNODE"/data/DEFAULT/"$dev".dpre"

fstype_file="/etc/opt/FJSVswsrp/"$SWSTGNODE"/data/DEFAULT/"$dev".dfstype"

elif [ "$lvmtrans" != "" ]

then

dev_type="logical"

# /dev/vgXX -> vgXX

dev="`echo $device | awk -F¥/ '{ print $3 }'`"

post_file="/etc/opt/FJSVswsrp/"$SWSTGNODE"/data/DEFAULT/"$dev".dpre"

conf_file="/etc/opt/FJSVswsrp/"$SWSTGNODE"/data/DEFAULT/"$dev".conf"

else

exit 0

fi

# When the disk is a physical device #############################

if [ "$dev_type" = "physical" ]

then

if [ "$mount_point" != "" ]

then

# When device cannot be unmounted --- 1

# if [ "$device" = "/dev/dsk/c*t*d*" ]

160

Page 164: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

# then

# echo "none" > $post_file

#

# When device can be unmounted --- 2

# else

df -ln $mount_point 2>/dev/null | awk -F: '{ print $2 }' | awk '{ print $1 }' > $fstype_file

/usr/sbin/umount $mount_point 2>/dev/null

if [ $? != 0 ]

then

exit 2

fi

echo "mount,$mount_point" > $post_file

# fi

# When device was not mounted --- 3

else

echo "none" > $post_file

fi

# When the disk is a volume group ################################

elif [ "$dev_type" = "logical" ]

then

# When devices of volume group cannot be unmounted --- 4

#

# # Specify the name of volume group not to unmount

# if [ "$device" = "/dev/vg**" ]

# then

# echo "none" > $post_file

# fi

#

# When devices of volume group can be unmounted --- 5

#

# # Specify the name of volume group to unmount

# if [ "$device" = "/dev/vg**" ]

# then

# # Unmount all logical volumes of the volume group

# mount_point="/**"

# /usr/sbin/umount $mount_point 2>/dev/null

# if [ $? != 0 ]

# then

# exit 2

# fi

# echo "mount" > $post_file

# fi

161

Page 165: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

#

# When devices of volume group was not mounted --- 6

#

# # Specify the name of volume group to do nothing

# if [ "$device" = "/dev/vg**" ]

# then

echo "none" > $post_file

# fi

fi

exit 0

+When you do not want to unmount the replication target volume

· To original volume not to unmount although mounted, please eliminate the comment ("#") of the 58-62st lines, and 65th line (in case physical volume) or 90-95st line (in case volume group) in preprocessing script (RepSrc.pre) for original volume by the editor etc., and point to the target of original volume in if sentence of the 58th or 90th line. In addition, please do not perform update operation of a file system of original volume after performing the sync command of the 61th line or the 93th line until postprocessing for original volume. If update operation of a file system is performed in the meantime, the replication is extracted in the state with an imperfect file system, and the fsck command which is carried out by the postprocessing script (RepDst.post) for original volume may serve as an error.

· To the copy place volume mounted, it is necessary to surely unmount.

B.2.3 Postprocessing when replication is executed

The replication source volume (RepSrcPost.js) and the replication destination volume (RepDstPost.js) are prepared for a post-processing script, and it is stored in the following directory subordinates. Please customize a script according to the necessity for processing.

In the case of non-cluster employment

/etc/opt/FJSVswsrp/sh directory subordinate

In the case of cluster employment

/etc/opt/FJSVswsrp/<logic node name>/sh directory subordinate · RepSrc.post (copy source volume script)

#!/bin/sh

# Softek AdvancedCopy Manager

# All Rights Reserved, Copyright FUJITSU LIMITED, 2002

#

# Postprocessing of Replication(Source) processing

#

# Argument: $1 Device name of Source disk

#

# Error number

# 1: Argument error (system error)

# 2: mount error

# Argument check

case $# in

1)

;;

*)

exit 1

162

Page 166: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

;;

esac

device=$1

# Device type check

# Determination postprocessing file name

trans="`echo $device | grep "/dev/dsk/"`"

lvmtrans="`echo $device | grep "/dev/"`"

if [ "$trans" != "" ]

then

dev_type="physical"

# /dev/dsk/c?t?d? -> c?t?d?

dev="`echo $device | sed "s/¥/dev¥/dsk¥///"`"

post_file="/etc/opt/FJSVswsrp/"$SWSTGNODE"/data/DEFAULT/"$dev".spre"

fstype_file="/etc/opt/FJSVswsrp/"$SWSTGNODE"/data/DEFAULT/"$dev".sfstype"

elif [ "$lvmtrans" != "" ]

then

dev_type="logical"

# /dev/vgXX -> vgXX

dev="`echo $device | awk -F¥/ '{ print $3 }'`"

post_file="/etc/opt/FJSVswsrp/"$SWSTGNODE"/data/DEFAULT/"$dev".spre"

fstype_file="/etc/opt/FJSVswsrp/"$SWSTGNODE"/data/DEFAULT/"$dev".sfstype"

else

exit 0

fi

# Confirmation of postprocessing

if [ ! -r $post_file ]

then

exit 0

fi

post="`cat $post_file | cut -d',' -f1`"

mount_point="`cat $post_file | cut -d',' -f2`"

# Confirmation of FStype

if [ ! -r $fstype_file ]

then

fs=""

else

fs="`cat $fstype_file`"

fi

# No processing

# When device cannot be unmounted --- 1

# When device was not mounted --- 3

# When devices of volume group cannot be unmounted --- 4

# When devices of volume group was not mounted --- 6

163

Page 167: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

if [ "$post" = "none" ]

then

rm -rf $post_file 2> /dev/null

rm -rf $fstype_file 2> /dev/null

exit 0

fi

# mount processing

if [ "$post" = "mount" ]

then

# When device can be unmounted --- 2

if [ "$dev_type" = "physical" ]

then

/usr/bin/df -l $device > /dev/null 2>&1

if [ $? != 0 ]

then

if [ ! -r $fstype_file ]

then

/usr/sbin/mount $device $mount_point 2> /dev/null

else

if [ "$fs" = "" ]

then

/usr/sbin/mount $device $mount_point 2> /dev/null

else

/usr/sbin/mount -F $fs $device $mount_point 2> /dev/null

fi

fi

if [ $? != 0 ]

then

exit 2

fi

fi

# When devices of volume group can be unmounted --- 5

# elif [ "$dev_type" = "logical" ]

# then

# #Specify the name of volume group to mount

# if [ "$device" = "/dev/vg**" ]

# then

# # Mount all logical volumes of the volume group

# fs="hfs"

# fs="vxfs"

# lvname="/dev/vg**/*****"

164

Page 168: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

# lv_mount_point="/**"

#

# /usr/bin/df -l $lvname > /dev/null 2>&1

# if [ $? != 0 ]

# then

# /usr/sbin/mount -F $fs $lvname $lv_mount_point 2> /dev/null

# if [ $? != 0 ]

# then

# exit 2

# fi

# fi

# fi

fi

rm -rf $post_file 2> /dev/null

rm -rf $fstype_file 2> /dev/null

exit 0

fi

exit 0 · RepDst.post (Copy destination volume script)

#!/bin/sh

# Softek AdvancedCopy Manager

# All Rights Reserved, Copyright FUJITSU LIMITED, 2002

#

# Postprocessing of Replication(Destination) processing

#

# Argument: $1 Device name of Destination disk

#

# Error number

# 1: Argument error (system error)

# 2: mount error

# 3: vgcfgrestore error

# 4: fsck error

# Argument check

case $# in

1)

;;

*)

exit 1

;;

esac

device=$1

# Device type check

165

Page 169: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

# Determination postprocessing file name

trans="`echo $device | grep "/dev/dsk/"`"

lvmtrans="`echo $device | grep "/dev/"`"

if [ "$trans" != "" ]

then

dev_type="physical"

# /dev/dsk/c?t?d? -> c?t?d?

dev="`echo $device | sed "s/¥/dev¥/dsk¥///"`"

post_file="/etc/opt/FJSVswsrp/"$SWSTGNODE"/data/DEFAULT/"$dev".dpre"

fstype_file="/etc/opt/FJSVswsrp/"$SWSTGNODE"/data/DEFAULT/"$dev".dfstype"

elif [ "$lvmtrans" != "" ]

then

dev_type="logical"

# /dev/vgXX -> vgXX

dev="`echo $device | awk -F¥/ '{ print $3 }'`"

post_file="/etc/opt/FJSVswsrp/"$SWSTGNODE"/data/DEFAULT/"$dev".dpre"

fstype_file="/etc/opt/FJSVswsrp/"$SWSTGNODE"/data/DEFAULT/"$dev".dfstype"

else

exit 0

fi

# Confirmation of postprocessing

if [ ! -r $post_file ]

then

exit 0

fi

post="`cat $post_file | cut -d',' -f1`"

mount_point="`cat $post_file | cut -d',' -f2`"

# Confirmation of FStype

if [ ! -r $fstype_file ]

then

fs=""

else

fs="`cat $fstype_file`"

fi

# Restore VG Configuration

if [ "$dev_type" = "logical" ]

then

vg_name="`echo $device | awk -F¥/ '{ print $3 }'`"

cfg_file="/etc/lvmconf/"$vg_name".conf"

if [ ! -r $cfg_file ]

then

exit 3

fi

166

Page 170: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

pv_rname="`vgcfgrestore -n $vg_name -l 2> /dev/null | awk '{print $1}' | grep ¥"/dev/rdsk¥"`"

if [ "$pv_rname" = "" ]

then

exit 3

fi

vgchange -a n $vg_name > /dev/null 2>&1

reststatus=0

for pv_rname1 in $pv_rname

do

vgcfgrestore -n $vg_name $pv_rname1 > /dev/null 2>&1

if [ $? != 0 ]

then

reststatus=1

break

fi

done

if [ "$SWSTGNODE" != "" ]

then

vgchange -c y $vg_name > /dev/null 2>&1

vgchange -a e $vg_name > /dev/null 2>&1

else

vgchange -a y $vg_name > /dev/null 2>&1

fi

if [ $reststatus = 0 ]

then

exit 3

fi

fi

# No processing

if [ "$post" = "none" ]

then

# When Src device cannot be unmounted --- 1

# if [ "$device" = "/dev/dsk/c*t*d*" ]

# then

# rdevice="`echo $device | sed "s/¥/dsk¥//¥/rdsk¥//"`"

# src_fs=hfs

# src_fs=vxfs

# fsck -F $src_fs -y $rdevice > /dev/null 2>&1

# if [ $? != 0 ]

# then

# exit 4

# fi

167

Page 171: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

# fi

#

# When Src devices of volume group cannot be unmounted --- 4

# if [ "$device" = "/dev/vg**" ]

# then

# rdevice="/dev/vg**/*****"

# src_fs=hfs

# src_fs=vxfs

# fsck -F $src_fs -y $rdevice > /dev/null 2>&1

# if [ $? != 0 ]

# then

# exit 4

# fi

# fi

# When Src/Dst device was not mounted --- 3

# When Src/Dst devices of volume group was not mounted --- 6

rm -rf $post_file 2> /dev/null

rm -rf $fstype_file 2> /dev/null

exit 0

fi

# mount processing

if [ "$post" = "mount" ]

then

if [ "$dev_type" = "physical" ]

then

# When Dst device can be unmounted --- 2

/usr/bin/df -l $device > /dev/null 2>&1

if [ $? != 0 ]

then

if [ ! -r $fstype_file ]

then

/usr/sbin/mount $device $mount_point 2> /dev/null

else

if [ "$fs" = "" ]

then

/usr/sbin/mount $device $mount_point 2> /dev/null

else

/usr/sbin/mount -F $fs $device $mount_point 2> /dev/null

fi

fi

if [ $? != 0 ]

then

168

Page 172: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

exit 2

fi

fi

# elif [ "$dev_type" = "logical" ]

# then

# When Dst devices of volume group can be unmounted --- 5

# # Specify the name of volume group to mount

# if [ "$device" = "/dev/vg**" ]

# then

# # Mount all logical volumes of the volume group

# fs="hfs"

# fs="vxfs"

# lvname="/dev/vg**/*****"

# lv_mount_point="/**"

#

# /usr/bin/df -l $lvname > /dev/null 2>&1

# if [ $? != 0 ]

# then

# /usr/sbin/mount -F $fs $lvname $lv_mount_point 2> /dev/null

# if [ $? != 0 ]

# then

# exit 2

# fi

# fi

# fi

fi

rm -rf $post_file 2> /dev/null

rm -rf $fstype_file 2> /dev/null

exit 0

fi

exit 0

+When the replication target is a volume group

When the volume group containing the logic volume by which the file system was built is a replication object, it is necessary to correct an order processing script.

Please comment("#" )-turn the exit sentence of the 78th line of the 85th line and the copy place volume pretreatment script of a copied material volume pretreatment script after correcting a script. · Eliminate the comment ("#") of the 100-110th lines in preprocessing script of original volume, and 102-122nd

line in post processing script of original volume by the editor etc., and modify the comment sentence so that the unmount/mount processing is carried out for all logical volumes in which a file system is constructed.

· Eliminate the comment ("#") of the 83-93rd lines in preprocessing script of replica volume, and 164-185th line in post processing script of replica volume by the editor etc., and modify the comment sentence so that the unmount/mount processing is carried out for all logical volumes in which a file system is constructed.

· When not unmounting copied material volume, it is necessary to carry out fsck to all the logic volumes by which the file system in copy place volume was built with the post-processing script of copy place volume.

169

Page 173: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Note that unmount/mount processing to a volume group is not carried out in the state where not customized.

When replica volume is a volume group, in order to enable use of replica volume as LVM, volume group configuration information is restored by the vgcfgrestore command in the postprocessing of restoration. In the above-mentioned script, volume configuration information is restored from the standard backup file "/etc/lvmconf/volume-group-name.conf". Please customize the script, when volume group configuration information is backed up by another file.

Please correct suitably parameters, options, etc. of the OS command, such as the mount command and the fsck command, according to employment.

170

Page 174: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Glossary

The special terms used in this manual are explained below.

Advanced copy function

Hardware function of Fujitsu's disk array unit (GR740). Generic name of EC and OPC.

AdvancedCopy Manager client

Generic name of Web-GUIs that operate in a storage management client.

AdvancedCopy Manager library

Database in entire AdvancedCopy Manager including a registry, and SymfoDB.

AdvancedCopy Manager manager

Generic name of AdvancedCopy Manager-related services and applications existing in a storage management server.

Attestation management book

General term of the file where attestation management saves the information in employment.

There are two or more kinds. It is kept for every Storage server with repository.

Backup management agent

Generic name of backup management applications existing in a storage server.

Backup management library

Management library whose backup exists in each storage server.

Backup management manager

Generic name of backup management applications existing in a storage management server.

Backup management screen

Web screen for backup management.

171

Page 175: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Backup server employment

Employment which prepared the server of the exclusive use which only the volume of a copy place is connected and uses a copy place for the purpose of evacuating to tape equipment.

Backup synchronous processing

Processing for matching a transaction volume and backup volume in preparation for synchronous backup operation

CA (Channel adapter)

The adapter card used as an interface with server HBA / switch carried in a Storage side.

EC

Short for Equivalent Copy. The hardware functions of the disk array equipment (GR740) of our company. The function to hold the mirror state between disks within hardware. The duplicate of a disk is created by carrying out separation control from software.

Equivalency maintenance state

A state in which the EC function maintains the contents of a transaction volume and backup volume equivalent

Fabric

Topology using the fiber channel interface. A fiber channel switch is used and two or more communications between nodes can be performed simultaneously.

FC-AL (Fiber Channel Arbitrated Loop)

Topology using the fiber channel interface. a fiber channel -- by using a hub, it is realizable of connection between two or more nodes Topology most used by 1 to 1 connection now. A port is NL port or an L port.

FL port

The port of the fabric (fiber channel switch) connected to NL port.

F port

The port of the fabric (fiber channel switch) connected to N port.

172

Page 176: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Framework

Generic name of applications such as communication services and configuration management that operate as the foundation of AdvancedCopy Manager

Generation overflow

When a number of backups specified as backup generations have already been collected, if the next backup is performed, the backup volume having the oldest backup history is deleted from the generation management. This is called generation overflow. The number of backup generations is specified in the backup policy setting command.

GR series

Generic name of Fujitsu's disk array units (GR720/730/740/820/840).

GRmgr

Storage management software of GR720/730/740.

HAB (Host path adapter)

The adapter card used as an interface with the storage port / switch CA carried in a server.

Hard disk driver

Hard disk driver software of a host server. Controls a disk array unit instead of the sd driver. This driver must be installed to perform multipath control.

HDDV

See "Hard disk driver."

Initial screen

Screen displayed first when a browser is started with AdvancedCopy Manager's URL described. Screen that controls a server operating as AdvancedCopy Manager and device information.

LUN (Logical Unit Number)

Abbreviation for Logical Unit Number. Logical unit defined under a channel adapter on a storage unit.

173

Page 177: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

LUN Mapping

Assign and set up LUN which shows Logical unit LUN (Logical Unit Number) defined as the channel adapter subordinate in GR720/GR730/GR740 storage equipment from the HOST side, and real LUN (mapping). Thereby, HOST to LUN0 and visible Logical unit can be set up with real Logical unit LUNxx.

MPHD

See "Multipath disk control."

MPLB

See "Multipath disk control, load balance option."

Multipath disk control

Driver software that performs multipath disk control of the host server.

Failover driver software that merges two physical access paths into one logical path to avoid stopping access to a disk array unit because of the failure of one physical access path.

Multi path disk control, load balance option

Driver software that performs multipath disk control of the host server. This driver has a load balance (path load distribution) function and multipath (two to eight paths) function in addition to the multipath disk control failover function. Therefore, it is superior in terms of reliability, operability, and performance enhancement and the most suitable driver software for a SAN operation server.

NL-Private port

The port of the FC-AL topology which has not made fiber channel switch connection.

NL-Public port

The port of the FC-AL topology which is making fiber channel switch connection.

N port

The port used by Fabric topology (switch environment) or Point-to-Point in a fiber channel.

OPC

Abbreviation of one point copy. Hardware function of a Fujitsu's disk array unit (GR740). This function executes disk copy at high speeds in hardware. When software issues a copy request, a physical copy operation is performed in hardware; however, the emulation function makes it look like the copy is completed at the software level.

174

Page 178: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Ordinary transaction volume

Volume to be backed up and not provided with a database space.

Point-to-point

Topology using the fiber channel interface. Although it is the topology of 1 to 1 connection of N port, the mainstream of the 1 to 1 present connection is 1 to 1 connection of FC-AL.

Registry

AdvancedCopy Manager environment definition file.

Replication management book

General term of the file where replication management saves the information in employment.

There are two or more kinds. It is kept for every Storage server with repository.

Repository

The information managed for employment of Softek AdvancedCopy Manager, or its domain.

It is data of the database in a Storage management server.

The information on the device to employ, the information on backup management, the information on replication management, etc. are stored in repository.

Repository is created at the time of Softek AdvancedCopy Manager Installation.

RMI daemon

The RMI server to an AdvancedCopy Manager client.

SAN (storage area network)

Abbreviation of storage area network. Server-storage connection network. In a broad sense, this also refers to the implementation of centralized storage, data sharing among different servers, and storage-integrated management.

Snap shot type high-speed backup

Backup using the one point copy (OPC) function of a GR-series disk array unit.

175

Page 179: Softek AdvancedCopy Manager Operator's Guide 10.2 for HP-UXsoftware.fujitsu.com/jp/manual/fm_e/d025c10a0h/1030m11/01/1030m11… · + Chapter 1 Overview of Softek AdvancedCopy Manager

Storage

External storage devices such as disk array and tape units. These devices include GR730, GR740, and F649x series and Spectris/Platinum

Storage management client

Counterpart term for "Storage management server." Machine on which a AdvancedCopy Manager Web-GUI operates.

Storage management server

Server in which SystemWalker/AdvancedCopy Manager's Manager exists.

Storage server

Server in which SystemWalker/AdvancedCopy Manager's Agent exists.

Synchronous backup

Using the Equivalent Copy (EC) function of the disk array GR series to make a backup

176


Recommended