- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: The /var filesystem is full
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
Discussions
Discussions
Forums
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
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
тАО07-21-2004 03:06 AM
тАО07-21-2004 03:06 AM
THANKS
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2004 03:11 AM
тАО07-21-2004 03:11 AM
SolutionPete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2004 03:12 AM
тАО07-21-2004 03:12 AM
Re: The /var filesystem is full
Check the size of the following files:
/var/adm/btmp
/var/adm/sulog
/var/adm/wtmp
/var/adm/cron/log
/var/adm/lp/log
/var/adm/syslog/mail.log
/var/adm/syslog/syslog.log
DO NOT delete any of these files: null them thus:
> /var/adm/syslog/syslog.log
but make sure you check the syslog first to make sure there's nothing you need to know about.
If you really are squeezed for space, you could set up a separate filesystem hanging of /var in its own logical volume: e.g. /var/adm/crash (which it's always a good idea to have in its own lvol anyway).
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2004 03:13 AM
тАО07-21-2004 03:13 AM
Re: The /var filesystem is full
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2004 03:13 AM
тАО07-21-2004 03:13 AM
Re: The /var filesystem is full
In your case, start by looking at who is using the space.
cd /var
du -sk *|sort -nr
The files that are not required can be deleted. In case you have to extend it, then reboot the system, interrupt the boot process, interact with ISL and boot into single user mode.
Once on single user mode,
lvextend -L "new_size_in_MB" /dev/vg00/lvolxx
extendfs /dev/vg00/lvolx
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2004 03:13 AM
тАО07-21-2004 03:13 AM
Re: The /var filesystem is full
I'm doubting you have this, so here is a procedure, though its an 11.x procedure, it will probably work.
AT console
Boot box
Interupt at the 10 second prompt
hpux -is
N Do not Interact with the ISL/IPL
You are now in single use mode as root.
You now need to run the following commands:
lvextend -L
extendfs character device name for the logical volume
Then
shutdown -ry now
Then you are done.
There is no sam in single user mode, but before you start you should do the following:
Figure out the name of the block and character devices for the logical volume you wish to extend(sam or lvdisplay)
Find the same information for the disk you will be using new space on(pvdisplay or sam)
Find out the full path of the commands you want to use, because you won't have a PATH or environment in single user mode.
whence command
whence extendfs
whence lvextend
Do your homework prior to booting to single user mode and assuming you have disk space you can do the whole thing in under a half an hour.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2004 03:14 AM
тАО07-21-2004 03:14 AM
Re: The /var filesystem is full
cd /var
du -sk * |sort -n
That will help you determine whre it is full...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2004 03:15 AM
тАО07-21-2004 03:15 AM
Re: The /var filesystem is full
Do a vgdisplay -v /dev/vg00 and note the PE Size and and "Free PE" values listed. The sum of the product of PE_SIZE and Free PE's will give you the amount of free space.
Your first task should probably be to find any files that you might be able to safely remove. Look in /var/tmp and /var/mail.
You should also do a swlist | grep -i "JFS"
If you hace OnlineJFS then you should be able to expand the filesyste in place otherwise you are going to have to knock down to single user and extend the LVOL and filesystem using commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2004 03:23 AM
тАО07-21-2004 03:23 AM
Re: The /var filesystem is full
you should accomplish it in single user mode and other guys already said enough about steps.
The only one thing that I would suggest you to check if under /var/adm/crash there are old crash files. If they are old then you can remove it and I think it would free a lot of space.
Just a thought....
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2004 05:27 AM
тАО07-21-2004 05:27 AM