How to check the gfs2 file system is clean or contain errors before running fsck
Issue
There is a filesystem error in GFS2 with withdraw message and need to know whether the filesystem is clean before it can be recovered from corruption
Following messages were seen in the syslog:
Feb 16 06:30:11 lppra01a0246 kernel: GFS2: fsid=lppra01v0246:gfs2varetllock.0: about to withdraw this file system
Feb 16 06:30:11 lppra01a0246 kernel: GFS2: fsid=lppra01v0246:gfs2varetllock.0: telling LM to unmount
Feb 16 06:30:11 lppra01a0246 kernel: GFS2: fsid=lppra01v0246:gfs2varetllock.0: withdrawn
Feb 16 06:30:11 lppra01a0246 kernel: CPU: 4 PID: 4514 Comm: gzip Kdump: loaded Tainted: P OE ------------ 3.10.0-1160.11.1.el7.x86_64 #1
Feb 16 06:30:11 lppra01a0246 kernel: Hardware name: HP ProLiant DL380 Gen9/ProLiant DL380 Gen9, BIOS P89 10/21/2019
Feb 16 06:30:11 lppra01a0246 kernel: Call Trace:
Feb 16 06:30:11 lppra01a0246 kernel: [<ffffffffb1b80faa>] dump_stack+0x19/0x1b
Feb 16 06:30:11 lppra01a0246 kernel: [<ffffffffc0ef33d6>] gfs2_lm_withdraw+0x146/0x180 [gfs2]
Feb 16 06:30:11 lppra01a0246 kernel: [<ffffffffc0ef362a>] gfs2_consist_inode_i+0x5a/0x60 [gfs2]
Feb 16 06:30:11 lppra01a0246 kernel: [<ffffffffc0eeeb4b>] gfs2_dinode_dealloc+0x12b/0x1e0 [gfs2]
Feb 16 06:30:11 lppra01a0246 kernel: [<ffffffffc0eef8da>] gfs2_evict_inode+0x48a/0x660 [gfs2]
Feb 16 06:30:11 lppra01a0246 kernel: [<ffffffffc0eef61b>] ? gfs2_evict_inode+0x1cb/0x660 [gfs2]
Feb 16 06:30:11 lppra01a0246 kernel: [<ffffffffb166c324>] evict+0xb4/0x180
Feb 16 06:30:11 lppra01a0246 kernel: [<ffffffffb166c75c>] iput+0xfc/0x190
Feb 16 06:30:11 lppra01a0246 kernel: [<ffffffffb166052e>] do_unlinkat+0x1ae/0x2d0
Feb 16 06:30:11 lppra01a0246 kernel: [<ffffffffc0cf1d94>] ? vmsyspro_access_ext+0x74/0x1f0 [secfs2]
Feb 16 06:30:11 lppra01a0246 kernel: [<ffffffffb16615d0>] ? SyS_unlinkat+0x40/0x40
Feb 16 06:30:11 lppra01a0246 kernel: [<ffffffffb16615e6>] SyS_unlink+0x16/0x20
Feb 16 06:30:11 lppra01a0246 kernel: [<ffffffffc0caf629>] m_sys_unlink+0xc9/0x130 [secfs2]
Feb 16 06:30:11 lppra01a0246 kernel: [<ffffffffb1b93f92>] system_call_fastpath+0x25/0x2a
Feb 16 06:30:11 lppra01a0246 kernel: GFS2: fsid=lppra01v0246:gfs2varetllock.0: gfs2_evict_inode: -5
Environment
- Red Hat Enterprise Linux (RHEL) 5, 6, or 7 with the Resilient Storage Add On
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.