[OpenAFS] Advice on using BTRFS for vicep partitions on Linux

Jeffrey E Altman jaltman@auristor.com
Wed, 22 Mar 2023 16:25:17 -0400


This is a cryptographically signed message in MIME format.

--------------ms010505010606050509090508
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

On 3/22/2023 3:47 PM, spacefrogg-openafs@spacefrogg.net wrote:
>> OpenAFS does not maintain checksums.  Checksums are neither transmitted in
>> the RXAFS_FetchData and RXAFS_StoreData RPCs messages nor are checksums
>> stored and compared when reading and writing to the vice partition.
> Thanks for clearing this up. So, volume inconsistencies are just detected on the metadata level?

The salvager can update Volume metadata to be consistent with what is 
stored in the vice partition, it can attach orphaned vnodes, it can 
remove directory entries for missing vnodes, it can correct vnode size 
information,  it can rebuild directories, and a few other things.   
However, there is no ability to repair a damaged block or restore a 
missing vnode.

btrfs and zfs have benefits in being able to recover from damaged disk 
sectors by maintaining multiple copies of each data block (if that 
functionality is configured.)   However, they each have downsides as 
well.   Both require vasts sums of memory compared to other file 
systems.   Both have very inconsistent performance characteristics 
especially as free space falls below 40% and as memory pressure 
increases.   Both can fail under memory pressure or when their storage 
volumes are full.

AuriStor recommends that AuriStorFS vice partitions be deployed using 
xfs.   There are severalFS AuriStor end users that build xfs filesystems 
on zfs exported block devices when zfs is desired for additional 
reliability.

If zfs is going to be installed on Linux I recommend using a Linux 
distribution that packages zfs to ensure that an incompatible kernel 
update is never issued.  I have observed sites lose vice partitions 
hosted using zfs of rhel because of subtle kernel incompatibilities.  A 
risk with all out-of-tree filesystems that are not tested against every 
released kernel version but especially with out-of-tree non-GPL filesystems.

Jeffrey Altman




--------------ms010505010606050509090508
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC
DHEwggXSMIIEuqADAgECAhBA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