Yes, I opened an ETR question with IBM and they showed how to use
'copytree'. I just mounted the old ROOT file at '/old' and the new,
larger ROOT file at '/new' and issued command:
/samples/copytree /old /new
and it worked like a charm. I then mounted each of the other three zFS at
/old and copied them to their subdirectory in /new, e.g., the NetView zFS
was copied to: /samples/copytree /old /new/usr/lpp/netview/v5r4
It is true that I could leave the four files as is but I just have always
found cloning one file to be "cleaner" than doing multiple ones. I've
found FDR to be the easiest way to 'clone' it as in:
//COPYFDR EXEC PGM=FDRCOPY,COND=(0,LT,COPY1)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
COPY TYPE=DSF,DSNENQ=NONE,DATA=ALL,SELTERR=YES
SELECT CATDSN=SOFTT155.OMVS.ZOS1R11.ROOT,
NEWN=SOFTT155.OMVS.ZOS1R11.ROOT.RES1TA,
STORCLAS=HFSTST
Thanks again to everyone who took the time to respond - much appreciated.
On Thu, Jan 14, 2010 at 12:53 PM, Mark Zelden <[email protected]>wrote:
> On Thu, 14 Jan 2010 12:10:14 -0600, McKown, John
> <[email protected]> wrote:
>
> >zfsadm
> >
> >http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/FCXD5A80/1.4.2
> >
> >I agree that this seems unnecessary. If they are READ only, then just
> mount
> them all in the correct order and don't bother with copying.
> >
>
> I also agree. I don't see any advantage other than possibly a few less
> control cards etc. in your cloning job (although ours selects the zFS data
> sets with a generic name, so 1 or 5 doesn't change anything).
>
> If you did want to copy it all logically, I would use copytree. It is in
> the
> samples directory. Hopefully you have bpx.superuser authority or actually
> have UID=0 by default (which I don't like).
>
> Mark
> --
> Mark Zelden
> Sr. Software and Systems Architect - z/OS Team Lead
> Zurich North America / Farmers Insurance Group - ZFUS G-ITO
> mailto:[email protected]
> z/OS Systems Programming expert at
> http://expertanswercenter.techtarget.com/
> Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html
>
--
Guy Gardoit
z/OS Systems Programming
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html