- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: VAR partition 100% full, what can I do so make...
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
10-07-2005 05:56 AM
10-07-2005 05:56 AM
VAR partition 100% full, what can I do so make some space?
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 147456 23378 116386 17% /
/dev/vg00/lvol1 83733 31469 43890 42% /stand
/dev/vg00/lvol9 1536000 1536000 0 100% /var
/dev/vg00/lvol8 659456 408248 235527 63% /usr
/dev/vg02/lvol4 8192000 4254045 3692009 54% /u08
/dev/vg02/lvol3 9216000 6425344 2616309 71% /u07
/dev/vg01/lvol4 7168000 4099421 2876799 59% /u06
/dev/vg01/lvol3 2048000 357290 1585045 18% /u05
/dev/vg02/lvol2 2048000 83537 1841689 4% /u04
/dev/vg02/lvol1 2048000 187017 1744677 10% /u03
/dev/vg01/lvol2 3072000 33123 2848952 1% /u02
/dev/vg01/lvol1 3072000 636569 2283270 22% /u01
/dev/vg00/lvol7 65536 1541 60046 3% /tmp
/dev/vg00/lvol6 618496 162932 427129 28% /opt
/dev/vg00/lvol5 24576 1110 22007 5% /home
What can I do to make some room quickly in order to avoid a crash?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 05:58 AM
10-07-2005 05:58 AM
Re: VAR partition 100% full, what can I do so make some space?
During the process the following message appers
+---------------------------------------------------------------------------+ |
|| ^ |
|| |
vxfs: mesg 001: vx_nospace - /dev/vg00/lvol9 file system full (1 block extent) |
vxfs: mesg 001: vx_nospace - /dev/vg00/lvol9 file system full (1 block extent) |
|| |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 06:06 AM
10-07-2005 06:06 AM
Re: VAR partition 100% full, what can I do so make some space?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 06:11 AM
10-07-2005 06:11 AM
Re: VAR partition 100% full, what can I do so make some space?
Ziad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 06:19 AM
10-07-2005 06:19 AM
Re: VAR partition 100% full, what can I do so make some space?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 06:28 AM
10-07-2005 06:28 AM
Re: VAR partition 100% full, what can I do so make some space?
/var is basically used for maintaining various log so trimming of log files can also releive from this congestion.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 06:36 AM
10-07-2005 06:36 AM
Re: VAR partition 100% full, what can I do so make some space?
also make sure there is not process running and holding inodes on /var/tmp.
run the following
fuser /var/*/*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 06:41 AM
10-07-2005 06:41 AM
Re: VAR partition 100% full, what can I do so make some space?
(2) Check how much space is used by /var/tmp:
du -skx /var/tmp
(3) Check how much space is used by other directories below /var:
cd /var
du -skx * # this command may last long.
P.D: Anyway, I think that 1.5 GB size for /var is not enough.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 07:28 AM
10-07-2005 07:28 AM
Re: VAR partition 100% full, what can I do so make some space?
If you have space on your root drive. I would clear up some logs, and extend the /var filesystem, of course to do that requires you to be using vxfs filesystems and have OnlineJFS.
baring that.
figure out where the largest files are and deal with them.
du -sk /var/* | sort -n
Most common files. /var/adm/wtmp might be quite large.
/var/adm/sa directory if you are running sar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 07:32 AM
10-07-2005 07:32 AM
Re: VAR partition 100% full, what can I do so make some space?
# du -kx /var | sort -nr | more
Also make sure that there is no discrepancy between bdf and du on the amount of space used in /var. If there is then check for deleted files that might be held open by running processes with lsof:
# lsof +aL1 /var
If the above command produces output then recycle the apps/procs that are using /var.
lsof is available here:
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.76/
With OnlineJFS you can try extending /var without unmounting it if storage is available.
cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 04:42 PM
10-07-2005 04:42 PM
Re: VAR partition 100% full, what can I do so make some space?
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 06:30 PM
10-07-2005 06:30 PM
Re: VAR partition 100% full, what can I do so make some space?
Run du -ks /var/* | sort -nr and
bdf /var
If you see a big difference between total disp space, you have a deleted opened file[s] in the file system. In this case you may use lsof in order to find the process, which locks the space.
If the difference is small, look at the directories in the top of
du -ks /var/* | sort -nr
output. One of the possible candidates is /var/adm/wtmp or /var/adm/crash. Also running of cleanup is an excellent idea.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 07:09 PM
10-07-2005 07:09 PM
Re: VAR partition 100% full, what can I do so make some space?
Var dirctory is used mostly for log files only. u can trim the following files ,
# use it like this
# > /var/adm/utmp
# > /var/adm/wtmp
/var/adm/utmp , wtmp . do not remove any files apart from crash dumps , crash can be found at /var/adm/crash.
U can trim the mails also. Goto /var/mail there u will find lot of files wtih user names just trim them also .
then check preserve & spool directory & trim the log files . this will atleast some space to breath
dont forgot to assigne points
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 07:23 PM
10-07-2005 07:23 PM
Re: VAR partition 100% full, what can I do so make some space?
try the following script for finding the large files and you can delete them if not required.
#Syam
#TCSL
#26/01/2005
#
#
rm -f find.out
echo
echo "Enter directory to search"
read DIRNAME
if [ ! -d $DIRNAME ]
then
echo "Error: directory $DIRNAME does not exist"
exit 1
fi
echo
echo "How large a file do you want to look for ? (in Kbytes)"
read SIZE
echo
echo "How many days since the file was created ?"
read DAYS
echo
echo "Searching..."
find $DIRNAME -type f -size +$SIZE -mtime -$DAYS -exec ls -ls {} \; | sort -n -r | tee find.out
echo
echo "Done"
echo
echo "Note: output in find.out"
echo
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2005 11:02 PM
10-08-2005 11:02 PM
Re: VAR partition 100% full, what can I do so make some space?
du -sk * | sort -n
go through this list and work out what is necessary. Unfortunately this is a common problem and is very much dependant upon how well you know how the useres use the system.... typical areas to look in are
/var/tmp/ ... this should be full of tempory rubbish!
/var/adm/syslogs/ ... should be the last place to purge info from, but very often is the first and easiest... syslog.log, OLDsyslog.log mail.log
Regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2005 02:54 AM
10-09-2005 02:54 AM
Re: VAR partition 100% full, what can I do so make some space?
As noted, running:
# du -xk /var | sort -rn
...will return the largest directories and files within /var sorted in descending size order.
Whatever you do, do _NOT_ remove files in the '/var/adm/sw' directories. These are your database of Installed Products (IPD) used by the SD (Software Distributer) tools -- 'swinstall', 'swlist', etc.
Instead, to reclaim space in this directory, use the 'cleanup' command:
# cleanup
Since you indicated that you are running 10.20, there are are very limited options that you can supply to the command. Running it without any will prompt you to trim log files (yes, do that), and will preserve enought patch information to be able to back out any current patch one level.
Other directories that may contain large or numerous candidates for removal or trimming are: 'var/tmp', 'var/mail', '/var/adm/crash',and '/var/adm/lp'. They are good places to look for thing to remove.
As noted, certainly look at the size of '/var/adm/wtmp' and /var/adm/btmp' if present. You can trim these to zero by redirecting '/dev/null' to them.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2005 04:19 AM
10-10-2005 04:19 AM
Re: VAR partition 100% full, what can I do so make some space?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2005 05:07 AM
10-20-2005 05:07 AM
Re: VAR partition 100% full, what can I do so make some space?
Was able to solve the issue for the time being.
Victor