[root@sfzwapp2 /]# fuser -c /app
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
/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
本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
下一篇:top
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
使用Azure Automation自动调整App Services Plan大小
说到App Services Plan大家可能比较陌生,但是如果提到Azure App Services大家肯定都很熟悉,相信很多朋友都在其上托管了一些Web应用。其实我们所使用的App Services始终是在App Services Plan中运行的。App Services Plan的定价层确定了所提供的App Services功能和计划费用。这也就意味着,如果想要控制App Services所产生的费用,就需要从App Services Plan入手。
Azure 成本优化 App Services Plan Web应用 -
在 CSS 中调整大小——WEB开发系列22
调整元素的大小是一个重要的技能,CSS 提供了多种方法来控制和调整元素的尺寸,以适应不同的设计需求和屏幕尺寸。
css 前端 web css3 html -
Linux根目录分区大小调整教程
Linux根目录分区大小调整教程
Linux 根目录 -
CentOS系统中动态调整LVM分区大小
CentOS系统中动态调整LVM分区大小
linux 基本操作 centos