LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 05-15-2013, 04:04 AM   #1
pedenski
Member
 
Registered: Feb 2012
Posts: 33

Rep: Reputation: Disabled
how to easily expand a virtual disk


im currently running a vsftpd in a centos environment, this server is running on an ESXI/vSphere and the OS was installed in a default config.

OS:
centos
Current provisioned size: 12GB
Type: Thick Provisioned lazy zeroed

being new to all these stuff, i didnt know what type is recommended in running an ftp server or the SOP.

the current disk capacity is 12GB and im concerned as how do i easily increase it in vsphere that will automatically reflect in OS without restarting it.

i tried bringing up the current 12GB into 20GB and it doesnt appear to be working.

#df -h
Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_livecd-lv_root
                       12G  2.0G  9.3G  18% /
tmpfs                1012M  296K 1012M   1% /dev/shm
/dev/sda1             485M   31M  429M   7% /boot
/dev/sr0              696M  696M     0 100% /media/CentOS-6.2-i386-LiveCD

Last edited by pedenski; 05-15-2013 at 04:31 AM.
 
Old 05-15-2013, 04:38 AM   #2
yogesh_attarde
Member
 
Registered: Jan 2010
Posts: 48

Rep: Reputation: 0
hi,

What is the output of fdisk -l

Is it showing two disks /dev/sda and /dev/sdb

You can browse for "how to add disk in LVM", Check the below links for your reference.

http://www.linuxquestions.org/questi...th-lvm-316813/

http://www.krenger.ch/blog/linux-lvm...new-partition/
 
Old 05-15-2013, 05:56 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 10,246

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
http://kb.vmware.com/selfservice/mic...rnalId=1004047

http://kb.vmware.com/selfservice/mic...externalId=994

Then you might need to also fool with the client.
 
Old 05-15-2013, 08:27 PM   #4
pedenski
Member
 
Registered: Feb 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Code:
http://www.krenger.ch/blog/linux-lvm...new-partition/
hey, thanks for that great article there. i managed to extend my exisiting hard disk
also, id like to clarify that before i extended the hard disk, i first created a virtual hard disk in my vSphere and used that virtual hard disk to extend my existing one.

so i looked back on my vsphere and noticed that i now have

harddisk1 - Virtual disk - 20GB
harddisk2 - Virtual disk - 20GB

is this normal?

if i try to increase the capacity yet again, then id have to create another virtual disk and it would add as

harddisk3 - virtual disk - 50GB

i guess i was kinda expecting it to display as just harddisk1 - 20GB

but hey, its now working! and im greatful. i was just a little concerned out of it and just wanted to know the reason behind

Last edited by pedenski; 05-15-2013 at 08:29 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to expand disk in Linux JALITE Linux - Newbie 6 Yesterday 04:19 PM
[SOLVED] Expand disk size on centos VM? jbennett Linux - Newbie 37 07-17-2012 11:43 AM
[SOLVED] Expand WinXP Disk Size tronayne Linux - Virtualization and Cloud 4 12-15-2011 07:38 AM
How to expand disk space cghcgh Linux - Newbie 7 07-08-2008 09:09 AM
expand root partition to occupy whole disk JohnGalt007 Linux - Software 4 01-09-2007 06:03 PM


All times are GMT -5. The time now is 05:59 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration