新挂载的目录,创建文件提示:no space left on device 

1、执行命令:df -h ,查看盘是否挂载成功

no space left on device 磁盘空间不足 

 2、用history命令查看历史命令,尴尬的发现挂载前忘记格式化了

3、取消挂载:umount /data  

  如果提示busy:umount: /dev/mapper/vg_02-lv_02: device is busy. 

          (In some cases useful info about processes that use

           the device is found by lsof(8) or fuser(1))

  使用命令:lsof /data 和 fuser /data 都没有提示/data在被使用,关掉ssh连接,重新打开就可以取消挂载

4、格式化设备:mkfs.xfs /dev/mapper/vg_02-lv_02

5、重新挂载:mount /dev/mapper/vg_02-lv_02 /data

相关文章:

  • 2021-08-12
  • 2021-10-13
  • 2022-02-08
  • 2021-12-12
  • 2021-12-24
  • 2021-10-13
猜你喜欢
  • 2021-12-25
  • 2021-11-13
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2021-08-12
相关资源
相似解决方案