Saturday, February 10, 2018

filesystems - linux file system allowing check while in use?



Is there a file system for linux where it's possible (and safe) to perform a file system check while it's mounted read write or which does not need to be checked periodically ?



E.g. a file system whose check first 'grabs' the entire file system and then releases those parts which have been checked already.




(I'm looking for file systems with capabilities like ext2 or better, i.e. something I could use as a replacement for a root or /home file system on a PC)


Answer




Is there a file system for linux where it's possible (and safe) to perform a file system check while it's mounted read write




Don't run fsck on a mounted file system. fsck on a mounted filesystem can data corruption.




E.g. a file system whose check first 'grabs' the entire file system and then releases those parts which have been checked already.





btrfs:




  • Online filesystem check

  • Very fast offline filesystem check

  • Checksums on data and metadata (multiple algorithms available)


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...