Hi, All
I try to clone a virtual machine to vsandatastore. But I see the follow error:
-->The policy requires 2 replicas with 1 disks each with 0 bytes free each. Only found 0 such disks.
-->Failed to create object:
The hardware configuration is as follows:
I/O Controller :LSI SAS9271-8i
HDD: ST91000640SS
SSD:Intel SSSDSC2BA400G3
10GE: Intel 82599
When I create a virtual machine or create a file to vsandatestore on web client. I also see the same error.
Could some one give me some suggestions? I don't know how to resolve this problem.
Thanks!
> The policy requires 2 replicas with 1 disks each with 0 bytes free each. Only found 0 such disks
This means that all the three nodes in the cluster are not participating in Storage. check whether all 3 nodes have atleast 1 diskgroup and contributing in storage
default vsan policy is 1 failure to tolerate which creates two replicas. so you can either make sure all 3 nodes have atleast 1 diskgroup or create a vm storage policy overriding the defaults
Thanks,
And you have a minimum of 3 hosts in your cluster?
Hi depping
Yes. There are 3 ESXi hosts in my cluster.
When can not clone a VM to the vsanDatastore. I am thinking if I can create a file or document to the vsanDatastore?
I have try to test if I can create a file or document to the vsanDatastore in vSphere web client. But popup a windows and show the same information.
-->The policy requires 2 replicas with 1 disks each with 0 bytes free each. Only found 0 such disks.
-->Failed to create object:
(1) After that, I try to use "/usr/lib/vmware/osfs/bin/osfs-mkdir" command to create a document in vsanDatastore. It is success. I don't know why the vsanDatastore can not be created a file or document in vSphere web client.
/vmfs # cd volumes
/vmfs/volumes # ls
38b2287c-0d8096b4-7952-e5b4c414f471 d57e7a71-2e098f15-b120-d5b24117d5f9
53d7fdc7-01c5d887-d84e-00e0fc123456 datastore
53d7fdde-cfbbdcf6-922b-00e0fc123456 vsan:5246f48fb8d82fde-e7b8b4cd40a4de4e
53d7fde0-ba085284-8e84-00e0fc123456 vsanDatastore
/vmfs/volumes # cd vsanDatastore/
/vmfs/volumes/vsan:5246f48fb8d82fde-e7b8b4cd40a4de4e # df -m
Filesystem 1M-blocks Used Available Use% Mounted on
VMFS-5 944896 3411 941485 0% /vmfs/volumes/datastore
vfat 4094 7 4087 0% /vmfs/volumes/53d7fde0-ba085284-8e84-00e0fc123456
vfat 249 157 91 63% /vmfs/volumes/d57e7a71-2e098f15-b120-d5b24117d5f9
vfat 249 163 85 66% /vmfs/volumes/38b2287c-0d8096b4-7952-e5b4c414f471
vfat 285 192 93 67% /vmfs/volumes/53d7fdc7-01c5d887-d84e-00e0fc123456
vsan 952576 771 951804 0% /vmfs/volumes/vsanDatastore
/vmfs/volumes/vsan:5246f48fb8d82fde-e7b8b4cd40a4de4e # /usr/lib/vmware/osfs/bin/osfs
-mkdir test
41c4d853-8ff4-dd88-f2ca-00e0fc123456
/vmfs/volumes/vsan:5246f48fb8d82fde-e7b8b4cd40a4de4e # ls
41c4d853-8ff4-dd88-f2ca-00e0fc123456 test
(2) I can not use "mkdir " command to create a document in vsanDatastore. But after I use ""/usr/lib/vmware/osfs/bin/osfs-mkdir" command to create a document "test" in vsanDatastore. Now I can use "mkdir" to create a document in /vmfs/volumes/vsanDatastore/test/ path. I was confuse.
~ #
~ # cd vmfs/volumes/vsanDatastore/
/vmfs/volumes/vsan:5246f48fb8d82fde-e7b8b4cd40a4de4e # mkdir test2
mkdir: can't create directory 'test2': Function not implemented
/vmfs/volumes/vsan:5246f48fb8d82fde-e7b8b4cd40a4de4e # cd /vmfs/volumes/vsanDatastore/test
/vmfs/volumes/vsan:5246f48fb8d82fde-e7b8b4cd40a4de4e/41c4d853-8ff4-dd88-f2ca-00e0fc123456 # mkdir test3
/vmfs/volumes/vsan:5246f48fb8d82fde-e7b8b4cd40a4de4e/41c4d853-8ff4-dd88-f2ca-00e0fc123456 # ls
test3
/vmfs/volumes/vsan:5246f48fb8d82fde-e7b8b4cd40a4de4e/41c4d853-8ff4-dd88-f2ca-00e0fc123456 # pwd
/vmfs/volumes/vsanDatastore/test
/vmfs/volumes/vsan:5246f48fb8d82fde-e7b8b4cd40a4de4e/41c4d853-8ff4-dd88-f2ca-00e0fc123456 #
Not sure why you are runnning those commands?
> The policy requires 2 replicas with 1 disks each with 0 bytes free each. Only found 0 such disks
This means that all the three nodes in the cluster are not participating in Storage. check whether all 3 nodes have atleast 1 diskgroup and contributing in storage
default vsan policy is 1 failure to tolerate which creates two replicas. so you can either make sure all 3 nodes have atleast 1 diskgroup or create a vm storage policy overriding the defaults
Thanks,