Skip to contentSkip to conversation

What is XFS/filesystem corruption and whose fault is it?

DISCUSSION Nathan Cutler 5 participants 6 messages Nov 25, 2016 – Dec 1, 2016

lore
Share & tools
lore
#1 lore raw

I think writeback should not be a problem if barrier is enabled.

you can loose last x seconds of writes, but fs should not break.

Also for ssd drives, you need supercapacitor (generally present in all enterprise ssd), to not loose datas in ssd memory buffer

----- Mail original -----
De: "Nathan Cutler" <[email protected]>
À: "ceph-devel" <[email protected]>
Envoyé: Vendredi 25 Novembre 2016 17:26:07
Objet: What is XFS/filesystem corruption and whose fault is it?

I've been doing some research on OSDs not starting after power outages, when supposedly "uncorruptible" XFS filesystems are corrupted and need repair. This led me to write the following brief blog post:

http://smithfarm-thebrain.blogspot.cz/2016/11/what-is-xfsfilesystem-corruption-and.html

Any comments and/or suggestions for improvement would be most welcome.

Thanks for reading!

Nathan

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] 
More majordomo info at http://vger.kernel.org/majordomo-info.html 
#2 lore raw
Quoted 3 lines · Alexandre DERUMIER

I think writeback should not be a problem if barrier is enabled.

you can loose last x seconds of writes, but fs should not break.

That might work for XFS but it won't work for the wider Ceph cluster — it's against the RADOS guarantees and expectations for an OSD to go back in time after committing an update and *can* result in failure. -Greg

Quoted 31 lines

Also for ssd drives, you need supercapacitor (generally present in all enterprise ssd), to not loose datas in ssd memory buffer

----- Mail original -----
De: "Nathan Cutler" <[email protected]>
À: "ceph-devel" <[email protected]>
Envoyé: Vendredi 25 Novembre 2016 17:26:07
Objet: What is XFS/filesystem corruption and whose fault is it?

I've been doing some research on OSDs not starting after power outages, when supposedly "uncorruptible" XFS filesystems are corrupted and need repair. This led me to write the following brief blog post:

http://smithfarm-thebrain.blogspot.cz/2016/11/what-is-xfsfilesystem-corruption-and.html

Any comments and/or suggestions for improvement would be most welcome.

Thanks for reading!

Nathan
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to Nathan Cutler

We lost a whole cluster once due to incorrect write cache settings on multiple OSDs.

I think the recommendations on that page are correct, but I would also add that you must disable any write caching on the drive itself as well.

The XFS FAQ is the best place I've found that explains all the ins and outs (Q24 thru Q28):

http://xfs.org/index.php/XFS_FAQ <http://xfs.org/index.php/XFS_FAQ>

-- Dan

Quoted 15 lines · Nathan Cutler

I've been doing some research on OSDs not starting after power outages, when supposedly "uncorruptible" XFS filesystems are corrupted and need repair. This led me to write the following brief blog post:

http://smithfarm-thebrain.blogspot.cz/2016/11/what-is-xfsfilesystem-corruption-and.html

Any comments and/or suggestions for improvement would be most welcome.

Thanks for reading!

Nathan
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 4 lines
Quoted 4 lines

That might work for XFS but it won't work for the wider Ceph cluster — it's against the RADOS guarantees and expectations for an OSD to go back in time after committing an update and *can* result in failure. -Greg

But we have osd journals (sync writes) and it should replay on failure ?

----- Mail original -----
De: "Dan Jakubiec" <[email protected]>
À: "Nathan Cutler" <[email protected]>
Cc: "ceph-devel" <[email protected]>
Envoyé: Jeudi 1 Décembre 2016 17:04:32
Objet: Re: What is XFS/filesystem corruption and whose fault is it?

We lost a whole cluster once due to incorrect write cache settings on multiple OSDs.

I think the recommendations on that page are correct, but I would also add that you must disable any write caching on the drive itself as well.

The XFS FAQ is the best place I've found that explains all the ins and outs (Q24 thru Q28):

http://xfs.org/index.php/XFS_FAQ <http://xfs.org/index.php/XFS_FAQ>

-- Dan

Quoted 15 lines · Nathan Cutler

I've been doing some research on OSDs not starting after power outages, when supposedly "uncorruptible" XFS filesystems are corrupted and need repair. This led me to write the following brief blog post:

http://smithfarm-thebrain.blogspot.cz/2016/11/what-is-xfsfilesystem-corruption-and.html

Any comments and/or suggestions for improvement would be most welcome.

Thanks for reading!

Nathan

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] 
More majordomo info at http://vger.kernel.org/majordomo-info.html 
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] 
More majordomo info at http://vger.kernel.org/majordomo-info.html 
#5 lore raw
Quoted 5 lines · Alexandre DERUMIER
Quoted 4 lines
Quoted 4 lines

That might work for XFS but it won't work for the wider Ceph cluster — it's against the RADOS guarantees and expectations for an OSD to go back in time after committing an update and *can* result in failure. -Greg

But we have osd journals (sync writes) and it should replay on failure ?

if data gets to xfs it means it was flushed from the journal and Ceph thinks that data is safe on filesystem, so it is very likely that this data will not be present in journals anymore

Quoted 33 lines

----- Mail original -----
De: "Dan Jakubiec" <[email protected]>
À: "Nathan Cutler" <[email protected]>
Cc: "ceph-devel" <[email protected]>
Envoyé: Jeudi 1 Décembre 2016 17:04:32
Objet: Re: What is XFS/filesystem corruption and whose fault is it?

We lost a whole cluster once due to incorrect write cache settings on multiple OSDs.

I think the recommendations on that page are correct, but I would also add that you must disable any write caching on the drive itself as well.

The XFS FAQ is the best place I've found that explains all the ins and outs (Q24 thru Q28):

http://xfs.org/index.php/XFS_FAQ <http://xfs.org/index.php/XFS_FAQ>

-- Dan

Quoted 15 lines · Nathan Cutler

I've been doing some research on OSDs not starting after power outages, when supposedly "uncorruptible" XFS filesystems are corrupted and need repair. This led me to write the following brief blog post:

http://smithfarm-thebrain.blogspot.cz/2016/11/what-is-xfsfilesystem-corruption-and.html

Any comments and/or suggestions for improvement would be most welcome.

Thanks for reading!

Nathan

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html