Link to home
Start Free TrialLog in
Avatar of Los Angeles1
Los Angeles1

asked on

AIX, LPAR's

I have AIX 7.1, with a SAS drive

I created a LV

# mklv -y lpar_lv rootvg 35G

Open in new window


and assigned it to the vshost

$ mkvdev -vdev lpar_lv -vadapter vhost1

Open in new window


Now I want to duplicate that create an LPAR identical to e one I just created, How can I do this ?
Avatar of Kerem ERSOY
Kerem ERSOY

Hi,

Do you mean Cloning the LPAR disk? If it is the case please follow the isntructions here:

http://oss.gonicus.de/openpower/index.php/Cloning_partition_on_IBM_VIO_server

cheers,
K:
Avatar of Los Angeles1

ASKER

No I want to create a new LPAR on the same disk.

Can I somehow copy the LV toanother LV, and assign it to a vhost ?
You asked this same question before:

https://www.experts-exchange.com/questions/27849703/AIX-and-LPARS.html

and you accepted a solution.

Didn't it work as expected?
The document posted bascially said that you can examine your vg, umount the appropriate fs, deactivate the vg, export the vg, then the disk references are removed from the vg.

At this point storage is assigne dto the target LPAR, import it to a new disk, and then check and mount the fs's.

lsvgfs sparevg
umount /scratch
varyoffvg sparevg
exportvg sparevg

rmdev -d -l hdisk1
(Reboot LPAR)
importvg -y sparevg hdisk1
fsck /scratch
mount /scratch

Open in new window


However, my configuration is that I have a single disk, and I assigned my LV directly to my rootvg
# lsvg
rootvg
#
# lspv
hdisk0          000f10cacbdb2a6a                    rootvg          active      
#

Open in new window


I only have a single disk, and can not aquire any others

So what I really want to do is to copy a LV (not a vg) to another LV and attach it to vhost

For instance, in a previous installation I created 4 distinct LPAR's on a SAS and assigned 4 different vshots (this 4 different LPAR's).  So instead of copying vg's, I want to copy lv's.

Is this possible as a method of makeing multiple LPAR's
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Actually I missed that.  I think I accepted the solution before I saw your post.

The answer looks great.  I will give it a try

Thanks for your help
Actually I missed that.  I think I accepted the solution before I saw your post.

The answer looks great.  I will give it a try

Thanks for your help