Friday, December 9, 2016

filesystems - Can I repair a file system with fscheck while it's mounted?

On a openvz hostnode some vps didn't shut down properly. There is no separate partition for /vz, they run in root.
When restarting a vps OR copying a big file vz-dump (ca. 28GB) from one folder to another, the server freezes and is not reachable via ssh anymore. Maybe due to a corruption in the file system?



Do I need to boot into recovery mode without mounting the root file system to perform fschk?
What do you suggest?



[root@CentOS-60-64-minimal log]# fdisk -l




Disk /dev/sda: 1499.2 GB, 1499212021760 bytes
64 heads, 32 sectors/track, 1429760 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001d8c4



Device Boot Start End Blocks Id System
/dev/sda1 2 2048 2096128 82 Linux swap / Solaris
/dev/sda2 2049 2560 524288 83 Linux

/dev/sda3 2561 1429760 1461452800 83 Linux

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...