In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, Xiaobian will bring you about how centos7.2 LVM expands a mounted logical volume. The article is rich in content and analyzes and narrates it from a professional perspective. After reading this article, I hope you can gain something.
[root@node1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 50G 19G 32G 38% /
devtmpfs 5.7G 0 5.7G 0% /dev
tmpfs 5.7G 0 5.7G 0% /dev/shm
tmpfs 5.7G 8.4M 5.7G 1% /run
tmpfs 5.7G 0 5.7G 0% /sys/fs/cgroup
/dev/mapper/centos-home 44G 42G 2.6G 95% /home
/dev/sda1 497M 124M 374M 25% /boot
tmpfs 1.2G 0 1.2G 0% /run/user/0
Requirements:
Not enough space at home, need to expand 50G
LVM expansion:
fdisk -l
Division:
fdisk /dev/sdb (m-n,p,1)
Creating PV
pvcreate /dev/sdb1
Display pv information
pvdisplay
Display vg information
vgdisplay
Expand VG space
vgextend centos /dev/sdb1
Display LV message
lvdisplay
Increase target logical volume space
lvextend -L +50G /dev/centos/home
acknowledgement information
df -h
If the expanded space size is not displayed, execute the following command
xfs_growfs /dev/centos/home
Results after expansion:
[root@node1 mysql]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 50G 19G 32G 38% /
devtmpfs 5.7G 0 5.7G 0% /dev
tmpfs 5.7G 0 5.7G 0% /dev/shm
tmpfs 5.7G 8.4M 5.7G 1% /run
tmpfs 5.7G 0 5.7G 0% /sys/fs/cgroup
/dev/mapper/centos-home 94G 21G 74G 22% /home
/dev/sda1 497M 124M 374M 25% /boot
tmpfs 1.2G 0 1.2G 0% /run/user/0
The above is how centos7.2 LVM expands a mounted logical volume shared by Xiaobian. If you happen to have similar doubts, you may wish to refer to the above analysis for understanding. If you want to know more about it, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.