jeesshnasree
Flight Engineer
Flight Engineer
  • 9,959 Views

what are the Linux file system corruption causes

Jump to solution

Hi All,

 

Below issue is  happend rare case  on Linux OS reboot .

after reboot the Linux OS , then Ffile systems are corrupted (issue).


1) any command for caputure file systems mount  point report -( OS restart before )

2) how to verify file systems health check ( after restart OS ) . Kindly share 

0 Kudos
2 Solutions

Accepted Solutions
williamwlk
Flight Engineer Flight Engineer
Flight Engineer
  • 9,950 Views

Re: what are the Linux file system corruption causes

Jump to solution

Hi @jeesshnasree

Since <quote> the file system was corrupted upon reboot </unquote>, my wild but educated guess (coz of lack of technical details) is that

1) your mounted file system did not get unmounted gracefully upon shutdown

1.1) a bad software or utility has messed up the FAT at MBR or equivalent.

1.2) Your system was too busy and I/O itensive but not optimized for such environment. 

2) your restart procedure could not or did not check (and repair) the file system with inconsistencies before mouting it though found corrupted

3) your system has got a deeper hardware error such as bad blocks on the HDD or more weird hardware ones (such as hdd controller or bad memory) 

4) last but not least, a bug in the kernel's FS Module.

And here we go the answers to your questions:


1) any command for caputure file systems mount point report -( OS restart before )

> df -hT, mount, dmesg, lsblk -f

2) how to verify file systems health check ( after restart OS ) . Kindly share

 > fsck, xfs_repair

But I really wonder what kind of file system are we talking about? ext2/3/4, xfs, etc. etc?

Cheers.
Will

View solution in original post

Reply
Loading...
williamwlk
Flight Engineer Flight Engineer
Flight Engineer
  • 9,940 Views

Re: what are the Linux file system corruption causes

Jump to solution

Hi @jeesshnasree

Very glad we could be of help and gladder you found the support helpful.

Additionally, I'd like to point out a couple of things regardig the rare but very critical file system corruption case.

Though any linux compatible modern file systems are quite versatile and resilient, there are trade offs between performance and consistency and they can depending on the situation be found inconsistant or corrupted.

And further more, when you do fsck or xfs_repair, the safest way is to do so on an UNmounted file system. As such, you will sometimes have to deal with rescue or emergency targets aka single user or maintenance mode.. And you might even need to boot from a bootalbe dvd/usb or iso before safely working on or recovering the corrupted file systems.

And then, what if the file systems are beyound repair?

Then, you have no choice but to mkfs.* (aka to format) again provided you have a full back of the file systems. 

Have fun with the studies.

Cheers.
Will 

 

 

View solution in original post

Reply
Loading...
5 Replies
williamwlk
Flight Engineer Flight Engineer
Flight Engineer
  • 9,951 Views

Re: what are the Linux file system corruption causes

Jump to solution

Hi @jeesshnasree

Since <quote> the file system was corrupted upon reboot </unquote>, my wild but educated guess (coz of lack of technical details) is that

1) your mounted file system did not get unmounted gracefully upon shutdown

1.1) a bad software or utility has messed up the FAT at MBR or equivalent.

1.2) Your system was too busy and I/O itensive but not optimized for such environment. 

2) your restart procedure could not or did not check (and repair) the file system with inconsistencies before mouting it though found corrupted

3) your system has got a deeper hardware error such as bad blocks on the HDD or more weird hardware ones (such as hdd controller or bad memory) 

4) last but not least, a bug in the kernel's FS Module.

And here we go the answers to your questions:


1) any command for caputure file systems mount point report -( OS restart before )

> df -hT, mount, dmesg, lsblk -f

2) how to verify file systems health check ( after restart OS ) . Kindly share

 > fsck, xfs_repair

But I really wonder what kind of file system are we talking about? ext2/3/4, xfs, etc. etc?

Cheers.
Will

View solution in original post

Reply
Loading...
jeesshnasree
Flight Engineer
Flight Engineer
  • 9,945 Views

Re: what are the Linux file system corruption causes

Jump to solution

Hi @williamwlk,

 

Thanks @williamwlk      for share your valuable information. Actually above issue is rare but if know  the neeceary steps then I can handle that the situation ( if it araise) .

0 Kudos
Reply
Loading...
jeesshnasree
Flight Engineer
Flight Engineer
  • 9,944 Views

Re: what are the Linux file system corruption causes

Jump to solution

Hi All,

 

i am getting prompt responses with solutions , compared to raise the case ticket . Actually I am using for RHLS for for personal interest.  Finally I am very happy 😊 , learning knowledge from this community.  I think it’s best platform for learning. Once again thanks . 

Reply
Loading...
williamwlk
Flight Engineer Flight Engineer
Flight Engineer
  • 9,941 Views

Re: what are the Linux file system corruption causes

Jump to solution

Hi @jeesshnasree

Very glad we could be of help and gladder you found the support helpful.

Additionally, I'd like to point out a couple of things regardig the rare but very critical file system corruption case.

Though any linux compatible modern file systems are quite versatile and resilient, there are trade offs between performance and consistency and they can depending on the situation be found inconsistant or corrupted.

And further more, when you do fsck or xfs_repair, the safest way is to do so on an UNmounted file system. As such, you will sometimes have to deal with rescue or emergency targets aka single user or maintenance mode.. And you might even need to boot from a bootalbe dvd/usb or iso before safely working on or recovering the corrupted file systems.

And then, what if the file systems are beyound repair?

Then, you have no choice but to mkfs.* (aka to format) again provided you have a full back of the file systems. 

Have fun with the studies.

Cheers.
Will 

 

 

View solution in original post

Reply
Loading...
JG_Kootstra
Flight Engineer Flight Engineer
Flight Engineer
  • 9,872 Views

Re: what are the Linux file system corruption causes

Jump to solution

@jeesshnasree      

Another resource to get valuable information and quick responses on most questions is the Discussion Forum of the Customer Portal.

Regards,

Jan Gerrit Kootstra
Reply
Loading...
Join the discussion
You must log in to join this conversation.