Unix Shell - refreshing space in file system

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > January 2006 > refreshing space in file system





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author refreshing space in file system
surajkumar1@gmail.com

2006-01-19, 6:24 pm

On sun solaris box

I just moved one file from below file system whose (file size was 1
GB). even after moving 1 GB files it is still showing me 97% full

Filesystem kbytes used avail capacity Mounted on
/dev/md/dg09/dsk/d134
10323332 9882771 357976 97%
/d1/sybdata/client024

is there any way that we can refresh the free space immediately ?

Regards
Suraj

Michael Heiming

2006-01-19, 6:24 pm

In comp.unix.shell surajkumar1@gmail.com:
> On sun solaris box


> I just moved one file from below file system whose (file size was 1
> GB). even after moving 1 GB files it is still showing me 97% full


> Filesystem kbytes used avail capacity Mounted on
> /dev/md/dg09/dsk/d134
> 10323332 9882771 357976 97%
> /d1/sybdata/client024


> is there any way that we can refresh the free space immediately ?


Sure, 'man rm'. Next time use 'cp' instead of 'mv' if the file is
in use.

Good luck

BTW
Please read this before posting anything else:

http://cfaj.freeshell.org/google

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@urvzvat.qr | PERL -pe 'y/a-z/n-za-m/'
#bofh excuse 144: Too few computrons available.
Bruce Barnett

2006-01-19, 6:24 pm

surajkumar1@gmail.com writes:

> I just moved one file from below file system whose (file size was 1
> GB). even after moving 1 GB files it is still showing me 97% full
>
> Filesystem kbytes used avail capacity Mounted on
> /dev/md/dg09/dsk/d134
> 10323332 9882771 357976 97%
> /d1/sybdata/client024
>
> is there any way that we can refresh the free space immediately ?


Kill the process that is writing to the file first.
THEN move it.



--
Sending unsolicited commercial e-mail to this account incurs a fee of
$500 per message, and acknowledges the legality of this contract.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com