• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 698
  • Last Modified:

AIX, and LPARS

I am configurating an LPAR

When I am finished, can I 'clone' or copy the LPAR to another identical LPAR like I can in VMWare ?
0
Los Angeles1
Asked:
Los Angeles1
  • 2
1 Solution
 
Robert Sutton JrSenior Network ManagerCommented:
Yes, this is possible with newer versions of AIX using the LVM (Logical Volume Manager).


See Here:
http://www.ibm.com/developerworks/aix/library/au-lvm/index.html


Hope this helps.
0
 
woolmilkporcCommented:
Yes, it's possible with dd, but there are several pitfalls.

1) In the usual DLPAR environment you must reconfigure the CT environment (Node ID)
after cloning, to individualize the LPAR with respect to the HMC (or SDMC).

2) The IP address will move along with the virtual disk, so before running both LPARs in parallel start just one of them at a time to customize the IP address and hostname.

Keeping the above in mind proceed like this:

- Create a new LV of exactly the same size as the source LV:
mklv -lv lv_lpary rootvg 40G

- Shutdown the source LPAR.

- Enter the OEM environment and copy source (lv_lparx) to the new LV (lv_lpary):
dd if =/dev/rlv_lparx of=/dev/rlv_lpary bs=1M

Please note that we use the raw (rlv...) logical volumes (unbuffered character devices)

- Leave the OEM environment and create a vdev for the new LPAR using the just cloned LV.

- Start the new LPAR. Reconfigure hostname and IP address using a virtual console.

- Reconfigure CT:
/usr/sbin/rsct/install/bin/recfgct

- Start the old LPAR if desired.

Please note that this is not the method of choice in IBM's opinion. They rather recommend using an mksysb image and NIM!

Good luck!

wmp
0
 
woolmilkporcCommented:
Good luck with the solution you just accepted.
It describes how to move a VG from one LPAR to another, not how to clone it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now