Project

General

Profile

Feature #46166

mds: store symlink target as xattr in data pool inode for disaster recovery

Added by Patrick Donnelly 10 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
fsck/damage handling
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
MDS
Labels (FS):
scrub
Pull request ID:

Description

Currently, the MDS only stores the symlink inode's backtrace information in the data pool. During disaster recovery of the metadata pool, e.g. by:

https://docs.ceph.com/docs/luminous/cephfs/disaster-recovery/#using-an-alternate-metadata-pool-for-recovery

The symlinks are recreated as regular files. Store the symlink target in the inode for recovery.

Also, fix cephfs-data-scan to restore symlinks using this information.

History

#1 Updated by Patrick Donnelly 3 months ago

  • Target version changed from v16.0.0 to v17.0.0

Also available in: Atom PDF