- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Filesystem 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-16-2009 08:36 PM
тАО07-16-2009 08:36 PM
Filesystem full
I would like to check when a filesystem is 100% full, whether the batch jobs that are supposed to write to that filesystem will fail automatically on a HP-UX server.
Or, there is still some buffer? If yes, how much is that buffer?
Regards
Feng Lin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-16-2009 08:42 PM
тАО07-16-2009 08:42 PM
Re: Filesystem full
The batch job will fail if the file system is 100% full. There is no buffer to hold the data.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2009 05:44 AM
тАО07-20-2009 05:44 AM
Re: Filesystem full
SIZE=`ls -la /spi/spifps/log/bjournal.log |awk '{print $5}'`
FILE=/spi/spifps/log/bjournal.log
FILE1=/spi/spifps/log/bjourna1.log
if [ $SIZE -gt 100000 ]
then
tail -100 $FILE > /tmp/bjournal.tmp
ls -la $FILE >>/tmp/bjournal.tmp
mailx -s "Bjournal Capture" email@domain.tld, < /tmp/bjournal.
tmp
else
exit
fi
if [ $SIZE -gt 100000 ]
then
tail -100 $FILE1 > /tmp/bjournal.tmp
ls -la $FILE1 >>/tmp/bjournal.tmp
mailx -s "Bjournal Capture" email@domain.tld, email2@domain.tld< /tmp/bjournal.
tmp
else
exit
fi
ANother is a "File System"
I have a file system check that will email if the size of the file system grows about a defined percentage..
# more exportspace
#!/bin/sh
for dspace in `df -k /exportfs |tail -1 |awk '{print $1}'`
do
# COMMENT - IF disk space used percentage is less then 80% then do nothing, if diskspace use exceed 80% perform else statement
#
#
if [ $dspace -le "80" ]
then
# if dspace value less then 80 then do nothing
# logs percent in root email
echo $dspace % available
else
#if dspace value exceed 80 perform operation of notification for /exportfs
df -k /exportfs > /tmp/espace
cat /usr/local/bin/expwarn.txt /tmp/espace > /usr/local/bin/exportwarning.txt
#
# email diskspace allocation to recipients in "mailx commandline"
/usr/bin/mailx -s "Export FS exceeded 80% and is at $dspace % FULL needs attention" email@domain.tld < /usr/loca
l/bin/exportwarning.txt
fi
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2009 05:49 AM
тАО07-20-2009 05:49 AM
Re: Filesystem full
in my file system "exportfs" I maintain it normal around 50-60%, if it grows past 80% I get notifications off the system, as there are dozens of processes writing to this file system regularly, If it fills up, backups failure.. If the root file system fills up, people can't log in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2009 05:51 AM
тАО07-20-2009 05:51 AM
Re: Filesystem full
There are several good scripts meeting this specification:
http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=178514
That is a gold mine of systems administration scripts.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com