集群硬盘故障更换,更换硬盘后挂载不成功:

过程如下:

1.更换新数据盘,fdisk或lsblk查看磁盘已识别到/dev/sda

2.查看uuid不存在

格式化磁盘:mkfs.ext4 /dev/sda

blkid查看uuid已有

3.mount挂载硬盘

mount  /dev/sda  /data1

执行挂载命令无报错,df -h 查看无/data1 

4.解决过程

检查系统日志/var/log/messages 发现相关异常信息如下:

systemd: Unit data4.mount is bound to inactive unit dev-disk-by\x2duuid-32ae8f30\x2d1992\x2d488c\x2da811\x2d078385a40b31.device. Stopping, too

解决措施:

执行命令加载daemon-reload

systemctl daemon-reload

再次挂载硬盘

mount  /dev/sda  /data1

查看磁盘挂载OK

Logo

更多推荐