cancel
Showing results for 
Search instead for 
Did you mean: 

process/procedure to make smaller client install kits

pmc214
Level 5

is there  process/procedure to make smaller client install kits?

We are attempting a 7.6.1 client install on redhat 64bit. when stripping down install tar we get missing files errors.

2 ACCEPTED SOLUTIONS

Accepted Solutions

RiaanBadenhorst
Level 6
Partner    VIP    Accredited Certified

Hi

 

I assume you've downloaded NetBackup_7.6.1_CLIENTS2.tar.gz

cp NetBackup_7.6.1_CLIENTS2.tar.gz /tmp

cd /tmp

tar zxvf NetBackup_7.6.1_CLIENTS2.tar.gz

rm -rf NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/Linux/IBMzSeriesSuSE2.6.16/
rm -rf NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/Linux/SuSE2.6.16/
rm -rf NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/Linux/IBMzSeriesRedHat2.6.18/
rm -rf NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/Linux/Debian2.6.18/

cd NetBackup_7.6.1_CLIENTS2

./install

 

View solution in original post

sdo
Moderator
Moderator
Partner    VIP    Certified

The trouble with copying the CLIENTS2 file (at 1.6GB) is that we need 3.2 GB of disk to have a copy locally, and to unpack it - before the CLIENTS2 file can be deleted.

When I strip down the client kits to RHEL only I end up with a 464 MB kit:

464,205,312 NetBackup_7.6.1_CLIENTS2.specific.Linux.RedHat2.6.18.tar

.

See this link for a description of the 'base' and 'patch' NetBackup Client kits:

What about an ISO for 7.6 client install on RedHat 64bit - Comment:6 hours 32 min ago : Link

.

Here's a procedure to strip down v7.6.1 base kits, and v7.6.1.2 patch kits.

Do NOT think of using this procedure to strip down v7.5, v7.6.0.x, v7.7 kits - because each NetBackup major version has a certain number of version to version minor differences, and unless you are quite comfortable with the folder structures and file names then you can get in to a proper mess if you attempt to use these v7.6.1.x procedures on any other version.

Enjoy:

Example - How to Make Smaller NetBackup v7.6.1 Client BASE Kits on a Mac OSX in a Terminal Session
==================================================================================================

# This process makes smaller NetBackup Client "BASE" kits for Unix and Linux...

#...this process assumes that a structured folder tree of NetBackup kits already exists on another server...
#...which has already been mounted (on Mac OSX) via NFS Client or CIFS/SMB client, at the Mac OSX file system...
#...name/point of:   /Volumes/NetBackup/

#...first, check that tar is at least version 1.16
#...see tech note:  http://www.symantec.com/docs/TECH154080
tar --version
#...WARNING: if your tar version is not high enough (on any OS) then do NOT continue with this process !!!

#...check that we have at least 10 GB of disk space free:
df -h /tmp

#...make sure this folder does not already exist, because we'll be working with a folder of this name, and ultimately deleting it:
ls -lash /tmp/nbu/

#...if it already exists, then think carefully before deleting it - ask yourself... why does it already exist ?
rm -rvf  /tmp/nbu

#...copy main Client kit from the respository to /tmp on our local machine:
cd /tmp
cp -v '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1 - Binaries/NetBackup_7.6.1_CLIENTS1.tar.gz'  ./
cp -v '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1 - Binaries/NetBackup_7.6.1_CLIENTS2.tar.gz'  ./
ls -lash

#...test the kit:
tar -tvf NetBackup_7.6.1_CLIENTS1.tar.gz
tar -tvf NetBackup_7.6.1_CLIENTS2.tar.gz

#...check the sym-links and check that linked files only refer to files within the same family set:
tar -tvf NetBackup_7.6.1_CLIENTS1.tar.gz | grep "\->" | grep -v "install_client"
tar -tvf NetBackup_7.6.1_CLIENTS2.tar.gz | grep "\->" | grep -v "install_client"
#...N.B. if any files sym-link to files outside of their own family group then abandon this procedure and do NOT continue...
#...and maybe think about updating this procedure to cope with the situation...
#...i.e. if any of the sym-link pointers point to three levels or more upwards, then do not continue.

#...now extract each large kit, and delete each large kit:
tar -xvf NetBackup_7.6.1_CLIENTS1.tar.gz
rm -v    NetBackup_7.6.1_CLIENTS1.tar.gz

tar -xvf NetBackup_7.6.1_CLIENTS2.tar.gz
rm -v    NetBackup_7.6.1_CLIENTS2.tar.gz

#...there is no longer any need to drop most of the documentation set...
#...as the v7.6.1 base kit no longer includes the entire documentation set...

#...now we will temporarily store the folders of the client family kits elsewhere...
#...we will do this several times, before we get to the Linux and Solaris kits:
ls -lash  NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/
ls -lash  NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/

mkdir /tmp/nbu/

mv -v     NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/*  /tmp/nbu/
mv -v     NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/*  /tmp/nbu/

ls -lash  NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/
ls -lash  NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/

#...and now bring each family folder back and make new O/S family specific kits...

#...make base client kit for:  HP-UX-IA64
mv -v /tmp/nbu/HP-UX-IA64/  NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/
tar -h -cvf  NetBackup_7.6.1_CLIENTS1.specific.HP-UX-IA64.tar  NetBackup_7.6.1_CLIENTS1/
rm -rvf      NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/HP-UX-IA64/

#...make base client kits for:  INTEL
mv -v /tmp/nbu/INTEL/  NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/
tar -h -cvf  NetBackup_7.6.1_CLIENTS1.specific.INTEL.tar  NetBackup_7.6.1_CLIENTS1/
rm -rvf      NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/INTEL/

#...make base client kits for:  MACINTOSH
mv -v /tmp/nbu/MACINTOSH/  NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/
tar -h -cvf  NetBackup_7.6.1_CLIENTS1.specific.MACINTOSH.tar  NetBackup_7.6.1_CLIENTS1/
rm -rvf      NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/MACINTOSH/

#...make base client kits for:  RS6000
mv -v /tmp/nbu/RS6000/  NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/
tar -h -cvf  NetBackup_7.6.1_CLIENTS1.specific.RS6000.tar  NetBackup_7.6.1_CLIENTS1/
rm -rvf      NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/RS6000/

#...now for the Linux kits, we're going to make specific platform kits...
#...but making sure that we use the "-h" option of tar to dereference sym-links...
#...i.e. to directly include linked files, and not the links themselves...

#...the Solaris family kit actually contains kits for two variants:
#    Solaris10
#    Solaris_x86_10_64

#...and the Linux family kit actually contains kits for seven variants:
#    Debian2.6.18
#    IBMpSeriesRedHat2.6.16
#    IBMpSeriesSuSE2.6.16
#    IBMzSeriesRedHat2.6.18
#    IBMzSeriesSuSE2.6.16
#    RedHat2.6.18
#    SuSE2.6.16

#...each of which we are going to re-package into smaller kits...

#...so, first move back the family folders:
#...list the folders, these should be empty, if they are not empty then something above has gone wrong:
ls -lash                 NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/
ls -lash                 NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/

mv -v /tmp/nbu/Solaris/  NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/
mv -v /tmp/nbu/Linux/    NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/

#...the folders should now contain the two families of Solaris and Linux:
ls -lash                 NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/
ls -lash                 NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/

#...remove the now empty temporary holding area...
#...if this folder delete fails, then something has gone wrong with the steps above:
rmdir  /tmp/nbu/

#...N.B. these next two lines are each a single line - so watch out for line/word wrap:

tar -h -cvf NetBackup_7.6.1_CLIENTS1.specific.Solaris.Solaris10.tar  NetBackup_7.6.1_CLIENTS1/Doc/  NetBackup_7.6.1_CLIENTS1/LICENSE  NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/Solaris/Solaris10/ NetBackup_7.6.1_CLIENTS1/NBClients/catalog/  NetBackup_7.6.1_CLIENTS1/VSM_README  NetBackup_7.6.1_CLIENTS1/install

tar -h -cvf NetBackup_7.6.1_CLIENTS1.specific.Solaris_x86_10_64.tar  NetBackup_7.6.1_CLIENTS1/Doc/  NetBackup_7.6.1_CLIENTS1/LICENSE  NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/Solaris/Solaris_x86_10_64/ NetBackup_7.6.1_CLIENTS1/NBClients/catalog/  NetBackup_7.6.1_CLIENTS1/VSM_README  NetBackup_7.6.1_CLIENTS1/install

#...N.B. these next four lines are each a single line - so watch out for line/word wrap:

tar -h -cvf NetBackup_7.6.1_CLIENTS2.specific.Linux.Debian2.6.18.tar  NetBackup_7.6.1_CLIENTS2/Doc/  NetBackup_7.6.1_CLIENTS2/LICENSE  NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/Linux/Debian2.6.18/ NetBackup_7.6.1_CLIENTS2/NBClients/catalog/  NetBackup_7.6.1_CLIENTS2/VSM_README  NetBackup_7.6.1_CLIENTS2/install

tar -h -cvf NetBackup_7.6.1_CLIENTS2.specific.Linux.IBM.tar  NetBackup_7.6.1_CLIENTS2/Doc/  NetBackup_7.6.1_CLIENTS2/LICENSE  NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/Linux/IBM*/ NetBackup_7.6.1_CLIENTS2/NBClients/catalog/  NetBackup_7.6.1_CLIENTS2/VSM_README  NetBackup_7.6.1_CLIENTS2/install

tar -h -cvf NetBackup_7.6.1_CLIENTS2.specific.Linux.RedHat2.6.18.tar  NetBackup_7.6.1_CLIENTS2/Doc/  NetBackup_7.6.1_CLIENTS2/LICENSE  NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/Linux/RedHat2.6.18/ NetBackup_7.6.1_CLIENTS2/NBClients/catalog/  NetBackup_7.6.1_CLIENTS2/VSM_README  NetBackup_7.6.1_CLIENTS2/install

tar -h -cvf NetBackup_7.6.1_CLIENTS2.specific.Linux.SuSE2.6.16.tar  NetBackup_7.6.1_CLIENTS2/Doc/  NetBackup_7.6.1_CLIENTS2/LICENSE  NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/Linux/SuSE2.6.16/ NetBackup_7.6.1_CLIENTS2/NBClients/catalog/  NetBackup_7.6.1_CLIENTS2/VSM_README  NetBackup_7.6.1_CLIENTS2/install

