* XFS syncs
@ 2014-07-03 18:05 flux
2014-07-03 21:33 ` Stan Hoeppner
2014-07-03 23:17 ` Dave Chinner
0 siblings, 2 replies; 4+ messages in thread
From: flux @ 2014-07-03 18:05 UTC (permalink / raw)
To: xfs
Hi,
I issue 'mkdir abc' on my xfs partition the cut off the power. After
reboot there's no 'abc' directoy. However, when I do that on ext4 the
'abc' direcory is always created after reboots. All the settings, about
mount options are default for my distro. What am I missing or how do I
change the things of the jounral or whatever?
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: XFS syncs
2014-07-03 18:05 XFS syncs flux
@ 2014-07-03 21:33 ` Stan Hoeppner
2014-07-03 23:17 ` Dave Chinner
1 sibling, 0 replies; 4+ messages in thread
From: Stan Hoeppner @ 2014-07-03 21:33 UTC (permalink / raw)
To: flux, xfs
On 7/3/2014 1:05 PM, flux@hotbox.ru wrote:
> Hi,
>
> I issue 'mkdir abc' on my xfs partition the cut off the power. After
> reboot there's no 'abc' directoy. However, when I do that on ext4 the
> 'abc' direcory is always created after reboots. All the settings, about
> mount options are default for my distro. What am I missing or how do I
> change the things of the jounral or whatever?
So, you want XFS to behave like EXT4, is this correct? Do you have an
actual workload where you need to cut power immediately after issuing
commands, as described above?
Cheers,
Stan
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: XFS syncs
2014-07-03 18:05 XFS syncs flux
2014-07-03 21:33 ` Stan Hoeppner
@ 2014-07-03 23:17 ` Dave Chinner
2014-07-04 14:09 ` flux
1 sibling, 1 reply; 4+ messages in thread
From: Dave Chinner @ 2014-07-03 23:17 UTC (permalink / raw)
To: flux; +Cc: xfs
On Thu, Jul 03, 2014 at 10:05:53PM +0400, flux@hotbox.ru wrote:
> Hi,
>
> I issue 'mkdir abc' on my xfs partition the cut off the power. After
> reboot there's no 'abc' directoy.
Because you didn't sync(1) the filesystem or fsync(2) the directory
before you cut the power. Hence the change never hit the disk.
> However, when I do that on ext4
> the 'abc' direcory is always created after reboots.
That'll be pure fluke - ext4 delays journal writes on namespace
operations just like XFS does.
> All the
> settings, about mount options are default for my distro. What am I
> missing or how do I change the things of the jounral or whatever?
If you want directory operations to hitthe disk immediately, then
mount with the "-o wsync" option. Be aware, however, that this will
kill performance unless you have expensive storage with a large
amount of battery backed write cache in front of the disks. There's
a good chance it will also cause excessive wear on SSDs due to the
frequent journal writes.
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: XFS syncs
2014-07-03 23:17 ` Dave Chinner
@ 2014-07-04 14:09 ` flux
0 siblings, 0 replies; 4+ messages in thread
From: flux @ 2014-07-04 14:09 UTC (permalink / raw)
To: Dave Chinner; +Cc: xfs
Hello Dave,
Thanks for the explanation and your suggestion to use wsync option.
On 07/04/2014 03:17 AM, Dave Chinner wrote:
> On Thu, Jul 03, 2014 at 10:05:53PM +0400, flux@hotbox.ru wrote:
>> Hi,
>>
>> I issue 'mkdir abc' on my xfs partition the cut off the power. After
>> reboot there's no 'abc' directoy.
>
> Because you didn't sync(1) the filesystem or fsync(2) the directory
> before you cut the power. Hence the change never hit the disk.
>
>> However, when I do that on ext4
>> the 'abc' direcory is always created after reboots.
>
> That'll be pure fluke - ext4 delays journal writes on namespace
> operations just like XFS does.
>
>> All the
>> settings, about mount options are default for my distro. What am I
>> missing or how do I change the things of the jounral or whatever?
>
> If you want directory operations to hitthe disk immediately, then
> mount with the "-o wsync" option. Be aware, however, that this will
> kill performance unless you have expensive storage with a large
> amount of battery backed write cache in front of the disks. There's
> a good chance it will also cause excessive wear on SSDs due to the
> frequent journal writes.
>
> Cheers,
>
> Dave.
>
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-07-04 14:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-03 18:05 XFS syncs flux
2014-07-03 21:33 ` Stan Hoeppner
2014-07-03 23:17 ` Dave Chinner
2014-07-04 14:09 ` flux
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox