We study the robustness of the cμ-rule for the optimal allocation of a resource consisting of one unreliable server to parallel queues with two different classes of customers. The customers in queues can be served with respect to a FIFO retrial discipline, when the customers at the heads of queues repeatedly try to occupy the server at a random time. It is proved that for scheduling problems in the system without arrivals, the cμ-rule minimizes the total average cost. For the system with arrivals, it is difficult directly to prove the optimality of the same policy with explicit relations. We derived for an infinite-buffer model a static control policy that also prescribes the service for certain values of system parameters exclusively for the class-i customers if both of the queues are not empty, with the aim to minimize the average cost per unit of time. It is also shown that in a finite buffer case, the cμ-rule fails.