- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- swinstall analysis
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2004 07:05 PM
08-29-2004 07:05 PM
swinstall analysis
I've downloaded a script (see attachment) from HP which is used to generate depot base on patch files. It call some commands like swcopy, swpackage which will make use of "/tmp".
However, my machine got around 65Mb /tmp disk space only.
Is there any other get-around?
Thank & regards
Daedalus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2004 07:31 PM
08-29-2004 07:31 PM
Re: swinstall analysis
The script does not use /tmp but $PWD = current dir for files, so if you move the tree to an other place you can execute the script there. The depot will be created in $PWD/depot.
HTH,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2004 07:49 PM
08-29-2004 07:49 PM
Re: swinstall analysis
This srcipt creates depot for you in the directory where you are. Now what you do is use "bdf" command to look out for space and Switch yourself to the convenient directory and execute this script.
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2004 10:00 PM
08-30-2004 10:00 PM
Re: swinstall analysis
/*****************************************
vxfs: mesg 001: vx_nospace - /dev/vg00/lvol4 file system full (1 block extent)
No space left on device
ERROR: PHSS_26945.depot checksum is 28264 should be 35428
ERROR: wc results of PHSS_26945.depot are 41341 150578 11305984 should be 144673 595501 60037120
/*****************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2004 10:13 PM
08-30-2004 10:13 PM
Re: swinstall analysis
Once you've done this:
cd /var/adm/sw
then run the script.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2004 10:35 PM
08-30-2004 10:35 PM
Re: swinstall analysis
I noticed that in your script may be is missing the following line:
SD_LIST=
After:
#
# Temporary values
#
PID=$$
#PSF=depot$PID.psf
PSF=depot.psf
## HERE:
SD_LIST=
#
# Upon exit...
#
#trap 'rm -f $PSF; exit' 0 1 2 15
Hope this will help!
Regards,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 03:34 PM
08-31-2004 03:34 PM
Re: swinstall analysis
I found where exactly in the script promp out error message. It is when the script running the PHSS_* files by calling a shell.
(e.g>/bin/sh PHSS_XXXXX)
Which patch files will result on error? It depends on how much /tmp size we got. When there's around 50 MB. Only running PHSS_26945 will result error.
Here's a example when I run the line on the command prompt alone.
when only 50MB in /tmp
/***********************************
root@myhost:>bdf /tmp
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol4 491520 435276 53727 89% /tmp
root@et9:/QATeam2/hp_patch>/bin/sh PHSS_26945
x - PHSS_26945.text
x - PHSS_26945.depot [compressed]
vxfs: mesg 001: vx_nospace - /dev/vg00/lvol4 file system full (1 block extent)
No space left on device
ERROR: PHSS_26945.depot checksum is 14426 should be 35428
ERROR: wc results of PHSS_26945.depot are 140311 566932 57585664 should be 144673 595501 60037120
root@myhost:>
/***********************************
When /tmp got 73MB
/***********************************
root@myhost:>bdf /tmp
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol4 491520 413809 73853 85% /tmp
root@et9:/QATeam2/hp_patch>/bin/sh PHSS_26945
x - PHSS_26945.text
x - PHSS_26945.depot [compressed]
root@myhost:>
/***********************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 03:48 PM
08-31-2004 03:48 PM
Re: swinstall analysis
If you don't specify the -d option with the script, then it will create the depot in the current working directory. So, find out a filesystem where you have enough space (say /apps1 ) and then specify it with the script. For ex.,
./create_depot -d /apps1/depot
It will create the depot at /apps1/depot location. Find it out by issuing the command
'swlist -l depot'.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2004 07:22 PM
08-31-2004 07:22 PM
Re: swinstall analysis
Towards the end of PHSS_26945 file, there are following two lines.
uncompress
mv /tmp/compress$$ PHSS_26945.depot
This temporary file (compress$$) is probably too big for /tmp and therefore you are getting the error.
You can use the following awk script to replace references to /tmp with TMPDIR.
$ cat addTMPDIR.awk
/..@EOF/ {scan_off=1}
/^@EOF/i {scan_off=0}
/unpacker <<.@eof./ {scan_off=1}
{
if(scan_off != 1) {
gsub ("/tmp", "$TMPDIR")
}
print $0
}
$ cp PHSS_26945 PHSS_26945.orig
$ awk -f addTMPDIR.awk PHSS_26945.orig > PHSS_26945
Repeat this procedure for every patch that's causing the problem.
Before you run the script to create the depot again make sure you define TMPDIR to a directory with sufficient free space.
$ export TMPDIR=