#...remove the expanded base client kit areas that we have been working with:
rm -rvf /tmp/NetBackup_7.6.1_CLIENTS1/
rm -rvf /tmp/NetBackup_7.6.1_CLIENTS2/

#...list the specific kits:
ls -lash NetBackup_7.6.1_CLIENTS*.specific.*

#...copy the new specific kits to repository...
#...N.B. you may need to re-establish a connection from your workstation to your CIFS share or NFS export, i.e. the NetBackup software kits repository:
ls -lash  '/Volumes/'
ls -lash  '/Volumes/NetBackup/'
ls -lash  '/Volumes/NetBackup/NetBackup v7.6/'
ls -lash  '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1 - Binaries/'
mkdir     '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1 - Binaries/specific/'
ls -lash  '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1 - Binaries/specific/'

cp -v  NetBackup_7.6.1_CLIENTS*.specific.*.tar  '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1 - Binaries/specific/'

ls -lash                                        '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1 - Binaries/specific/'

#...cleanup... now delete the local copy of the kits:
rm -v  /tmp/NetBackup_7.6.1_CLIENTS*.specific.*.tar


Example - How to Make Smaller NetBackup Client v7.6.1.2 PATCH Kits on a Mac OSX in a Terminal Session
=====================================================================================================

# This process makes smaller NetBackup Client "PATCH" kits...

#...first, check that tar is at least version 1.16
#...see tech note:  http://www.symantec.com/docs/TECH154080
tar --version
#...WARNING: if your tar version is not high enough (on any OS) then do NOT continue with this process !!!

#...check that we have at least 10 GB disk space:
df -h /tmp

#...make sure these two folders do not already exist, because we'll be working with folders of these names, and ultimately deleting them:
ls -lash /tmp/nbu/
ls -lash /tmp/temp/

#...if they already exist, then think carefully before deleting them - ask yourself... why do they already exist ?
rm -rvf  /tmp/nbu
rm -rvf  /tmp/temp

#...copy main client patch kit:
cd /tmp
ls -lash
cp -v  '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1.2 - Patch/NB_CLT_7.6.1.2.tar'  ./
ls -lash

#...test the kit:
tar -tvf NB_CLT_7.6.1.2.tar

#...now extract the kit, but in to the "nbu" sub-folder...
#...we have to extract down into our current sub-folder because this tarball does not contain a sub-folder:
mkdir nbu
cd    nbu
pwd
tar -xvf ../NB_CLT_7.6.1.2.tar

#...delete the large kit sitting above us:
rm -v ../NB_CLT_7.6.1.2.tar

#...temporarily store the O/S family kit variants in the folder directly above us:
mv -v  VrtsNB_CLT_7.6.1.2.*.tar.gz  ../

#...now, one at a time, bring down the OS specific tar balls, so that we can make some smaller O/S family specific client kits...
#...we will do this several times, before we get to work on the larger Linux and Solaris kits:

mv -v  ../VrtsNB_CLT_7.6.1.2.HP-UX-IA64.tar.gz  ./
tar -cvf   ../NB_CLT_7.6.1.2.specific.HP-UX-IA64.tar  *
rm -v     VrtsNB_CLT_7.6.1.2.HP-UX-IA64.tar.gz

mv -v  ../VrtsNB_CLT_7.6.1.2.INTEL.tar.gz  ./
tar -cvf   ../NB_CLT_7.6.1.2.specific.INTEL.tar  *
rm -v     VrtsNB_CLT_7.6.1.2.INTEL.tar.gz

mv -v  ../VrtsNB_CLT_7.6.1.2.MACINTOSH.tar.gz  ./
tar -cvf   ../NB_CLT_7.6.1.2.specific.MACINTOSH.tar  *
rm -v     VrtsNB_CLT_7.6.1.2.MACINTOSH.tar.gz

mv -v  ../VrtsNB_CLT_7.6.1.2.RS6000.tar.gz  ./
tar -cvf   ../NB_CLT_7.6.1.2.specific.RS6000.tar  *
rm -v     VrtsNB_CLT_7.6.1.2.RS6000.tar.gz

#...now we will make Linux and Solaris family kits, for specific platforms...
#...the tricky part is that the Linux client patch kits are contained within a large file of 1.8 GB named:
#    VrtsNB_CLT_7.6.1.2.Linux.tar.gz

#...and the Solaris client patch kits are contained within a large file named:
#    VrtsNB_CLT_7.6.1.2.Solaris.tar.gz

#...but we want to create smaller client patch variant kits, yet each kit still needs to contain a file named:
#    VrtsNB_CLT_7.6.1.2.Linux.tar.gz
#...or:    VrtsNB_CLT_7.6.1.2.Solaris.tar.gz

#...and seeing as the original files can contain sym-links, we're going to need to de-reference too...
#...so, we're going to have to extract all the files and re-form each specific kit one at a time...

#...first thing to do is to move the original full Linux and Solaris patch kits somewhere safe for now:
mkdir /tmp/temp/
mv -v ../VrtsNB_CLT_7.6.1.2.Linux.tar.gz    /tmp/temp/
mv -v ../VrtsNB_CLT_7.6.1.2.Solaris.tar.gz  /tmp/temp/

#...make sure kits are valid:
tar -tvf /tmp/temp/VrtsNB_CLT_7.6.1.2.Linux.tar.gz
tar -tvf /tmp/temp/VrtsNB_CLT_7.6.1.2.Solaris.tar.gz

