Solved

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

Posted on 2013-06-02
3
505 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 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
Fine Tune your automatic Updates for Ubuntu / Debian
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now