LVM snapshot changed state to Invalid and should be removed
This document (000019858) is provided subject to the disclaimer at the end of this document.
SUSE Linux Enterprise Server 12
Errors seen in messages logs:
kernel: Buffer I/O error on dev dm-X, logical block X, async page read
lvm: Monitoring snapshot osvolgrp-rootsnapshot.
lvm: WARNING: Snapshot osvolgrp-rootsnapshot is now 80.48% full.
lvm: WARNING: Snapshot osvolgrp-rootsnapshot is now 85.11% full.
lvm: WARNING: Snapshot osvolgrp-rootsnapshot is now 94.02% full.
lvm: WARNING: Snapshot osvolgrp-rootsnapshot is now 95.08% full.
kernel: [ 8406.332418] device-mapper: snapshots: Invalidating snapshot: Unable to allocate exception.
lvm: WARNING: Snapshot osvolgrp-rootsnapshot changed state to: Invalid and should be removed.
lvm: No longer monitoring snapshot osvolgrp-rootsnapshot.
Also the state seen with the "lvs" command shows an "I" in the Attribute column for "Invalid":
lvs LV VG Attr LSize Pool Origin Data% rootsnapshot osvolgrp swi-I-s--- 2.00g rootlv 100.00 rootlv osvolgrp owi-aos--- 36.00g
"When the snapshot is full, it is disabled, which prevents you from remounting the source logical volume."
Remove the LV snapshot with:
lvremove osvolgrp/rootsnapshot lvremove /dev/osvolgrp/rootsnapshot
By default, this is disabled on SLES.
# Configuration option activation/snapshot_autoextend_threshold. # Auto-extend a snapshot when its usage exceeds this percent. # Setting this to 100 disables automatic extension. # The minimum value is 50 (a smaller value is treated as 50.) # Also see snapshot_autoextend_percent. # Automatic extension requires dmeventd to be monitoring the LV. # Example # Using 70% autoextend threshold and 20% autoextend size, when a 1G # snapshot exceeds 700M, it is extended to 1.2G, and when it exceeds # 840M, it is extended to 1.44G: # snapshot_autoextend_threshold = 70 # snapshot_autoextend_threshold = 100
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000019858
- Creation Date: 05-Feb-2021
- Modified Date:05-Feb-2021
- SUSE Linux Enterprise High Availability Extension
- SUSE Linux Enterprise Server
- SUSE Linux Enterprise Server for SAP Applications
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com