[Top] [All Lists]

Re: how to flush an XFS filesystem

To: linux xfs mailing list <linux-xfs@xxxxxxxxxxx>
Subject: Re: how to flush an XFS filesystem
From: Nathan Scott <nathans@xxxxxxx>
Date: Thu, 14 Jul 2005 06:49:36 +1000
In-reply-to: <20050713134034.GA6743@xxxxxxxxxxxxxxxxxxxxx>; from madduck@xxxxxxxxxxx on Wed, Jul 13, 2005 at 04:40:34PM +0300
References: <20050709091145.GA13108@xxxxxxxxxxxxxxxxxx> <20050710141254.A2904172@xxxxxxxxxxxxxxxxxxxxxxxx> <20050710084345.GA11413@xxxxxxxxxxxxxxxxxxxxx> <20050711081613.A2828633@xxxxxxxxxxxxxxxxxxxxxxxx> <20050710224635.GA12333@xxxxxxxxxxxxxxxxxxxxx> <20050711014827.GB829@frodo> <20050711072807.GA16354@xxxxxxxxxxxxxxxxxxxxx> <20050713014028.GC980@frodo> <20050713020524.GE980@frodo> <20050713134034.GA6743@xxxxxxxxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
On Wed, Jul 13, 2005 at 04:40:34PM +0300, martin f krafft wrote:
> > [root@bruce fsgqa]# mount -o rw,rtdev=/dev/sdc1,logdev=/dev/sda11,uquota 
> > /dev/sdb5 /mnt/xfs0
> [...]
> > [root@bruce fsgqa]# xfs_db -x /dev/sdb5
> Both of these are different from the way grub accesses it. In order
> for me to reproduce the problem, I had to get access to the
> partition before mounting it.

The second case (xfs_db, above) is doing exactly that.

> It seems as if (a) the file gets
> written to extents on the disk, and (b) that the inode is written to
> the log, but the log is never flushed such that the metadata never
> make it to the filesystem.

It doesn't seem like that to me.

> Mounting the filesystem on next reboot causes the log to be replayed
> and consistency to be restored. I assume xfs_db does the same.

No, it doesn't.  Log replay only happens during mount.

> Grub, on the other hand, tries to get the file, but it does not
> exist in the directory (and grub cannot replay the log), so it fails
> to find it.

xfs_db would have the same problem, but doesn't...



<Prev in Thread] Current Thread [Next in Thread>