How to umount and run fsck on a problematic file system of the CA API gateway
search cancel

How to umount and run fsck on a problematic file system of the CA API gateway

book

Article ID: 107550

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

Case description:
When there is any kind of disk I/O problem, mysql or the gateway would not be able to run properly.
fsck command should be helpful, but it requires the file system to be un-mounted.
There is another way to run fsck on all file systems at boot time. This article is for those don't want to run fsck on all file systems, but just umount a mount point, and run fsck on it.

Environment

Component: CA API Gateway

Resolution

Resolution:
Here is an example to umount /tmp and run fsck on it.
Before proceeding,  ensure it's not a problem of file permissions, or disk space running out.
1. shutdown all running processes 
service ssg stop 
service mysql stop 

double check, 
ps -ef|grep java 

kill all the running applications 

2. unmount /tmp 
umount -l /tmp 

3. run fsck on /tmp 
fsck /tmp 

4. Mount /tmp again.
mount /tmp