«

Lv扩容时报错

指尖二进制 • 1 年前 • 652 次点击 • LINUX


查看了下,因为磁盘实在太小了,无法执行,删除一些数据就行

[root@localhost ~]# vgs
  Couldn't create temporary archive name.
  Volume group "centos" metadata archive failed.
  Couldn't create temporary archive name.
  Volume group "centos" metadata archive failed.
  Couldn't create temporary text file name.
  Backup of volume group centos metadata failed.
  VG     #PV #LV #SN Attr   VSize  VFree 
  centos   2   2   0 wz--n- 99.50g 80.04g
[root@localhost ~]# lvextend -L +80G /dev/centos/root
  Couldn't create temporary archive name.
  Volume group "centos" metadata archive failed.

以上信息说明创建存档失败。原因磁盘已经使用满了。需要删除一些没用的文件过着备份下来,扩容成功之后再拷贝上去

[root@localhost ~]# cd /var/log/
[root@localhost ~]# rm -rf xxx.log

再次执行。ok

[root@localhost ~]# lvextend -L +80G /dev/centos/root
[root@localhost log]# df -Th | sed -n '1,/centos-root/p'
Filesystem              Type      Size  Used Avail  Use% Mounted on
/dev/mapper/centos-root xfs        18G   18G   20K  100% /
还没收到回复