Sponsored Content
Operating Systems Linux Clearning space - File compression issue Post 302382277 by animesh303 on Wednesday 23rd of December 2009 12:13:35 AM
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.
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
FSFREEZE(8)						       System Administration						       FSFREEZE(8)

NAME
fsfreeze - suspend access to a filesystem (Linux Ext3/4, ReiserFS, JFS, XFS) SYNOPSIS
fsfreeze --freeze|--unfreeze mountpoint DESCRIPTION
fsfreeze suspends and resumes access to an filesystem fsfreeze halts new access to the filesystem and creates a stable image on disk. fsfreeze is intended to be used with hardware RAID devices that support the creation of snapshots. fsfreeze is unnecessary for device-mapper devices. The device-mapper (and LVM) automatically freezes filesystem on the device when a snap- shot creation is requested. For more details see the dmsetup(8) man page. The mount-point argument is the pathname of the directory where the filesystem is mounted. The filesystem must be mounted to be frozen (see mount(8)). Note that access time updates are also suspends if the filesystem is mounted with the traditional atime semantics (mount option stricta- time, for more details see mount(8)). OPTIONS
-h, --help Print help and exit. -f, --freeze This option requests the specified a filesystem to be frozen from new modifications. When this is selected, all ongoing transac- tions in the filesystem are allowed to complete, new write system calls are halted, other calls which modify the filesystem are halted, and all dirty data, metadata, and log information are written to disk. Any process attempting to write to the frozen filesystem will block waiting for the filesystem to be unfrozen. Note that even after freezing, the on-disk filesystem can contain information on files that are still in the process of unlinking. These files will not be unlinked until the filesystem is unfrozen or a clean mount of the snapshot is complete. -u, --unfreeze This option is used to un-freeze the filesystem and allow operations to continue. Any filesystem modifications that were blocked by the freeze are unblocked and allowed to complete. -V, --version Show version number and exit. AUTHOR
Written by Hajime Taira. NOTES
This man page based on xfs_freeze. One of -f or -u must be supplied to fsfreeze. SEE ALSO
mount(8) AVAILABILITY
The fsfreeze command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. util-linux May 2010 FSFREEZE(8)
All times are GMT -4. The time now is 07:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy