Create PV/VG/LV/on linux/

Source: Internet
Author: User

Create PV/VG/LV/on linux and create PV first. Create a VG. Then add multiple PVS to the VG. Then create the LV. File System pvcreate/dev/sdhpvcreate/dev/sdgpvcreate/dev/sdfpvcreate/dev/sdepvcreate/dev/sdd vgcreate vg_dss_oracle_back/dev/sdh/dev/sdg/dev/sdf/dev/ sde/dev/sdd lvcreate-L 4995G-n lv_dss_oracle_back release/dev/vg_dss_oracle_back/release/data2echo "/dev/release/lv_dss_oracle_back/data2 ext4 defaults 0 0">/etc /fstab: add the new physical volume to the existing volume group: [root @ www. li Nuxidc.com ~] # Vgextend data/dev/sdc/dev/cdrom: open failed: Read-Only file system Attempt to close device '/dev/cdrom' which isnot open. volume group "data" successfullyextended [root @ www.linuxidc.com ~] #10. delete a physical volume from an existing volume group: delete a physical volume from a volume group, first, make sure that the physical volume to be deleted is not in use by any logical volume. Use the pvdisplay command to view the information of the physical volume. If a physical volume is in use by the logical volume, you need to back up the data of the physical volume to another place and then delete it. The command for deleting a physical volume is vgreduce: [root @ www.linuxidc.com ~] # Vgreduce data/dev/sdc Removed "/dev/sdc" fromvolume group "data" ----- deleted successfully

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.