This is a known Solaris2.6 bug and the larger filesystem the worse it gets.
The problem is that newfs is passes a to large number for "cylinders per cylinder group" as a parameter to mkfs.
The newfs manual states:
-c cgize The number of cylinders per cylinder
group (ranging from 1 to 32). The
default is 16.
But newfs passes values much larger than 32 to mkfs. I have seen 256!
I solved the problem by using a value <= 32 like:
newfs -v -c 16 /dev/....
Without the "-c 16" I couldn't fill more than 80% on a 4GB fs (as root and regardless of the minfree value)
and 90% on a 2GB fs.
An easy test is:
# df -k
# cat </dev/zero > /mountpoint/foo
cat: output error (..... characters written)
No space left on device
# df -k
# rm /mountpoint/foo
If you are root you should be able to fill up every byte (capacity 110% with 10% minfree)
("kbytes" and "used" should be equal (or at least very close))
Pål
----------------------------------------------------------------
Addr: Pål Baltzersen, ElTele Øst AS, Sandakervn. 114B, N-0483 Oslo.
Phone: +47 23 18 10 00 Direct: +47 23 18 11 74
fax: +47 23 18 10 01 Mobile: +47 93 08 11 74
mail: pb@ost.eltele.no pal.baltzersen@ost.eltele.no
Received on Wed Oct 07 1998 - 10:55:36 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:42:22 MST