@@ -330,88 +352,58 @@ $(function(){
switch ($var['mdState']):
case "STOPPED":
if (strstr($var['mdResyncAction'],"recon")):?>
- | =status_indicator()?>Stopped. Configuration valid. | > |
+
| =status_indicator()?>Stopped. Configuration valid. | |
Start will bring the array on-line and start Parity-Sync and/or Data-Rebuild. |
elseif ($var['mdResyncAction']=="clear"):?>
- | =status_indicator()?>Stopped. New data disk(s) detected. | > |
+
| =status_indicator()?>Stopped. New data disk(s) detected. | |
Start will bring the array on-line and start Clearing new data disk(s). |
elseif ($var['sbClean']!="yes" && $var['mdResyncAction']=="check"):?>
- | =status_indicator()?>Stopped. Unclean shutdown detected. | > |
+
| =status_indicator()?>Stopped. Unclean shutdown detected. | |
Start will bring the array on-line. |
elseif ($var['sbClean']!="yes" && strstr($var['mdResyncAction'],"check")):?>
- | =status_indicator()?>Stopped. Unclean shutdown detected. | > |
+
| =status_indicator()?>Stopped. Unclean shutdown detected. | |
Start will bring the array on-line and start Parity-Check.
Write corrections to parity |
else:?>
- | =status_indicator()?>Stopped. Configuration valid. | > |
+
| =status_indicator()?>Stopped. Configuration valid. | |
Start will bring the array on-line. |
endif;
maintenance_mode();
- if (($keyfile && $wrong) || $missing || $encrypt || (!$keyfile && $crypto)):?>
- | Encryption status: | =$wrong?'Wrong key':(($missing||$crypto)?'Missing key':'Enter new key')?> |
- | Encryption input: | |
- | Passphrase: | show passphrase |
- | Retype passphrase: | |
- | Keyfile: | |
- | | permit reformat |
- | | |
- endif;
+ check_encryption();
break;
case "NEW_ARRAY":
- if (strpos($disks['parity']['status'],"DISK_NP")===0 && (empty($disks['parity2']) || strpos($disks['parity2']['status'],"DISK_NP")===0)):?>
- | =status_indicator()?>Stopped. Configuration valid. | |
+ if (strpos($disks['parity']['status'],"DISK_NP")===0 && strpos($disks['parity2']['status'],"DISK_NP")===0):?>
+
| =status_indicator()?>Stopped. Configuration valid. | |
Start will record all disk information and bring the array on-line.
The array will be immediately available, but unprotected since parity has not been assigned. |
else:?>
- | =status_indicator()?>Stopped. Configuration valid. | |
+
| =status_indicator()?>Stopped. Configuration valid. | |
Start will record all disk information, bring the array on-line, and start Parity-Sync.
The array will be immediately available, but unprotected until Parity-Sync completes.
Parity is already valid. |
endif;
maintenance_mode();
- break;
- case "UNPROTECTED_EXPANSION":?>
- =status_indicator()?>Stopped. Found =my_word($var['mdNumNew'])?> new disk=$var['mdNumNew']==1?'':'s'?>.
- foreach ($disks as $disk) if ($disk['status']=='DISK_NEW') echo " ".my_disk($disk['name'])." • ".my_id($disk['id'])." (".$disk['device'].")";?> |
- | Start will record the new disk=$var['mdNumNew']==1?'':'s'?> information and bring the expanded array on-line. |
- maintenance_mode();
- break;
- case "PROTECTED_EXPANSION":
- if ($var['mdNumErased']==$var['mdNumNew']):?>
- =status_indicator()?>Stopped. Found =my_word($var['mdNumNew'])?> new erased disk=$var['mdNumNew']==1?'':'s'?>.
- foreach ($disks as $disk) if ($disk['status']=='DISK_NEW') echo " ".my_disk($disk['name'])." • ".my_id($disk['id'])." (".$disk['device'].")";?> |
- | Start will record the new disk=$var['mdNumNew']==1?'':'s'?> information and bring the expanded array on-line.
- Yes I want to do this |
- maintenance_mode();
- else:?>
- =status_indicator()?>Stopped. Found =my_word($var['mdNumNew'])?> new disk=$var['mdNumNew']==1?'':'s'?>.
- foreach ($disks as $disk) if ($disk['status']=='DISK_NEW') echo " ".my_disk($disk['name'])." • ".my_id($disk['id'])." (".$disk['device'].")";?> |
- | Clear will completely clear (set to zero) the new disk=$var['mdNumNew']==1?'':'s'?>.
- Once clear completes, the array may be Started, expanding the array to include the new disk=$var['mdNumNew']==1?'':'s'?>.
- Caution: any data on the new disk=$var['mdNumNew']==1?'':'s'?> will be erased!
- If you want to preserve the data on the new disk=$var['mdNumNew']==1?'':'s'?>, reset the array configuration and rebuild parity instead.
- Yes I want to do this |
- endif;
+ check_encryption();
break;
case "DISABLE_DISK":?>
- | =status_indicator()?>Stopped. Missing disk. | |
+
| =status_indicator()?>Stopped. Missing disk. | |
Start will disable the missing disk and then bring the array on-line.
Install a replacement disk as soon as possible.
- Yes I want to do this |
maintenance_mode();
+ check_encryption();
break;
case "RECON_DISK":?>
- | =status_indicator()?>Stopped. Replacement disk installed. | |
+
| =status_indicator()?>Stopped. Replacement disk installed. | |
Start will start Parity-Sync and/or Data-Rebuild.
- Yes I want to do this |
maintenance_mode();
+ check_encryption();
break;
case "SWAP_DSBL":
if ($var['fsCopyPrcnt']=="100"):?>
- | =status_indicator()?>Stopped. Upgrading disk/swapping parity. | |
+
| =status_indicator()?>Stopped. Upgrading disk/swapping parity. | |
Start will expand the file system of the data disk (if possible); then bring the array on-line and start Data-Rebuild.
- Yes I want to do this |
maintenance_mode();
+ check_encryption();
else:?>
| =status_indicator()?>Stopped. Upgrading disk/swapping parity. | |
Copy will copy the parity information to the new parity disk.
@@ -419,14 +411,6 @@ $(function(){
Yes I want to do this |
endif;
break;
- case "RECORD_DISKS":?>
- =status_indicator()?>Stopped. Two or more disks are wrong.
- foreach ($disks as $disk) if ($disk['status']=='DISK_WRONG') echo " ".my_disk($disk['name'])." • ".my_id($disk['id'])." (".$disk['device'].")";?> |
- | Start will just record the new disk positions and bring the array on-line.
- We recommend you start a Parity-Check afterwards just to be safe.
- Yes I want to do this |
- maintenance_mode();
- break;
case "ERROR:INVALID_EXPANSION":?>
| =status_indicator()?>Stopped. Invalid expansion. | |
You may not add new disk(s) and also remove existing disk(s). |
@@ -477,17 +461,17 @@ $(function(){