VMware {code} Community
samsvmware
Enthusiast
Enthusiast

Extend vmfs datastore

Hi All,

            How to Increase/Extend the vmfs datastore using vsphere perl sdk? . please let know the any sample script or any useful link

Thanks in Advance.

Reply
0 Kudos
1 Reply
samsvmware
Enthusiast
Enthusiast

I want to do this process(please refer the below link) through vsphere perl sdk. Let me know any useful link & sample scripts.

http://www-01.ibm.com/support/knowledgecenter/HSG_VCPLUGIN_320/UG/vcplugin_ug_ch6_increase_datastore...

We have tried this below scripts. We didn't got the "ExpandVmfsDatastore" at host view.

        my $host_disk_partition_spec = new HostDiskPartitionSpec(chs=>$chs_data, partition=>@arr , totalSectors=>41943040  );
        my $vmfs_expand_spec = new VmfsDatastoreExpandSpec(extent=>$host_scsi_disk_partition , partition=>$host_disk_partition_spec );
        $dsmv->ExpandVmfsDatastore(datastore=>$dsRef , spec=>$vmfs_expand_spec);
    }
Reply
0 Kudos