Disk space is 100 %


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Disk space is 100 %
# 1  
Old 12-04-2014
Disk space is 100 %

hi ,

there is scenario when the disk space is 100 % and we need to zip files .since zipping will still take some space as it creates a temp file.how will we zip the same
condition : we cannot move or delete file
# 2  
Old 12-04-2014
Create the zip file somewhere else, remove the original, put the zip where it belongs.

Since a zip is a new file anyway, this really isn't that different from what happens ordinarily.
# 3  
Old 12-08-2014
Welcome mayank verma,

I have a few to questions pose in response first:-
  • What have you tried so far?
  • What OS and version are you using?
  • Do you have more than one filesystem on your server? The output of df will tell you.
You cannot compress files to the same filesystem if it's already full, so if you just have one filesystem perhaps you can:-
  1. push some data to another server or removable media, e.g. tape
  2. delete the local copy
  3. compress some of the remaining data
  4. retrieve the sent data
It's not much fun and you have to consider the impact on your applications whilst you do it. An alternate may be to rely on your backups. Just delete something large, perform the housekeeping as you see fit and then recover the removed file from your backups. Again, not pretty but you are not in a good place at the moment.

If you are just a single filesystem server then perhaps have a look in /var for log files. The syslog or rsyslog (you don't tell us your OS version) will write information there and without maintenance that can cause it to fill up. Have a look in /etc/syslog.conf or /etc/rsyslog.conf for clues about these files. They might contain information about what was going wrong on your server to cause it to fill. Do not just delete the log files though. Even if they are huge, they are there for a reason and should be archived/deleted in a managed way.

Usually, a server would have the disk space split up into at least a few filesystems to limit the impact of one section filling up. Often filesystems /, /home, /opt, /tmp, /var & /usr are separated during the Operating System installation. Other software and your data would then have filesystems created for them to use to keep these critical OS filesystems clear. It's difficult, but not impossible to split them up afterwards.

If you could provide us some more detail, we will try to help.


Kind regards,
Robin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Disk Space

I know there are other threads but they have not helped. My server is running low on disk space and I haven't been able to re-allocate. I think my solaris machine is missing tools or the way it was originally setup, may not have the right pathing. $ df -k Filesystem kbytes used... (5 Replies)
Discussion started by: lnxjenn
5 Replies

2. UNIX for Dummies Questions & Answers

How much disk space?

Hi, I have this : uname -a Linux servername 2.6.18-194.11.3.el5PAE #1 SMP Mon Aug 23 15:57:10 EDT 2010 i686 i686 i386 GNU/Linux df -k Sys. de fich. 1K-blocs Occupied Disponible Capacity Monted on /u01/applis 10321208 3190160 6606760 33% /applis Does it mean... (1 Reply)
Discussion started by: big123456
1 Replies

3. Solaris

Disk Space

Hi, I am installing TAM-eb components in solaris V10.o, unfortunately am running out of space. when I -df i come across a lot of directories. i would like to know whether there is any way to free some disk space. (10 Replies)
Discussion started by: ichwaiznicht
10 Replies

4. Shell Programming and Scripting

Disk Space

Hi This is my script for disk space monitoring clear if then echo "You must be root user to execute the script" fi ALERT_LEVEL=10 CONSUMPTION_LEVEL= `df -k | awk {'print $5'} | cut -d '%' -f1 | sed "1 d"` for i in $CONSUMPTION_LEVEL do FILE_SYSTEM=`df -k | awk {'print $1'} |... (3 Replies)
Discussion started by: chrs0302
3 Replies

5. HP-UX

Disk Space

Hi Experts. I had 100% disk full , even though i have removed 2 GB space still dbf command shows 100%. How to rectify that. Appreciate your prompt help. Thanks (1 Reply)
Discussion started by: test10002
1 Replies

6. Filesystems, Disks and Memory

disk space

Hi experts i am new in unix and informix and would like to ask 2 questions 1) my server shows when using df -k fs 1024-block used available /usr 10079072 3668670 6381144 does this mean i have 10GB, and used up 3.7GB and available 6.3GB ??? is... (3 Replies)
Discussion started by: kingsto88
3 Replies

7. UNIX for Dummies Questions & Answers

available disk space on disk device???

Hello, Can someone please tell me which command to use to determine the available disk space on a given disk device? I have to write a shell script that compresses files and stores them in a specific location but I am not sure how "conservative" I should be? Thanks in advance! Al. (4 Replies)
Discussion started by: alan
4 Replies

8. Filesystems, Disks and Memory

Disk Space -

I know I have posted this question before, but I still just don't understand how to determine disk space. This server is an IBM RS6000 running on AIX version 4.2.1. I in essence need to know the following if anyone can assist me. 1) I need to know how many drives are configured in the... (2 Replies)
Discussion started by: Docboyeee
2 Replies

9. Filesystems, Disks and Memory

Disk space

Can someone tell me how to determine how much disk space has been allocated to me and how much of it I am using? Thanks in advance. (1 Reply)
Discussion started by: jxh461
1 Replies

10. UNIX for Dummies Questions & Answers

Out of disk space?

Hi I'm trying to install gcc and the installation program tells me that I'm out of disk space! I have just installed the os (using the default settings for partitions and sizes) and have only installed apache on the machine. Can it really be out of disk space already? How do I check how much... (4 Replies)
Discussion started by: alfabetman
4 Replies
Login or Register to Ask a Question