Posted on 2012-08-31
Last Modified: 2013-01-10
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 ?
Question by:Los Angeles1
    LVL 15

    Expert Comment

    Yes, this is possible with newer versions of AIX using the LVM (Logical Volume Manager).

    See Here:

    Hope this helps.
    LVL 68

    Accepted Solution

    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:

    - 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!

    LVL 68

    Expert Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
    A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now