mount lvm snapshot failed when filesystem recovery is required

Bug #1874421 reported by hao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Backup/Restore and DR (Freezer)
In Progress
Undecided
hao

Bug Description

Freezer-agent backup with lvm snapshot will fail if the xfs filesystem in the snapshot need recovery.

- reproduce steps
# freezer-agent --debug --snapshot mysql_lv --lvm-srcvol /dev/cl/var --lvm-volgroup cl --path-to-backup /var/lib/mysql --mysql-conf /root/.freezer/freezer-mysql.conf --storage swift --container freezer_mysql-backup-prod --mode mysql --backup-name mysql-test8 --exclude "\*.lock"

Critical Error: lvm snapshot mounting error: mount: cannot mount /dev/mapper/cl-freezer_backup_snap_32bfc5352ebf4b56a21448582822b3af read-only

- dmesg details
# dmesg |tail
[11154.739393] XFS (dm-14): Mounting V5 Filesystem
[11154.771596] XFS (dm-14): recovery required on read-only device.
[11154.771600] XFS (dm-14): write access unavailable, cannot proceed.
[11154.771602] XFS (dm-14): log mount/recovery failed: error -30
[11154.771646] XFS (dm-14): log mount failed

hao (dhs007)
Changed in freezer:
assignee: nobody → hao (dhs007)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to freezer (master)

Fix proposed to branch: master
Review: https://review.opendev.org/722361

Changed in freezer:
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.