When I setup ext3 partition in my 1TB hard disk and ran df -h command, I was in for a surprise
/dev/rootvg/scribe 992G 407M 941G 1% /scribe
Out of 992GB, only 941GB is available. Almost 41GB is missing. We lost 5% of 992GB (.05*992=49.60, 992-49.60=942.40)
To reduce reserved blocks from 5% to 2% use the following command:
# tune2fs -m 2 /dev/rootvg/scribe
# umount /scribe
# tune2fs -m 2 /dev/rootvg/scribe
tune2fs 1.39 (29-May-2006)
Setting reserved blocks percentage to 2% (5281218 blocks)
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootvg-scribe 992G 407M 971G 1% /scribe
Thus we have reclaimed 30GB of space.
/dev/rootvg/scribe 992G 407M 941G 1% /scribe
Out of 992GB, only 941GB is available. Almost 41GB is missing. We lost 5% of 992GB (.05*992=49.60, 992-49.60=942.40)
It seems that ext filesystems by default will reserve about 5% disk space for superuser level processes and to prevent filesystem from fragmenting as it fills up. However, this reserved space can be claimed.
To reduce reserved blocks from 5% to 2% use the following command:
# tune2fs -m 2 /dev/rootvg/scribe
# umount /scribe
# tune2fs -m 2 /dev/rootvg/scribe
tune2fs 1.39 (29-May-2006)
Setting reserved blocks percentage to 2% (5281218 blocks)
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootvg-scribe 992G 407M 971G 1% /scribe
Thus we have reclaimed 30GB of space.
No comments:
Post a Comment