Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to clone mirrored rootvg to target disks on IBM AIX

Posted on 2013-06-07
2
Medium Priority
?
2,092 Views
Last Modified: 2013-06-21
I want to clone mirrored rootvg to target disks on one of aix server. After cloning, need to rename the alternate boot environment "tm_v6".Here the system status,

# lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk1            active            xxx         xxx         107..50..71..107..107
hdisk3            active            xxx         xxx         107..50..71..107..107


# lspv
hdisk0          00xxxxxxxxxxxxxx                    old_rootvg
hdisk1          00xxxxxxxxxxxxxx                    rootvg          active
hdisk2          00xxxxxxxxxxxxxx                    old_rootvg
hdisk3          00xxxxxxxxxxxxxx                    rootvg          active
0
Comment
Question by:sams20
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Expert Comment

by:skullnobrains
ID: 39231236
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 1500 total points
ID: 39233996
What are you trying to achieve?

In order to create a clone of the currently running system to an alternate set of disks "alt_disk_copy" is the way to go.
This is the command behind "smit alt_clone" skullnobrains pointed you to.

The smit shortcut is useful if you want to apply fixes, fix packs or a full TL to the system during the copy process.

However, if you want to copy your system to a second machine you cannot use "smit_clone", because the smit menu behind that shortcut does not allow for entering a required flag: "-O".

The "-O" flag is meant  to force a device reset on the target altinst_rootvg, so obsolete device info (which might cause hardware conflicts on the target machine) and network info (which will cause an IP address conflict when booting the cloned machine) is not retained.

So the command to use would be

alt_disk_copy -BOd hdisk0 hdisk2

Please remember to delete the old_rootvg beforehand, by means of

alt_rootvg_op -X old_rootvg

Anyway, for duplicating a system I'd rather suggest the classic "mksysb" way.

This also allows for not retaining the original device info and network settings, so you will not run into IP address conflicts and can happily assign new IP parameters later.

It also spares you the effort of transporting the cloned disk to the other machine, be it physically or via SAN reconfiguration.

You can use an mksysb image on DVD, tape or residing on a possibly available NIM server to clone your system.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question