public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Joe Landman <landman@scalableinformatics.com>
To: xfs@oss.sgi.com
Subject: Re: XFS on CoRAID errors with SMB
Date: Mon, 28 Nov 2011 09:46:22 -0500	[thread overview]
Message-ID: <4ED39EBE.2070206@scalableinformatics.com> (raw)
In-Reply-To: <20111128135518.GA1232@campbell-lange.net>

On 11/28/2011 08:55 AM, Jon Marshall wrote:
> Hi,
>
> We have recently experienced what appear to be XFS filesystem errors on
> a samba share. The actual filesystem resides on a network attached
> storage device, a Coraid. The attached server locked up totally, and we
> forced to hard reset it.

This is (from our past experience working with these units and the AoE 
system), more likely the AoE driver crashing (or something on the 
underlying network failing).  From there, the file system eventually dies.

This isn't an xfs problem per se, xfs is sort of an uwilling participant 
in a slow motion crash.

> I have the following trace from the kernel logs:
>
> [6128798.051868] smbd: page allocation failure. order:4, mode:0xc0d0
> [6128798.051872] Pid: 16908, comm: smbd Not tainted 2.6.32-5-amd64 #1
> [6128798.051874] Call Trace:
> [6128798.051882]  [<ffffffff810ba5d6>] ? __alloc_pages_nodemask+0x592/0x5f4
> [6128798.051885]  [<ffffffff810b959c>] ? __get_free_pages+0x9/0x46
> [6128798.051889]  [<ffffffff810e7ea1>] ? __kmalloc+0x3f/0x141

If you note the failed kmalloc, something ran you out of memory.  What 
we've run into in the past with this has been a driver memory leak 
(usually older model e1000 or similar drivers)

[...]

> smbd seems to throw these errors for about 15 minutes, then sshd starts
> throwing errors and shortly after the system became unresponsive.
>
> Just wondering if anyone had any experience of similar results, with XFS
> on a CoRAID device or XFS SMB shares?

This is what you see when the AoE stack collapses due to a crash of one 
of the lower block rungs.  XFS can't run if it can't allocate memory for 
itself.  smbd dies when the underlying filesystem goes away.  sshd 
probably gets unresponsive in part, due to all the IOs queuing up that 
the scheduler can't do anything with.  Before sshd stops working, user 
load winds up past 5x number of CPUs, then past 10x, then ...

Once you see this happening, its time to kill the upper level stacks if 
possible, and unmount the file system as rapidly as possible.  If you 
can't kill the stuff above it, a 'umount -l ' is your friend.  You *may* 
be able to regain enough control for a non-crash based reboot.  Even 
with this, I'd recommend changing / to sync before either forcing a reboot

    mount -o remount,sync /

to preserve the integrity of the OS drive.

Then reboot (or if the user load is too high, and a reboot command will 
just hang ... hopefully you have IPMI on you unit so you can do an 
'ipmitool -I open chassis power cycle' hard bounce)





>
> Thanks
> Jon
>


-- 
Joseph Landman, Ph.D
Founder and CEO
Scalable Informatics Inc.
email: landman@scalableinformatics.com
web  : http://scalableinformatics.com
        http://scalableinformatics.com/sicluster
phone: +1 734 786 8423 x121
fax  : +1 866 888 3112
cell : +1 734 612 4615

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2011-11-28 14:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-28 13:55 XFS on CoRAID errors with SMB Jon Marshall
2011-11-28 14:46 ` Joe Landman [this message]
2011-11-28 15:26   ` Jon Marshall
2011-11-28 15:36     ` Joe Landman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ED39EBE.2070206@scalableinformatics.com \
    --to=landman@scalableinformatics.com \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox