Linux-based lvm creation

Source: Internet
Author: User
According to the company's needs, to build a file server, we first thought of Samba. secondly, to facilitate the expansion of the disk space occupied by each department, we decided to adopt lvm. The process is as follows: www.2cto. com1. create linux partition 2. create a physical volume Pvcreate is the command for the system to create a physical volume,/dev/sdb1...
According to the company's needs, to build a file server, we first thought of Samba, and then decided to use lvm to facilitate the expansion of the disk space occupied by each department. The process is as follows: www.2cto.com
1. create a linux partition


2. create a physical volume Pvcreate is the command for the system to create a physical volume./dev/sdb1,/dev/sdc1./dev/sdd1 are the physical partitions just created, it is now converted to the partition of the physical volume. You can see a lot of information through pvdisplay, the name of the physical volume, and the size of the physical volume. Vgcreate is the command for the system to create a volume group. vg_samba is a name for this volume Group, www.2cto.com
The following/dev/sdb1/dev/sdc1/dev/sdd1 physical volumes need to be converted into volume groups. Lvcreate is the command for the system to create a logical volume-L specify the partition size www.2cto.com-n specify the partition name mkfs. you can also create an ext4 formatted disk as a mkfs-t disk lvm. you can also update the volume group extension and lv logical volume extension and deletion as required.
 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.