Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
disk utilization question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
matroskin
Apprentice
Apprentice


Joined: 21 Jan 2003
Posts: 214

PostPosted: Sun Nov 04, 2012 8:01 am    Post subject: disk utilization question Reply with quote

Hi
I have strange situation: I can not write new data to the disk, so actually disk is full, but linux thinks that 14G is still available
Here is my df output after cleaning some space
Code:

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs           15G  5.2G  8.8G  37% /
/dev/root        15G  5.2G  8.8G  37% /
tmpfs           3.9G  196K  3.9G   1% /run
rc-svcdir       1.0M   88K  936K   9% /lib64/rc/init.d
cgroup_root      10M     0   10M   0% /sys/fs/cgroup
udev             10M     0   10M   0% /dev
shm             3.9G     0  3.9G   0% /dev/shm
/dev/sdb3       292G  256G   22G  93% /home
none           1000M     0 1000M   0% /var/tmp/portage
none            300M  8.0K  300M   1% /tmp

As you can see available and used sizes for home partition do not sum up to the total.
22G+256G=278G != 292G.
14G are missing

Home partition mounted as
Code:
/dev/sdb3 on /home type ext4 (rw,noatime)


Any ideas?
_________________
fbpanel
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Sun Nov 04, 2012 9:42 am    Post subject: Reply with quote

You can post the output of dumpe2fs -h /dev/sdb3 so that we can confirm my interpretation.

Be aware that if you created your filesystem with default features, you get 5% of the space reserved for root. (And not counted as "used")
(In order for your entire system not to be completely locked if an important partition was being actually 100% full)
=> Your filesystem will be said full for you as user from 95%)

Additionally, you get another default feature that keeps some free space on the filesystem in order for you to be able to increase the size of the table of inodes. I think this makes another 1%...
_________________
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2196

PostPosted: Sun Nov 04, 2012 11:16 am    Post subject: Reply with quote

Also post the output of df -ih please
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
matroskin
Apprentice
Apprentice


Joined: 21 Jan 2003
Posts: 214

PostPosted: Sun Nov 04, 2012 3:30 pm    Post subject: Reply with quote

Thank you for replies
dumpe2fs output (while mounted)
Code:
$ dumpe2fs -h /dev/sdb3
dumpe2fs 1.42 (29-Nov-2011)
Filesystem volume name:   home
Last mounted on:          /var
Filesystem UUID:          06bce740-2ef6-46da-9a15-25cadbe8934b
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              19415040
Block count:              77651456
Reserved block count:     3882572
Free blocks:              9552141
Free inodes:              19001400
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      1005
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Flex block group size:    16
Filesystem created:       Sun Mar 25 18:45:42 2012
Last mount time:          Sun Nov  4 11:00:20 2012
Last write time:          Sun Nov  4 11:00:20 2012
Mount count:              1
Maximum mount count:      36
Last checked:             Sun Nov  4 10:58:07 2012
Check interval:           15552000 (6 months)
Next check after:         Fri May  3 11:58:07 2013
Lifetime writes:          1740 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:             256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
First orphan inode:       15864334
Default directory hash:   half_md4
Directory Hash Seed:      4e17be98-e447-44c6-9617-d8a6cbe99002
Journal backup:           inode blocks
Journal features:         journal_incompat_revoke
Journal size:             128M
Journal length:           32768
Journal sequence:         0x000ea802
Journal start:            16952


df output
Code:
$ df -ih
Filesystem     Inodes IUsed IFree IUse% Mounted on
rootfs           952K  263K  689K   28% /
/dev/root        952K  263K  689K   28% /
tmpfs            988K   324  987K    1% /run
rc-svcdir        988K    73  987K    1% /lib64/rc/init.d
cgroup_root      988K     5  988K    1% /sys/fs/cgroup
udev             988K   497  987K    1% /dev
shm              988K     1  988K    1% /dev/shm
/dev/sdb3         19M  407K   19M    3% /home
none             1.0M     1  1.0M    1% /var/tmp/portage
none             988K    12  988K    1% /tmp


fschk (while unmounted) shows clean state
_________________
fbpanel
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2196

PostPosted: Sun Nov 04, 2012 3:51 pm    Post subject: Reply with quote

You seem to have enough free inodes.

How are you figuring that you can't write to the partition? Are you getting an error?

What happens when you run this command in a terminal?

Code:
touch ~/deleteme.txt

_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Sun Nov 04, 2012 7:29 pm    Post subject: Reply with quote

matroskin wrote:
dumpe2fs output (while mounted)
$ dumpe2fs -h /dev/sdb3
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Reserved block count: 3882572

Ok, these confirm the suggestions I had made for your "lost" free space.
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum