Sorry my bad.
Recently I read this post Ceph storage pool resize image root and found that storage pool has volume.size parameter.
So then I try set lxc storage set ssd volume.size 40GB and then lxc init so5:ocs ocs -p ssd, the container created successully.