Project

General

Profile

Actions

Feature #46166

closed

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

Added by Patrick Donnelly almost 4 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
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.

Actions

Also available in: Atom PDF