Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1980378
  • 博文数量: 593
  • 博客积分: 20034
  • 博客等级: 上将
  • 技术积分: 6779
  • 用 户 组: 普通用户
  • 注册时间: 2006-02-06 14:07
文章分类

全部博文(593)

文章存档

2016年(1)

2011年(101)

2010年(80)

2009年(10)

2008年(102)

2007年(16)

2006年(283)

我的朋友

分类: 服务器与存储

2008-12-03 13:12:45

Metro Mirror

1.DS Command-Line Interface (DS CLI): This interface provides a set of commands,
which are executed on a workstation that communicates with the DS HMC.

 

2.DS Storage Manager Graphical User Interface (DS GUI): This is a graphical user
interface (DS GUI) running in a Web browser. The DS GUI can be accessed using the
preinstalled browser on the HMC console, or through the DS8000 Element Manager on a
TPC server, such as the SSPC (for new DS800 with Licensed Machine Code 5.30xx.xx),
or for former DS8000 installations through a supported Web browser on any workstation
connected to the HMC console.

3.TotalStorage Productivity Center for Replication (TPC for Replication): The TPC
Replication Manager server, where TPC for Replication runs, connects to the DS8000.
TotalStorage Productivity Center for Replication (TPC for Replication) provides
management of DS8000 series business continuance solutions, including FlashCopy,
Metro Mirror, and Global Mirror.

 

 

Establish a Metro Mirror pair

This operation establishes the remote copy relationship between a pair of volumes, the
source (or local) and the target (or remote) that normally reside on different disk subsystems.
Initially the volumes will be in simplex state, and immediately after the pair is established, they
transition to the copy pending state. After the data on the pair has been synchronized (both
volumes have the same data), the state of the pair becomes full duplex.

 

Suspend Metro Mirror pair
This operation stops copying data to the target and the pair transitions to the suspended
state. Because the source DS8000 keeps track of all changed tracks on the source volume,
you can resume the copy operations at a later time.

Resume Metro Mirror pair
This operation resumes a Metro Mirror relationship for a volume pair that was suspended, and
restarts transferring data. Only modified tracks are sent to the target volume because the
DS8000 keeps track of all changed tracks on the source volume after the volume becomes
suspended. When resuming a Metro Mirror pair, you can use the same options as when
initially establishing a Metro Mirror pair except for the no copy option.

Terminate Metro Mirror pair
This operation ends the Metro MIrror relationship between the source and target volumes.

Failover and failback

The Metro Mirror Failover and Failback modes are designed to help reduce the time required
to synchronize Metro Mirror volumes after switching between the production and the recovery
sites.

In a typical Metro Mirror environment, processing will temporarily switch over to the Metro
Mirror remote site upon an outage at the local site. When the local site is capable of resuming
production, processing will switch back from the remote site to the local site.

At the recovery site, the Metro Mirror Failover function combines into a single task, the three
steps involved in the switch over (planned or unplanned) to the remote site: terminate the
original Metro Mirror relationship, then establish and suspend a new relationship at the
remote site. The state of the original source volume at the normal production site is
preserved. The state of the original target volume at the recovery site becomes a source
suspended. This design takes into account the possibility that the original source LSS might
no longer be reachable.

 

Data consistency and dependent writes
Many applications, such as databases, process a repository of data that has been generated
over a period of time. Many of these applications require that the repository is in a consistent
state in order to begin or continue processing. In general, consistency implies that the order
of dependent writes is preserved in the data copy. In the Metro Mirror environment, keeping
data consistency means that the order of dependent writes is preserved in all the Metro Mirror
target volumes. For example, the following sequence might occur for a database operation
involving a log volume and a data volume:
1. Write to log volume: Data Record #2 is being updated.
2. Update Data Record #2 on data volume.
3. Write to log volume: Data Record #2 update complete.

Freeze and unfreeze operations
The Consistency Group option itself can keep consistent data at the remote site, in case of a
rolling disaster, if all volumes go into the queue full condition within the time interval specified
in the Consistency Group time-out value. However, this is not always true. Therefore, we
require a command that allows us to hold the I/O activity to volumes other than the volumes
that the DS8000 itself detects as having an error condition. We also require a command that
allows us to release the held I/O without having to wait for the Consistency Group time-out, in
order to minimize the impact on the applications. These commands are freezepprc and
unfreezepprc, which can be issued at an LSS level (not volume level). These commands
are available using the DS CLI, and we discuss them in this section.

Metro Mirror paths and links
Metro Mirror pairs are set up between volumes in LSSs, usually in different disk subsystems,
and these are normally in separate locations. A path (or group of paths) needs to be defined
between the source LSS and the target LSS. These logical paths are defined over physical
links between the disk subsystems.
The physical link includes the host adapter in the source DS8000, the cabling, switches, or
directors, any wide band or long distance transport devices (DWDM, channel extenders, and
WAN), and the host adapters in the target disk subsystem. Physical links can carry multiple
Metro Mirror logical paths

Note: For Metro Mirror, the DS8000 supports Fibre Channel links only. To facilitate ease of
testing, the DS8000 does support Metro Mirror source and target on the same DS8000.

LSS design
Since the DS8000 has made the LSS a topological construct, which is not tied to a physical
array as in the ESS, the design of your LSS layout can be simplified. It is now possible to
assign LSSs to applications, for example, without concern regarding under-allocation or
over-allocation of physical disk subsystem resources.
This can also simplify the Metro Mirror environment, as it is possible to reduce the number of
commands that are required for data consistency as well as make its effects more granular.
For example, a freeze operation is performed at the LSS level, causing all Metro Mirror
volumes in that LSS to go into suspended state with a queue full condition and terminate all
associated paths. If you assign LSSs to each of your applications, you can control the impact
of the queue full condition caused by the freeze operation at an application level. On the
contrary, if you put volumes used by several different applications into the same LSS, all those
applications sharing the LSS and their Metro Mirror volumes will be affected by the queue full
condition. You can issue one freezepprc command to multiple LSSs. Therefore, you do not
have to consolidate the number of LSSs that your applications use.

Setup of the Metro Mirror configuration

To configure the Metro Mirror environment, we follow this procedure:
1. Determine the available Fibre Channel links for paths definition.

dscli> lsavailpprcport -l -remotedev IBM.2107-75ABTV1 -remotewwnn 5005076303FFC663 10:20
Date/Time: October 25, 2005 9:59:28 PM JST IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7520781
Local Port Attached Port Type Switch ID Switch Port
===================================================
I0143 I0010 FCP NA NA
I0213 I0140 FCP NA NA

dscli> lsavailpprcport -l -fullid -remotedev IBM.2107-75ABTV1 -remotewwnn 5005076303FFC663 10:20
Date/Time: October 25, 2005 10:00:26 PM JST IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7520781
Local Port Attached Port Type Switch ID Switch Port
========================================================================
IBM.2107-7520781/I0143 IBM.2107-75ABTV1/I0010 FCP NA NA
IBM.2107-7520781/I0213 IBM.2107-75ABTV1/I0140 FCP NA NA

dscli> lssi
Date/Time: October 25, 2005 8:38:21 PM JST IBM DSCLI Version: 5.1.0.204
Name ID Storage Unit Model WWNN State ESSNet
============================================================================
- IBM.2107-75ABTV1 IBM.2107-75ABTV0 9A2 5005076303FFC663 Online Enabled
- IBM.2107-75ABTV2 IBM.2107-75ABTV0 9A2 5005076303FFCE63 Online Enabled


2. Define the paths that Metro Mirror will use.

dscli> mkpprcpath -remotedev IBM.2107-75ABTV1 -remotewwnn 5005076303FFC663 -srclss 10
-tgtlss 20 i0143:i0010 i0213:i0140
Date/Time: October 25, 2005 10:26:56 PM JST IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7520781
CMUC00149I mkpprcpath: Remote Mirror and Copy path 10:20 successfully established.
dscli> mkpprcpath -remotedev IBM.2107-75ABTV1 -remotewwnn 5005076303FFC663 -srclss 11
-tgtlss 21 i0143:i0010 i0213:i0140
Date/Time: October 25, 2005 10:27:14 PM JST IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7520781
CMUC00149I mkpprcpath: Remote Mirror and Copy path 11:21 successfully established.
dscli> lspprcpath 10-11
Date/Time: October 25, 2005 10:29:23 PM JST IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7520781
Src Tgt State SS Port Attached Port Tgt WWNN
=========================================================
10 20 Success FF20 I0143 I0010 5005076303FFC663
10 20 Success FF20 I0213 I0140 5005076303FFC663
11 21 Success FF21 I0143 I0010 5005076303FFC663
11 21 Success FF21 I0213 I0140 5005076303FFC663

dscli> lspprcpath -fullid 10-11
Date/Time: October 25, 2005 10:43:14 PM JST IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7520781
Src Tgt State SS Port Attached Port Tgt WWNN
===================================================================================================================
IBM.2107-7520781/10 IBM.2107-75ABTV1/20 Success FF20 IBM.2107-7520781/I0143 IBM.2107-75ABTV1/I0010 5005076303FFC663
IBM.2107-7520781/10 IBM.2107-75ABTV1/20 Success FF20 IBM.2107-7520781/I0213 IBM.2107-75ABTV1/I0140 5005076303FFC663
IBM.2107-7520781/11 IBM.2107-75ABTV1/21 Success FF21 IBM.2107-7520781/I0143 IBM.2107-75ABTV1/I0010 5005076303FFC663
IBM.2107-7520781/11 IBM.2107-75ABTV1/21 Success FF21 IBM.2107-7520781/I0213 IBM.2107-75ABTV1/I0140 5005076303FFC663


3. Create Metro Mirror pairs.

dscli> mkpprc -remotedev IBM.2107-75ABTV1 -type mmir 1000-1001:2000-2001 1100-1101:2100-2101
Date/Time: October 25, 2005 11:19:06 PM JST IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7520781
CMUC00153I mkpprc: Remote Mirror and Copy volume pair relationship 1000:2000 successfully created.
CMUC00153I mkpprc: Remote Mirror and Copy volume pair relationship 1001:2001 successfully created.
CMUC00153I mkpprc: Remote Mirror and Copy volume pair relationship 1100:2100 successfully created.
CMUC00153I mkpprc: Remote Mirror and Copy volume pair relationship 1101:2101 successfully created.
dscli> lspprc 1000-1001 1100-1101
Date/Time: October 25, 2005 11:26:59 PM JST IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7520781
ID State Reason Type SourceLSS Timeout (secs) Critical Mode First Pass Status
===================================================================================================
1000:2000 Copy Pending - Metro Mirror 10 unknown Disabled Invalid
1001:2001 Copy Pending - Metro Mirror 10 unknown Disabled Invalid
1100:2100 Copy Pending - Metro Mirror 11 unknown Disabled Invalid
1101:2101 Copy Pending - Metro Mirror 11 unknown Disabled Invalid

dscli> lspprc 1000-1001 1100-1101
Date/Time: October 25, 2005 11:28:55 PM JST IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7520781
ID State Reason Type SourceLSS Timeout (secs) Critical Mode First Pass Status
==================================================================================================
1000:2000 Full Duplex - Metro Mirror 10 unknown Disabled Invalid
1001:2001 Full Duplex - Metro Mirror 10 unknown Disabled Invalid
1100:2100 Full Duplex - Metro Mirror 11 unknown Disabled Invalid
1101:2101 Full Duplex - Metro Mirror 11 unknown Disabled Invalid

dscli> lspprc 2000-2001 2100-2101
Date/Time: October 26, 2005 5:28:37 PM JST IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-75ABTV1
ID State Reason Type SourceLSS Timeout (secs) Critical Mode First Pass Status
==========================================================================================================
1000:2000 Target Copy Pending - Metro Mirror 10 unknown Disabled Invalid
1001:2001 Target Copy Pending - Metro Mirror 10 unknown Disabled Invalid
1100:2100 Target Copy Pending - Metro Mirror 11 unknown Disabled Invalid
1101:2101 Target Copy Pending - Metro Mirror 11 unknown Disabled Invalid
dscli> lspprc 2000-2001 2100-2101
Date/Time: October 26, 2005 5:29:14 PM JST IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-75ABTV1
ID State Reason Type SourceLSS Timeout (secs) Critical Mode First Pass Status
=========================================================================================================
1000:2000 Target Full Duplex - Metro Mirror 10 unknown Disabled Invalid
1001:2001 Target Full Duplex - Metro Mirror 10 unknown Disabled Invalid
1100:2100 Target Full Duplex - Metro Mirror 11 unknown Disabled Invalid
1101:2101 Target Full Duplex - Metro Mirror 11 unknown Disabled Invalid

dscli> lspprc -l 1000-1001 1100-1101
Date/Time: October 25, 2005 11:26:22 PM JST IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7520781
ID State Reason Type Out Of Sync Tracks Tgt Read Src Cascade Tgt Cascade Date Suspended SourceLSS Timeout (secs)
Critical Mode First Pass Status
=========================================================================================================================================
1000:2000 Copy Pending - Metro Mirror 46725 Disabled Disabled invalid - 10 unknown
Disabled Invalid
1001:2001 Copy Pending - Metro Mirror 46579 Disabled Disabled invalid - 10 unknown
Disabled Invalid
1100:2100 Copy Pending - Metro Mirror 44080 Disabled Disabled invalid - 11 unknown
Disabled Invalid
1101:2101 Copy Pending - Metro Mirror 44040 Disabled Disabled invalid - 11 unknown
Disabled Invalid
dscli> lspprc -fullid 1000-1001 1100-1101
Date/Time: October 25, 2005 11:28:18 PM JST IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7520781
ID State Reason Type SourceLSS Timeout (secs) Critical Mode First Pass
Status
=========================================================================================================================================
IBM.2107-7520781/1000:IBM.2107-75ABTV1/2000 Full Duplex - Metro Mirror IBM.2107-7520781/10 unknown Disabled Invalid
IBM.2107-7520781/1001:IBM.2107-75ABTV1/2001 Full Duplex - Metro Mirror IBM.2107-7520781/10 unknown Disabled Invalid
IBM.2107-7520781/1100:IBM.2107-75ABTV1/2100 Full Duplex - Metro Mirror IBM.2107-7520781/11 unknown Disabled Invalid
IBM.2107-7520781/1101:IBM.2107-75ABTV1/2101 Full Duplex - Metro Mirror IBM.2107-7520781/11 unknown Disabled Invalid

Suspending and resuming Metro Mirror data transfer

The pausepprc command stops Metro Mirror from transferring data to the target volumes.
After this command completes, the Metro Mirror pair becomes suspended. I/Os from the
servers complete at the Metro Mirror source volumes without sending those updates to their
target volumes;

