Peter Wilson
asked on
Reduce vmdk file & unallocated windows partion
Hi Experts,
I have been following the article https://www.experts-exchange.com/articles/12938/HOW-TO-Shrink-a-VMware-Virtual-Machine-Disk-VMDK-in-15-minutes.html and I ran into a few issues: it says to run this command in putty: cd /vmfs/volumes/<datastore name>/<VM foldername> but when I do I receive a 'No such file or directory'. I'm logged into vcenter and I can't even cd to /vmfs/volumes/ or /vmfs/ I get the same error every time. Any ideas on how to resolve.
Also, you mention edit the new disk space in 'vi' is this outside of the putty session?
Lastly, how do I remove the unallocated space in windows?
esxi5.1
vcenter5.5
server2003r2
thx
I have been following the article https://www.experts-exchange.com/articles/12938/HOW-TO-Shrink-a-VMware-Virtual-Machine-Disk-VMDK-in-15-minutes.html and I ran into a few issues: it says to run this command in putty: cd /vmfs/volumes/<datastore name>/<VM foldername> but when I do I receive a 'No such file or directory'. I'm logged into vcenter and I can't even cd to /vmfs/volumes/ or /vmfs/ I get the same error every time. Any ideas on how to resolve.
Also, you mention edit the new disk space in 'vi' is this outside of the putty session?
Lastly, how do I remove the unallocated space in windows?
esxi5.1
vcenter5.5
server2003r2
thx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
How do I "change to the datastore path where the VMware virtual machine disk (VMDK) is located."
I got into cd /vmfs/volumes/<datastore name>/<VM foldername> and executed the ls -al command and then the cat vm_name.vmdk but I don't know how to change the size. Can you provide me the instructions for that.
I'd like to do it this way since I'm running under a deadline and have to have this VM back in production shortly. V2v will take too long.
I got into cd /vmfs/volumes/<datastore name>/<VM foldername> and executed the ls -al command and then the cat vm_name.vmdk but I don't know how to change the size. Can you provide me the instructions for that.
I'd like to do it this way since I'm running under a deadline and have to have this VM back in production shortly. V2v will take too long.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
In this article https://www.experts-exchange.com/articles/12938/HOW-TO-Shrink-a-VMware-Virtual-Machine-Disk-VMDK-in-15-minutes.html, under #2 it says, "Power OFF the Virtual Machine, and change to the datastore path where the VMware virtual machine disk (VMDK) is located. Should this be done before or after the datastore size change?
Then it goes on to say, Using vi, edit the descriptor file, and change the number from 83886080 to 41943040, and save the file.
Can you instruct me what vi is and how to use vi? I'm logged into esxi in putty via ssh.
Thx!
Then it goes on to say, Using vi, edit the descriptor file, and change the number from 83886080 to 41943040, and save the file.
Can you instruct me what vi is and how to use vi? I'm logged into esxi in putty via ssh.
Thx!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
my backups don't like that the vmdk file is larger than the supported amount...that is all.
I understand I'm supposed to use my own number. What I don't understand and what is not explained in the article is how to use vi to implement the changes. Can you walk me through that please?
thx
I understand I'm supposed to use my own number. What I don't understand and what is not explained in the article is how to use vi to implement the changes. Can you walk me through that please?
thx
if you do not understand how to use vi, it's better you use Winscp, installed on Windows, to edit the file in notepad, and transfer back to the server.
or you can follow the link posted by my fellow Expert.
However if you've never used it.....using WinSCP.
or you can follow the link posted by my fellow Expert.
However if you've never used it.....using WinSCP.
ASKER
there is answer here. sorry for long delay.
select it then.
ASKER