In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Today, the editor shares with you the method of using linux's lvcreate command to create logical volumes. I believe many people don't know much about it. In order to make you understand better, I summed up the following contents and looked down together. I'm sure you'll get something.
The purpose of the lvcreate command is to create a logical volume of LVM.
Logical volumes are created on top of volume groups. The device file corresponding to the logical volume is saved in the volume group directory. For example, if you create a logical volume "lvol0" on the volume group "vg1000", the device file corresponding to this logical volume is "/ dev/vg1000/lvol0".
Syntax format: lvcreate [parameters] [logical volumes]
Common parameters:
-L specifies the size of the logical volume in "kKmMgGtT" bytes-l specifies the size of the logical volume (number of LE)
Reference example
Create a 15G logical volume in a volume group named vg_newlvm:
[root@linuxcool] # lvcreate-L 15G vg_newlvm
Create a logical volume of size 2500MB in the volume group named vg_newlvm and name it linuxcool:
[root@linuxcool] # lvcreate-L 2500-n linuxcool vg_newlvm
Create a logical volume using all the remaining space in the volume group:
[root@linuxcool ~] # lvcreate-- name linuxcool-l 100%FREE vg_newlvm is here to share the method of creating logical volumes using linux's lvcreate command. I hope the above content can be of some reference value to you and can be applied. If you like this article, you might as well share it for more people to see.
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.