#...now we extract the full trees, of "usr/.." downwards:
cd /tmp/temp/
tar -xvf  VrtsNB_CLT_7.6.1.2.Linux.tar.gz
tar -xvf  VrtsNB_CLT_7.6.1.2.Solaris.tar.gz

#...and now create individually named variants (that will later be renamed back to the original plain _CLT_ name)...
#...note how we de-reference sym-links (using -h) and compress (using -z):
tar -h -z -cvf  VrtsNB_CLT_7.6.1.2.Linux.Debian2.6.18.tar.gz         usr/openv/netbackup/client/Linux/Debian2.6.18/
tar -h -z -cvf  VrtsNB_CLT_7.6.1.2.Linux.IBM.tar.gz                  usr/openv/netbackup/client/Linux/IBM*/
tar -h -z -cvf  VrtsNB_CLT_7.6.1.2.Linux.RedHat2.6.18.tar.gz         usr/openv/netbackup/client/Linux/RedHat2.6.18/
tar -h -z -cvf  VrtsNB_CLT_7.6.1.2.Linux.SuSE2.6.16.tar.gz           usr/openv/netbackup/client/Linux/SuSE2.6.16/
tar -h -z -cvf  VrtsNB_CLT_7.6.1.2.Solaris.Solaris10.tar.gz          usr/openv/netbackup/client/Solaris/Solaris10/
tar -h -z -cvf  VrtsNB_CLT_7.6.1.2.Solaris.Solaris_x86_10_64.tar.gz  usr/openv/netbackup/client/Solaris/Solaris_x86_10_64/

#...now for each variant we're going to rename the variant back to _CLT_ and then create the true variant patch kit...
#...i.e. bring back a variant file, rename it to the original name, and then re-package all as a specific kit:
cd /tmp/nbu

mv -v  /tmp/temp/VrtsNB_CLT_7.6.1.2.Linux.Debian2.6.18.tar.gz        ./VrtsNB_CLT_7.6.1.2.Linux.tar.gz
tar -cvf          ../NB_CLT_7.6.1.2.specific.Linux.Debian2.6.18.tar  *
rm -v  ./VrtsNB_CLT_7.6.1.2.Linux.tar.gz

mv -v  /tmp/temp/VrtsNB_CLT_7.6.1.2.Linux.IBM.tar.gz                 ./VrtsNB_CLT_7.6.1.2.Linux.tar.gz
tar -cvf          ../NB_CLT_7.6.1.2.specific.Linux.IBM.tar           *
rm -v  ./VrtsNB_CLT_7.6.1.2.Linux.tar.gz

mv -v  /tmp/temp/VrtsNB_CLT_7.6.1.2.Linux.RedHat2.6.18.tar.gz        ./VrtsNB_CLT_7.6.1.2.Linux.tar.gz
tar -cvf          ../NB_CLT_7.6.1.2.specific.Linux.RedHat2.6.18.tar  *
rm -v  ./VrtsNB_CLT_7.6.1.2.Linux.tar.gz

mv -v  /tmp/temp/VrtsNB_CLT_7.6.1.2.Linux.SuSE2.6.16.tar.gz          ./VrtsNB_CLT_7.6.1.2.Linux.tar.gz
tar -cvf          ../NB_CLT_7.6.1.2.specific.Linux.SuSE2.6.16.tar    *
rm -v  ./VrtsNB_CLT_7.6.1.2.Linux.tar.gz

mv -v  /tmp/temp/VrtsNB_CLT_7.6.1.2.Solaris.Solaris10.tar.gz         ./VrtsNB_CLT_7.6.1.2.Solaris.tar.gz
tar -cvf          ../NB_CLT_7.6.1.2.specific.Solaris.Solaris10.tar   *
rm -v  ./VrtsNB_CLT_7.6.1.2.Solaris.tar.gz

mv -v  /tmp/temp/VrtsNB_CLT_7.6.1.2.Solaris.Solaris_x86_10_64.tar.gz        ./VrtsNB_CLT_7.6.1.2.Solaris.tar.gz
tar -cvf          ../NB_CLT_7.6.1.2.specific.Solaris.Solaris_x86_10_64.tar  *
rm -v  ./VrtsNB_CLT_7.6.1.2.Solaris.tar.gz

#...cleanup:
cd /tmp
rm -rvf /tmp/nbu/
rm -rvf /tmp/temp/

#...save the newly made specific client patch kits to the repostory...
#...N.B. you may need to re-establish a connection from your Mac to your CIFS share or NFS export, i.e. the repository:
ls -lash  '/Volumes/'
ls -lash  '/Volumes/NetBackup/'
ls -lash  '/Volumes/NetBackup/NetBackup v7.6/'
ls -lash  '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1.2 - Patch/'
mkdir     '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1.2 - Patch/specific/'
ls -lash  '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1.2 - Patch/specific/'

cp -v  NB_CLT_7.6.1.2.specific.*.tar  '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1.2 - Patch/specific/'

ls -lash                              '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1.2 - Patch/specific/'

#...tidy-up:
rm -v  /tmp/NB_CLT_7.6.1.2.specific.*.tar

[end]

 

View solution in original post

4 REPLIES 4

Marianne
Level 6
Partner    VIP    Accredited Certified

I don't believe that it is possible.

Similar query over here:

What about an ISO for 7.6 client install on RedHat 64bit 

