出现的问题
对服务器进行升级重启后,发现原来挂载磁盘的路劲内容为空
排查过程
a. 您好,您是重启后磁盘没有挂载吗?您使用df -h
和fdisk -l
命令这边看下
➜ /www df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 40G 2.7G 35G 7% /
devtmpfs 12G 0 12G 0% /dev
tmpfs 12G 0 12G 0% /dev/shm
tmpfs 12G 504K 12G 1% /run
tmpfs 12G 0 12G 0% /sys/fs/cgroup
tmpfs 2.4G 0 2.4G 0% /run/user/1003
➜ /www fdisk -l
Disk /dev/vda: 42.9 GB, 42949672960 bytes, 83886080 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000b2d99
Device Boot Start End Blocks Id System
/dev/vda1 * 2048 83875364 41936658+ 83 Linux
Disk /dev/vdb: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0xb6083888
Device Boot Start End Blocks Id System
/dev/vdb1 2048 41943039 20970496 83 Linux
a. 您好,这边看您有一个数据盘没有挂载的,您原来这个磁盘是挂载到了那个目录呢
原来的磁盘挂载到 /www 我现在怕操作错了把数据弄没了,现在如何恢复
a.您好 您使用 mount /dev/vdb1 /www
挂载上试下
出现问题不要慌,不要乱操作以免数据丢失,共勉