• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 655
  • Last Modified:

pkgadd filesystem full

I would like to install perl however everytime I try and add perl via pkgadd I run out of room on my root filesystem.  

Is there a way to install perl on another filesystem or does root have to be used?

I triead pkgtrans and installing from another directory with 50GB,  but I still don't have enough room, because it some how points to the root directory.


ActivePerl
(sparc) 5.8.8.817
Copyright 2000-2006 ActiveState Corp.  All rights reserved.
ActiveState is a division of Sophos Plc.
## Processing package information.
## Processing system information.
## Verifying disk space requirements.
WARNING:
    The / filesystem has 60118 free blocks. The current installation requires 178547 blocks, which includes a required 150 block buffer for open deleted files. 118429 more blocks are needed.




0
2xdafun
Asked:
2xdafun
  • 4
  • 4
1 Solution
 
arthurjbCommented:
Please post the output of ;

df -lk
0
 
2xdafunAuthor Commented:
I think my system runs out of space writing files to the library.

Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c0t0d0s0     192423  143471   29710    83%    /
/dev/dsk/c0t0d0s6    2806718 2171146  579438    79%    /usr
/proc                      0       0       0     0%    /proc
fd                         0       0       0     0%    /dev/fd
swap                 1207512   78544 1128968     7%    /tmp
/dev/dsk/c2t0d0s0    240474466 215291941 22777781    91%    /CRT1
/dev/dsk/c2t0d0s1    240474466 213754836 24314886    90%    /CRT2
/dev/dsk/c2t0d1s0    240474466 214658829 23410893    91%    /CRT3
/dev/dsk/c2t0d1s1    240474466 215485575 22584147    91%    /CRT5
/dev/dsk/c2t0d2s0    240474466 217429306 20640416    92%    /CRT6
/dev/dsk/c2t0d3s1    120688537 107262122 12219530    90%    /CRT9
/dev/dsk/c2t0d4s5    237521579 127508995 107637369    55%    /CRT8
/dev/dsk/c2t0d4s0    59896300 9091357 50205980    16%    /application
/dev/dsk/c2t0d4s1    59896300 10157433 49139904    18%    /index
/dev/dsk/c2t0d4s3    59896300 1466321 57831016     3%    /Entry
/dev/dsk/c2t0d4s4    59896300 12493974 46803363    22%    /backup
/dev/dsk/c2t0d3s3    59888108 38625838 20663389    66%    /Preview
/dev/dsk/c2t0d3s4    59888108 1703514 57585713     3%    /Database
/dev/dsk/c2t0d2s1    240474466 12243538 225826184     6%    /CRT7
/dev/dsk/c2t0d3s0    240474466 160674114 77395608    68%    /CRT13
/dev/dsk/c1t0d4s0    237521579 194800070 40346294    83%    /CRT12
/dev/dsk/c1t0d3s0    118760409       9 117572796     1%    /CRT11
0
 
arthurjbCommented:
Your df -lk output tells me several things,

Your root file system has less than 30megs of space available and the /usr filesystem has about 575 megs available

The package add process use /var/spool and /var/tmp for its operations, which is why it is complaining about not enough space in the / filesystem.

The / file system is way too small for a system setup in this configuration.  Normally when the / is this small, /var is mounted as a seperate filesystem.  You should think about redoing the system when you get a chance.

The output also tells me that the system is not using any type of filesystem management, which is bad for two reasons.  One reason is that a failure of single disk drive will result in a major loss of data, since it is neither mirrored or raided.
But worse, in your case, is that you cannot easily adjust the size of individual partitions to make more space available.

There is an option for you.  the pkgadd command uses the $TMPDIR to determine the location for the temporary file, so you could set up a temporary tmp directore on on of the files systems that has a lot of extra space such as /Enrty or /CRT11

First make sure that there is not already a tmp directory in the destination, if not create one;
mkdir /Entrry/tmp

Use the appropriate command for your shell to set the environment variable;
bash: export $TMPDIR=/Entry/tmp
sh / ksh: $TMPDIR=/Entry/tmp export TMPDIR
csh: setenv $TMPDIR /Entry/tmp

Then run your pkgadd command
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
2xdafunAuthor Commented:
Thanks for the reply, the server in question is a test server which in not in production mode.  I do agree who ever built this server could of reserved more space to the root directory.  Unfortunately I would like to try and install perl with the existing setup, is this possible?    Ironically I’m in the process of upgrading this server to new hardware.  Which is why I need to test the new version of Perl on this test box.

The pkgadd still seems to point to the root directory.
#env
TMPDIR=/store11/tmp


testserver# cd /tmp
testserver# ls
ActivePerl58.pkg  ps_data           psb_back_socket   psb_front_socket
testserver# pkgadd -d ActivePerl58.pkg

The following packages are available:
  1  ASperl     ActivePerl
                (sparc) 5.8.8.817

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: 1

Processing package instance <ASperl> from </tmp/ActivePerl58.pkg>

ActivePerl
(sparc) 5.8.8.817
Copyright 2000-2006 ActiveState Corp.  All rights reserved.
ActiveState is a division of Sophos Plc.
## Processing package information.
## Processing system information.
## Verifying disk space requirements.
WARNING:
    The / filesystem has 58620 free blocks. The current installation requires 17
8547 blocks, which includes a required 150 block buffer for open deleted files.
119927 more blocks are needed.

Do you want to continue with the installation of <ASperl> [y,n,?]
0
 
arthurjbCommented:
I just wanted to double check.  

The environment variable you posted says; TMPDIR=/store11/tmp  there is no /store11 file system shown in the df output that you posted.

If the directory does not exist, pkgadd will default back to the /var/tmp

Please confirm that the directory exists and let me know.  If it does and the command still fails, I have a hack around that should allow you to do the install...
0
 
2xdafunAuthor Commented:
Yes it does exist...I added another mount point.
0
 
arthurjbCommented:
pkgadd doesn't seem to be working as it should, it may be a different version than I am familiar with.

Well here is my hack for getting it done, its not pretty and it should be temporary, and I'll probably get flamed by other experts, but it should get the job done.
add a new mount point that puts your extra space on /var/tmp  
reboot
try your pkgadd again

If it doesn't work this way, then you will need to either move all of /var to a new file system, or move all of / to a larger partition, both of which are ver involved processes...
0
 
2xdafunAuthor Commented:
re-pointing /tmp/Perl5.8 to a bigger volume corrected the problem.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now