Either extract the software on one machine from where you can NFS share the installation software or use push-install method from a Unix/Linux master or media server.

RiaanBadenhorst
Level 6
Partner    VIP    Accredited Certified

Hi

 

I assume you've downloaded NetBackup_7.6.1_CLIENTS2.tar.gz

cp NetBackup_7.6.1_CLIENTS2.tar.gz /tmp

cd /tmp

tar zxvf NetBackup_7.6.1_CLIENTS2.tar.gz

rm -rf NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/Linux/IBMzSeriesSuSE2.6.16/
rm -rf NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/Linux/SuSE2.6.16/
rm -rf NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/Linux/IBMzSeriesRedHat2.6.18/
rm -rf NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/Linux/Debian2.6.18/

cd NetBackup_7.6.1_CLIENTS2

./install

 

sdo
Moderator
Moderator
Partner    VIP    Certified

The trouble with copying the CLIENTS2 file (at 1.6GB) is that we need 3.2 GB of disk to have a copy locally, and to unpack it - before the CLIENTS2 file can be deleted.

When I strip down the client kits to RHEL only I end up with a 464 MB kit:

464,205,312 NetBackup_7.6.1_CLIENTS2.specific.Linux.RedHat2.6.18.tar

.

See this link for a description of the 'base' and 'patch' NetBackup Client kits:

What about an ISO for 7.6 client install on RedHat 64bit - Comment:6 hours 32 min ago : Link

.

Here's a procedure to strip down v7.6.1 base kits, and v7.6.1.2 patch kits.

Do NOT think of using this procedure to strip down v7.5, v7.6.0.x, v7.7 kits - because each NetBackup major version has a certain number of version to version minor differences, and unless you are quite comfortable with the folder structures and file names then you can get in to a proper mess if you attempt to use these v7.6.1.x procedures on any other version.

Enjoy:

Example - How to Make Smaller NetBackup v7.6.1 Client BASE Kits on a Mac OSX in a Terminal Session
==================================================================================================

# This process makes smaller NetBackup Client "BASE" kits for Unix and Linux...

#...this process assumes that a structured folder tree of NetBackup kits already exists on another server...
#...which has already been mounted (on Mac OSX) via NFS Client or CIFS/SMB client, at the Mac OSX file system...
#...name/point of:   /Volumes/NetBackup/

#...first, check that tar is at least version 1.16
#...see tech note:  http://www.symantec.com/docs/TECH154080
tar --version
#...WARNING: if your tar version is not high enough (on any OS) then do NOT continue with this process !!!

#...check that we have at least 10 GB of disk space free:
df -h /tmp

#...make sure this folder does not already exist, because we'll be working with a folder of this name, and ultimately deleting it:
ls -lash /tmp/nbu/

#...if it already exists, then think carefully before deleting it - ask yourself... why does it already exist ?
rm -rvf  /tmp/nbu

#...copy main Client kit from the respository to /tmp on our local machine:
cd /tmp
cp -v '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1 - Binaries/NetBackup_7.6.1_CLIENTS1.tar.gz'  ./
cp -v '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1 - Binaries/NetBackup_7.6.1_CLIENTS2.tar.gz'  ./
ls -lash

#...test the kit:
tar -tvf NetBackup_7.6.1_CLIENTS1.tar.gz
tar -tvf NetBackup_7.6.1_CLIENTS2.tar.gz

#...check the sym-links and check that linked files only refer to files within the same family set:
tar -tvf NetBackup_7.6.1_CLIENTS1.tar.gz | grep "\->" | grep -v "install_client"
tar -tvf NetBackup_7.6.1_CLIENTS2.tar.gz | grep "\->" | grep -v "install_client"
#...N.B. if any files sym-link to files outside of their own family group then abandon this procedure and do NOT continue...
#...and maybe think about updating this procedure to cope with the situation...
#...i.e. if any of the sym-link pointers point to three levels or more upwards, then do not continue.

#...now extract each large kit, and delete each large kit:
tar -xvf NetBackup_7.6.1_CLIENTS1.tar.gz
rm -v    NetBackup_7.6.1_CLIENTS1.tar.gz

tar -xvf NetBackup_7.6.1_CLIENTS2.tar.gz
rm -v    NetBackup_7.6.1_CLIENTS2.tar.gz

#...there is no longer any need to drop most of the documentation set...
#...as the v7.6.1 base kit no longer includes the entire documentation set...

#...now we will temporarily store the folders of the client family kits elsewhere...
#...we will do this several times, before we get to the Linux and Solaris kits:
ls -lash  NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/
ls -lash  NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/

mkdir /tmp/nbu/

