ext4 "no space left on device" problems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I'm suffering from very odd "no space left on device" problems.
I installed Karmic Alpha 2 with the following partition table:
Model: ATA Hitachi HTS54251 (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 20.5kB 210MB 210MB fat32 EFI System Partition boot
2 210MB 6652MB 6442MB hfs+ Untitled
3 6652MB 7002MB 350MB ext4 root
4 7002MB 13.0GB 6000MB ext4 usr
5 13.0GB 16.0GB 3000MB ext4 var
6 16.0GB 28.1GB 12.1GB linux-swap(new) swap
7 28.1GB 28.5GB 400MB ext4 tmp
8 28.5GB 160GB 132GB ext4 local
the disk usage is as follows:
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 324M 185M 123M 61% /
tmpfs 2.0G 0 2.0G 0% /lib/init/rw
varrun 2.0G 116K 2.0G 1% /var/run
varlock 2.0G 0 2.0G 0% /var/lock
udev 2.0G 352K 2.0G 1% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
/dev/sda8 123G 2.0G 115G 2% /local
/dev/sda7 370M 11M 341M 3% /tmp
/dev/sda4 5.6G 2.7G 2.6G 51% /usr
/dev/sda5 2.8G 282M 2.4G 11% /var
Today I could not even login via gdm because of the "no space left on device problem". This is my .xsession-errors file:
gdm-session-
/etc/gdm/Xsession: Beginning session setup...
Setting IM through im-switch for locale=en_US.
Start IM through /etc/X11/
E: core-util.c: Failed to symlink /home/koto/
E: core-util.c: Failed to symlink /home/koto/
W: lock-autospawn.c: Cannot access autospawn lock.
HOWEVER: all of above listed output was generated by piping the command outputs (df, parted) to /tmp. And as you can see from the df, /tmp is not full.
I executed a fsck -f on all partitions but this did not help.
I've seen this problem before on my big 123GB partition when I was trying to check out a big subversion trunk. But again - the drive is practically empty.
affects: | ubuntu → linux (Ubuntu) |
Changed in linux (Ubuntu): | |
status: | Incomplete → Fix Released |
I have similar problems only on my disk this point is already reached at 30%.
If I do a '# debugfs /dev/md1' stats I see that there are only a few inodes left so I suspect that during the upgrade to Karmic's ext4 file system far too less inodes were created.
Does anyone know how to increase them without loosing data?
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md1 493G 142G 346G 30% /
cp: cannot create directory `./Yazoo': No space left on device
# debugfs /dev/md1
stats
Filesystem volume name: main b921-41b1- 82bf-e27a826dd6 4d directory_ hash
Last mounted on: /
Filesystem UUID: 20423a23-
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_
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 504320
Block count: 129090240
Reserved block count: 1290902
Free blocks: 92021041
Free inodes: 35