GuestbookSign our guestbook ContactGet in touch with the authors ArchiveAll unixwerk articles since 2003
March 05, 2018

PowerHA 7: Migration of the Cluster Repository Disks to new LUNs

 

The two repository disks of a PowerHA7 cluster have to be migrated to a new storage system.

The original setup:

# clmgr query repository
hdisk5 (00f9957d008c0a0a)
hdisk13 (00f9957e0d226272)

The new disks the repository disks are to be migrated are hdisk26 and hdisk36. Before we start we need to make the disks known to both cluster nodes. The disk paarmeters ave to be set as shown below:

# cfgmgr
# lspv | grep none
hdisk26         none                  None
hdisk36         none                  None
# chdev -l hdisk26 -a pv=yes
# chdev -l hdisk26 -a reserve_policy=no_reserve -a algorithm=round_robin -a hcheck_interval=30
# chdev -l hdisk27 -a pv=yes
# chdev -l hdisk27 -a reserve_policy=no_reserve -a algorithm=round_robin -a hcheck_interval=30
# lspv | egrep 'hdisk26|hdisk36'
hdisk26         00f9957dba1d7c00      None
hdisk36         00f9957dba1d7ff0      None

the we can start the migration procedure by replacing the active repository disk with the backup disk:

# clmgr replace repository

***Warning: this operation will destroy any information currently stored on
            "00f9957e0d226272". Are you sure you want to proceed? (y/n) y
chrepos: Successfully modified repository disk or disks.

New repository "hdisk13" (00f9957e0d226272) is now active.
The configuration must be synchronized to make this change known across the
cluster.

Only one repository disks is left:

# clmgr query repository
hdisk13 (00f9957e0d226272)

Before we do anything else we synchronize the cluster and we can go on with adding one of the new disk as backup repository disk:

# clmgr add repository hdisk26
Successfully added one or more backup repository disks.
To view the complete configuration of repository disks use:
"clmgr query repository"

# clmgr query repository
hdisk13 (00f9957e0d226272)
hdisk26 (00f9957dba1d7c00)

Again, before doing anything else we synchronize the cluster. Once the cluster is synchronized we go on with replacing the active repository disk (which is still one of the old disks!) with the just created backup disk:

# clmgr replace repository

***Warning: this operation will destroy any information currently stored on
            "00f9957dba1d7c00". Are you sure you want to proceed? (y/n) y
chrepos: Successfully modified repository disk or disks.

New repository "hdisk26" (00f9957dba1d7c00) is now active.
The configuration must be synchronized to make this change known across the
cluster.

# clmgr query repository
hdisk26 (00f9957dba1d7c00)

And again we synchronize the cluster and we add the other new disk as backup repository disk:

# clmgr add repository hdisk36
Successfully added one or more backup repository disks.
To view the complete configuration of repository disks use:
"clmgr query repository"

# clmgr query repository
hdisk26 (00f9957dba1d7c00)
hdisk36 (00f9957dba1d7ff0)

A last cluster synchronizatíon and we are done!

Hint:

If the disk numbering is not the same across the cluster you will see an error like..

# clmgr add repository hdisk34

ERROR: "hdisk34" was not found in the data that you requested.


ERROR: repository disk "hdisk34" is not available on all the cluster nodes.

For more information about available options and syntax, try
"/usr/es/sbin/cluster/utilities/clmgr add repository -h". As an alternative, if
the PowerHA SystemMirror man pages have been installed, invoke
"/usr/es/sbin/cluster/utilities/clmgr -hv" (or "/usr/bin/man clmgr"), searching
for "REPOSITORY:" in the displayed text.

To correct the situation it is recommended to rename the disks so we they have the same hdisk number on all nodes:

node1# rendev -l hdisk34 -n hdisk36
hdisk36
node2# rendev -l hdisk35 -n hdisk36
hdisk36

... and you can add hdisk36 as ususal:

# clmgr add repository hdisk36
Successfully added one or more backup repository disks.
To view the complete configuration of repository disks use:
"clmgr query repository"

# clmgr query repository
hdisk26 (00f9957dba1d7c00)
hdisk36 (00f9957dba1d7ff0)