mv -v     NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/*  /tmp/nbu/
mv -v     NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/*  /tmp/nbu/

ls -lash  NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/
ls -lash  NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/

#...and now bring each family folder back and make new O/S family specific kits...

#...make base client kit for:  HP-UX-IA64
mv -v /tmp/nbu/HP-UX-IA64/  NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/
tar -h -cvf  NetBackup_7.6.1_CLIENTS1.specific.HP-UX-IA64.tar  NetBackup_7.6.1_CLIENTS1/
rm -rvf      NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/HP-UX-IA64/

#...make base client kits for:  INTEL
mv -v /tmp/nbu/INTEL/  NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/
tar -h -cvf  NetBackup_7.6.1_CLIENTS1.specific.INTEL.tar  NetBackup_7.6.1_CLIENTS1/
rm -rvf      NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/INTEL/

#...make base client kits for:  MACINTOSH
mv -v /tmp/nbu/MACINTOSH/  NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/
tar -h -cvf  NetBackup_7.6.1_CLIENTS1.specific.MACINTOSH.tar  NetBackup_7.6.1_CLIENTS1/
rm -rvf      NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/MACINTOSH/

#...make base client kits for:  RS6000
mv -v /tmp/nbu/RS6000/  NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/
tar -h -cvf  NetBackup_7.6.1_CLIENTS1.specific.RS6000.tar  NetBackup_7.6.1_CLIENTS1/
rm -rvf      NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/RS6000/

#...now for the Linux kits, we're going to make specific platform kits...
#...but making sure that we use the "-h" option of tar to dereference sym-links...
#...i.e. to directly include linked files, and not the links themselves...

#...the Solaris family kit actually contains kits for two variants:
#    Solaris10
#    Solaris_x86_10_64

#...and the Linux family kit actually contains kits for seven variants:
#    Debian2.6.18
#    IBMpSeriesRedHat2.6.16
#    IBMpSeriesSuSE2.6.16
#    IBMzSeriesRedHat2.6.18
#    IBMzSeriesSuSE2.6.16
#    RedHat2.6.18
#    SuSE2.6.16

#...each of which we are going to re-package into smaller kits...

#...so, first move back the family folders:
#...list the folders, these should be empty, if they are not empty then something above has gone wrong:
ls -lash                 NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/
ls -lash                 NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/

mv -v /tmp/nbu/Solaris/  NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/
mv -v /tmp/nbu/Linux/    NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/

#...the folders should now contain the two families of Solaris and Linux:
ls -lash                 NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/
ls -lash                 NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/

#...remove the now empty temporary holding area...
#...if this folder delete fails, then something has gone wrong with the steps above:
rmdir  /tmp/nbu/

#...N.B. these next two lines are each a single line - so watch out for line/word wrap:

tar -h -cvf NetBackup_7.6.1_CLIENTS1.specific.Solaris.Solaris10.tar  NetBackup_7.6.1_CLIENTS1/Doc/  NetBackup_7.6.1_CLIENTS1/LICENSE  NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/Solaris/Solaris10/ NetBackup_7.6.1_CLIENTS1/NBClients/catalog/  NetBackup_7.6.1_CLIENTS1/VSM_README  NetBackup_7.6.1_CLIENTS1/install

tar -h -cvf NetBackup_7.6.1_CLIENTS1.specific.Solaris_x86_10_64.tar  NetBackup_7.6.1_CLIENTS1/Doc/  NetBackup_7.6.1_CLIENTS1/LICENSE  NetBackup_7.6.1_CLIENTS1/NBClients/anb/Clients/usr/openv/netbackup/client/Solaris/Solaris_x86_10_64/ NetBackup_7.6.1_CLIENTS1/NBClients/catalog/  NetBackup_7.6.1_CLIENTS1/VSM_README  NetBackup_7.6.1_CLIENTS1/install

#...N.B. these next four lines are each a single line - so watch out for line/word wrap:

tar -h -cvf NetBackup_7.6.1_CLIENTS2.specific.Linux.Debian2.6.18.tar  NetBackup_7.6.1_CLIENTS2/Doc/  NetBackup_7.6.1_CLIENTS2/LICENSE  NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/Linux/Debian2.6.18/ NetBackup_7.6.1_CLIENTS2/NBClients/catalog/  NetBackup_7.6.1_CLIENTS2/VSM_README  NetBackup_7.6.1_CLIENTS2/install

tar -h -cvf NetBackup_7.6.1_CLIENTS2.specific.Linux.IBM.tar  NetBackup_7.6.1_CLIENTS2/Doc/  NetBackup_7.6.1_CLIENTS2/LICENSE  NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/Linux/IBM*/ NetBackup_7.6.1_CLIENTS2/NBClients/catalog/  NetBackup_7.6.1_CLIENTS2/VSM_README  NetBackup_7.6.1_CLIENTS2/install

tar -h -cvf NetBackup_7.6.1_CLIENTS2.specific.Linux.RedHat2.6.18.tar  NetBackup_7.6.1_CLIENTS2/Doc/  NetBackup_7.6.1_CLIENTS2/LICENSE  NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/Linux/RedHat2.6.18/ NetBackup_7.6.1_CLIENTS2/NBClients/catalog/  NetBackup_7.6.1_CLIENTS2/VSM_README  NetBackup_7.6.1_CLIENTS2/install

tar -h -cvf NetBackup_7.6.1_CLIENTS2.specific.Linux.SuSE2.6.16.tar  NetBackup_7.6.1_CLIENTS2/Doc/  NetBackup_7.6.1_CLIENTS2/LICENSE  NetBackup_7.6.1_CLIENTS2/NBClients/anb/Clients/usr/openv/netbackup/client/Linux/SuSE2.6.16/ NetBackup_7.6.1_CLIENTS2/NBClients/catalog/  NetBackup_7.6.1_CLIENTS2/VSM_README  NetBackup_7.6.1_CLIENTS2/install

#...remove the expanded base client kit areas that we have been working with:
rm -rvf /tmp/NetBackup_7.6.1_CLIENTS1/
rm -rvf /tmp/NetBackup_7.6.1_CLIENTS2/

#...list the specific kits:
ls -lash NetBackup_7.6.1_CLIENTS*.specific.*

#...copy the new specific kits to repository...
#...N.B. you may need to re-establish a connection from your workstation to your CIFS share or NFS export, i.e. the NetBackup software kits repository:
ls -lash  '/Volumes/'
ls -lash  '/Volumes/NetBackup/'
ls -lash  '/Volumes/NetBackup/NetBackup v7.6/'
ls -lash  '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1 - Binaries/'
mkdir     '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1 - Binaries/specific/'
ls -lash  '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1 - Binaries/specific/'

cp -v  NetBackup_7.6.1_CLIENTS*.specific.*.tar  '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1 - Binaries/specific/'

ls -lash                                        '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1 - Binaries/specific/'

#...cleanup... now delete the local copy of the kits:
rm -v  /tmp/NetBackup_7.6.1_CLIENTS*.specific.*.tar


Example - How to Make Smaller NetBackup Client v7.6.1.2 PATCH Kits on a Mac OSX in a Terminal Session
=====================================================================================================

# This process makes smaller NetBackup Client "PATCH" kits...

#...first, check that tar is at least version 1.16
#...see tech note:  http://www.symantec.com/docs/TECH154080
tar --version
#...WARNING: if your tar version is not high enough (on any OS) then do NOT continue with this process !!!

#...check that we have at least 10 GB disk space:
df -h /tmp

#...make sure these two folders do not already exist, because we'll be working with folders of these names, and ultimately deleting them:
ls -lash /tmp/nbu/
ls -lash /tmp/temp/

#...if they already exist, then think carefully before deleting them - ask yourself... why do they already exist ?
rm -rvf  /tmp/nbu
rm -rvf  /tmp/temp

#...copy main client patch kit:
cd /tmp
ls -lash
cp -v  '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1.2 - Patch/NB_CLT_7.6.1.2.tar'  ./
ls -lash

#...test the kit:
tar -tvf NB_CLT_7.6.1.2.tar

#...now extract the kit, but in to the "nbu" sub-folder...
#...we have to extract down into our current sub-folder because this tarball does not contain a sub-folder:
mkdir nbu
cd    nbu
pwd
tar -xvf ../NB_CLT_7.6.1.2.tar

#...delete the large kit sitting above us:
rm -v ../NB_CLT_7.6.1.2.tar

#...temporarily store the O/S family kit variants in the folder directly above us:
mv -v  VrtsNB_CLT_7.6.1.2.*.tar.gz  ../

#...now, one at a time, bring down the OS specific tar balls, so that we can make some smaller O/S family specific client kits...
#...we will do this several times, before we get to work on the larger Linux and Solaris kits:

mv -v  ../VrtsNB_CLT_7.6.1.2.HP-UX-IA64.tar.gz  ./
tar -cvf   ../NB_CLT_7.6.1.2.specific.HP-UX-IA64.tar  *
rm -v     VrtsNB_CLT_7.6.1.2.HP-UX-IA64.tar.gz

mv -v  ../VrtsNB_CLT_7.6.1.2.INTEL.tar.gz  ./
tar -cvf   ../NB_CLT_7.6.1.2.specific.INTEL.tar  *
rm -v     VrtsNB_CLT_7.6.1.2.INTEL.tar.gz

mv -v  ../VrtsNB_CLT_7.6.1.2.MACINTOSH.tar.gz  ./
tar -cvf   ../NB_CLT_7.6.1.2.specific.MACINTOSH.tar  *
rm -v     VrtsNB_CLT_7.6.1.2.MACINTOSH.tar.gz

mv -v  ../VrtsNB_CLT_7.6.1.2.RS6000.tar.gz  ./
tar -cvf   ../NB_CLT_7.6.1.2.specific.RS6000.tar  *
rm -v     VrtsNB_CLT_7.6.1.2.RS6000.tar.gz

#...now we will make Linux and Solaris family kits, for specific platforms...
#...the tricky part is that the Linux client patch kits are contained within a large file of 1.8 GB named:
#    VrtsNB_CLT_7.6.1.2.Linux.tar.gz

#...and the Solaris client patch kits are contained within a large file named:
#    VrtsNB_CLT_7.6.1.2.Solaris.tar.gz

#...but we want to create smaller client patch variant kits, yet each kit still needs to contain a file named:
#    VrtsNB_CLT_7.6.1.2.Linux.tar.gz
#...or:    VrtsNB_CLT_7.6.1.2.Solaris.tar.gz

#...and seeing as the original files can contain sym-links, we're going to need to de-reference too...
#...so, we're going to have to extract all the files and re-form each specific kit one at a time...

#...first thing to do is to move the original full Linux and Solaris patch kits somewhere safe for now:
mkdir /tmp/temp/
mv -v ../VrtsNB_CLT_7.6.1.2.Linux.tar.gz    /tmp/temp/
mv -v ../VrtsNB_CLT_7.6.1.2.Solaris.tar.gz  /tmp/temp/

#...make sure kits are valid:
tar -tvf /tmp/temp/VrtsNB_CLT_7.6.1.2.Linux.tar.gz
tar -tvf /tmp/temp/VrtsNB_CLT_7.6.1.2.Solaris.tar.gz

