Skip to main content

developerWorks >  AIX and UNIX  >  Forums  >  PowerVM Forum  >  developerWorks

VIOS & cloning vdisks    Point your RSS reader here for a feed of the latest messages in this thread


Tags for this thread: 

     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 19 - Pages: 2 [ 1 2 | Next ] - Last Post: Jun 2, 2008 3:21 PM Last Post By: mazil

Posts: 2
Registered: Nov 08, 2005 01:54:21 PM
VIOS & cloning vdisks
Posted: Nov 10, 2005 05:57:11 AM
Click to report abuse...   Click to reply to this thread Reply
Does anyone know if it's possible to clone a vdisk from the VIOS?? Since a virtualized disk for an LPAR is backed up for an LV on the VIOS, being able to clone that LV will be great for maintenance, backup and recovery purposes.

Posts: 20
Registered: Oct 07, 2005 03:06:53 AM
Re: VIOS & cloning vdisks
Posted: Nov 10, 2005 06:06:24 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
I have done that and it works!
If you need more info, let me know.

MarkieMark

Posts: 5
Registered: Nov 10, 2005 01:36:52 AM
Re: VIOS & cloning vdisks
Posted: Nov 11, 2005 01:50:53 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
Hello,

what steps are needed to clone vdisks?

Best Regards

Posts: 20
Registered: Oct 07, 2005 03:06:53 AM
Re: VIOS & cloning vdisks
Posted: Nov 11, 2005 01:57:21 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
What i did was the following:

I do not know if this is supported , but it worked......

oem_setup_env
with cplv i copied a LV (with was a boot disk for an LPAR)
with mkvdev i assigned the copied LV to an other vhost

MarkieMark


Posts: 5
Registered: Nov 10, 2005 01:36:52 AM
Re: VIOS & cloning vdisks
Posted: Nov 11, 2005 02:06:41 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
Hello,

a problem occurs during the command cplv.

The message text: cplv: Source logical volume rootvg is open.
umount file system on this logical volume.

Is it possible to clone the lv while it´s under use.

Regards
Klaus
-

Posts: 20
Registered: Oct 07, 2005 03:06:53 AM
Re: VIOS & cloning vdisks
Posted: Nov 11, 2005 02:11:15 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
this works:

cplv -v VolumeGroupName -y targetLV sourceLV

Posts: 5
Registered: Nov 10, 2005 01:36:52 AM
Re: VIOS & cloning vdisks
Posted: Nov 11, 2005 02:16:21 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
Hello,

the same error occurs.
0516-741 cplv: Source logical volume rootvg is open.

Did your system were running, when you cloned this rootvg?

Greetings,
Klaus
-

Posts: 5
Registered: Nov 10, 2005 01:36:52 AM
Re: VIOS & cloning vdisks
Posted: Nov 11, 2005 02:17:27 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
Hello,

the same error occurs.
0516-741 cplv: Source logical volume rootvg is open.

Were your system running, when you cloned this rootvg?

Greetings,
Klaus
-

Posts: 20
Registered: Oct 07, 2005 03:06:53 AM
Re: VIOS & cloning vdisks
Posted: Nov 11, 2005 02:18:36 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
Klaus,

I am sorry, you are right, the LV should be closed.

Greetings,

MarkieMark

Posts: 5
Registered: Nov 10, 2005 01:36:52 AM
Re: VIOS & cloning vdisks
Posted: Nov 11, 2005 02:21:24 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
Hi,

thank you very much for your quick reply.

Best Regards,
Klaus

Posts: 2
Registered: Nov 08, 2005 01:54:21 PM
Re: VIOS & cloning vdisks
Posted: Nov 11, 2005 07:19:38 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
I'm going to test the cplv command, and let you know how it goes..
Tks.
Schubi

Posts: 14
Registered: Oct 05, 2005 04:54:58 AM
Re: VIOS & cloning vdisks
Posted: Nov 15, 2005 05:14:24 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
Hi

