Re: Shutdown filesystem when a thin pool become full

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 24/05/2017 09:38, Carlos Maiolino wrote:

If the application don't deal with the I/O errors, and ensure its data is
already written, what difference a RO fs will do? :) the application will send a
write request, the filesystem will deny it (because it is in RO), and the
application will not care :)

Maybe I am wrong, but a read only filesystem guarantee that *no other data modifications* can be done, effectively freezing the volume.

With a full thin pool, XFS will continue to serve writes for already allocated chunks, but will reject writes for unallocated ones. I think this can lead to some inconsistencies, for example:
- this part of a file was updated, that one failed - but nobody noticed;
- a file was copied, but its content was lost due to data writeout failing and no fsyncs (and filemanagers often do *exactly* this);
- having two files, this file was updated, that other failed;
- writing to a file, its size is updated (not only apparent size, but real/allocated one also) but data writeout fails. In this case, reading the file over the unallocated space returns EIO, but you need to *read all data* until EIO to realize that the file has some serious problem.

In all these cases, I feel that a "shutdown the filesystem at the first data writeout problem" command can save the day. Even better would be a "put the filesystem in read only mode".

True, a well bahaved application should issue fsync() and check the I/O errors, but many applications don't do that. Hence I was asking if XFS can be suspended/turned-off.

Maybe I'm rising naive problems - after all, a full filesystem will behave somewhat similarly in at least some cases. However, from linux-lvm mailing list I understand that a full thin pool is *not* comparable to a full filesystem, right?

Thanks.


--
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: g.danti@xxxxxxxxxx - info@xxxxxxxxxx
GPG public key ID: FF5F32A8
--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux