[SOLVED] Input/output error when trying to access mountpoint - RHEL7/CentOS7

[SOLVED] Input/output error when trying to access mountpoint RHEL7/CentOS7.

[SOLVED] Input/Output Errors During XFS Filesystem Access In RHEL7/CentOS7.

This is due to accessible error for the mount point.

Solution:

Note: Please take a image level/snapshot backup before performing the steps.

Step-1: Check the "/var/log/messages" for error
No error

Step-2: Unmount the mounted directory and mount it again.

Command:
# umount </mount-point>
# mount <target>  /mount-point

Example:
# umount /mount-point
# mount  /dev/sdb1   /mount-point

Step-3: If still not working, reboot the server.

# init 6

With Error:

Check the "/var/log/messages" for error
Jan 01 01:54:55 xxxxxxxx kernel: [<ffffffffc0489a78>] xfs_droplink+0x28/0x60 [xfs]
Jan 01 01:54:55 xxxxxxxx kernel: [<ffffffffc048c6cd>] xfs_remove+0x20d/0x310 [xfs]
Jan 01 01:54:55 xxxxxxxx kernel: [<ffffffffc0487897>] xfs_vn_unlink+0x57/0xa0 [xfs]
Jan 01 01:54:55 xxxxxxxx kernel: XFS (dm-2): Internal error xfs_trans_cancel at line 993 of file fs/xfs/xfs_trans.c.  Caller xfs_remove+0x1b8/0x310 [xfs]
Jan 01 01:54:55 xxxxxxxx kernel: [<ffffffffc047a59b>] xfs_error_report+0x3b/0x40 [xfs]
Jan 01 01:54:55 xxxxxxxx kernel: [<ffffffffc048c678>] ? xfs_remove+0x1b8/0x310 [xfs]
Jan 01 01:54:55 xxxxxxxx kernel: [<ffffffffc04972ed>] xfs_trans_cancel+0xbd/0xe0 [xfs]
Jan 01 01:54:55 xxxxxxxx kernel: [<ffffffffc048c678>] xfs_remove+0x1b8/0x310 [xfs]
Jan 01 01:54:55 xxxxxxxx kernel: [<ffffffffc0487897>] xfs_vn_unlink+0x57/0xa0 [xfs]
Jan 01 01:54:55 xxxxxxxx kernel: XFS (dm-2): xfs_do_force_shutdown(0x8) called from line 994 of file fs/xfs/xfs_trans.c.  Return address = ffffffffc0497306
Jan 01 01:54:55 xxxxxxxx kernel: XFS (dm-2): Corruption of in-memory data detected.  Shutting down filesystem
Jan 01 01:54:55 xxxxxxxx kernel: XFS (dm-2): Please umount the filesystem and rectify the problem(s)

Step-1:
1. Umount the File system.

# umount </Mount Point>

2. Run the XFS Repair on the affected file system.

 # xfs_repair -v /dev/device 2>&1  | tee /tmp/xfs_repair.out                   [replacing /dev/device per the proper device]


If repair failed then check the "/tmp/xfs_repair.out" file for more input.

Note: Running xfs_repair will cause loss of data so it is mandatory to have a running filesystem backup. If there is old backup and current backup is failed due to corruption, backup can be restored from the last healthy backup and data might be lost for current day changes.

So take snapshot backup and repair file system.

Step-2:
Reboot the server

# init 6

Mount and check

# mount <target>  </mount-point>
# ls /mount-point





Comments

Popular posts from this blog

How to install glibc 2.14 on RHEL 6/ RHEL 7/ CentOS 7

Export and Import users/groups and OU in AD Server 2008 using LDIFDE command.

How to Set Up and Configure latest yum repository on CentOS