Solved

how to increase the hard disk of a Linux machine (Centos)

Posted on 2014-02-11
13
365 Views
Last Modified: 2014-02-24
Hi ,

i have a linux Machine that running on ESX 4.1
i would like to increase the disk space from 40 GB to 50 GB

from Virtual Machine proprieties of the linux machine i increased it to 50GB
but what are the commands i need to do from the Linux point of view?
0
Comment
Question by:Tufin
[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
  • 4
  • 2
  • +2
13 Comments
 
LVL 15

Expert Comment

by:Jaroslav Mraz
ID: 39849904
Hi,

if you done it in vmware you must simple do it in OS

you can use LIVE BOOT CD if you like gui

or CMD

http://www.centos.org/docs/5/html/5.1/Deployment_Guide/s2-disk-storage-parted-resize-part.html

both by gpart
0
 

Author Comment

by:Tufin
ID: 39849912
Do i have to reset the machine to change?
0
 
LVL 31

Expert Comment

by:farzanj
ID: 39849926
You need to decide which partition or partitions does the additional 10GB go to.

Before proceeding make sure to make a backup of all the data, in case anything goes wrong.

Do you have LVMs?  It is easier to increase your LVMs in size.  If it is a regular partition (non-LVM), then you can use some tool like gparted to change your partition size and file system size.

So again, there will be two steps involved:
1.  Increase the size of partition
2.  Increase the size of filesystem on that partition.
0
Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

 
LVL 15

Expert Comment

by:Jaroslav Mraz
ID: 39849929
No but you must reset it after.


And of course  DO A SNAPSHOOT BEFORE TRY  :) this will save you even you done something wrong.
0
 
LVL 31

Expert Comment

by:farzanj
ID: 39849930
If you work well, you do not need to shut your machine down.


You normally don't need to restart/reset your machine.  You can use some utility like

partprobe


to re-read the partition table.
0
 
LVL 120

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 39849969
I would use Gparted Live CDROM

or, use Gparted Magic
0
 
LVL 13

Expert Comment

by:Sandy
ID: 39851108
re-scan the LUN/Disk

#echo "- - -" > /sys/class/scsi_host/host*/scan

this will work.

TY/SA
0
 

Author Comment

by:Tufin
ID: 39867508
i decided to test with gparted...

quick question .. on ESX 5.1 and Centos 4.0 can i enlarge the hardisk through Edit settings and just add more to "Provisioned Size" of VMDX or do i need to do it through SSH to esx console and run in there a VMFStools command ?
0
 
LVL 15

Expert Comment

by:Jaroslav Mraz
ID: 39867518
In ESX server you can do it simple in edit disk and change the number.
0
 

Author Comment

by:Tufin
ID: 39867525
any tips about how to do it in Gparted at the best way or is it just drag and apply ...
0
 
LVL 15

Expert Comment

by:Jaroslav Mraz
ID: 39867534
1. Do a snapshoot in vmware to be safe :)

Then yes simple drag and apply.
0
 

Author Comment

by:Tufin
ID: 39867540
when you change the hard disk size you are NOT ALLOWED to do snapshot because it can destory you VM..

its written in any document of vmware ..
0
 
LVL 15

Expert Comment

by:Jaroslav Mraz
ID: 39867564
You are not alows to have snapshoot when you resizing vhd. In vmware but in os it doesnt metter. Ok but if you dont wanted then clone your system for backup. In 99% there is no problem but sometimes it can crash.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

726 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