服务器磁盘只读修复过程
服务器的磁盘也没有做监控,其实我也不知道如何对磁盘的状态做监控,突然查看不到新数据,上去看了一下磁盘的情况,发现磁盘出现只读的情况,无法写入数据,要是大家谁知道怎么可以监控磁盘只读的方法,可以告诉我下,来个高达上一些的。
一、处理过程
1、磁盘坏道检查
出现问题之后,首先把业务停掉了,然后把磁盘卸载掉来进行修复,出现这种问题有可能是磁盘的磁道有坏区,我首先检查了一下磁盘坏道的情况。badblocks -sv /dev/sdb 差不多检查了一些时间,发现并没有坏道。
2、修复磁盘文件系统
在修复文件系统的时候发现无法修复,提示Superblock invalid。[root@ad4 ~]# fsck -t ext4 /dev/sdb fsck from util-linux-ng 2.17.2 e2fsck 1.41.12 (17-May-2010) fsck.ext4: Superblock invalid, trying backup blocks... fsck.ext4: Bad magic number in super-block while trying to open /dev/sdb The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device>3、查看文件系统备份Superblock[root@ad4 ~]# mke2fs -n /dev/sdb mke2fs 1.41.12 (17-May-2010) /dev/sdb is entire device, not just one partition! Proceed anyway? (y,n) y Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=1 blocks, Stripe width=0 blocks 122093568 inodes, 488364854 blocks 24418242 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=4294967296 14904 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 102400000, 2149908484、修复文件系统e2fsck -b 214990848 -y /dev/sdb 出现了很多修复的东西,修复了一会
修复好之后,挂载进去目录查看如下
好歹只是丢失了文件夹的名称,剩下的回复交由DBA来进行操作。
- 服务器磁盘只读修复过程
- 安装GI过程中DD清理磁盘头信息后没有重新oracleasm createdisk 导致重启服务器后找不到ASM磁盘
- 文件服务器蓝屏修复全过程分享
- 服务器 磁盘阵列数据恢复案例之:RAID6三块磁盘离线数据恢复过程
- raid数据恢复案例之:服务器Raid5磁盘阵列数据恢复过程
- 服务器RAID磁盘坏道修复实战
- 一次IBM 服务器的磁盘故障更换过程
- 服务器磁盘坏道的修复
- nagios服务器磁盘损坏==修复方法
- Python 监控 DB 服务器信息(cpu, 磁盘,进程,alert log) 脚本
- 大型网站架构演变过程、大并发服务器架构
- VLC搭建RTSP服务器的过程
- vs 或 Sql server2012连接Sql server时出现的问题:已成功与服务器建立连接,但在登陆过程中发生错误
- 无法 连接到SQLEXPRESS 已成功与服务器建立连接,但是在登录过程中发生错误。管道的另一端无任何进程
- innodb index page损坏修复过程
- [转载20131024]Nginx服务器漏洞的利用和修复方法
- SVN服务器安装与配置过程记录
- 天下数据浅谈服务器维护过程中应该注意的问题
- oracle11g ASM磁盘组头部损坏修复(asm修复2)
- 记录阿里云ECS服务器Java开发环境的搭建过程