描述:我这里想扩容swap的大小,发现磁盘空间都分出去了看根分区还有很大空间于是对根分区下手了,看看能否对根分区进行缩容操作
本来想从根取2G空间的,一个不小心把根空间变成2G空间
[root@localhost ~]# lvreduce -L 2G /dev/mapper/bigcloud--enterprise--linux--for--euler-root WARNING: Reducing active and open logical volume to 2.00 GiB. THIS MAY DESTROY YOUR DATA (filesystem etc.) Do you really want to reduce bigcloud-enterprise-linux-for-euler/root? [y/n]: Y Size of logical volume bigcloud-enterprise-linux-for-euler/root changed from 15.00 GiB (3840 extents) to 2.00 GiB (512 extents). /etc/lvm/backup/bigcloud-enterprise-linux-for-euler.tmp: fsync failed: Input/output error Backup of volume group bigcloud-enterprise-linux-for-euler metadata failed. Logical volume bigcloud-enterprise-linux-for-euler/root successfully resized.
执行完上面命令后发现文件系统只读了
尝试扩容(发现无法扩容)
然后reboot进入救援模式,打开/etc/lvm/lvm.conf。保存即生效
进入LVM视图,敲LVM命令进入LVM视图再次调整大小
重启后就直接进入登录界面了,完成修复
标签:缩容,bigcloud,只读,--,root,enterprise,linux,lvreduce,euler From: https://www.cnblogs.com/HByang/p/17468160.html