Cloning USS files
All: 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. The HFS file containing the desired directories is mounted as root on one file system, which is the downlevel system from which I am migrating. I want to carve out a copy of selected directories and files from it and put them into an HFS file that will be mounted and used on the uplevel system. What are the steps I need to do to accomplish this? Mike Myers Pitt County Memorial Hospital Greenville, NC -- The contents of this e-mail (and any attachments) are confidential, may be privileged and may contain copyright material. You may only reproduce or distribute material if you are expressly authorized by us to do so. If you are not the intended recipient, any use, disclosure or copying of this email (and any attachments) is unauthorized. If you have received this e-mail in error, please notify the sender and immediately delete this e-mail and any copies of it from your system. == -- 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
Re: Cloning USS files
> -Original Message- > From: IBM Mainframe Discussion List > [mailto:[EMAIL PROTECTED] On Behalf Of Mike Myers > Sent: Monday, June 16, 2008 4:38 PM > To: IBM-MAIN@BAMA.UA.EDU > Subject: Cloning USS files > > All: > > 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. > > The HFS file containing the desired directories is mounted as > root on one file system, which is the downlevel system from > which I am migrating. I want to carve out a copy of selected > directories and files from it and put them into an HFS file > that will be mounted and used on the uplevel system. > > What are the steps I need to do to accomplish this? > > Mike Myers When I had to do this, I used pax to create an archive of the files that I needed. I then ftp'ed the archive file to the new system and used pax to "unwind" the archive. 1) create a sequential file that is big enough to contain the archive 2) cd to the starting subdirectory 3) pax -osaveext -wvf "//'sequential.dataset'" . 4) ftp 'sequential.dataset' to the new system (if not on shared DASD) 5) logon to the new system to a UNIX shell (TSO OMVS will work) 6) cd to the receiving subdirectory 7) pax -pex -rvf "//'sequential.dataset'" There are other ways to do this, but the above is the simpliest conceptually. It is the UNIX equivalent of doing a DFDSS or FDR dump of the files and then restoring the dump on the new system. -- John McKown Senior Systems Programmer HealthMarkets Keeping the Promise of Affordable Coverage Administrative Services Group Information Technology The information contained in this e-mail message may be privileged and/or confidential. It is for intended addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication is strictly prohibited and could, in certain circumstances, be a criminal offense. If you have received this e-mail in error, please notify the sender by reply and delete this message without copying or disclosing it. -- 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
Re: Cloning USS files
John: Thanks. I'll give it a try. Mike >>> "McKown, John" <[EMAIL PROTECTED]> 6/17/2008 9:16 AM >>> > -Original Message- > From: IBM Mainframe Discussion List > [mailto:[EMAIL PROTECTED] On Behalf Of Mike Myers > Sent: Monday, June 16, 2008 4:38 PM > To: IBM-MAIN@BAMA.UA.EDU > Subject: Cloning USS files > > All: > > 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. > > The HFS file containing the desired directories is mounted as > root on one file system, which is the downlevel system from > which I am migrating. I want to carve out a copy of selected > directories and files from it and put them into an HFS file > that will be mounted and used on the uplevel system. > > What are the steps I need to do to accomplish this? > > Mike Myers When I had to do this, I used pax to create an archive of the files that I needed. I then ftp'ed the archive file to the new system and used pax to "unwind" the archive. 1) create a sequential file that is big enough to contain the archive 2) cd to the starting subdirectory 3) pax -osaveext -wvf "//'sequential.dataset'" . 4) ftp 'sequential.dataset' to the new system (if not on shared DASD) 5) logon to the new system to a UNIX shell (TSO OMVS will work) 6) cd to the receiving subdirectory 7) pax -pex -rvf "//'sequential.dataset'" There are other ways to do this, but the above is the simpliest conceptually. It is the UNIX equivalent of doing a DFDSS or FDR dump of the files and then restoring the dump on the new system. -- John McKown Senior Systems Programmer HealthMarkets Keeping the Promise of Affordable Coverage Administrative Services Group Information Technology The information contained in this e-mail message may be privileged and/or confidential. It is for intended addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication is strictly prohibited and could, in certain circumstances, be a criminal offense. If you have received this e-mail in error, please notify the sender by reply and delete this message without copying or disclosing it. -- 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 -- The contents of this e-mail (and any attachments) are confidential, may be privileged and may contain copyright material. You may only reproduce or distribute material if you are expressly authorized by us to do so. If you are not the intended recipient, any use, disclosure or copying of this email (and any attachments) is unauthorized. If you have received this e-mail in error, please notify the sender and immediately delete this e-mail and any copies of it from your system. == -- 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
Re: Cloning USS files
snip.. > >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 Mike, You could create your new HFS and mount it temporarily on the downlevel system and then use 'copytree' to copy your selected directory/sub-directories. You should be able to get a copy of 'copytree' from the IBM UNIX Tools & Toys website but if you can't find it, contact me offline Hope this helps Roger -- 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
Re: Cloning USS files
Mike Do the LPARS share the same catalog for the HFS files ?, if so you can create a new HFS file mount it and use the Unix cp command to copy the files across "cp -R /current /new/hfs/mount/point", once the copy has completed unmount the new hfs file. Go to the other lpar mount your new hfs and copy out whatever files/directories you need. If the lpars do not share a catalog, we use ADRDSSU to dump the file and the use ADRDSSU on the other lpar to restore the hfs with a new name, then mount it and you can copy out what you need. Regards Gerard Ceruti may the 'z' be with you -Original Message- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Roger Lowe Sent: 17 June 2008 10:42 PM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: Cloning USS files snip.. > >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 Mike, You could create your new HFS and mount it temporarily on the downlevel system and then use 'copytree' to copy your selected directory/sub-directories. You should be able to get a copy of 'copytree' from the IBM UNIX Tools & Toys website but if you can't find it, contact me offline Hope this helps Roger -- 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 _ Standard Bank email Disclaimer and confidentiality note This e-mail, its attachments and any rights attaching hereto are, unless the content clearly indicates otherwise, the property of Standard Bank Group Limited and its subsidiaries. It is confidential, private and intended for only the addressee. Should you not be the addressee and receive this e-mail by mistake, kindly notify the sender, and delete this e-mail immediately. Do not disclose or use it in any way. Views and opinions expressed in this e-mail are those of the sender unless clearly stated as those of Standard Bank Group. Standard Bank Group accepts no liability for any loss or damages howsoever incurred, or suffered, resulting, or arising, from the use of this email or its attachments. Standard Bank Group does not warrant the integrity of this e-mail nor that it is free of errors, viruses, interception or interference. Licensed divisions of the Standard Bank Group are authorised financial services providers in terms of the Financial Advisory and Intermediary Services Act, No 37 of 2002 (FAIS). For information about the Standard Bank Group visit our website http://www.standardbank.com -- 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
Re: Cloning USS files
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 This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the addressee(s) named above. If you receive this e-mail in error, please do not read, copy or disseminate it in any manner. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated. -- 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
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 This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the addressee(s) named above. If you receive this e-mail in error, please do not read, copy or disseminate it in any manner. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated. -- 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 -- The contents of this e-mail (and any attachments) are confidential, may be privileged and may contain copyright material. You may only reproduce or distribute material if you are expressly authorized by us to do so. If you are not the intended recipient, any use, disclosure or copying of this email (and any attachments) is unauthorized. If you have received this e-mail in error, please notify the sender and immediately delete this e-mail and any copies of it from your system. == -- 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
Re: Cloning USS files
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 This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the addressee(s) named above. If you receive this e-mail in error, please do not read, copy or disseminate it in any manner. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated. -- 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 -- The contents of this e-mail (and any attachments) are confidential, may be privileged and may contain copyright material. You may only reproduce or distribute material if you are expressly authorized by us to do so. If you are not the intended recipient, any use, disclosure or copying of this email (and any attachments) is unauthorized. If you have received this e-mail in error, please notify the sender and immediately delete this e-mail and any copies of it from your system. == -- 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 This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the addressee(s) named above. If you receive this e-mail in error, please do not read, copy or disseminate it in any manner. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated. -- 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
Re: Cloning USS files
There are several directories and files that are associated with the major application in use here. This is the spot to copy/mount these files/directories to their own HFS and then mount that HFS to their mountpoint, as R/O, to the other LPARs Jack Kelly 202-502-2390 (Office) -- 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
Re: Cloning USS files
Jack: Right. That's what I want to do. Why they wound up where they are in the first place is beyond me, but the guy(s) who set this system up in the first place are long gone and I'm here to try and make things right. Mike >>> "Jack Kelly" <[EMAIL PROTECTED]> 6/18/2008 10:22 AM >>> There are several directories and files that are associated with the major application in use here. This is the spot to copy/mount these files/directories to their own HFS and then mount that HFS to their mountpoint, as R/O, to the other LPARs Jack Kelly 202-502-2390 (Office) -- 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 -- The contents of this e-mail (and any attachments) are confidential, may be privileged and may contain copyright material. You may only reproduce or distribute material if you are expressly authorized by us to do so. If you are not the intended recipient, any use, disclosure or copying of this email (and any attachments) is unauthorized. If you have received this e-mail in error, please notify the sender and immediately delete this e-mail and any copies of it from your system. == -- 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
Re: Cloning USS files
Dave: My intention exactly. I just needed a few suggestions to find a way to do that, being not a strong Unix guy. Mike >>> "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 This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the addressee(s) named above. If you receive this e-mail in error, please do not read, copy or disseminate it in any manner. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated. -- 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 -- The contents of this e-mail (and any attachments) are confidential, may be privileged and may contain copyright material. You may only reproduce or distribute material if you are expressly authorized by us to do so. If you are not the intended recipient, any use, disclosure or copying of this email (and any attachments) is unauthorized. If you have received this e-mail in error, please notify the sender and immediately delete this e-mail and any copies of it from your system. == -- 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 This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the addressee(s) named above. If you receive this e-mail in error, please do not read, copy or disseminate it in any manner. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated. -- 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
Re: Cloning USS files
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=* //DASD0DD DISP=OLD,UNIT=3390,VOL=SER=HFSTUF //SYSINDD * 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: MOUNTFILESYSTEM('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
Re: Cloning USS files
On Wed, 18 Jun 2008 09:41:38 -0600, Steve Comstock <[EMAIL PROTECTED]> wrote: >Second, I've been porting Apache to z/OS recently, and here's >what I did to reserve space for the Apache files: > > >3. Under omvs, issue these commands: > > su > cd /usr/lpp > mkdir zApache Most sane shops would need to do this to a maintenance root mounted at a service mount point, clone, and re-IPL since the root is usually mounted read only and may be shared in a non-sysplex aware file system environment. Even in a shared file system environment the sysres root should be mounted read only. Example: su cd /service/usr/lpp mkdir zApache I realize in your sandbox (P390, flex?) this probably isn't a concern. 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
Re: Cloning USS files
Mark Zelden wrote: On Wed, 18 Jun 2008 09:41:38 -0600, Steve Comstock <[EMAIL PROTECTED]> wrote: Second, I've been porting Apache to z/OS recently, and here's what I did to reserve space for the Apache files: 3. Under omvs, issue these commands: su cd /usr/lpp mkdir zApache Most sane shops Ah, there's the rub! :-) would need to do this to a maintenance root mounted at a service mount point, clone, and re-IPL since the root is usually mounted read only and may be shared in a non-sysplex aware file system environment. Even in a shared file system environment the sysres root should be mounted read only. Example: su cd /service/usr/lpp mkdir zApache I realize in your sandbox (P390, flex?) this probably isn't a concern. Right, flex-es on a Thinkpad. But thanks for pointing this out. Mark -- Mark Zelden 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
Re: Cloning USS files
There are several directories and files that are associated with the major application in use here. Mike: You probably already know but before you change the mount point to this new HFS, you should clean up the directory in the root or you'll simply lose the space in root. Just a thought. Jack Kelly 202-502-2390 (Office) -- 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