Advice in esxi
Posted by Bolbolyta@reddit | sysadmin | View on Reddit | 18 comments
Hello,
I have a mail server running on Ubuntu in a VM on ESXi. I've added a new hard disk, and I want to combine the existing 500GB disk with the new 200GB disk into a single 700GB disk. Or how can i expand the 500 hard disk i have 1 tb data store
How can I achieve this?
Thank you!
RandomLolHuman@reddit
Buy a large enough disk and migrate over. Reliability is worth considering here. If you create one volume over two disks, only one disk needs to crash for you to lose all data.
And also, I get an error, I refuse to give the exact error message, or what I have tried to do to achieve what I want. Give help!
teh_oddone@reddit
https://knowledge.broadcom.com/external/article/344854/increasing-the-size-of-a-virtual-disk.html
labmansteve@reddit
OP, after reading the comments I must say that this is the poster child of “The XY Problem”.
I strongly suggest focusing on why you can’t expand that virtual disk instead of trying to cobble a half-baked multi disk arrangement together.
Few_World6254@reddit
Google search my friend. It is possible, it’s two steps. First expanding the drive in esxi, and then commands you have to run in Ubuntu. Google it, learn to research and you’ll find the answer and what you need to do.
Bolbolyta@reddit (OP)
I tried and there is a error i cant expand the hard on esxi
Few_World6254@reddit
Ok tell us exactly what you’ve done so far and what errors you are getting. And also, you can’t combine the 500 and 200. I assume you mean expand the size from 500 to 700GB.
TreAwayDeuce@reddit
Well, akshually lol, you could if you're using lvm.
Bart_Yellowbeard@reddit
So you have any existing snapshots? Can't resize a disk if there are snapshots.
Darthvaderisnotme@reddit
¿The 500 GB disk is configured as LVM? If yes it should be fairly easy, if not, i sugest, backup and fllow /u/teh_oddone advice
Bolbolyta@reddit (OP)
What if its not lvm !؟
WonderousPancake@reddit
Just mount another drive, move data and link it back
Feed_my_brainz@reddit
Make sure the VM has no snapshots as that can keep you from expanding disk in vSphere.
AccurateBandicoot494@reddit
If you're using LVM you can span the volume like this fairly easily. If not, delete the extra disk, add the extra space to the existing disk, rescan the device (or reboot the VM), and then just grow the filesystem onto 100% of the device.
teh_oddone@reddit
Just to make sure I understand:
You have a 1tb datastore
Your Ubuntu VM currently has a 500gb VMDK and you have attached a second 200gb VMDK and would like to expand the existing disk.
If so, I would suggest removing/deleting the 200gb disk (as long as you haven't used it for anything yet), powering down the Ubuntu VM, resizing the attached disk from the VM settings, restart the VM, and expand the disk from within Ubuntu.
There should be various tutorials on steps for both of these procedures on YouTube.
Bolbolyta@reddit (OP)
I tried to expandd it and the vm was shutdown but there is a error
mcmatt93117@reddit
Are you just trolling people here and intentionally withholding information on purpose? That has to be whats happening.
bartoque@reddit
Then for god's sake mention what you are doing exactly and what the error is, if any? Only saying "it" failed, is not helping.
Things like filesystem type involved and what the command strying to expand that specif8c filesystem is?
Bolbolyta@reddit (OP)
I tried to expand the 500 gigabytes can you give a vedio aboutt expanding the 500 gb !?