我无法从另一台虚拟机的启动盘创建的快照启动新实例。在串行端口中,我可以看到以下消息。
/dev/sda1 contains a file system with errors, check forced
我尝试从此快照创建一个新磁盘,并将其作为辅助存储附加到新 VM,然后运行 fsck 命令。这是输出
fsck from util-linux 2.20.1
e2fsck 1.42.9 (4-Feb-2014)
/dev/sdb1 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Inodes that were part of a corrupted orphan linked list found. Fix<y>? yes
Inode 576 was part of the orphaned inode list. FIXED.
Inode 1299 was part of the orphaned inode list. FIXED.
Inode 1990 was part of the orphaned inode list. FIXED.
Inode 6308 was part of the orphaned inode list. FIXED.
Inode 6322 was part of the orphaned inode list. FIXED.
...
Pass 2: Checking directory structure
Entry 'localhost.2016-06-29.log' in /usr/share/apache-tomcat-7.0.59/logs (6816365) has deleted/unused inode 6815859. Clear? yes
Entry 'catalina.2016-06-29.log' in /usr/share/apache-tomcat-7.0.59/logs (6816365) has deleted/unused inode 6815858. Clear? yes
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Unattached zero-length inode 576. Clear? yes
Unattached zero-length inode 1012. Clear? yes
Unattached inode 1299
Connect to /lost+found? yes
Inode 1299 ref count is 65535, should be 1. Fix? yes
Unattached inode 1990
Connect to /lost+found? yes
...
Pass 5: Checking group summary information
Block bitmap differences: -(33413--33415) -(33423--33427) -33429 -(33431--...
Free inodes count wrong for group #832 (7066, counted=7068).
Fix? yes
Free inodes count wrong (32653808, counted=32653867).
Fix? yes
/dev/sdb1: ***** FILE SYSTEM WAS MODIFIED *****
现在我的问题是,我可以继续使用原来的机器吗?我担心如果原来的机器重新启动,它会在启动过程中卡住。如果我想在其上运行 fsck,如何在不停机的情况下进行?这种问题的根本原因是什么?