Class Raid
RAID Management Utility.
Class to assist in management and notification of a RAID array.
Located in /api/Raid.class.php (line 59)
Engine | --Raid
| Class | Description |
|---|---|
| RaidLsi | Provides monitoring/management tools for LSI hardware RAID. |
| Raid3ware | RAID Management Utility. |
| RaidSoftware | RAID Management Utility. |
Inherited Variables
Inherited from Engine
Engine::$errors
Create a RAID supported class.
RAID constructor.
- Engine::__construct()
- Engine constructor.
- RaidLsi::__construct() : RaidLsi constructor.
- Raid3ware::__construct() : Raid3ware constructor.
- RaidSoftware::__construct() : RaidSoftware constructor.
Checks the change of status of the RAID array.
Copy a partition table from one device to another.
- string $from: from partition device
- string $to: to partition device
Get the notify status.
Get the notification email.
Formats a value into a human readable byte size.
- float $input: the value
- int $dec: number of decimal places
Returns whether type of RAID supports interaction - i.e. resync etc.
Returns RAID level.
Get the monitor status.
Returns the mount point.
- String $dev: a device
Get the notify status.
Get partition table.
- $device
Returns status of RAID.
Returns type of RAID.
Returns type of RAID.
Performs a sanity check on partition table to see it matches.
- string $array: the array to find a device that is clean
- string $check: the device to check partition against
Sends a status change notification to admin.
- $lines
Set the RAID notificatoin email.
- string $email: a valid email
Set RAID monitoring status.
- boolean $monitor: toggles monitoring
Set RAID notification.
- boolean $status: toggles notification
Report for hardware RAID.
- $myraid
Report for software RAID.
- $myraid
Loads configuration files.
Generic set routine.
- string $key: key name
- string $value: value for the key
Inherited Methods
Inherited From Engine
Engine::__construct()
Engine::AddValidationError()
Engine::CheckValidationErrors()
Engine::CopyValidationErrors()
Engine::GetValidationErrors()
Engine::Log()
Engine::__destruct()
CMD_CAT
= '/bin/cat'
(line 71)
CMD_DF
= '/bin/df'
(line 72)
CMD_DIFF
= '/usr/bin/diff'
(line 73)
CMD_FDISK
= '/sbin/fdisk'
(line 74)
CMD_MPT_STATUS
= '/usr/sbin/mpt-status'
(line 78)
CMD_RAID_SCRIPT
= '/var/webconfig/scripts/raid_notification.php'
(line 79)
CMD_SFDISK
= '/sbin/sfdisk'
(line 75)
CMD_SWAPON
= '/sbin/swapon'
(line 76)
CMD_TW_CLI
= '/usr/sbin/tw_cli'
(line 77)
DEFAULT_CRONTAB_TIME
= "0,30 * * * *"
(line 70)
FILE_CONFIG
= '/etc/system/raid.conf'
(line 66)
FILE_CROND
= "app-raid"
(line 69)
FILE_MDSTAT
= '/proc/mdstat'
(line 67)
FILE_RAID_STATUS
= 'raid.status'
(line 68)
LOG_TAG
= 'raid'
(line 65)
STATUS_CLEAN
= 0
(line 84)
STATUS_DEGRADED
= 1
(line 85)
STATUS_REMOVED
= 4
(line 88)
STATUS_SPARE
= 5
(line 89)
STATUS_SYNCING
= 2
(line 86)
STATUS_SYNC_PENDING
= 3
(line 87)
TYPE_3WARE
= 2
(line 82)
TYPE_LSI
= 3
(line 83)
TYPE_SOFTWARE
= 1
(line 81)
TYPE_UNKNOWN
= 0
(line 80)
Inherited Constants
Inherited from Engine
Engine::COMMAND_API
Documentation generated on Fri, 28 Aug 2009 20:32:16 -0400 by phpDocumentor 1.3.2

