Project

General

Profile

action #104826

LVM Snapshot des Root-Volumes lässt sich mit 5er Kerneln nicht mounten, wenn es mit BtrFS formatiert ist.

Added by flacco over 1 year ago. Updated 10 months ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
Bug
Target version:
Start date:
2022-01-12
Due date:
2022-01-31
% Done:

90%

Estimated time:

Description

Der Linux Kernel lässt das mounten nicht zu, da er nicht zwei Mounts eines BtrFS-Dateisystems mit gleicher UUID zulässt.

D.h. vor dem Mount des Snapshots muss dessen UUID geändert werden.

Infos hier: https://unix.stackexchange.com/questions/537029/error-for-mount-system-call-failed-file-exists

History

#1 Updated by flacco 10 months ago

  • % Done changed from 0 to 40

Vor dem Mount des Snapshots muss folgendes durchgeführt werden:

# Dateisystem des Snapshots ermitteln
fs=
lsblk -nf /dev/$svg/$snapshotvolume | tr -s " " | cut -d " " -f2
if [[ $fs == "btrfs" ]]; then
btrfstune -m /dev/$svg/$snapshotvolume
fi
mount /dev/$svg/$snapshotvolume $backupdir

#2 Updated by flacco 10 months ago

  • Status changed from New to In Progress
  • % Done changed from 40 to 90

Job done.

Noch nicht vollständig getestet

Also available in: Atom PDF