xfs_growfs fails to allocate new inodes in Ubuntu Trusty

Bug #1434914 reported by Greg Burek
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned
Trusty
Expired
Medium
Unassigned
Utopic
Expired
Medium
Unassigned

Bug Description

Release:
Description: Ubuntu 14.04.2 LTS
Release: 14.04

Packages:
linux-image-3.13.0-46-generic 3.13.0-46.79
xfsprogs 3.1.9ubuntu2

When using xfs_growfs to grow an xfs filesystem, inodes on the grown portion of the filesystem are not available for writing, leading to ENOSPC errors even when free disk space and unused inodes are reported by df -i and df.

Actual results:
A worker creating many files, will run out of inode space as if the fs was not grown.

Expected results:
A worker creating many files, will continue to create new files for the grown fs.

mount -o remount,inode64 /mnt/point fixes this issue and allows further writes to the grown fs.

More information and reproduction steps can be found in this bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1115201

Also, the LXC FAQ has a description that indicates this bug has been present since kernel 3.7. It also offers the work around I wrote above: http://xfs.org/index.php/XFS_FAQ#Q:_Why_do_I_receive_No_space_left_on_device_after_xfs_growfs.3F

This bug has been fixed upstream in 3.17: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=9de67c3ba9ea961ba420573d56479d09d33a7587

Revision history for this message
Greg Burek (greg-burek) wrote :

Add xfsprogs to packages

affects: linux (Ubuntu) → linux
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux (Ubuntu):
status: New → Confirmed
Changed in linux (Ubuntu):
importance: Undecided → Medium
tags: added: kernel-da-key trusty utopic
no longer affects: linux
Changed in linux (Ubuntu Trusty):
status: New → Confirmed
Changed in linux (Ubuntu Utopic):
status: New → Confirmed
Changed in linux (Ubuntu Trusty):
importance: Undecided → Medium
Changed in linux (Ubuntu Utopic):
importance: Undecided → Medium
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

I built a Trusty test kernel with a cherry pick of commit: 9de67c3. The test kernel can be downloaded from:
http://kernel.ubuntu.com/~jsalisbury/lp1434914/

Can you test this kernel and see if it resolves this bug? If it does, we can request this commit in the upstream stable kernels and SRU to Utopic and Trusty.

Note, you will need to install both the linux-image and linux-image-extra .deb packages.

Changed in linux (Ubuntu Trusty):
status: Confirmed → Incomplete
Changed in linux (Ubuntu Utopic):
status: Confirmed → Incomplete
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu Utopic) because there has been no activity for 60 days.]

Changed in linux (Ubuntu Utopic):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu Trusty) because there has been no activity for 60 days.]

Changed in linux (Ubuntu Trusty):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.