Professional Documents
Culture Documents
3. Name the snapshot something descriptive like the current date and time of the
snapshot. In the description field, describe what the snapshot is being taken for.
Example: “Prior to LVM and partition expansion.”
Note: There is no need to snapshot the VM’s memory for this purpose, it will only
bloat the snapshot as there is no benefit (in this case) to snapping the VM’s
memory. Uncheck the ‘Snapshot the virtual machine’s memory’ option.
4. Click OK
2. Adding a Disk
If needed, add a disk to the VM. This can be done while the guest is running with no need to
reboot.
1. Right click on the VM
2. Click “Edit Settings”
3. In the “Hardware” tab, click the “Add” button
4. Select “Hard Disk” from the list
5. Click “Next”
1
The SCSI host number can be found by issuing the following command:
ls /sys/class/scsi_host
2
The device path for connected drives can be found by issuing the following command:
fdisk -l | grep ‘^Disk’
3
Existing volume groups can be listed by typing: vgdisplay at the console.
5. Type the following at the command prompt: lvextend -l +<#> <logical
volume path> <device path> where “<logical volume path>” is the logical
volume to extend and “#” is the number of available extents references in step
4.4
6. Resize the existing partition by typing: resize2fs <logical volume path>
Note: This process may take a few minutes.
7. Confirm the changes by listing the file system mount points and their available
sizes. Type the following at the console: df -h
References
● Vmware Linux Guest Add a New Hard Disk Without Rebooting Guest:
http://www.cyberciti.biz/tips/vmware-add-a-new-hard-disk-without-rebooting-
guest.html
● Extend LVM Disk Space Dynamically
http://bloggerdigest .blogspot.com/2006/11/extend-lvm-disk-space-
dynamically.html
● Linux Disk Format
http://www.cyberciti.biz/faq/linux-disk-format/
● Linux Partition Naming Convention and IDE Drive Mappings
http://www.cyberciti.biz/faq/linux-partition-naming-convention-and-ide-drive-
mappings/
4
Finding which mount points are using which volume groups and/or logical volumes can be done by typing: df -h at the console.