lvm合并调整分区大小
[root@sfzwapp2 /]# umount -f /app
umount2: Device or resource busy
umount: /app: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
umount2: Device or resource busy
[root@sfzwapp2 /]# fuser -c /app
/app: 18822ce
[root@sfzwapp2 /]# ps -ef|grep 18822
root 18822 1 0 00:00 ? 00:00:07 ./nmon_x86_64_rhel6 -f -T -s 120 -c 720
root 21559 21427 0 14:55 pts/2 00:00:00 grep 18822
[root@sfzwapp2 /]# kill -9 18822
[root@sfzwapp2 /]# umount -f /app
[root@sfzwapp2 /]# lvremove /dev/vg_sfzwapp2/LogVapp
Do you really want to remove active logical volume LogVapp? [y/n]: y
Logical volume "LogVapp" successfully removed
[root@sfzwapp2 /]# lvextend -L +100G /dev/vg_sfzwapp2/LogVhome
Size of logical volume vg_sfzwapp2/LogVhome changed from 10.00 GiB (2560 extents) to 110.00 GiB (28160 extents).
Logical volume LogVhome successfully resized
[root@sfzwapp2 /]# resize2fs /dev/vg_sfzwapp2/LogVhome
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/vg_sfzwapp2/LogVhome is mounted on /home; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 7
Performing an on-line resize of /dev/vg_sfzwapp2/LogVhome to 28835840 (4k) blocks.
The filesystem on /dev/vg_sfzwapp2/LogVhome is now 28835840 blocks long.
[root@sfzwapp2 /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_sfzwapp2-LogVroot
35G 2.2G 31G 7% /
tmpfs 16G 224K 16G 1% /dev/shm
/dev/sda1 477M 42M 410M 10% /boot
/dev/mapper/vg_sfzwapp2-LogVhome
109G 38M 103G 1% /home
/dev/mapper/vg_sfzwapp2-LogVtmp
9.8G 23M 9.2G 1% /tmp
/dev/mapper/vg_sfzwapp2-LogVusr
9.8G 2.9G 6.5G 31% /usr
/dev/mapper/vg_sfzwapp2-LogVvar
9.8G 145M 9.1G 2% /var
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 因为Apifox不支持离线,我果断选择了Apipost!
· 通过 API 将Deepseek响应流式内容输出到前端