root directory Extension

Source: Internet
Author: User

VMware root directory, do not restart to increase the capacity of new hard disk

    1. Take a snapshot

    1. Create a new hard disk

    1. Host bus number, rescan SCSI bus to add devices
    • < Span style= "font-size:12.0pt;font-family:" Microsoft Black ","sans-serif"" > execute fdisk –L&NBSP;&NBSP; Span style= "FONT-SIZE:12.0PT; font-family:"Microsoft Black","sans-serif" "> Displays the current server's hard disk information
    • Determine the host bus number

[Email protected]~]# ls/sys/class/scsi_host/

    • Rescan the SCSI bus to add a device (execute the following command "-" after a space)

[Email protected] ~]# echo "---" >/sys/class/scsi_host/host0/scan

[Email protected] ~]# echo "---" >/sys/class/scsi_host/host1/scan

[Email protected] ~]# echo "---" >/sys/class/scsi_host/host2/scan

    • Execution fdisk –l then display the current server's hard disk information (determine if there is a hard disk before you start expanding)

    • Execution FDISK/DEV/SDC ( SDB to be based on specific)

   then press:p N p 1Enter/Enter/EnterW

  • execute fdisk –L&NBSP;&NBSP; Display the current server's hard disk information
  • Create PV #pvcreate/DEV/SDC1 ( SDC1 to be based on the actual)

    • Vgdisplay Check the current volume group situation

    • Extended Volume Group vgextend VG_CENTOS63A/DEV/SDC1

    • Vgdisplay View the latest volume group situation

    • Extending logical Volumes /dev/vg_centos63a/lv_root

Execution: lvextend-l +101376m/dev/vg_centos63a/lv_root

Execution: /sbin/resize2fs/dev/vg_centos63a/lv_root

    • DF –H

Complete the update.



From for notes (Wiz)

List of attachments

    root directory Extension

    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.