dscli> lspprc 1000-1001 1100-1101
Date/Time: October 26, 2005 11:00:17 PM JST IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7520781
ID State Reason Type SourceLSS Timeout (secs) Critical Mode First Pass Status
==================================================================================================
1000:2000 Full Duplex - Metro Mirror 10 unknown Disabled Invalid
1001:2001 Full Duplex - Metro Mirror 10 unknown Disabled Invalid
1100:2100 Full Duplex - Metro Mirror 11 unknown Disabled Invalid
1101:2101 Full Duplex - Metro Mirror 11 unknown Disabled Invalid
dscli>
dscli> pausepprc -remotedev IBM.2107-75ABTV1 1000-1001:2000-2001
Date/Time: October 26, 2005 11:00:21 PM JST IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7520781
CMUC00157I pausepprc: Remote Mirror and Copy volume pair 1000:2000 relationship successfully paused.
CMUC00157I pausepprc: Remote Mirror and Copy volume pair 1001:2001 relationship successfully paused.
dscli>
dscli> lspprc 1000-1001 1100-1101
Date/Time: October 26, 2005 11:00:33 PM JST IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7520781
ID State Reason Type SourceLSS Timeout (secs) Critical Mode First Pass Status
=======================================================================================================
1000:2000 Suspended Host Source Metro Mirror 10 unknown Disabled Invalid
1001:2001 Suspended Host Source Metro Mirror 10 unknown Disabled Invalid
1100:2100 Full Duplex - Metro Mirror 11 unknown Disabled Invalid
1101:2101 Full Duplex - Metro Mirror 11 unknown Disabled Invalid

dscli> lspprc 1000-1001 1100-1101
Date/Time: October 26, 2005 11:05:07 PM JST IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7520781
ID State Reason Type SourceLSS Timeout (secs) Critical Mode First Pass Status
=======================================================================================================
1000:2000 Suspended Host Source Metro Mirror 10 unknown Disabled Invalid
1001:2001 Suspended Host Source Metro Mirror 10 unknown Disabled Invalid
1100:2100 Full Duplex - Metro Mirror 11 unknown Disabled Invalid
1101:2101 Full Duplex - Metro Mirror 11 unknown Disabled Invalid
dscli>
dscli> resumepprc -remotedev IBM.2107-75ABTV1 -type mmir 1000-1001:2000-2001
Date/Time: October 26, 2005 11:05:28 PM JST IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7520781
CMUC00158I resumepprc: Remote Mirror and Copy volume pair 1000:2000 relationship successfully resumed.
This message is being returned before the copy completes.
CMUC00158I resumepprc: Remote Mirror and Copy volume pair 1001:2001 relationship successfully resumed.
This message is being returned before the copy completes.
dscli>
dscli> lspprc 1000-1001 1100-1101
Date/Time: October 26, 2005 11:05:33 PM JST IBM DSCLI Version: 5.1.0.204 DS: IBM.2107-7520781
ID State Reason Type SourceLSS Timeout (secs) Critical Mode First Pass Status
==================================================================================================
1000:2000 Full Duplex - Metro Mirror 10 unknown Disabled Invalid
1001:2001 Full Duplex - Metro Mirror 10 unknown Disabled Invalid
1100:2100 Full Duplex - Metro Mirror 11 unknown Disabled Invalid
1101:2101 Full Duplex - Metro Mirror 11 unknown Disabled Invalid
dscli>

 

Adding and removing paths

You can use the mkpprcpath command to add and reduce the number of paths associating
LSS pairs.

dscli> lspprcpath 10-11
Date/Time: October 26, 2005 11:38:09 PM JST IBM DSCLI Version: 5.1.0.204 DS:
IBM.2107-7520781
Src Tgt State SS Port Attached Port Tgt WWNN
=========================================================
10 20 Success FF20 I0143 I0010 5005076303FFC663
10 20 Success FF20 I0213 I0140 5005076303FFC663
11 21 Success FF21 I0143 I0010 5005076303FFC663
11 21 Success FF21 I0213 I0140 5005076303FFC663
dscli>
dscli> lsavailpprcport -l -remotedev IBM.2107-75ABTV1 -remotewwnn 5005076303FFC663 10:20
Date/Time: October 26, 2005 11:40:32 PM JST IBM DSCLI Version: 5.1.0.204 DS:
IBM.2107-7520781
Local Port Attached Port Type Switch ID Switch Port
===================================================
I0102 I0031 FCP NA NA
I0143 I0010 FCP NA NA
I0213 I0140 FCP NA NA
dscli> lsavailpprcport -l -remotedev IBM.2107-75ABTV1 -remotewwnn 5005076303FFC663 11:21
Date/Time: October 26, 2005 11:43:28 PM JST IBM DSCLI Version: 5.1.0.204 DS:
IBM.2107-7520781
Local Port Attached Port Type Switch ID Switch Port
===================================================
I0102 I0031 FCP NA NA
I0143 I0010 FCP NA NA
I0213 I0140 FCP NA NA
dscli>
dscli> mkpprcpath -remotedev IBM.2107-75ABTV1 -remotewwnn 5005076303FFC663 -srclss 10
-tgtlss 20 i0143:i0010 i0213:i0140 i0102:i0031
Date/Time: October 26, 2005 11:43:52 PM JST IBM DSCLI Version: 5.1.0.204 DS:
IBM.2107-7520781
CMUC00149I mkpprcpath: Remote Mirror and Copy path 10:20 successfully established.
dscli> mkpprcpath -remotedev IBM.2107-75ABTV1 -remotewwnn 5005076303FFC663 -srclss 11
-tgtlss 21 i0143:i0010 i0213:i0140 i0102:i0031
Date/Time: October 26, 2005 11:44:01 PM JST IBM DSCLI Version: 5.1.0.204 DS:
IBM.2107-7520781

