Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

  1. 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
  2. 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
  3. 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)
  4. Mount the new swap space
    • #sudo swapon /dev/sda2 
    • Check with Resource monitor that the swap space is increased.
  5. Get the indentifier (UUID) of the new swap space
    • List the UUID: #sudo blkid /dev/sda2
    • Copy the UUID
  6. 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
  7. 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/.

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.