Пример #1
0
 def _create_hdd_group(self):
     group_name = self.group_name
     hdd_size = '1P'
     hdd_sectors = utils.bytes2sectors(hdd_size)
     hdd = Disk.from_error(hdd_sectors, root_helper=self.root_helper)
     self.hdd_group = DmLinearTable.from_disks(group_name, [hdd],
                                               root_helper=self.root_helper)
Пример #2
0
 def _create_ssd_group(self, ssds):
     ssd_name = self._ssd_name
     self.ssd_group = DmLinearTable.from_disks(ssd_name, ssds, root_helper=self.root_helper)
Пример #3
0
 def _create_hdd_group(self):
     group_name = self.group_name
     hdd_size = '1P'
     hdd_sectors = utils.bytes2sectors(hdd_size)
     hdd = Disk.from_error(hdd_sectors, root_helper=self.root_helper)
     self.hdd_group = DmLinearTable.from_disks(group_name, [hdd], root_helper=self.root_helper)
Пример #4
0
 def _create_ssd_group(self, ssds):
     ssd_name = self._ssd_name
     self.ssd_group = DmLinearTable.from_disks(ssd_name,
                                               ssds,
                                               root_helper=self.root_helper)