If the collection already contains data, you must create a hashed
index on the shard key before you shard the collection. For an empty
collection, MongoDB creates the index as part of
sh.shardCollection().