linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* umount waiting for 12 hours and still running
@ 2013-11-05 13:42 John Goerzen
  2013-11-05 14:20 ` Duncan
  0 siblings, 1 reply; 6+ messages in thread
From: John Goerzen @ 2013-11-05 13:42 UTC (permalink / raw)
  To: linux-btrfs

Hello,

More than 12 hours ago, I tried to umount a btrfs filesystem. Something
involving btrfs-cleaner and btrfs-transacti is still running, but I
don't know what.

I have noticed excessively long umount times before, and it is a
significant concern for me.

A bit of background:

The filesystem in question involves two 2TB USB hard drives.  It is 49%
full.  Data is RAID0, metadata is RAID1.  The files stored on it are for
BackupPC, meaning there are many, many directories and hardlinks.  I
would estimate 30 million inodes in use and many of them have dozens of
hardlinks to them.  These disks used to be formatted with ext4.  I used
the e2fs dump to back them up, created a fresh btrfs filesystem, and
used restore to load the data onto it.

Now then.  btrfs seemed to be extremely slow creating hard links. Slow
to the tune of taking hours longer than ext4 to do the same task, and
often triggering kernel task hung for more than 120 seconds warnings.  I
thought perhaps converting metadata to raid0 would help.  So I started a
btrfs balance start -mconver=raid0 on it.  According to btrfs fi df, it
churned through the first 900MB out of 26GB of metadata in quick order,
but then the amount of RAID0 metadata bounced up and down between about
950MB and 1019MB -- always just shy of 1GB.  There was an active rsync
job to the disk during this time.  With no apparent progress even after
hours, I tried to cancel the balance.  My cancel command did not return
even after waiting hours.  Finally I rebooted and mounted the FS with
the option to not restart the balance, then it canceled in a few
minutes.  dstat showed all was quiet on the disk.  So I thought I would
unmount it, remount it normally, and start the convert again.

And it is from that unmount that it has been sitting.  According to
dstat, it reads about 360K per second, every so often writing out about
25MB per second.  And it's been doing this for 12 hours.

It seems I have encountered numerous problems here:

   * I/O Starvation on link(2) and perhaps also unlink(2)
   * btrfs convert having a lack of progress after many hours
   * btrfs convert stop not stopping anything
   * umount taking hours

The umount is still pending, so if there is any debugging I can do,
please let me know.

Kernel 3.10 from Debian wheezy backports on i386.

Thanks,

John

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: umount waiting for 12 hours and still running
@ 2013-11-05 18:46 Tomasz Chmielewski
  2013-11-05 18:53 ` John Goerzen
  0 siblings, 1 reply; 6+ messages in thread
From: Tomasz Chmielewski @ 2013-11-05 18:46 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org, jgoerzen

> More than 12 hours ago, I tried to umount a btrfs filesystem.
> Something involving btrfs-cleaner and btrfs-transacti is still
> running, but I don't know what.

Does "iostat -x 1" or "iostat -k 1" show any disk activity?

Anything interesting in dmesg?


-- 
Tomasz Chmielewski
http://wpkg.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-11-05 18:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-05 13:42 umount waiting for 12 hours and still running John Goerzen
2013-11-05 14:20 ` Duncan
2013-11-05 16:11   ` John Goerzen
2013-11-05 18:21     ` Duncan
  -- strict thread matches above, loose matches on Subject: below --
2013-11-05 18:46 Tomasz Chmielewski
2013-11-05 18:53 ` John Goerzen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).