10-29-2001
Unix requires that 10% of the disk remain free to insure that files are allocated efficiently. You have used everything that you can on that fs.
bdf says that you have 6866069 total with 6356851 in use. df says that 509218 are free. Those numbers add up.
root can allocate the rest of the disk but non-root users cannot. If root does that, bdf will report the disk at 111% full.
You simply need to free up more space or make /opt larger.
You could use tunefs to change minfree on the volume. Expect system performance to suffer if you do.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am trying to write a script that will allow me to do a bdf then do a test for a percentage that is 90% or greater. If the test is true then i want to send a message to myself and one other person.
Any suggestions ? ? ?
Thanks.
....svp (6 Replies)
Discussion started by: svp4444
6 Replies
2. Shell Programming and Scripting
Hi,
I have written a funtion which taken bdf output and put's in a file.
The idea is to grep a areas which greater then 80% and echo the same on the system. However the script I have written fails with the error :-
+ awk $0 !~ /^F/
+ awk {print $5"\t" $6}
+ sed s/%//
+ 1> /tmp/bdflist}... (3 Replies)
Discussion started by: kpatel786
3 Replies
3. UNIX for Advanced & Expert Users
Hi all
i am working on script which uses "bdf" output to create excel sheet now when i check "Total" "Used" & "Available" i found that except root everywhere
used + available != total
here is example :
part from bdf output :
filesystem-total-used-available-%used-Mounted on
... (4 Replies)
Discussion started by: zedex
4 Replies
4. AIX
Previously i was using bdf -h in Solaris server. Now i have moved to AIX server and i would like to know equialent to "bdf -h" in AIX server.
Please help me. Thanks in Advance. I am expecting output as below
Filesystem size used avail capacity Mounted on
/dev/vx/dsk/vg04/t1... (3 Replies)
Discussion started by: Bala37
3 Replies
5. Shell Programming and Scripting
I have this line in a sh script:
bdf | grep /var/opt/vgdb | tr -s " " | cut -f4,6 -d" " | awk '{print $2" "$1}' > vgdb_free_space.txt
if I run that line in the shell it works fine
but when I ran the script got this error:
add_database_files.sh: line 83: bdf: command not found
also I tried... (4 Replies)
Discussion started by: C|KiLLeR|S
4 Replies
6. Shell Programming and Scripting
Here is my bdf output
#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 2097152 217112 1865424 10% /
/dev/vg00/lvol1 1835008 329040 1494288 18% /stand
/dev/vg00/lvol7 10485760 7864080 2601240 75% /var
/dev/vg00/lvol8 8454144 486597 7469647 ... (5 Replies)
Discussion started by: indrajit_renu
5 Replies
7. HP-UX
hi,
bdf command hangs but before it, it lists all the fstab content, so i cannot find the reason...
could anybody give me any clue??
thanks a lot for your attention.
regards
Pablo
i attach syslog
Jan 14 16:30:00 sv23 vmunix: hp_dlpi_wput:Received an unrecognized primitive: 101d... (7 Replies)
Discussion started by: pabloli150
7 Replies
8. Solaris
Hello,
I have a application that works on a server having SunOS environment. I have to implement it on a different server which has GNU/Linux. Now am facing issues with the shell scripts that are run in the process in the application. It is definitely because of the different flavours of Unix.... (4 Replies)
Discussion started by: vinzermania
4 Replies
9. HP-UX
Hi guys, I have to make an output of several databases we've got running on our system with the command bdf. This has to be done every 3 months. I want to put it in an scriptfile and trigger it in crontab. In the output it must display the differences in diskspace between these three monts. Any... (3 Replies)
Discussion started by: djmental
3 Replies
tunefs(1M) System Administration Commands tunefs(1M)
NAME
tunefs - tune an existing UFS file system
SYNOPSIS
tunefs [-a maxcontig] [-d rotdelay] [-e maxbpg] [-m minfree] [-o space | time] special | filesystem
DESCRIPTION
tunefs is designed to change the dynamic parameters of a file system that affect the layout policies. When using tunefs with filesystem,
filesystem must be in /etc/vfstab. The parameters that can be changed are indicated by the options given below.
OPTIONS
The following options are supported:
-a maxcontig
The maximum number of logical blocks, belonging to one file, that is allocated contiguously. The default is calculated as follows:
maxcontig = disk drive maximum transfer size / disk block size
If the disk drive's maximum transfer size cannot be determined, the default value for maxcontig is calculated from kernel parameters as
follows:
If maxphys is less than ufs_maxmaxphys, which is 1 Mbyte, then maxcontig is set to maxphys. Otherwise, maxcontig is set to ufs_maxmax-
phys.
You can set maxcontig to any positive integer value.
The actual value will be the lesser of what has been specified and what the hardware supports.
-d rotdelay
This parameter is obsolete as of the Solaris 10 release. The value is always set to 0, regardless of the input value.
-e maxbpg
Indicates the maximum number of contiguous logical blocks any single file can allocate from a cylinder group before it is forced to
begin allocating blocks from another cylinder group. Typically this value is set to approximately one quarter of the total contiguous
logical blocks in a cylinder group. The intent is to prevent any single file from using up all the blocks in a single cylinder group,
thus degrading access times for all files subsequently allocated in that cylinder group.
The effect of this limit is to cause big files to do long seeks more frequently than if they were allowed to allocate all the blocks in
a cylinder group before seeking elsewhere. For file systems with exclusively large files, this parameter should be set higher.
-m minfree
Specifies the minimum free space threshold, or the percentage of space held back from normal users. This value can be set to 0. How-
ever, up to a factor of three in throughput will be lost over the performance obtained at a 10% threshold. Note: If the value is raised
above the current usage level, users will be unable to allocate files until enough files have been deleted to get under the higher
threshold.
-o space|time
The file system can either be instructed to try to minimize the time spent allocating blocks, or to try to minimize the space fragmen-
tation on the disk. The default is time.
Generally, you should optimize for time unless the file system is over 90% full.
USAGE
See largefile(5) for the description of the behavior of tunefs when encountering files greater than or equal to 2 Gbyte ( 2**31 bytes).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
mkfs_ufs(1M), newfs(1M), attributes(5), largefile(5)
SunOS 5.10 5 Dec 2003 tunefs(1M)