- Increase the LinuxVM disk size
- Make sure the VM is powered off
- In VMware Player or Workstation, Select the LinuxVM and click "Edit virtual machine settings".
- Select Hard Disk (SCSI) under the Hardware tab
- Click "Expand..."
- Increase the "Maximum disk size (GB)" by the amount of swap space to create.
- Click Expand
- Delete the old swap space
- Start the LinuxVM ("Play")
- Open the Disk manager: Applications, System Tools, Disk
- Click on the SCSI disk
- Identify which partition contains the current swap space
- Open a terminal, and unmount the current swap space: #sudo swapoff /dev/sda2
- You will need to enter the root password ("data")
- Delete the swap partition
- Create the new swap space
- In Disk, click on the free space (probably to the right)
- Create partition of type swap
- Note the partition name (probably /dev/sda2)
- Mount the new swap space
- #sudo swapon /dev/sda2
- Check with Resource monitor that the swap space is increased.
- Get the indentifier (UUID) of the new swap space
- List the UUID: #sudo blkid /dev/sda2
- Copy the UUID
- Record the new swap space in the partition table
- Open the partition table file: #sudo gedit /etc/fstab
- Update the UUID for the swap space
- Save
- Verify
- Reboot the LinuxVM
- Click on Resource monitor; the swap space is listed on the right.
Increasing Swap Space
Will this work? http://www.oradba.ch/2012/05/resize-swap-space-on-linux/.
O2 http://www.virtualitworld.co.in/add-swap-file-in-centos-6-4/.
An article that may not do a good job: https://www.rootusers.com/how-to-increase-the-size-of-a-linux-lvm-by-expanding-the-virtual-machine-disk/.
0 Comments