Solved

how to present new disk for linux VM in the Esxi host

Posted on 2013-06-02
3
509 Views
Last Modified: 2013-06-09
Dear Experts:

I am running vmware essential plus on bare server which has two data store presenlty that is datastore001 and datastore002 in the datastore001 VM ubuntu linux is running for which LVM for /usr /opt and / and /var is configured as of now the space for /opt has to be increased as zimbra mail serveris running in this hence required to extend the /opt to another 25 Gb free space of same datastore OR have one more data store in the same server of free space 200gb.

Attached snapshot of LVM of ubuntu server for your refernce. also sudo fdisk /dev/sda.

1.please suggest me how to extend the disk space for the /opt which is in the LVM by using the same datastore where 25GB is free

 OR

2. how to use the datastore002 and extend the /opt disk space.

please suggest how to step by step. Thanks in advance.
lvm.txt
fdisk-snapshot.txt
0
Comment
Question by:D_wathi
[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
  • 2
3 Comments
 
LVL 120

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 39215414
You will need to edit the Virtual Machine virtual disk (vmdk), and increase the virtual machine disk by 25GB.

Right Click the VM, and click Edit Settings, select the virtual disk, and type the new size of disk + 25GB.

You will then need to expand the partition/LVM inside the Ubuntu OS.

Please note only SCSI disks are supported for expansion in this way, and there must be no snapshots attached, otherwise you will find the size option for virtual disk is greyed out.

see resize LVM link here

http://www.howtogeek.com/howto/40702/how-to-manage-and-use-lvm-logical-volume-management-in-ubuntu/
0
 

Author Comment

by:D_wathi
ID: 39218223
Thanks for the reply and suggestion.

1. added disk from the same datastore ,  the present one was harddisk1 and the second added was harddisk2

2. started vm and with fdisk created sdba with one extended volume with LVM.

3. then executed below

4. sudo pvcreate /dev/sdb1

5. sudo vgextend vg001 /dev/sdb1


6. sudo lvextend -l+45G /dev/vg001/lvopt


7. sudo resize2fs /dev/vg001/lvopt

after this additional space got applied able to see the extended space from the df comman output.

then scheduled data transfer from the remote server onto this server /opt but after some time message from esxi pops diskspace is not there when said retry did not work hence cancelled this resulted in shutdown and from then not able to poweron the VM when tried it says insufficient disk space, actually the opt is increased still this problem also the amount of data being copied is lesser than the total capacity of the disk space I mean including the above extended volume size.
Another point is /opt all together is a separate partition and root is also separate partition but why not able to poweron this VM and disk space issue for the booting

Please suggest me the above process of execution is that correct if found incorrect please suggest me where I went wrong and how this should have been executed.

Thanks in advance.
0
 

Author Comment

by:D_wathi
ID: 39233060
the above  insufficient disk is due to the multiple snapshot had consumed the storage space resulted to this problem.
0

Featured Post

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

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…
Is your phone running out of space to hold pictures?  This article will show you quick tips on how to solve this problem.
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…

738 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