Thanks to your follow-up.
Chris Wedgwood wrote:
>>How do you guys synchronize a XFS partition?
> of xfs_freeze depending on what you want
I will try xfs_freeze.
>>Repeating sync() does not take effect.
>>Is there any specific command or operation to sync XFS?
> sync() should work --- why do you think it does?
Because anaconda/booty fails to install grub into a XFS partition.
Firstly anaconda executes "grub-install --just-copy", and
executes sync() three times. Then anaconda runs "grub --batch"
to really install grub into MBR of the disk,
but grub cannot find files which should have been already
written in the partition by sync(). grub does not try to seek
those files through filesystem, but reads the volume directly
by its internal functions like xfs_dir().
When I put 1 minutes of sleep() next to sync(),
grub finds those files and is installed successfully.
That's why I think a XFS partition needa much time to synchronize.
> what kernel version are you using?
I'm using a kernel based on RHEL3.0 U1 (2.4.21-9.EL.i686)
applied XFS 1.3.1 patch from http://www.oss.sgi.com/.