1834568 Members
3342 Online
110069 Solutions
New Discussion

/var is full

 
Cheung_2
Frequent Advisor

Re: /var is full

I found my lsof on my system , but can't run

#ll /opt/lsof/bin/lsof
lsof: FATAL: lsof was built for a 32 bit kernel, but this
is a 64 bit kernel.

I have tried to run swinstall the new lsof to my system , but it pop up the error
-------------------------
No filesets in the product "lsof,r=4.64" will be configured as ^ |
|| part of the install, because there is another version with a |
|| same fileset already configured. If you want multiple |
|| configured versions you must run "swconfig" with the |
|| "allow_multiple_versions" option set to "true". |
|| * Reading source for file information. |
|| * Executing preDSA command. |
|| * Summary of Analysis Phase: |
|| | ERROR: Exclude lsof.lsof-RUN,r=4.64 |
|| | ERROR: 1 of 1 filesets had Errors. |
|| | ERROR: The Analysis Phase had errors and warnings. See the above |
|| | output for details.
__________________________

should I remove the old one first? thx.
Andy
Jochen Heuer
Respected Contributor

Re: /var is full

Then use the one for 64bit (see posting of Michael Tully). There you find just a gzipped binary. So no swinstall is required. Just gunzip and maybe chmod ...
Well, yeah ... I suppose there's no point in getting greedy, is there?
Carlos Fernandez Riera
Honored Contributor

Re: /var is full

As the larger directory is /var/adm, and it contains the sw/save dir. a workaround is to move that dir to a new filesystem.


1- lvcreate -L xxxx /dev/vgxx
2- newfs /dev/vgxx/rlvolxxxx
3- mount it in /tmp_mnt
4- cd /var/adm/sw/save
5- find . | cpio -pdum /tmp_mnt
6- umount /tmp_mnt
7- cd /var/adm/sw
8- mv save save_old
9- mkdir save
10- mount /dev/vgxx/lvxxxx /tmp/save ( include it in /etc/fstab too).

11- and only if all seems to be OK , rm -r /var/adm/sw/save_old.


____



But it is a workaround, also a configuration practice, and not an analysis of the cause. I think that you have lost some symbolic link to other filsystem. Check the man tlinstall, tllist to recover thist type of system transition links.





unsupported
Pete Randall
Outstanding Contributor

Re: /var is full

Check to see if the frecover was really terminated using ps -ef. If it's still trying to write but hasn't closed the file, /var could be full and bdf wouldn't see it.

Pete

Pete