[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 621
  • Last Modified:

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 ?
0
Los Angeles1
Asked:
Los Angeles1
  • 4
  • 2
1 Solution
 
Kerem ERSOYPresidentCommented:
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:
0
 
Los Angeles1Author Commented:
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 ?
0
 
woolmilkporcCommented:
You asked this same question before:

http://www.experts-exchange.com/OS/Unix/Q_27849703.html

and you accepted a solution.

Didn't it work as expected?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Los Angeles1Author Commented:
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
0
 
woolmilkporcCommented:
So didn't you read my solution (the one which you did not accept) to the question whose link I posted above?
0
 
Los Angeles1Author Commented:
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
0
 
Los Angeles1Author Commented:
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
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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