Solved

How to resize root partition (/) of linux VM server 64-bit?

Posted on 2012-04-10
5
1,315 Views
Last Modified: 2012-04-16
This is a VMware virtual machine. It was setup was OS - SuSE Linux Enterprise server 11 64-bit. It was partitioned with 60GB for "/" directory. Due to rapid grow of the usage, currently, only left 1.2gb free space. So there is a urgent need to increase this "/" directory with another 30GB. How to do it?

From the VMware vsphere client where the above VM hosted, Edit settings... > Hardware; found that there is only one virtual hard disk created.as follows:

   Hard disk 1                 Virtual Disk

   Disk Provisioning                    
   Type                            thick
   provisioning size         60GB
   Max size                     256GB

Shall I increase the size in Hard disk 1 first? Please show in step-by-step.

Thanks in advance.
0
Comment
Question by:MezzutOzil
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 19

Expert Comment

by:vmwarun - Arun
ID: 37830975
Login as root and check which type of partitioning scheme are you using? A flat ext3 file system or a logical volume manager?

The command "pvdisplay" should list the physical devices if you are using LVM and command "fdisk -l" should list the number of hard disks attached to the VM.

Hide any private data and post the screenshot here.
0
 
LVL 5

Expert Comment

by:cdfs
ID: 37831177
You can increase the size of the single virtual disk inside VMware. After that you will have to resize your partition inside the VM and format the newly created space. To do that boot your VM with partedmagic (http://http://partedmagic.com/) and resize. If you are using LVM, use the provided LVM-tools (see http://www.tcpdump.com/kb/os/linux/lvm-resizing-guide/intro.html for a tutorial). Just to be sure, make a snapshot or any other sort of full backup of the machine.
0
 

Author Comment

by:MezzutOzil
ID: 37831336
Hi arunraju and cdfs,

Is not using LVM. It is using ext3 file system.
0
 
LVL 121

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 37831454
(make sure you have a Full Backup, not a VMware Snapshot before you make any disk or partition changes).

Do not increase the size of the disk, if you have a VMware Snapshot, only SCSI disks support resize.

How to Resize a Partition after Disk Expansion

To re-size a disk, select the Virtual Machine, Select Edit Settings, Highlight the Virtual Hard Disk, and select Edit
there is an option to increase size. This only changes the physical size of the virtual disk, it does not grow the partition on the disk. See below.


Before making any changes to the partition structure of the disk, ensure you have a full backup, not a snapshot.

1. Resize partition with Gparted Live CDROM

i. Download Gparted Live CDROM (http://gparted.sourceforge.net/livecd.php).

ii. Upload the cdrom iso to the vSphere ESX/ESXi datastore.

iii. Mount the cdrom or iso on the virtual machine.

iv. Shutdown and restart the virtual machine booting from the cdrom.


v. Select Resize partition.

Here is a Tutorial Walkthorugh of how to resize a partition with a GParted Live CDROM

http://gparted.sourceforge.net/larry/resize/resizing.htm

http://www.howtogeek.com/howto/windows-vista/using-gparted-to-resize-your-windows-vista-partition/
0
 

Author Closing Comment

by:MezzutOzil
ID: 37854083
good
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
When converting a physical machine to a virtual machine using VMware vCenter Converter Standalone or vCenter Converter Enterprise, if an adapter type is not selected during the initial customization the resulting virtual machine may contain an IDE d…
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question