LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to easily expand a virtual disk (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-easily-expand-a-virtual-disk-4175462053/)

pedenski 05-15-2013 04:04 AM

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


yogesh_attarde 05-15-2013 04:38 AM

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/

jefro 05-15-2013 05:56 PM

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.

pedenski 05-15-2013 08:27 PM

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 :)


All times are GMT -5. The time now is 08:24 AM.