[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: File system overhead



 
OK below is what I have. I have another question now. If the 'reserved'
space is for root, why does root need space on all partitions for? For
example why would I need to reserve space for the root user on /home, /tmp,
/opt, /tmp. I can see this as being need for /var and /root, but what use is
this on the other partitions?


file system overhead. the following is from the man page for mkfs
 -m reserved-blocks-percentage
              Specify  the percentage of the filesystem blocks reserved for
the super-user.  This avoids fragmentation, and allows root-owned  daemons,
such as syslogd(8), to continue to function correctly after non-privileged
processes are prevented from writing to the filesystem.  The default
percentage is 5%.

However the default can be adjusted using tune2fs to regain some of that
space.
epace-storage:~# df -h|grep opt
/dev/sda9             219G  168M  208G   1% /opt
epace-storage:~# tune2fs -m2 /dev/sda9
tune2fs 1.37 (21-Mar-2005)
Setting reserved blocks percentage to 2 (1163948 blocks)
epace-storage:~# df -h|grep opt
/dev/sda9             219G  168M  214G   1% /opt




Tony Heal
Pace Systems Group, Inc.
800-624-5999
theal@pace2020.com

-----Original Message-----
From: Linas Zvirblis [mailto:0x0007@gmail.com] 
Sent: Friday, January 20, 2006 7:42 AM
To: debian-user@lists.debian.org
Subject: Re: File system overhead

> did you execute the df command as root? if not, it might report less 
> free space. there is a reserved space (5% is default for ext2/3, iirc, 
> however you can set it up differently) that is available only for 
> root... and since you report 5% in your case...

You can set the percentage of reserved blocks like this...

  tune2fs -m number /dev/partition

...where "number" is number of reserved blocks of your total space in 
percents and "/dev/partition" is the device that contains EXT2/3 file 
system. In this case it would look like...

  tune2fs -m 1 /dev/sda9

tune2fs can be found in e2fsprogs package.


-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org



Reply to: