AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

Version WPAR 5.2 and restoring non-rootvg data

  • 1.  Version WPAR 5.2 and restoring non-rootvg data

    Posted Wed February 13, 2013 12:28 PM

    Originally posted by: robinsguk


    Hello,

    AIX 7.1 TL2 SP01

    I've created a vwpar using my AIX 5.2 mksysb.

    I now need to restore all the data from the datavg volume group.

    My intention was to use restvg from the savevg I'm currently running. However, I've just discovered that the vwpar won't process mkvg commands. Obvious when you think about it.

    I still have a few more hours until my savevg completes but will the vwpar be able to process the data and restore it or do I need to use some other method to restore the data in datavg to my vwpar?

    Thanks

    Glenn
    #AIX-Forum


  • 2.  Re: Version WPAR 5.2 and restoring non-rootvg data

    Posted Thu February 14, 2013 04:37 AM

    Originally posted by: nagger


    You need to add the data to the to the global copy of AIX and then simply mount it into your Versioned WPAR. Simplest way is to mount it in to the global /wpars/my_vwpar/data
    assuming your VWPAR name is called my_vwpar.

    This is so quick and simple most people don't realise it.

    This assumes the VG has file systems in it.
    If it does then savevg is not a good way to move it to the new machine as it assumes a VG and disks and you really want just the files. In which case you could NFS mount and copy using the double tar trick: cd to source dir then: tar f - . | (cd targetdir; tar cf- )

    If your savevg has raw disks then you have a heap of problems and I would suggest moving to files.

    Hope this helps, cheers Nigel Griffiths
    #AIX-Forum


  • 3.  Re: Version WPAR 5.2 and restoring non-rootvg data

    Posted Thu February 14, 2013 06:28 AM

    Originally posted by: robinsguk


    Thanks Nigel, got it.

    I was expecting (hoping) that I could use the scripts I normally use to clean up and recreate VGs etc after creating an LPAR from a mksysb.

    I created the new file systems manually at the global level, this makes absolute sense now.

    My savevg file is 300GB but I was still able to use this with the restore command within the wpar.

    Thanks

    Glenn
    #AIX-Forum