> For AI agents: the complete documentation index is available at https://www.tteam.icu/llms.txt, the full documentation bundle is available at https://www.tteam.icu/llms-full.txt.

# 调整目录大小

## 删除 home 目录，扩展根目录

```bash
df -h

# 卸载
umount /dev/mapper/centos-data

# 保留 1G 空间
lvreduce -L 1G /dev/mapper/centos-data

# 增加 / 挂载点对应的逻辑卷大小(将卷组中的空闲空间全部扩展到根分区逻辑卷)
lvextend -l +100%FREE /dev/mapper/centos-root

# 执行扩容生效
xfs_growfs /dev/mapper/centos-root

# 格式化挂载点对应的逻辑卷
mkfs.xfs -f /dev/mapper/centos-data

# 重新挂载
mount /dev/mapper/centos-data
```
