Vmkfstools-x expands Virtual Machine hard disk space with snapshot

Source: Internet
Author: User

One virtual machine with a hard disk of only 60 GB requires more disk space allocated. Know vmkfstools-x 100g win2k8. vmdk. Otherwise, shut down, back up, and run the command in SSH. Then you are dumpfounded. the following error occurs when the VM is started:


Error message for win2k8: cannot open the disk '/vmfs/volumes/54391d67-a6a907a0-e7b9-1c6f6-5aa6275/win2k8/win2k8-000006.vmdk' or one of the snapshot disks it depends on.

I immediately asked du Niang. I saw a buddy's article saying that the vmkfstools command does not recommend taking snapshots. Otherwise, an error occurs because the vmdk of the snapshot file is different from the vmdk RW value of the host file. VI, these vmdk files, see the larger value is the extension, and the snapshot file is also the same as the previous RW value is smaller. The solution is to first change the RW value (red) of all snapshot files to the RW value (blue) of the current win2k8. vmdk, and then turn it on. In Windows, diskpart expands the hard disk space.

I have a question: I have not tested whether the extended snapshot file can be used. I have to create a new snapshot.

* *** Win2k8. vmdk **************
# Disk descriptorfile
Version = 1
Encoding = "UTF-8"
Cid = 5c320848
Parentcid = ffffffff
Isnativesnapshot = "no"
Createtype = "vmfs"

# Extent description
RW251658240Vmfs win2k8-flat.vmdk"


* Win2k8-000006.vmdk ********
# Disk descriptorfile
Version = 1
Encoding = "UTF-8"
Cid = dd65d32b
Parentcid = 5c320848
Isnativesnapshot = "no"
Createtype = "vmfssparse"
Parentfilenamehint = "win2k8. vmdk"
# Extent description
RW125829120Vmfssparse win2k8-000001-delta.vmdk"



Vmkfstools-x expands Virtual Machine hard disk space with snapshot

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.