全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
123
返回列表 发新帖
楼主: ultramancliub

[疑问] debian文件系统变成只读了…Read-only file system

[复制链接]
 楼主| 发表于 2022-8-12 16:01:56 | 显示全部楼层
sdqu 发表于 2022-8-12 15:56
最好是在单用户模式下执行fsck,正常模式下文件系统直接挂掉,我干过这蠢事。不过已经ro了也许可以,不是 ...

嗯,HZ的AX101物理服务器,有上周的数据备份,近3周没有进行过网站数据更新。
发表于 2022-8-12 16:04:57 | 显示全部楼层
ultramancliub 发表于 2022-8-12 16:01
嗯,HZ的AX101物理服务器,有上周的数据备份,近3周没有进行过网站数据更新。 ...

那就先ro的情况下备好份,然后申请kvm进去修,或者直接重装。文件系统出问题和硬盘有坏道一样,就算修好了,心里也有疙瘩。
 楼主| 发表于 2022-8-13 18:59:43 | 显示全部楼层
sdqu 发表于 2022-8-12 16:04
那就先ro的情况下备好份,然后申请kvm进去修,或者直接重装。文件系统出问题和硬盘有坏道一样,就算修好 ...
  1. fsck -y /dev/md2
  2. fsck from util-linux 2.33.1
  3. e2fsck 1.44.5 (15-Dec-2018)
  4. /dev/md2 contains a file system with errors, check forced.
  5. Pass 1: Checking inodes, blocks, and sizes
  6. Inodes that were part of a corrupted orphan linked list found.  Fix? yes

  7. Inode 38207491 was part of the orphaned inode list.  FIXED.
  8. Inode 38207492 was part of the orphaned inode list.  FIXED.
  9. Inode 38207493 was part of the orphaned inode list.  FIXED.
  10. Inode 38207494 was part of the orphaned inode list.  FIXED.
  11. Inode 38207495 was part of the orphaned inode list.  FIXED.
  12. Inode 38207496 was part of the orphaned inode list.  FIXED.
  13. Inode 38207497 was part of the orphaned inode list.  FIXED.
  14. Inode 66977981 was part of the orphaned inode list.  FIXED.
  15. Pass 2: Checking directory structure
  16. Pass 3: Checking directory connectivity
  17. Pass 4: Checking reference counts
  18. Pass 5: Checking group summary information
  19. Block bitmap differences:  -272703720 -272704090 -273208010 -(273711520--273711535) -273718089 -273731985 -274641818 -(276865984--276865999) -(305702159--305702161) -307003252 -535873457 -535891462 -(799060000--799060004)
  20. Fix? yes

  21. Free blocks count wrong for group #8322 (22302, counted=22304).
  22. Fix? yes

  23. Free blocks count wrong for group #8337 (29714, counted=29715).
  24. Fix? yes

  25. Free blocks count wrong for group #8353 (30875, counted=30893).
  26. Fix? yes

  27. Free blocks count wrong for group #8381 (1832, counted=1833).
  28. Fix? yes

  29. Free blocks count wrong for group #8449 (13551, counted=13567).
  30. Fix? yes

  31. Free blocks count wrong for group #9329 (9397, counted=9400).
  32. Fix? yes

  33. Free blocks count wrong for group #9368 (511, counted=512).
  34. Fix? yes

  35. Free blocks count wrong for group #16353 (14918, counted=14919).
  36. Fix? yes

  37. Free blocks count wrong for group #16354 (12740, counted=12741).
  38. Fix? yes

  39. Free blocks count wrong for group #24385 (21575, counted=21580).
  40. Fix? yes

  41. Free blocks count wrong (1456744708, counted=1456744757).
  42. Fix? yes

  43. Inode bitmap differences:  -(38207490--38207497) -66977981
  44. Fix? yes

  45. Free inodes count wrong for group #9328 (4074, counted=4082).
  46. Fix? yes

  47. Free inodes count wrong for group #16352 (90, counted=91).
  48. Fix? yes

  49. Free inodes count wrong (234070322, counted=234070331).
  50. Fix? yes


  51. /dev/md2: ***** FILE SYSTEM WAS MODIFIED *****
  52. /dev/md2: ***** REBOOT SYSTEM *****
  53. /dev/md2: 179909/234250240 files (0.6% non-contiguous), 417246411/1873991168 blocks
  54. root@:~# mount -o rw /dev/md2 /
  55. mount: /: /dev/md2 already mounted on /.
复制代码


最后在无法卸载分区的情况下执行磁盘修复命令解决问题。
发表于 2022-8-13 19:02:33 | 显示全部楼层
ultramancliub 发表于 2022-8-13 18:59
最后在无法卸载分区的情况下执行磁盘修复命令解决问题。

搞定就好
应该是因为是在ro模式下,所以fsck成功了。
 楼主| 发表于 2022-8-14 01:34:44 | 显示全部楼层
sdqu 发表于 2022-8-13 19:02
搞定就好
应该是因为是在ro模式下,所以fsck成功了。

谢谢各位小伙伴们的友情协助。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-5-15 07:43 , Processed in 0.057233 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表