If you create large numbers of metadevices, the state database replicas may eventually be too small to contain all the necessary information. If this happens, try adding larger state database replicas by using the -l option to the metadb(1M) command then removing the smaller state database replicas.
As a general rule, if you've doubled the number of default metadevices, double the size of the state database replicas.