A system and method for a file server to allocate spare disks in a network
storage system. The method determines the available spare disks and first
selects those disks that satisfy one or more required rules. The method
sorts the spare disks by a set of ordered policies to determine a
highest-ranked disk that is then selected as the spare to be utilized. If
multiple disks are equally ranked, one of the equally ranked disks is
randomly chosen to be the spare disk allocated.