Linux LVM users
 help / color / mirror / Atom feed
From: Nathan Hunsperger <linux-lvm@hunsperger.com>
To: linux-lvm@sistina.com
Subject: [linux-lvm] System lockups when snapshoting
Date: Wed Jul 16 18:03:01 2003	[thread overview]
Message-ID: <20030716230227.GB23833@munchnet.com> (raw)

I'm experiencing severe issues when creating snapshots, and would
appreciate some advice.  These problems are occuring on 2.4.21 with LVM
1.0.7.  Without snapshots, I am not experiencing any problems.

After creating a snapshot of a live filesystem, my system starts to
hang.  This hanging takes two forms, temporary lockups, and permanent
lockups.  Sometimes, commands take 5+ minutes to execute after they are
typed, but more usually, they still fail to execute after 12 hours.

However, it seems that only commands which hit up the filesystem layer
are affected.  The system is always pingable, characters on console
always echo, and ssh connections stay responsive, until a request for
the fs is made.  Shell built-ins like "echo hello" succeed, however,
"echo /*" hangs.  / (which is not on lvm) should always be cached, so
nothing below the fs layer should need to be touched to list echo /*.
Lastly, I will receive a "raid 5 sync complete" message on console for
the md lvm is ontop of, an hour after I cannot issue any more fs-using
commands, so the block device the lvm volume group is on should be fine.

Based on this, it looks to me like there may be a race / deadlock in the
filesystem layer when a snapshot is active.  Or I am doing something
considerably wrong.

I experience these issues when using ext3 or ext2, SMP or uni-processor,
GCC 2.95.4 or GCC 3.3.  I've tried ext2 with and without the VFS patches
(always applied when testing ext3).  In applying the VFS and lvm patches, I
always apply the lvm patch, and then the VFS patch.

Also, when these temporary lockups occur, all my shells waiting to use the
fs execute at about the same time, and then lockup together.  If I am able
to issue a lvremove for the snapshot, the entire system comes back alive.

Thanks,
Nathan

             reply	other threads:[~2003-07-16 18:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-16 18:03 Nathan Hunsperger [this message]
2003-07-16 21:37 ` [linux-lvm] System lockups when snapshoting Scott Mcdermott
2003-07-17  0:08   ` Nathan Hunsperger

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=20030716230227.GB23833@munchnet.com \
    --to=linux-lvm@hunsperger.com \
    --cc=linux-lvm@sistina.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