HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - Linux
 - >
 - watchdog and /tmp partition
 
Operating System - Linux
        1840141
        Members
    
    
        2290
        Online
    
    
        110161
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              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
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            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
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
Topic Options
			
				
					
	
			
		
	- 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
 
12-12-2005 06:05 PM
12-12-2005 06:05 PM
			
				
					
						
							watchdog and /tmp partition
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						hi, 
if /tmp partition is full then watdog updates are not happening and machine is restarting. to avoid this i have to manually cleanup some space in /tmp partition.
now my question is is there any way to observe /tmp partition and restrict users not to fill the partition?
regards
chakri
		
		
	
	
	
if /tmp partition is full then watdog updates are not happening and machine is restarting. to avoid this i have to manually cleanup some space in /tmp partition.
now my question is is there any way to observe /tmp partition and restrict users not to fill the partition?
regards
chakri
		3 REPLIES 3
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
12-12-2005 06:33 PM
12-12-2005 06:33 PM
			
				
					
						
							Re: watchdog and /tmp partition
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Shalom Chakravthi,
The problem is /tmp needs to be permission 777.
Many, many applications and utilities need to write there temporary files. Its probably better to expand the /tmp filesystem than to try and restrict access.
You can run a find and erase old files there with the +mtime or +ctime directive.
I've found /tmp also fills up when I'm not careful with my admin script writing. If there I place a temporary file there, I immediately add the rm -f to the bottom of the script to avoid stuff piling up in there.
SEP 
					
				
			
			
				
		
		
	
	
	
The problem is /tmp needs to be permission 777.
Many, many applications and utilities need to write there temporary files. Its probably better to expand the /tmp filesystem than to try and restrict access.
You can run a find and erase old files there with the +mtime or +ctime directive.
I've found /tmp also fills up when I'm not careful with my admin script writing. If there I place a temporary file there, I immediately add the rm -f
SEP
	Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
			
			
				
			
			
			
			
			
			
		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
 
12-13-2005 09:11 AM
12-13-2005 09:11 AM
			
				
					
						
							Re: watchdog and /tmp partition
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						tmpreaper will cleanup old files in /tmp.
cfengine tidy task can also be used to
cleanup /tmp.
If /tmp is on disk there is usually a buffer
for root only to write to the partition.
However, if it is root that is filling up
the system the limit doesn't help.
Can you move the watchdog file to /var/tmp?
/var is generally less prone to being filled.
If /tmp is in the / partition, then writing
to unmounted files systems can also fill
up the partion. I set the mode on
the mount point to 000, then mount the
partition. This prevents writing to
unmounted partitons.
		
		
	
	
	
cfengine tidy task can also be used to
cleanup /tmp.
If /tmp is on disk there is usually a buffer
for root only to write to the partition.
However, if it is root that is filling up
the system the limit doesn't help.
Can you move the watchdog file to /var/tmp?
/var is generally less prone to being filled.
If /tmp is in the / partition, then writing
to unmounted files systems can also fill
up the partion. I set the mode on
the mount point to 000, then mount the
partition. This prevents writing to
unmounted partitons.
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
12-13-2005 10:34 PM
12-13-2005 10:34 PM
			
				
					
						
							Re: watchdog and /tmp partition
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						You can use tmpwatch to clean the /tmp directory. See man tmpwatch for instructions about how to use it.
You can also write a simple script that gets the %used of the /tmp file system and start the tmpwatch command only if neccesary.
		
		
	
	
	
You can also write a simple script that gets the %used of the /tmp file system and start the tmpwatch command only if neccesary.
	Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
			
			
				
			
			
			
			
			
			
		The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP