04-05-2002
Linux diskspace usage
when /var directory of my machine gets filled up (85%) i removed some old logs. but after cleaning df -k command still shows that /var is still 85% full.
It can detect the actual disk space only after I restart the machine. Is there a way to force df to reflect actual free space without rebooting? My machine is a production one and can't afford down time. My OS is Red Hat 6.2
Thanks!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Anybody can help me? I need to know a specified folder diskspace usage, that's how much bytes that folder and its files/folders below spend on my storage.
Thanks (2 Replies)
Discussion started by: nusajunus
2 Replies
2. UNIX for Dummies Questions & Answers
Hi there,
pls help me, i have a problem, how i can find out the disk amount of each harddisk per command (not the on label on the Harddisk)
i need it on HP UX and Sun.
can anybody helb me????
pls
thanks
Scotty (1 Reply)
Discussion started by: scotty
1 Replies
3. Red Hat
What's the best way to find out how much memory is being used/available? I tried using free, but I didn't quite understand the output. Can someone explain it?
$ free
total used free shared buffers cached
Mem: 16304536 16256376 48160 0 ... (6 Replies)
Discussion started by: junkmail426
6 Replies
4. Linux
What is amount of free RAM i have now?
total used free shared buffers cached
Mem: 1010 963 46 0 215 256
-/+ buffers/cache: 491 518
Swap: 1983 0 1983
Above is the output of... (1 Reply)
Discussion started by: new2ss
1 Replies
5. Shell Programming and Scripting
Guys, have any idea for the script like this? also to compute w/ decimal.
thanks
a=10
b=20
c=30
d=40
if a < b then ( a -b)*1024 = free space
b + (c -d) = total space
if a > b then (b / d)*1024 = cpu (3 Replies)
Discussion started by: kenshinhimura
3 Replies
6. Shell Programming and Scripting
Hi
I want to check Oracle ASM disk status through a PERL script.
Script flow would be like this ...
1. Its taking diskgroup name in the command line...
2. Connect to Oracle database
3. If connection error send a critical message.
Plz replyyyyyyy...... (1 Reply)
Discussion started by: Harikrishna
1 Replies
7. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
8. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
9. Shell Programming and Scripting
dear all,
i want elimination file with disk space for example:
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
62G 19G 41G 31% /
/dev/sda1 99M 13M 82M 13% /boot
tmpfs 1014M 0... (2 Replies)
Discussion started by: zvtral
2 Replies
10. Shell Programming and Scripting
Hi,
While am preparing the script for diskspace for different partitions different threshhold limit. am getting below error:
./test.sh: syntax error at line 5: `space=$' unexpected
Script
====
#!/bin/sh
df -h |grep -v '/oradata2'|grep -v '/orabkp' |grep -v '/oradata5' | awk '{ print $5... (7 Replies)
Discussion started by: Pavan83
7 Replies
LEARN ABOUT DEBIAN
xfs_estimate
xfs_estimate(8) System Manager's Manual xfs_estimate(8)
NAME
xfs_estimate - estimate the space that an XFS filesystem will take
SYNOPSIS
xfs_estimate [ -h? ] [ -b blocksize ] [ -i logsize ]
[ -e logsize ] [ -v ] directory ...
DESCRIPTION
For each directory argument, xfs_estimate estimates the space that directory would take if it were copied to an XFS filesystem. xfs_esti-
mate does not cross mount points. The following definitions are used:
KB = *1024
MB = *1024*1024
GB = *1024*1024*1024
The xfs_estimate options are:
-b blocksize
Use blocksize instead of the default blocksize of 4096 bytes. The modifier k can be used after the number to indicate multiplica-
tion by 1024. For example,
xfs_estimate -b 64k /
requests an estimate of the space required by the directory / on an XFS filesystem using a blocksize of 64K (65536) bytes.
-v Display more information, formatted.
-h Display usage message.
-? Display usage message.
-i, -e logsize
Use logsize instead of the default log size of 1000 blocks. -i refers to an internal log, while -e refers to an external log. The
modifiers k or m can be used after the number to indicate multiplication by 1024 or 1048576, respectively.
For example,
xfs_estimate -i 1m /
requests an estimate of the space required by the directory / on an XFS filesystem using an internal log of 1 megabyte.
EXAMPLES
% xfs_estimate -e 10m /var/tmp
/var/tmp will take about 4.2 megabytes
with the external log using 2560 blocks or about 10.0 megabytes
% xfs_estimate -v -e 10m /var/tmp
directory bsize blocks megabytes logsize
/var/tmp 4096 792 4.0MB 10485760
% xfs_estimate -v /var/tmp
directory bsize blocks megabytes logsize
/var/tmp 4096 3352 14.0MB 10485760
% xfs_estimate /var/tmp
/var/tmp will take about 14.0 megabytes
xfs_estimate(8)