Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2013-06-02
3
Medium Priority
?
517 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 123

Accepted Solution

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Each year, investment in cloud platforms grows more than 20% (https://www.immun.io/hubfs/Immunio_2016/Content/Marketing/Cloud-Security-Report-2016.pdf?submissionGuid=a8d80a00-6fee-4b85-81db-a4e28f681762) as an increasing number of companies begin to…
Ransomware is a malware that is again in the list of security  concerns. Not only for companies, but also for Government security and  even at personal use. IT departments should be aware and have the right  knowledge to how to fight it.
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

688 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