Interesting challenge with Importvg on Aix 4.3

Interesting challenge with Importvg on Aix 4.3

Post by JayR » Fri, 13 Nov 1998 04:00:00



We have two hosts running AIX 4.3.  Volume group and logical volumes were
created on Host A.  These disks need to be moved to Host B and the data
needs to be accessed. Is there a easy way to do this with Importvg command ?
( Since importvg automates a lot of the manual procedures required
otherwise ).  The other way of doing this would be to make the map file on
Host A, move it over to Host B. Reset the PVID on the disks.  Recreate the
logical volumes using map files.  This method is a little bit complex.

Can AIX be duped into doing this with Importvg ?
Any suggestions would be great.

 
 
 

Interesting challenge with Importvg on Aix 4.3

Post by AIXMight » Fri, 13 Nov 1998 04:00:00


jay,

unless i understand your question incorrectly, you already have the solution!
are you just making sure this will work?

if you're just moving the disks from A to B, simply exportvg the VG on A which
really only gets rid of the ODM info for the disks and the data on the disks is
intact, move the disks to B, cfgmgr or mkdev, importvg it on B.  now assuming
that you don't have any duplicate LVs/FSs, all should work fine...

of course i'm assuming that you know to umount the FSs and varyoffvg before the
exportvg and that you'll rmdev before moving the disks on B...

Orphy! :-)
Dallas, TX



>We have two hosts running AIX 4.3.  Volume group and logical volumes were
>created on Host A.  These disks need to be moved to Host B and the data
>needs to be accessed. Is there a easy way to do this with Importvg command ?
>( Since importvg automates a lot of the manual procedures required
>otherwise ).  The other way of doing this would be to make the map file on
>Host A, move it over to Host B. Reset the PVID on the disks.  Recreate the
>logical volumes using map files.  This method is a little bit complex.

>Can AIX be duped into doing this with Importvg ?
>Any suggestions would be great.


 
 
 

Interesting challenge with Importvg on Aix 4.3

Post by Em Pradha » Fri, 13 Nov 1998 04:00:00


Hi

In Host A issue export command to the volume group
which is associated with the physical volume group.

Then remove the physical volume group from configuration
I guess rmdev -dl hdisknn will do that (check again)

Then remove the disk from Host A

Add disk in Host B
import volume group from that added disk.

Hope it help...


> We have two hosts running AIX 4.3.  Volume group and logical volumes were
> created on Host A.  These disks need to be moved to Host B and the data
> needs to be accessed. Is there a easy way to do this with Importvg command ?
> ( Since importvg automates a lot of the manual procedures required
> otherwise ).  The other way of doing this would be to make the map file on
> Host A, move it over to Host B. Reset the PVID on the disks.  Recreate the
> logical volumes using map files.  This method is a little bit complex.

> Can AIX be duped into doing this with Importvg ?
> Any suggestions would be great.

 
 
 

Interesting challenge with Importvg on Aix 4.3

Post by JayR » Fri, 13 Nov 1998 04:00:00


On doing the Importvg we got an error stating that the Physical volumes
could not be found.

    "Updatevg failed; Physical volume PVID could not be found ...."

I have seen this work before with AIX 4.2.  Are there any changes with AIX
4.3 that cause this error.  Is there a known work around ?

 
 
 

Interesting challenge with Importvg on Aix 4.3

Post by Super Dave Ma » Fri, 13 Nov 1998 04:00:00


I second what AIXMighty said, importvg command is designed to do exactly
what you seem to want.  As an aside, if host A and host B both have a
physical connection to the DASD in question (such as with an SSA drawer
looped to both machines) then you don't even have to export the volume group
or rmdev the drives on host A.  Simply varyoffvg the volume group on host A,
then importvg -y vgname hdisk# on host B.

  Also note that if you do get the error message that JayR referenced, then
WHILE THE VOLUME GROUP IS VARIED OFF ON NODE A, you would rmdev the disks
(hdisks and pdisks, if SSA) then rerun cfgmgr to reconfigure them on node B.
If you run cfgmgr (or boot) node B while the volume group is active on node
A, then node B will not be able to read the PVID on the disks because the
disks will have a reserve lock, and therefore cfgmgr will configure them as
"hdisk# none none".  When you try to import the volume group in that state,
you would see the error message JayR describes.

--
My opinions are completely my own.  As for my heart and soul,
I'm not so sure....but my ass definately belongs to the IRS.

 
 
 

Interesting challenge with Importvg on Aix 4.3

Post by Scott L. Field » Sun, 15 Nov 1998 04:00:00


It is possible your disk ODM is wrong. Try doing a complete "rmdev" for the
the disks in question, and then run "cfgmgr" to get them back. The odm
should match (if your not twin-tailing and the disk are not active on
another machine) the disk PVIDs. "lspv" will verify that.

Then the import should not fail.


>On doing the Importvg we got an error stating that the Physical volumes
>could not be found.

>    "Updatevg failed; Physical volume PVID could not be found ...."

>I have seen this work before with AIX 4.2.  Are there any changes with AIX
>4.3 that cause this error.  Is there a known work around ?

 
 
 

1. Is AIX 4.3.x binary compatible to 4.3.x

Hi everybody out there,

can anybody answer my stupid question?

Is a binary Executable generated on AIX 4.2.1
running on an AIX 4.3.x box?

Any answers will be appreciated.

Thanks juergen

Sent via Deja.com http://www.deja.com/
Before you buy.

2. weird entry in Snort logs

3. AIX 4.2 vs AIX 4.3

4. Where's the cmp?

5. Running AIX 4.3 application on AIX 5.0

6. X-Windows won't start: /dev/console missing

7. Need help with executables compiled on AIX 4.3 but being run on AIX 3.2

8. Need Artist for free software project

9. xmodem for AIX 4.2.1/AIX 4.3

10. AIX 4.3 or AIX 5L V5.1 ?

11. Install package AiX 3.2 on AiX 4.3

12. pthreads AIX 4.2 --> AIX 4.3

13. AIX Connections for AIX 4.3