ClearFoundation

Developer API Reference RaidSoftware

ClearOS API

Class RaidSoftware

Description

RAID Management Utility.

Class to assist in management and notification of a software RAID (mdadm) array.

Located in /api/RaidSoftware.class.php (line 59)

Engine
   |
   --Raid
      |
      --RaidSoftware
Class Constant Summary
 CMD_DD = '/bin/dd'
 CMD_MDADM = '/sbin/mdadm'
Variable Summary
mixed $interactive
mixed $mdstat
Method Summary
RaidSoftware __construct ()
Array GetArrays ()
void RemoveDevice (string $array, string $device)
void RepairArray (string $array, string $device)
Variables
mixed $interactive = true (line 67)
  • access: protected

Redefinition of:
Raid::$interactive
mixed $mdstat = array() (line 68)
  • access: protected

Inherited Variables

Inherited from Raid

Raid::$config
Raid::$is_loaded
Raid::$status
Raid::$type

Inherited from Engine

Engine::$errors
Methods
Constructor __construct (line 79)

RaidSoftware constructor.

  • access: public
RaidSoftware __construct ()

Redefinition of:
Raid::__construct()
RAID constructor.
GetArrays (line 96)

Returns RAID arrays.

  • throws: EngineException
Array GetArrays ()
RemoveDevice (line 208)

Removes a device from the specified array.

  • throws: EngineException
void RemoveDevice (string $array, string $device)
  • string $array: the array
  • string $device: the device
RepairArray (line 235)

Repair an array with the specified device.

  • throws: EngineException
void RepairArray (string $array, string $device)
  • string $array: the array
  • string $device: the device

Inherited Methods

Inherited From Raid

Raid::__construct()
Raid::CheckStatusChange()
Raid::CopyPartitionTable()
Raid::Create()
Raid::GetDevicesInUse()
Raid::GetEmail()
Raid::GetFormattedBytes()
Raid::GetInteractive()
Raid::GetLevel()
Raid::GetMonitorStatus()
Raid::GetMount()
Raid::GetNotify()
Raid::GetPartitionTable()
Raid::GetStatus()
Raid::GetType()
Raid::GetTypeDetails()
Raid::SanityCheckPartition()
Raid::SendStatusChangeNotification()
Raid::SetEmail()
Raid::SetMonitorStatus()
Raid::SetNotify()
Raid::_CreateHardwareRaidReport()
Raid::_CreateSoftwareRaidReport()
Raid::_LoadConfig()
Raid::_SetParameter()

Inherited From Engine

Engine::__construct()
Engine::AddValidationError()
Engine::CheckValidationErrors()
Engine::CopyValidationErrors()
Engine::GetValidationErrors()
Engine::Log()
Engine::__destruct()

Documentation generated on Fri, 28 Aug 2009 20:32:17 -0400 by phpDocumentor 1.3.2