Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1237401
  • 博文数量: 220
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1769
  • 用 户 组: 普通用户
  • 注册时间: 2015-03-13 16:19
个人简介

努力, 努力, 再努力

文章分类

全部博文(220)

文章存档

2018年(8)

2017年(46)

2016年(75)

2015年(92)

我的朋友

分类: 服务器与存储

2015-05-26 09:25:50

 

 

 

估计是两边一起挂盘,导致/dev/sdb1文件索引被覆盖,

210.76.211.64 上发现mysql总是启动失败, 挂载到210.76.211.88 mysql也失败

最终导致mysq无法启动

 

fsck.ext4/dev/sdb1进行扫描检查,虽修复,但数据库无法启动

必须在操作时,避免两边同时挂,用脚本避免

[root@localhost ~]# fsck.ext4 /dev/sdb1

e2fsck 1.41.12 (17-May-2010)

/dev/sdb1 is mounted.

e2fsck: 无法继续, 中止.

 

[root@localhost ~]# umount /dev/sdb1

[root@localhost ~]# fsck.ext4 /dev/sdb1

e2fsck 1.41.12 (17-May-2010)

/dev/sdb1 contains a file system with errors, 强制检查.

第一步: 检查inode,,和大小

 

Running additional passes to resolve s claimed by more than one inode...

Pass 1B: Rescanning for multiply-claimed s

Multiply-claimed (s) in inode 2883617: 34065 34065

Pass 1C: Scanning directories for inodes with multiply-claimed s

Pass 1D: Reconciling multiply-claimed s

(There are 1 inodes containing multiply-claimed s.)

 

File /mysql/localhost.localdomain.err (inode #2883617, mod time Mon May 25 19:22:14 2015)

  has 2 multiply-claimed (s), shared with 0 file(s):

Clone multiply-claimed blocks?

 

第二步: 检查目录结构

入口 'mysql-relay-bin.000024' in /mysql (2883585) has 删除/unused inode 2883811.  清除?

3: 检查目录连接性

/lost+found未找到.创建?

Pass 4: Checking reference counts

5: 检查簇概要信息

块位图差异:  -(34304--34321) -11578881 -11578883

处理?

Free s count wrong for #0 (23516, counted=23515).

处理?

Free s count wrong for #1 (741, counted=759).

处理?

Free s count wrong for #353 (26461, counted=26462).

处理?

Free s count wrong (24426642, counted=24426660).

处理?

Inode位图差异:  -2883811

处理?

Free inodes count wrong for #352 (7948, counted=7949).

处理?

Free inodes count wrong (6553345, counted=6553346).

处理?


/dev/sdb1: ***** 文件系统已修改 *****

/dev/sdb1: 254/6553600 files (2.0% non-contiguous), 1787395/26214055 blocks

阅读(6156) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~