1879 |
|
|
1880 |
# TODO: validate peSize if given |
# TODO: validate peSize if given |
1881 |
if not self.peSize: |
if not self.peSize: |
1882 |
self.peSize = 4.0 # MB |
self.peSize = 32.0 # MB |
1883 |
|
|
1884 |
if not self.exists: |
if not self.exists: |
1885 |
self.pvCount = len(self.parents) |
self.pvCount = len(self.parents) |
3139 |
|
|
3140 |
disks = [disk.path for disk in self.devices] |
disks = [disk.path for disk in self.devices] |
3141 |
spares = len(self.devices) - self.memberDevices |
spares = len(self.devices) - self.memberDevices |
3142 |
|
|
3143 |
|
# allow creation of degraded arrays |
3144 |
|
if len(disks) == 1: |
3145 |
|
disks.append("missing") |
3146 |
|
|
3147 |
mdraid.mdcreate(self.path, |
mdraid.mdcreate(self.path, |
3148 |
self.level, |
self.level, |
3149 |
disks, |
disks, |