not enough space /var and swap


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers not enough space /var and swap
# 1  
Old 11-03-2010
not enough space /var and swap

current partition below

/dev/md/dsk/d3 15G 14G 392M 98% /var
swap 5.7M 40K 5.6M 1% /var/run
swap 1.9G 1.9G 5.6M 100% /tmp
/dev/md/dsk/d5 6.7G 6.3G 349M 95% /export

im running this command
root@hostname # du -akd /var | sort -nr | more
sort: can't mmap anonymous memory: Resource temporarily unavailable

I wanted to know the files that is contributing why my var file is increasing to 98% today? thanks
# 2  
Old 11-03-2010
This looks like Solaris. If tmpfs gets completely full, the system will fall over.

Start deleting files.

fuser allows you to see what process has a file open.
# 3  
Old 11-03-2010
yes it is solaris...tried fuser but it returns to nothing

root@hostname # fuser -u /var
/var:

I wanted actually to check the file which causing my filesystem to be full..this is the current utilization now Smilie

/dev/md/dsk/d3 15G 15G 0K 100% /var
swap 4.5M 40K 4.5M 1% /var/run
swap 1.9G 1.9G 4.5M 100% /tmp

I find it hard to check the /var directory and locate the files that's causing it to be full.. pls advise

---------- Post updated at 11:09 PM ---------- Previous update was at 10:32 PM ----------

i cannot even do prstat

prstat: realloc() failed, attempt 1: Resource temporarily unavailable
prstat: realloc() failed, attempt 2: Resource temporarily unavailable
prstat: realloc() failed, attempt 3: Resource temporarily unavailable
prstat: not enough memory: Resource temporarily unavailable

I need to know the process that's taking up too much resources on my machin based on above partition
# 4  
Old 11-03-2010
Bug

Try this

To find files with size in MB
HTML Code:
du -h | nawk '$1 ~ /M$/' 
To find files with size in GB
HTML Code:
du -h | nawk '$1 ~ /G$/'

Last edited by mtomar; 11-21-2010 at 12:55 PM.. Reason: tags
# 5  
Old 11-03-2010
Code:
find /var -size +20000 -ls

where 20000 is blocks so you are looking for files bigger than 512 * 20000 bytes
Change it as needed.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Swap space not getting used

CENT OS 5.8 server running with a huge java application which uses up all my ram (4GB) and requires excess of atleast 2GB.But the swap is not getting used up((8GB) of swap space left unused) leading a wierd error and stopping application to stop working. Any one here dealt with the same kind of... (2 Replies)
Discussion started by: shiek.kaleem
2 Replies

2. Solaris

Swap space

Dear All, I have a swap space of 16G available in Sol 10. I have allocated it as a seperate file system. But when the RAM Is full used , the system gets rebooted and the swap is not being used,. Any reasons for this. Rgds Rj (5 Replies)
Discussion started by: jegaraman
5 Replies

3. Linux

How to reclaim the space which i used to increse the swap space on Xen,

Hi, i have done a blunder here, i increased the swap space on Xen5.6 server machine using below steps :- 1056 dd if=/dev/zero of=/root/myswapfile bs=1M count=1024 1057 ls -l /root/myswapfile 1058 chmod 600 /root/myswapfile 1059 mkswap /root/myswapfile 1060 swapon /root/myswapfile ... (1 Reply)
Discussion started by: apm
1 Replies

4. Solaris

Swap Space

Could someone please explain how you know how much swap space you have on your system. See below: # swap -s total: 8225048k bytes allocated + 4863488k reserved = 13088536k used, 4008032k available # swap -l swapfile dev swaplo blocks free /dev/dsk/c3t0d0s1 32,25 16... (2 Replies)
Discussion started by: jamba1
2 Replies

5. Linux

swap space

Hi, I want to know how can i free the swap space if it is completely full, 0 mb remaining, (1 Reply)
Discussion started by: manoj.solaris
1 Replies

6. UNIX for Dummies Questions & Answers

Swap space used???

Plz I need to know how much swap mem free and used i have. I'm using Compaq Tru64 UNIX V5.1A (rev 1885) Thanx (1 Reply)
Discussion started by: Lestat
1 Replies

7. AIX

swap space / paging space

how do you get the paging space reduced without rebooting the machine ? the os is aix (2 Replies)
Discussion started by: aaronh
2 Replies

8. UNIX for Dummies Questions & Answers

pageing space vs swap space

Hello, I would like to know if there is any difference between the pageing space and the swap space. Thank you in advance. (1 Reply)
Discussion started by: VeroL
1 Replies

9. UNIX for Dummies Questions & Answers

Unix Swap File in /var directory

Thank you 98_1LE.... Please help required urgently... We are getting error message in SUN... Please give solution ERROR MESSAGE: NOTICE: alloc: /var: file system full Output of command "df -k" in our system is... Filesystem kbytes used avail capacity Mounted on... (1 Reply)
Discussion started by: wipro fluid power
1 Replies

10. UNIX for Dummies Questions & Answers

SWAP SPACE

All, I am using SOLARIS 7. I have formated my hard drive to consist of only 150MB of swap space. This isn't enough considering I am running Oracle. How do I create additional swap space? Please list sources or commands. PS mkswap doesn't work on my machine. ( I have swap and... (5 Replies)
Discussion started by: SmartJuniorUnix
5 Replies
Login or Register to Ask a Question