Hi Linda,

"USS" - meaning Unix System Services, not the VTAM term Unformatted Session 
Services  :-))

Ok, an example.

Say I want to expand  HLQ.MY.HFS mounted at '/usr/lpp/my' and I'm at a point of 
time where I can unmount that file temporarily.

Create HLQ.MY.COPY.HFS with more space.  Create directory '/temp' in the 
sysplex ROOT  (actually I always have a few of these temporary mount points in 
case I need them).

Mount HLQ.MY.COPY.HFS at 'temp'.

Go into TSO ISH and select "Run shell command(SH)" from the "Tools" pull down.

On the command screen, enter:

/samples/copytree  -a  /usr/lpp/my  /temp

This will copy all of the files to the new file.  When complete, unmount 
HLQ.MY.HFS from '/usr/lpp/my', unmount HLQ.MY.COPY.HFS from '/temp'.
Delete or rename HLQ.MY.HFS then rename HLQ.MY.COPY.HFS to HLQ.MY.HFS and mount 
it at '/usr/lpp/my' and you're done.

You do all of this from TSO OMVS also, if you prefer.

You can see more details about the 'copytree' process by entering 'man 
copytree' on the "Run shell commands(SH)" screen or the OMVS prompt.

Dick Bond
Department of Information Services
CSD Production Support
[email protected]

Notice: This document contains information about the infrastructure and 
security of the state of Washington’s computer and telecommunication networks. 
Please make every effort to control access to this document and the information 
within it. All or part of this document may be exempt from public disclosure 
pursuant to RCW 42.56.420 (1) and (4). Please immediately direct any requests 
for public disclosure of all or part of this document to the DIS public 
disclosure officer at: [email protected]

> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On
> Behalf Of Linda Mooney
> Sent: Wednesday, February 09, 2011 3:40 PM
> To: [email protected]
> Subject: Re: HFS file questions
> 
> Hi Dick,
> 
> 
> 
> Nobody here, me included, has ever used copytree.  None of us know
> much about USS at all, although I am determined to learn - if it kills me!
> 
> 
> 
> I need to end up with the same structure and directory names that I have
> now, just with more space available.  Can copytree do that?  How would
> I mount the new and old HFS files for the copytree process?
> 
> 
> 
> Thanks,
> 
> 
> 
> Linda
> 
> 
> ----- Original Message -----
> From: "Dick Bond (DIS)" <[email protected]>
> To: [email protected]
> Sent: Wednesday, February 9, 2011 8:50:35 AM
> Subject: Re: HFS file questions
> 
> An easy and reliable (at least I've found it so) is:  /samples/copytree -a
> sourcedir targetdir
> 
> Mount a new HFS at a "targetdir", run copytree then unmount old and
> mount new, if that's doable in your circumstances.
> 
> Whenever possible, I like to stick with OMVS copy methods when dealing
> with OMVS files rather than worry about DFDSS or FDRCOPY.  Just a
> personal preference.
> 
> Dick Bond
> Department of Information Services
> CSD Production Support
> [email protected]
> 
> Notice: This document contains information about the infrastructure and
> security of the state of Washington’s computer and telecommunication
> networks. Please make every effort to control access to this document
> and the information within it. All or part of this document may be exempt
> from public disclosure pursuant to RCW 42.56.420 (1) and (4). Please
> immediately direct any requests for public disclosure of all or part of this
> document to the DIS public disclosure officer at:
> [email protected]
> 
> > -----Original Message-----
> > From: IBM Mainframe Discussion List [mailto:[email protected]]
> On
> > Behalf Of Rob Schramm
> > Sent: Tuesday, February 08, 2011 7:30 PM
> > To: [email protected]
> > Subject: Re: HFS file questions
> >
> > Linda,
> >
> > In order to make sure you get a clean copy using FDRCOPY, you'll have
> > to either quiese or unmount the filesystem before doing the copy to a
> > new/backup data set.  HFS is very intolerant of fuzzy copies.
> >
> > As for the expansion, this is way easier with zfs v.s. hfs.  It has been a
> while
> > since I have dealt with HFS... so maybe one of the other members knows
> > the answer.
> >
> > If there isn't an easy way.. then:
> > 1) make a new hfs/zfs file
> > 2) mount it somewhere like /u/temp
> > 3) there are various methods .. I have seen various documents
> indicating
> > use of pax.  I have just run a cp command with recursive and preserve
>  cp
> > -Rp.
> >
> > Rob
> >
> > ----------------------------------------------------------------------
> > 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
> 
> ----------------------------------------------------------------------
> 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
> 
> ----------------------------------------------------------------------
> 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

----------------------------------------------------------------------
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

Reply via email to