Virtual Machine Linux Expander command operation

Source: Internet
Author: User

The virtual machine Linux extended hard drive has been added and added to the original hard drive, and the two implementations are similar.

Fdisk-l after the display as:/dev/sdb for the newly added hard disk;

FDISK/DEV/SDA add a new partition press N, then press p, enter two times, then press W, save the fdisk-l can see the new partition, this time to restart

After restarting, the SDA is generated PV pvcreate/dev/sda4, and then add PV to the VG Vgextend VG_THSGGQQSYHQTE/DEV/SDA4, the logical volume partition VG (LogVol00) increased 21G lvextend-l + 21g/dev/vg_thsggqqsyhqte/logvol02

Adjust ext2-4 size: resize2fs-p/dev/vg_thsggqqsyhqte/logvol02

Pvdisplay,vgdisplay,lvdisplay can see the relevant situation.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/4C/7D/wKioL1Q-WWTjerCnAAENJ5DLNBw845.gif "title=" Pv-vg-lv.gif "alt=" Wkiol1q-wwtjercnaaenj5dlnbw845.gif "/>

This article is from the IT technology blog, so be sure to keep this source http://lysweb.blog.51cto.com/3468677/1564534

Virtual Machine Linux Expander command operation

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.