Solved

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

Posted on 2012-04-10
5
1,267 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
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 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access_log 17 101
Help on running oracle SQL script in linux 3 37
Coding C# in Linux 8 39
vmware 5.5 1 41
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…
Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

863 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now