Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Mar 2014 01:45:08 +0400 (MSK)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        mikej <mikej@mikej.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: zfs l2arc warmup
Message-ID:  <alpine.BSF.2.00.1403290141300.60856@woozle.rinet.ru>
In-Reply-To: <33ff828c517307c9681c361a12cff2ee@mail.mikej.com>
References:  <CAFfb-hpi20062%2BHCrSVhey1hVk9TAcOZAWgHSAP93RSov3sx4A@mail.gmail.com> <CALfReydi_29L5tVe1P-aiFnm_0T4JJt72Z1zKouuj8cjHLKhnw@mail.gmail.com> <CAFfb-hpZos5-d3xo8snU1aVER5u=dSFRx-B-oqjFRTkT83w0Kg@mail.gmail.com> <20140328005911.GA30665@neutralgood.org> <CAFfb-hr=wR6nxqL%2B4tn-y2eQEw4n_g7rZoK9rRLnm_Ldcm1TZQ@mail.gmail.com> <alpine.BSF.2.00.1403290032070.60856@woozle.rinet.ru> <CAOjFWZ7h5080%2BzEvSfzxgENwP%2BPXEXKPXdEDHAtbx5RAxxWT0g@mail.gmail.com> <alpine.BSF.2.00.1403290116550.60856@woozle.rinet.ru> <33ff828c517307c9681c361a12cff2ee@mail.mikej.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 28 Mar 2014, mikej wrote:

> > [snip most again]
> > 
> > > Around ZFSv14-ish, the ability to import a pool with a missing ZIL was
> > > added.
> > > 
> > > Remember the flow of data in ZFS:
> > >   async write request --> TXG --> disk
> > >   sync write request --> ZIL
> > >                \--> TXG --> disk
> > > 
> > > All sync writes are written to the pool as part of a normal async TXG
> > > after
> > > its written sync to the ZIL.  And the ZIL is only ever read during pool
> > > import.
> > 
> > On the other side, doesn't it put the risk on sync-dependent, like database,
> > systems?
> > 
> > I'm thinking not about losing the transaction, but possibly putting your
> > filesystem in the middle of (database PoV) transaction, hence render your DB
> > inconsistent?
> > 
> > Quick googling seems to be uncertain about it...
> 
> As I understand it..... (And I am always looking for an education)
> 
> Any files system that honors fsync and provided the DB uses fsync should be
> fine.
> 
> Any data loss then will only be determined by what transaction (log) 
> capabilities the DB has.

And? 

1. The DB issues "sync WAL" request, which is translated to fsync-like FS 
requests, there are (IIUC) should ne directed to ZIL.

2. ZIL is failing in the middle of the request, or, even more bad, after 
reporting that ZIL transaction is done, but before translating ZIL to the 
underlying media

3. inconsistend DB?

I'm in hope I'm wrong somewhere...

-- 
Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer:                                 marck@FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1403290141300.60856>