In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to expand xfs in LVM". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Basic terminology of LVM
Physical volumes (physical volume): physical disk partitions
$pvdisplay # display physical volumes $pvcreate / dev/sdb1 # create physical volumes
Volume group (volume group): a disk partition in LVM, which can be understood as a disk repository
$vgdisplay # display volume group $vgextend cl / dev/sdb1 # extended volume group
Logical volumes (logical volume): logical partitions from VG
$lvdisplay # shows the logical volume $lvextend-L + 100G / dev/cl/root # extended capacity 2. Add new hard disk expansion LVM partition 2.1 add partition $fdisk / dev/sdbn # create partition p # Select primary partition 1 # partition number, / dev/sdb1t 8e # partition type linux LVMw # write partition table $partprobe # reread partition table $mks.xfs / dev/sdb1 # format $partx / dev/sdb # View partition 2.2 create PV, expand VG LV$ pvcreate / dev/sdb1 # create PV$ vgdisplay$ vgextend cl/ dev/sdb1 # extend VG$ lvdisplay$ lvextend-L + 100G / dev/cl/root # extend LV$ resize2fs / dev/cl/root # perform resize, fix non-xfs2.3 xfs file system problem
In xfs file systems, you can only increase the partition, not decrease it. After the xfs file system is logically extended, it takes one step to complete:
$lvs$ df-lh$ xfs_growfs / dev/mapper/cl-root # implementation adjustment $df-lh "how to extend xfs in LVM" ends here, thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.