VMware root directory, do not restart to increase the capacity of new hard disk
- Take a snapshot
- Create a new hard disk
- 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
Complete the update.
From for notes (Wiz)
List of attachments
root directory Extension