问题是这样的,公司的centOS服务器空间满了,没仔细看是root还是home。网上搜到一篇文章
https://blog.csdn.net/water20210101/article/details/117029807,看起来很简单的,估计几分钟就能搞定,就动手扩容了。于是发生悲剧。
前面的6步都非常顺利,但是执行第七步的时候显示
/dev/mapper/cl-home: No such file or directory
再执行第8步显示
mount: special device /dev/mapper/cl-home does not exist
所以就想创建一个home逻辑卷
sudo lvcreate -n home -L 10G cl
但是会有两个错误:
第一个是 Volume group "cl" has insufficient free space (1279 extents): 2560 required.显示没有空间,
第二个错误是,即使把上面home的空间大小改为4G也会提示设备没有清理
/dev/cl/home: not found: device not cleared
Aborting. Failed to wipe start of new LV.
这个服务器是运行在虚拟机上面的,磁盘部署是这个样子,求大家如何补救