前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >服务器重启后Re-reading the partition table failed with error 22

服务器重启后Re-reading the partition table failed with error 22

作者头像
BinGo_Blog
发布2022-11-01 16:35:29
9080
发布2022-11-01 16:35:29
举报
文章被收录于专栏:BinGo's BlogBinGo's Blog
概述

由于机房异常停电,导致服务器启动后系统分区异常。无法识别之前挂载的磁盘分区,并且无法使用fdisk命令重置分区。

代码语言:javascript
复制
[root@db2 ~]# cat /etc/fstab
/dev/mapper/data10p1    /data                    ext4    defaults       0 0
[root@db2 ~]# ll /dev/mapper/data10
lrwxrwxrwx 1 root root 8 9月   6 17:37 /dev/mapper/data10 -> ../dm-16
[root@db2 ~]# fdisk /dev/mapper/data10

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: 无效的参数.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
处理办法

使用partprobe命令重读分区表

代码语言:javascript
复制
[root@db2 ~]# partprobe /dev/mapper/data10
[root@db2 ~]# ll /dev/mapper/data10*
lrwxrwxrwx 1 root root 8 9月   6 17:37 /dev/mapper/data10 -> ../dm-16
lrwxrwxrwx 1 root root 8 10月 29 15:39 /dev/mapper/data10p1 -> ../dm-17
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 概述
  • 处理办法
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档