1748284 Members
3678 Online
108761 Solutions
New Discussion юеВ

Re: /var file system

 
rajesh73
Super Advisor

/var file system

Hi,

 

Please answer below question.

 

1./var file system full 95% , how to delete unwanted files

 

2.why every patch installation /var mount point some save patch file ocupied

 

 

P.S. This thread has been moved from HP-UX > General  to HP-UX > sysadmin. - Hp Forum Moderator

 

 

 

 

 

 

 

7 REPLIES 7
rajesh73
Super Advisor

Re: /var file system

what is cleanup command

Dennis Handly
Acclaimed Contributor

Re: /var file system

>1. /var file system full 95%, how to delete unwanted files

 

You first have to find them.  /var/tmp/ is fair game to just remove old files.

Use cleanup(1m) for /var/adm/sw/.

 

There are many topics on how to find directories with large number of files.

Search for: file system full

 

>2. why every patch installation /var mount point some save patch file ocupied

 

In case you want to remove patches, swinstall has to save the previous patches so swremove can put back the older patch.

 

>what is cleanup command

 

See cleanup(1m).  You can use this command to remove superseded patches.  You can select preview (-p) and you can also limit the number (-c N) of copies.

Milos_Lucic
Advisor

Re: /var file system

Hi,

first go to var with cd /var then

Use command du -x | sort -rn | head -30 to see what file occupies disk the most  

Milos_Lucic
Advisor

Re: /var file system

After that remove files also use manual pages for cleanup -i command to remove unnecessery patch files or else

rajesh73
Super Advisor

Re: /var file system

cleanup -i  command remove any os files, please find teh /var file system usage details.

 

 

7746936 /var
6632544 /var/adm
6093784 /var/adm/sw
5895304 /var/adm/sw/save
735624  /var/opt
456464  /var/adm/syslog
395928  /var/adm/sw/save/PHSS_43032
390344  /var/adm/sw/save/PHSS_43656
362944  /var/opt/ignite
321592  /var/opt/psb
314856  /var/opt/ignite/clients
303736  /var/opt/psb/db/pgsql
303736  /var/opt/psb/db
295360  /var/adm/sw/save/PHSS_43890
293416  /var/adm/sw/save/PHSS_43637
275456  /var/adm/sw/save/PHSS_43314
269792  /var/adm/sw/save/PHSS_43021
268712  /var/adm/sw/save/PHSS_43890/OMNI-CF-P/opt/omni/databases/vendor/omnicf
268712  /var/adm/sw/save/PHSS_43890/OMNI-CF-P/opt/omni/databases/vendor
268712  /var/adm/sw/save/PHSS_43890/OMNI-CF-P/opt/omni/databases
268712  /var/adm/sw/save/PHSS_43890/OMNI-CF-P/opt/omni
268712  /var/adm/sw/save/PHSS_43890/OMNI-CF-P/opt
268712  /var/adm/sw/save/PHSS_43890/OMNI-CF-P
267320  /var/adm/sw/save/PHSS_43637/OMNI-CF-P/opt/omni/databases/vendor/omnicf
267320  /var/adm/sw/save/PHSS_43637/OMNI-CF-P/opt/omni/databases/vendor
267320  /var/adm/sw/save/PHSS_43637/OMNI-CF-P/opt/omni/databases
267320  /var/adm/sw/save/PHSS_43637/OMNI-CF-P/opt/omni
267320  /var/adm/sw/save/PHSS_43637/OMNI-CF-P/opt
267320  /var/adm/sw/save/PHSS_43637/OMNI-CF-P
249480  /var/adm/sw/save/PHSS_43314/OMNI-CF-P/opt/omni/databases/vendor/omnicf
249480  /var/adm/sw/save/PHSS_43314/OMNI-CF-P/opt/omni/databases/vendor
249480  /var/adm/sw/save/PHSS_43314/OMNI-CF-P/opt/omni/databases
249480  /var/adm/sw/save/PHSS_43314/OMNI-CF-P/opt/omni
249480  /var/adm/sw/save/PHSS_43314/OMNI-CF-P/opt
249480  /var/adm/sw/save/PHSS_43314/OMNI-CF-P
243992  /var/adm/sw/save/PHSS_43021/OMNI-CF-P/opt/omni/databases/vendor/omnicf
243992  /var/adm/sw/save/PHSS_43021/OMNI-CF-P/opt/omni/databases/vendor
243992  /var/adm/sw/save/PHSS_43021/OMNI-CF-P/opt/omni/databases
243992  /var/adm/sw/save/PHSS_43021/OMNI-CF-P/opt/omni
243992  /var/adm/sw/save/PHSS_43021/OMNI-CF-P/opt
243992  /var/adm/sw/save/PHSS_43021/OMNI-CF-P
235248  /var/opt/psb/db/pgsql/base
220592  /var/adm/sw/save/PHSS_43889/OMNI-CS
220592  /var/adm/sw/save/PHSS_43889
220584  /var/adm/sw/save/PHSS_43889/OMNI-CS/opt/omni
220584  /var/adm/sw/save/PHSS_43889/OMNI-CS/opt
217480  /var/adm/sw/save/PHSS_43636/OMNI-CS

Patrick Wallek
Honored Contributor

Re: /var file system

Your /var/adm/sw/save directory, which is where patch information is saved, is consuming almost 6 GB.  Using the cleanup command will likely free up some space for you.

 

If you are nervous about using the command and removing the files, then make sure you have a backup of the /var/adm/sw directory before proceeding.

 

>>cleanup -i  command remove any os files,

 

No.  The cleanup command will ONLY remove patches that have been superseded.

 

Try running this command:

 

# cleanup -p -c 2

 

This will show you how much space will be freed by committing patches that have been superseded 2 times.  If you want to see how much space will be saved by committing patches superseded only 1 time, then do:

 

# cleanup -p -c 2

 

If you want to recover the space, then just remove the '-p' (preview) option from the command.

Emil Velez_2
Trusted Contributor

Re: /var file system

why not just extend /var if you have additional space in vg00 ?

 

DOesnt the system have online jfs ?

Emil Velez
Instructor Storage, Servers, HP-UX and Partner Courses
Hewlett Packard Enterprise Education Services
Ask me about training on StoreServ (3PAR) StoreOnce, StoreEasy, StoreAll, StoreVirtual, HP-UX, ServiceGuard and HPE Partner Ready Certification Training

internet: Linkedin: http://www.linkedin.com/in/emilvelez

HPE Master ASE Server Solutions Architect V3
HPE Master ASE Storage Solutions Architect V2
HP UNIX Certified (ASE HPUX 11iv3 Administration V1)
Certified HPE Instructor
HPE Product Certified - OneView [2016]
HP Sales Certified -Servers, Converged Systems and Services [2015]
HPE Product Certified - Converged Solutions [2017]