To do the Copy your LV must be Closed.
-> Shutdown the Partition
-> Remove the map
-> Copy LV
-> Map both LVs to their LPARs
-> Boot the LPARs
Greg Lee

Posts: 80
Registered: Aug 30, 2005 03:31:03 PM
Re: VIOS & cloning vdisks
Posted: Nov 15, 2005 09:21:42 AM   in response to: Schubi in response to: Schubi's post
Click to report abuse...   Click to reply to this thread Reply
To save yourself some work, you need not remove your LV to virtual disk mapping. After you shutdown the client LPAR simply run "rmdev -dev <vdevicename> -ucfg" and that will close the LV.

I suspect there are some issues with cloning to be aware of. Duplicate IP addresses, you'll probably have to reconfigure RSCT, etc...I think there have been some techsupport web site hints and tips published regarding cloning in an LPAR/DLPAR environment.

The problem with virtual ethernet (if used) is that you cannot pull the plug until you reconfigure the cloned LPARs IP address. However, I suppose you could temporarily put the virtual ethernet adapters for the cloned LPAR on their own VLANs.

I hope that helps...I wanted to make sure you were all aware of the first point, the rest is some thinking out loud regarding this cloning process. 8^)
dranz

Posts: 3
Registered: Apr 25, 2006 02:05:35 PM
Re: VIOS & cloning vdisks
Posted: Apr 25, 2006 02:09:15 PM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
I'm attempting to tidy-up the various bits
regarding cloning and need some help with
how-to "prep" pRHEL and pSLES LVs for cloning.

In AIX-land; I suggest:

  1. cd /var/adm/ras
  2. >nim.script
  3. >suma.log
  4. >bootlog
  5. >nimlog
  6. >conslog
  7. >nimsh.log
  8. >bosinstlog
  9. >devinst.log
  10. >nim.installp

  1. cd /
  2. >smit.log
  3. >smit.script
Set autorestart to true & cpuguard to enable:
  1. chdev l sys0 a autorestart=true a cpuguard=enable
Remove the TCP/IP configuration:
  1. rmtcpip
  2. errclear 0
  3. skulker

Anyone able to provide similar prep-tips for
pRHEL and pSLES?

-doug
RTJohnson

Posts: 1
Registered: May 06, 2006 10:20:39 AM
Re: VIOS & cloning vdisks
Posted: May 06, 2006 10:49:00 AM   in response to: dranz in response to: dranz's post
Click to report abuse...   Click to reply to this thread Reply
Hi Everyone!

I have been using alt disk install for the APV classes I have been holding worldwide and it really works well. So far, over 1600 Students worldwide for the APV Hands-On Lab in less than 12 months, and 500+ students have used this method this year with no major issues. Prior to that, we used NIM to load the partitions from a mksysb resource.

I simply map an additional disk into the partition I want to clone, then specify the flags that clear the device configuration so I don't have to deal with dupe IP addresses, etc.

I then use dd with 8MB clock size to clone the LV to our NIM server (It's a convenient NFS server).

In the class, we load 30 4GB NIM environments on 15 p520's in about 20 minutes by dd'ing an image from an NFS server to the primary LV for the client LPAR. I keep the lv (or lun) size as small as possible for the client rootvg's to speed things up.

Each student has their own VIO server (2 on each system so we have no single point of failure) with SCSI disk.

We then mirror the rootvg of the client environment to a disk mapped from the alternate vio server so both VIO servers have a copy of the rootvg of the client partitions since we are using SCSI.

topas shows a consistent 112-115 megabytes per second on the NFS server during the loads. It actually reports 115K KBPS. We are saturating the Gig-E network since we are using a single adapter. More speed would be available by aggregating more ethernet adapters into the NIM environment (the NFS server).

Note: A single 4GB lun load runs about 3 minutes! The results would be even faster if we were mapping to SAN disk.

Ralph T. Johnson
Advanced Power Virtualization Hands-On Lab Designer and Instructor.

 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums