- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Diskadd and disk type
I am using the diskadd command to add a disk to an existing VM.
My command looks like:
vim-cmd vmsvc/device.diskadd $idvm $newdisk scsi0 $unit $ds2
where:
$idvm = VM id
$newdisk = size
$ds2 = datastore
$unit= unit in scsi0
I see that the new disk is created either as a thin or a thick disk wiht no evident reason.
How does the command decide to create a thin or a thick disk?
How can I say to create a thin disk?
Regards
marius
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
First create the disk:
vmkfstools –c 10G -a lsilogic -d thick /vmfs/volumes/datastore/vm1/vm1_1.vmdk
and then attach it:
vim-cmd vmsvc/device.diskaddexisting <VM-ID> /vmfs/volumes/datastore/vm1/vm1_1.vmdk x y
x: SCSI controller
y: SCSI target number
Hope to help ![]()
Alex
--
Alex
(VMware VCAP-DCV, NetApp NCIE, LPIC 2)