一、问题描述
如下图,因Centos操作系统的VM虚拟机原增加IDE Disk 2磁盘分区,但是没有在/etc/fstab系统自动启动时新磁盘挂载配置,重启动时后报出“"恢复域出错:Failed to open file /data210202/vm/disk202:No such file or directory"报错问题。
二、解决方法
通过lsblk或fdisk -l查看未挂载磁盘分区信息
[root@raid2t ~]# lsblk@b@NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT@b@loop0 7:0 0 100G 0 loop @b@└─docker-253:2-82444291-pool (dm-3) 253:3 0 100G 0 dm @b@loop1 7:1 0 2G 0 loop @b@└─docker-253:2-82444291-pool (dm-3) 253:3 0 100G 0 dm @b@sda 8:0 0 931.5G 0 disk @b@├─sda1 8:1 0 500M 0 part @b@└─sda2 8:2 0 931G 0 part /data210202@b@sdb 8:16 0 1.8T 0 disk @b@├─sdb1 8:17 0 200M 0 part /boot/efi@b@├─sdb2 8:18 0 500M 0 part /boot@b@└─sdb3 8:19 0 1.8T 0 part @b@ ├─vg_raid2t-lv_root (dm-0) 253:0 0 538.3G 0 lvm /@b@ ├─vg_raid2t-lv_swap (dm-1) 253:1 0 27.2G 0 lvm [SWAP]@b@ └─vg_raid2t-lv_home (dm-2) 253:2 0 1.3T 0 lvm /home
将/dev/sda2分区配置/etc/fstab系统开机自动挂载这块硬盘(可以参考完整配置磁盘扩展页面)
[root@raid2t data210202]# vi /etc/fstab@b@#@b@# /etc/fstab@b@# Created by anaconda on Wed Aug 8 23:39:30 2018@b@#@b@# Accessible filesystems, by reference, are maintained under '/dev/disk'@b@# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info@b@#@b@...@b@/dev/sda2 /data210202 ext4 defaults 0 0