<br><br><div><span class="gmail_quote">On 10/4/05, <b class="gmail_sendername">Arjan van de Ven</b> <<a href="mailto:arjanv@redhat.com">arjanv@redhat.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 2005-10-04 at 12:24 -0500, Justin Conover wrote:<br>> tune2fs<br>> -m reserved-blocks-percentage<br>> -r reserved-blocks-count<br>><br>> If what I have read is correct, -m by default uses 5% of the disk
<br>> space for "reserved root use" On my server at home with a /home of<br>> 1TB thats about 50GB of wasted space.<br>><br>> Is this reserved space actually used by ANYTHING? Like LVM, some kind<br>
> of fragmentation?<br><br>well for emergency root stuff; logging in without any disk space is<br>hard; lots of stuff wants to make temporary files etc.<br><br>but your second point it true too: most filesystems (ext3 but most
<br>others) start to fragment like hell if they go over about 95% full.<br><br>Think of it this way: if you have half your disk empty, the filesystem<br>can do a proper job of finding non-fragmented space.<br>If only 0.0001%
is free, it has almost no freedom of choice, resulting<br>in "you get it in whatever order some things become free".<br>Those are sort of extremes; there's been a bunch of research and the<br>outcome was that 5% free seems to be sort of the turning point in this
<br>respect.<br><br>I suspect that research predates the Tb sized volumes, so I don't know<br>if it maybe is 1% on such volumes, but then again to some extend the<br>freedom needed will scale with the FS size<br><br><br>-----BEGIN PGP SIGNATURE-----
<br>Version: GnuPG v1.4.1 (GNU/Linux)<br><br>iD8DBQBDQsEXpv2rCoFn+CIRAvUXAJ0SH+Pc9eXpinhuBGZ+DM4r5wTCtgCgi+7B<br>hxT89EtumMwOF13z0l0KP9Q=<br>=C5z1<br>-----END PGP SIGNATURE-----</blockquote><div><br>
This is a vg on the 1TB a 625GB slice, If i'm reading this correctly than I have about 32GB "free" space right?<br>
<br>
vgdisplay "VolGroup01"<br>
--- Volume group ---<br>
VG Name VolGroup01<br>
System ID<br>
Format lvm2<br>
Metadata Areas 1<br>
Metadata Sequence No 5<br>
VG Access read/write<br>
VG Status resizable<br>
MAX LV 0<br>
Cur LV 2<br>
Open LV 2<br>
Max PV 0<br>
Cur PV 1<br>
Act PV 1<br>
VG Size 931.53 GB<br>
PE Size 32.00 MB<br>
Total PE 29809<br>
Alloc PE / Size 20000 / 625.00 GB<br>
Free PE / Size 9809 / 306.53 GB<br>
VG
UUID
Lrid7V-3i0U-35SD-zLCU-kDYB-xmGu-r15Y6E<br>
<br>
df -k /dev/VolGroup01/LogVol00<br>
Filesystem
1K-blocks Used Available Use% Mounted on<br>
-
517924 184
517740 1% /dev<br>
<br>
<br>
</div>tune2fs -l /dev/VolGroup01/LogVol00<br>
tune2fs 1.35 (28-Feb-2004)<br>
Filesystem volume name: <none><br>
Last mounted on: <not available><br>
Filesystem UUID: 035dc33b-726e-40d0-8425-461f7b9b971b<br>
Filesystem magic number: 0xEF53<br>
Filesystem revision #: 1 (dynamic)<br>
Filesystem features: has_journal ext_attr
resize_inode dir_index filetype needs_recovery sparse_super large_file<br>
Default mount options: (none)<br>
Filesystem state: clean<br>
Errors behavior: Continue<br>
Filesystem OS type: Linux<br>
Inode count: 65536000<br>
Block count: 131072000<br>
Reserved block count: 6553280<br>
Free blocks: 33234208<br>
Free inodes: 52339650<br>
First block: 0<br>
Block size: 4096<br>
Fragment size: 4096<br>
Reserved GDT blocks: 1017<br>
Blocks per group: 32768<br>
Fragments per group: 32768<br>
Inodes per group: 16384<br>
Inode blocks per group: 512<br>
Filesystem created: Sat Aug 27 07:34:52 2005<br>
Last mount time: Sat Aug 27 18:43:05 2005<br>
Last write time: Sat Sep 17 11:20:43 2005<br>
Mount count: 9<br>
Maximum mount count: -1<br>
Last checked: Sat Aug 27 07:34:52 2005<br>
Check interval: 0 (<none>)<br>
Reserved blocks uid: 0 (user root)<br>
Reserved blocks gid: 0 (group root)<br>
First inode: 11<br>
Inode size: 128<br>
Journal inode: 8<br>
Default directory hash: tea<br>
Directory Hash Seed: 8b7d8357-7489-4d3b-92da-8c186ecca90a<br>
Journal backup: inode blocks<br>
<br></div>