#...now we extract the full trees, of "usr/.." downwards:
cd /tmp/temp/
tar -xvf  VrtsNB_CLT_7.6.1.2.Linux.tar.gz
tar -xvf  VrtsNB_CLT_7.6.1.2.Solaris.tar.gz

#...and now create individually named variants (that will later be renamed back to the original plain _CLT_ name)...
#...note how we de-reference sym-links (using -h) and compress (using -z):
tar -h -z -cvf  VrtsNB_CLT_7.6.1.2.Linux.Debian2.6.18.tar.gz         usr/openv/netbackup/client/Linux/Debian2.6.18/
tar -h -z -cvf  VrtsNB_CLT_7.6.1.2.Linux.IBM.tar.gz                  usr/openv/netbackup/client/Linux/IBM*/
tar -h -z -cvf  VrtsNB_CLT_7.6.1.2.Linux.RedHat2.6.18.tar.gz         usr/openv/netbackup/client/Linux/RedHat2.6.18/
tar -h -z -cvf  VrtsNB_CLT_7.6.1.2.Linux.SuSE2.6.16.tar.gz           usr/openv/netbackup/client/Linux/SuSE2.6.16/
tar -h -z -cvf  VrtsNB_CLT_7.6.1.2.Solaris.Solaris10.tar.gz          usr/openv/netbackup/client/Solaris/Solaris10/
tar -h -z -cvf  VrtsNB_CLT_7.6.1.2.Solaris.Solaris_x86_10_64.tar.gz  usr/openv/netbackup/client/Solaris/Solaris_x86_10_64/

#...now for each variant we're going to rename the variant back to _CLT_ and then create the true variant patch kit...
#...i.e. bring back a variant file, rename it to the original name, and then re-package all as a specific kit:
cd /tmp/nbu

mv -v  /tmp/temp/VrtsNB_CLT_7.6.1.2.Linux.Debian2.6.18.tar.gz        ./VrtsNB_CLT_7.6.1.2.Linux.tar.gz
tar -cvf          ../NB_CLT_7.6.1.2.specific.Linux.Debian2.6.18.tar  *
rm -v  ./VrtsNB_CLT_7.6.1.2.Linux.tar.gz

mv -v  /tmp/temp/VrtsNB_CLT_7.6.1.2.Linux.IBM.tar.gz                 ./VrtsNB_CLT_7.6.1.2.Linux.tar.gz
tar -cvf          ../NB_CLT_7.6.1.2.specific.Linux.IBM.tar           *
rm -v  ./VrtsNB_CLT_7.6.1.2.Linux.tar.gz

mv -v  /tmp/temp/VrtsNB_CLT_7.6.1.2.Linux.RedHat2.6.18.tar.gz        ./VrtsNB_CLT_7.6.1.2.Linux.tar.gz
tar -cvf          ../NB_CLT_7.6.1.2.specific.Linux.RedHat2.6.18.tar  *
rm -v  ./VrtsNB_CLT_7.6.1.2.Linux.tar.gz

mv -v  /tmp/temp/VrtsNB_CLT_7.6.1.2.Linux.SuSE2.6.16.tar.gz          ./VrtsNB_CLT_7.6.1.2.Linux.tar.gz
tar -cvf          ../NB_CLT_7.6.1.2.specific.Linux.SuSE2.6.16.tar    *
rm -v  ./VrtsNB_CLT_7.6.1.2.Linux.tar.gz

mv -v  /tmp/temp/VrtsNB_CLT_7.6.1.2.Solaris.Solaris10.tar.gz         ./VrtsNB_CLT_7.6.1.2.Solaris.tar.gz
tar -cvf          ../NB_CLT_7.6.1.2.specific.Solaris.Solaris10.tar   *
rm -v  ./VrtsNB_CLT_7.6.1.2.Solaris.tar.gz

mv -v  /tmp/temp/VrtsNB_CLT_7.6.1.2.Solaris.Solaris_x86_10_64.tar.gz        ./VrtsNB_CLT_7.6.1.2.Solaris.tar.gz
tar -cvf          ../NB_CLT_7.6.1.2.specific.Solaris.Solaris_x86_10_64.tar  *
rm -v  ./VrtsNB_CLT_7.6.1.2.Solaris.tar.gz

#...cleanup:
cd /tmp
rm -rvf /tmp/nbu/
rm -rvf /tmp/temp/

#...save the newly made specific client patch kits to the repostory...
#...N.B. you may need to re-establish a connection from your Mac to your CIFS share or NFS export, i.e. the repository:
ls -lash  '/Volumes/'
ls -lash  '/Volumes/NetBackup/'
ls -lash  '/Volumes/NetBackup/NetBackup v7.6/'
ls -lash  '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1.2 - Patch/'
mkdir     '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1.2 - Patch/specific/'
ls -lash  '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1.2 - Patch/specific/'

cp -v  NB_CLT_7.6.1.2.specific.*.tar  '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1.2 - Patch/specific/'

ls -lash                              '/Volumes/NetBackup/NetBackup v7.6/NetBackup v7.6.1.2 - Patch/specific/'

#...tidy-up:
rm -v  /tmp/NB_CLT_7.6.1.2.specific.*.tar

[end]

 

RiaanBadenhorst
Level 6
Partner    VIP    Accredited Certified

Yes of course SDO. I was just showing him its possible :)