dscli> lspprcpath 10-11
Date/Time: October 26, 2005 11:44:10 PM JST IBM DSCLI Version: 5.1.0.204 DS:
IBM.2107-7520781
Src Tgt State SS Port Attached Port Tgt WWNN
=========================================================
10 20 Success FF20 I0143 I0010 5005076303FFC663
10 20 Success FF20 I0213 I0140 5005076303FFC663
10 20 Success FF20 I0102 I0031 5005076303FFC663
11 21 Success FF21 I0143 I0010 5005076303FFC663
11 21 Success FF21 I0213 I0140 5005076303FFC663
11 21 Success FF21 I0102 I0031 5005076303FFC663

 

 

dscli> lspprcpath 10-11
Date/Time: October 26, 2005 11:44:10 PM JST IBM DSCLI Version: 5.1.0.204 DS:
IBM.2107-7520781
Src Tgt State SS Port Attached Port Tgt WWNN
=========================================================
10 20 Success FF20 I0143 I0010 5005076303FFC663
10 20 Success FF20 I0213 I0140 5005076303FFC663
10 20 Success FF20 I0102 I0031 5005076303FFC663
11 21 Success FF21 I0143 I0010 5005076303FFC663
11 21 Success FF21 I0213 I0140 5005076303FFC663
11 21 Success FF21 I0102 I0031 5005076303FFC663
dscli>
dscli> mkpprcpath -remotedev IBM.2107-75ABTV1 -remotewwnn 5005076303FFC663 -srclss 10
-tgtlss 20 i0143:i0010 i0213:i0140
Date/Time: October 26, 2005 11:52:48 PM JST IBM DSCLI Version: 5.1.0.204 DS:
IBM.2107-7520781
CMUC00149I mkpprcpath: Remote Mirror and Copy path 10:20 successfully established.
dscli> mkpprcpath -remotedev IBM.2107-75ABTV1 -remotewwnn 5005076303FFC663 -srclss 11
-tgtlss 21 i0143:i0010 i0213:i0140
Date/Time: October 26, 2005 11:53:00 PM JST IBM DSCLI Version: 5.1.0.204 DS:
IBM.2107-7520781
CMUC00149I mkpprcpath: Remote Mirror and Copy path 11:21 successfully established.
dscli>
dscli> lspprcpath 10-11
Date/Time: October 26, 2005 11:53:06 PM JST IBM DSCLI Version: 5.1.0.204 DS:
IBM.2107-7520781
Src Tgt State SS Port Attached Port Tgt WWNN
=========================================================
10 20 Success FF20 I0143 I0010 5005076303FFC663
10 20 Success FF20 I0213 I0140 5005076303FFC663
11 21 Success FF21 I0143 I0010 5005076303FFC663
11 21 Success FF21 I0213 I0140 5005076303FFC663

 转至我的网站

阅读(1519) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~