1958 |
if self.spares > 0: |
if self.spares > 0: |
1959 |
args.append("--spare-devices=%s" %(self.spares,),) |
args.append("--spare-devices=%s" %(self.spares,),) |
1960 |
|
|
1961 |
if self.numDisks == 1: |
if self.numDisks == 1 and self.level == 1: |
1962 |
args.append("--raid-devices=2") |
args.append("--raid-devices=2") |
1963 |
else: |
else: |
1964 |
args.append("--raid-devices=%s" %(self.numDisks,),) |
args.append("--raid-devices=%s" %(self.numDisks,),) |
1965 |
|
|
1966 |
args.extend(map(devify, self.members)) |
args.extend(map(devify, self.members)) |
1967 |
|
|
1968 |
if self.numDisks == 1: |
if self.numDisks == 1 and self.level == 1: |
1969 |
args.append("missing") |
args.append("missing") |
1970 |
|
|
1971 |
log("going to run: %s" %(args,)) |
log("going to run: %s" %(args,)) |