Mike Myers wrote:
Dave:
My intention exactly. I just needed a few suggestions to find a way to do that, being not a strong Unix guy.
Mike
First, you might get a little more insight if you asked over
on the mvs-oe list.
Second, I've been porting Apache to z/OS recently, and here's
what I did to reserve space for the Apache files:
1. submit a job to allocate the HFS:
//ZFSAPACH JOB ,'ZFS ALLOCATE',NOTIFY=&SYSUID,
// USER=IBMUSER,PASSWORD=1CIRCUS1,
// CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1)
// SET JOBID=ZFSAPACH
//*
//* This job defines and formats a ZFS data set to hold the
//* Apache server from IBM
//*
//* IOEAGFMT is documented in SC24-5989
//* Distributed File Service ZFS Administration
//*
//*
//DEFINE EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//DASD0 DD DISP=OLD,UNIT=3390,VOL=SER=HFSTUF
//SYSIN DD *
DEFINE CLUSTER (NAME(APACHE.ZFS) -
VOLUMES(HFSTUF) -
LINEAR CYL(600 40) SHAREOPTIONS(3))
/*
//CREATE EXEC PGM=IOEAGFMT,REGION=0M,
// PARM=('-aggregate APACHE.ZFS -compat')
//SYSPRINT DD SYSOUT=*
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
//CEEDUMP DD SYSOUT=*
//*
2. In my PARMLIB member BPXPRMBB (you will probably use a
different member name), include these lines:
MOUNT FILESYSTEM('APACHE.ZFS')
TYPE(ZFS)
MODE(RDWR)
MOUNTPOINT('/usr/lpp/zApache')
[this is to ensure the system is mounted at ipl time in the future]
3. Under omvs, issue these commands:
su
cd /usr/lpp
mkdir zApache
/usr/sbin/mount -t zfs -f APACHE.ZFS /usr/lpp/zApache
At this point you have a place to move your files to, using
pax or tar or copytree or whatever mechanism you prefer.
HTH.
"Jousma, David" <[EMAIL PROTECTED]> 6/18/2008 10:23 AM >>>
Since you are going to this effort to move it, why not use the
opportunity to create a separate HFS/ZFS for this application, mount it
at the desired location, and then put your contents into it? Then you
NEVER have to revisit this situation again, and you get to keep your
root FS *clean*
Dave
_______________________________________________________
Dave Jousma
Assistant Vice President
Mainframe Services
[EMAIL PROTECTED]
616.653.8429
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Myers
Sent: Wednesday, June 18, 2008 10:13 AM
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: Cloning USS files
Dave:
Thanks for asking. There are several directories and files that are
associated with the major application in use here. For whatever reason,
they seem to be contained in the HFS data set that is mounted as root on
the system I am migrating from. I would like to get these directories
and files into a separate HFS data set, to simplify future migration.
I am migrating from z/OS 1.4 to 1.7 now and anticipate migrating to z/OS
1.9 as soon as possible afterwards.
Mike Myers
Pitt County Memorial Hospital
Greenville, NC
"Jousma, David" <[EMAIL PROTECTED]> 6/18/2008 7:48 AM >>>
Mike,
No one asked, so I am. Just out of curiosity, what are you manually
copying around out of your root filesystem? Just don't want to see you
shoot yourself in the foot....
_______________________________________________________
Dave Jousma
Assistant Vice President
Mainframe Services
[EMAIL PROTECTED]
616.653.8429
How do I go about cloning part of a HFS file system across LPARs? What
I am
trying to do is to copy part (one directory and all sub-directories)
from one HFS file on one LPAR into an HFS file on another LPAR.
...snip
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
303-393-8716
http://www.trainersfriend.com
z/OS Application development made easier
* Our classes include
+ How things work
+ Programming examples with realistic applications
+ Starter / skeleton code
+ Complete working programs
+ Useful utilities and subroutines
+ Tips and techniques
==> Check out the Trainer's Friend Store to purchase z/OS <==
==> application developer toolkits. Sample code in four <==
==> programming languages, JCL to Assemble or compile, <==
==> bind and test. <==
==> http://www.trainersfriend.com/TTFStore/index.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