02-02-2010
Reclaim deleted disk space
I have a disk space issue on one of my unix servers.
it is showing 98% full.. i found the offending folder and removed it. but i have not reclaimed the disk space.
is there another command that i need ?
thank you in advance for any assistance.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am using Posix shell to write a script. The problem I am having is that when I use the read command to go through a file I lose the tabs. How can I keep this from happening? (1 Reply)
Discussion started by: keelba
1 Replies
2. UNIX for Dummies Questions & Answers
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
3. Filesystems, Disks and Memory
Hello All-
Am new member to this forum. Have some unix experience. But true believer in it compared to windows.
Have a question regarding the disk space.
I know a command to check the total disk space utilization using:
df -k .
but what is the command to check the same disk space by... (6 Replies)
Discussion started by: milkyway
6 Replies
4. Shell Programming and Scripting
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. Red Hat
when i check
/export directory of my machine gets filled up (85%) i removed some old logs. but after cleaning df -k command still shows that /export is still 85% full.
Is there a way to force df to reflect actual free space without rebooting? My machine is a production one and can't... (8 Replies)
Discussion started by: aboorkuma
8 Replies
6. Linux
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
7. Shell Programming and Scripting
Hi All,
I know this is a simple question but i am not sure the exact answer it.
Here is the question:
There is a huge log file , if we delete the log file ,how the corresponding occupied file memory relocate to Hard Disk.
Thanks
Srinivas (3 Replies)
Discussion started by: Srinivas Gadi
3 Replies
8. Red Hat
Hello,
OS version is Red Hat Enterprise Linux Server release 6.5 (Santiago).
In one of the filesystem some old files post clone are not getting removed even with 'rm'
# ls -ltr | grep meagpd_62.dbf
-rw-rw---- 1 oracle oinstall 34358697984 Sep 1 08:46 meagpd_62.dbf
# rm... (7 Replies)
Discussion started by: saharookiedba
7 Replies
9. UNIX for Beginners Questions & Answers
Hello everyone,
I am having an issue here with CentOS release 6.6 (Final) that shows all of the space used up, but I can't tell where the space went.
Seemingly I am using up 100%, according to
df -h
Filesystem Size Used Avail Use% Mounted on... (27 Replies)
Discussion started by: DannyBoyCentOS
27 Replies
10. UNIX for Beginners Questions & Answers
Hello,
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:0 1 1024M 0 rom
sda 8:0 0 38.2G 0 disk
├─sda1 8:1 0 500M 0 part /boot
└─sda2 8:2 ... (2 Replies)
Discussion started by: centosadmin
2 Replies
LEARN ABOUT CENTOS
zerofill
zerofill(1) GNU Telephony zerofill(1)
NAME
zerofill - clear unused disk space and blank devices.
SYNOPSIS
zerofill [options] [devices] ...
DESCRIPTION
This command is a relative of nullfile. Like nullfile, it can be used to write all unused disk space with '0', thereby making file systems
that are stored on virtual machines easier to pack. In addition, zerofill can fill unused disk space with random data before zeroing,
which can be useful to remove forensic trace of deleted files. Finally, zerofile can be told to operate on and zero (erase) complete disk
devices.
OPTIONS
--random=count
Number of passes to use writing random data before wiping data.
--help Outputs help screen for the user.
AUTHOR
zerofill was written by David Sugar <dyfet@gnutelephony.org>.
REPORTING BUGS
Report bugs to bug-commoncpp@gnu.org.
COPYRIGHT
Copyright (C) 2010 David Sugar, Tycho Softworks.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
GNU uCommon January 2010 zerofill(1)