Solved

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

Posted on 2013-06-02
3
508 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
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
When rebooting a vCenters 6.0 and try to connect using vSphere Client we get this issue "Invalid URL: The hostname could not parsed." When we get this error we need to do some changes in the vCenter advanced settings to fix the issue.
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSpā€¦
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.

679 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