Clearning space - File compression issue


 
Thread Tools Search this Thread
Operating Systems Linux Clearning space - File compression issue
# 1  
Old 12-23-2009
Clearning space - File compression issue

Hi,

We have access to 2 filesystems:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/system-oraoid 30G 30G 119M 100% /app
/dev/mapper/system-tmp 2.0G 442M 1.6G 22% /tmp

As you can observe the file system on /app is full. In order to recover the space, I need to compress the logs on /app. I have a log file of 3.9 Gb in /app which needs to be compressed. How can I do that?

Options attempted:
1. gzip - It will create file over the same place. However there is no space available in /app
2. zip - this doesn't support file of size greater than 2 Gb. Since zip can redirect the compressed file to /tmp directory, it would have been better choice had it supported bigger log files.
3. Copy the log to /tmp and then gzip - no possible since the /tmp size in just 2 Gb

Unfortunately, I don't have admin access to install any 3rd party utility. Please help.
# 2  
Old 12-23-2009
Try if this works

gzip -c filename > /tmp/filename.gz
# 3  
Old 12-23-2009
MySQL

Quote:
Originally Posted by daptal
Try if this works

gzip -c filename > /tmp/filename.gz
This works. Thanks a lot dude. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Oracle Db Dump compression issue

Dear All, I am trying to backup Databases in my company which installed on AIX oracle 10g. From the start they have not used the archives to backup DB. Instead they use expdp utility to export the data in to dump file and rename the file extension to .tmp and ftp to another machine to compress... (5 Replies)
Discussion started by: thameerakn
5 Replies

2. UNIX for Advanced & Expert Users

Space Issue

Hey Experts, I'm facing an issue related to space in the unix system. I have a mount point where 9.4 T is allocated. The entire mount point is filled and I can trace only for 6.7T but I could not located the rest of the space around 2T. I tried every single command to locate the file starting... (7 Replies)
Discussion started by: panknil
7 Replies

3. Red Hat

Compression ratios of .tbz file

Hi, I have a question about finding the compression ratios of a zip (bzip2) file.I have written a procedure which upon certain criteria tar's and bzip2 certain directories and moves them to a near line storage. Yesterday I happened to stumble upon it. The procedure has tared and bzipped 6... (3 Replies)
Discussion started by: maverick_here
3 Replies

4. Red Hat

file roller compression problems with 7z

Can some please tell me why I can't make a 7z archive with file roller? I have already installed p7zip, p7zip-plugins, and 7za. I don't understand what the problem is. I can make a 7z archive from the command line with no problems. I keep getting this message but it doesn't tell me what the error... (0 Replies)
Discussion started by: cokedude
0 Replies

5. Shell Programming and Scripting

file compression

I'am looking for script (or tool) that would compress all files with given extension in all subdirectory. Important part is that every one file have to end in separate archive whit it's own name. Eaven if I could point multiple file in one directory and compress them it would be ok. I' am... (1 Reply)
Discussion started by: Demerzel
1 Replies

6. UNIX for Dummies Questions & Answers

Need help with space issue

Ok, I have a drive on my unix system that looks like this: /dev/hd4 0.38 0.00 100% 4316 3% / I can't find any file on that drive that would account for the 400MB. How can I thoroughly find the culprit of this space? I've done ls -al, but don't see anything that... (1 Reply)
Discussion started by: bbbngowc
1 Replies

7. UNIX for Dummies Questions & Answers

Space issue with Directory

Hi, How can I check whether a directory has enough space to create file? I have checked the space is availabe in the file system. For example: the directory /var/tmp resides in root file system. In the root file system currently 20% (5.5gb) space availabe. but how can I check the in the /var/tmp,... (1 Reply)
Discussion started by: siba.s.nayak
1 Replies

8. UNIX for Dummies Questions & Answers

.z file compression

Hello, I have a .z file which i understand to be UNIX. I'm on PC (no UNIX boxes) and have tried many different unzipping programs to extract this .z file, but only PicoZip has allowed me to view what is inside (telling me, i think, that it's not corrupt), but i have not been able to extract... (3 Replies)
Discussion started by: Gonecat
3 Replies

9. UNIX for Dummies Questions & Answers

file compression

Is it possible to unzip / compress a file that was zipped using WinZip? thanks, kristy (2 Replies)
Discussion started by: kristy
2 Replies
Login or Register to Ask a Question