Bug 208224 - lvm2 snapshot and XFS , using xfs_freeze to do this, but then lvcreate hang.
Summary: lvm2 snapshot and XFS , using xfs_freeze to do this, but then lvcreate hang.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Developer Program
Classification: Retired
Component: ABE
Version: beta
Hardware: i386
OS: Linux
medium
urgent
Target Milestone: ---
Assignee: Brian Stein
QA Contact: Michael Waite
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-09-27 05:25 UTC by ryan z
Modified: 2013-03-01 05:15 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-03-08 16:06:59 UTC
Embargoed:


Attachments (Terms of Use)

Description ryan z 2006-09-27 05:25:32 UTC
Description of problem:

Help, lvm2 snapshot and XFS , using xfs_freeze to do this, but then
lvcreate hang.

I use lvm2 and xfs both.  If I do not use xfs_freeze before, I can use
lvcreate snapshot the lv. And it work fine for some static files or
lv, but not for running system such as / (root) which will generate a
log of I/O error.

So I heard that xfs should run xfs_freeze before create snapshot.
However, after xfs_freeze -f, then lvcreate hang all the time. And I
still can not kill (-9) the lvcreate process.

Comment 1 Eric Sandeen 2006-11-16 04:34:15 UTC
what version of kernel/lvm are you using.  manual xfs_freeze has been
unnecessary for quite some time, as lvm automatically freezes the things it's
about to snapshot.  lvm is probably hung waiting for the filesystem to unfreeze
so that -it- can freeze it.

dm_suspend
  lock_fs
    freeze_bdev
      sb->s_op->write_super_lockfs
        xfs_fs_lockfs

etc...


Comment 2 Eric Sandeen 2007-03-08 16:06:59 UTC
Without any further information from the submitter, it appears that xfs_freeze
was manually invoked prior to taking the lvm snapshot, which then also tried to
freeze the filesystem, and got stuck behind xfs_freeze.

For newer lvm, no manual xfs_freeze is necessary, and in fact if you do it, it
will lock out the lvm snapshot.

If recent lvm snapshots are generating IO errors for you, perhaps you can open a
new bug with that information, as that seems like a separate, and more serious,
problem.

Thanks,
-Eric


Note You need to log in before you can comment on or make changes to this bug.