Solved

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

Posted on 2013-06-02
3
504 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 117

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 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

26 Experts available now in Live!

Get 1:1 Help Now