Updated for new Proxmox 5.2
- Updated patch files for Proxmox 5.2 changes - Updated README for some newer instructions. - Added change to the API viewer so the freenas_user and freenas_password show on the 'edit' dialog.
This commit is contained in:
		
							parent
							
								
									6510170216
								
							
						
					
					
						commit
						5be1c4ecfa
					
				
							
								
								
									
										26
									
								
								README
								
								
								
								
							
							
						
						
									
										26
									
								
								README
								
								
								
								
							|  | @ -1,15 +1,25 @@ | ||||||
| patch files: | FreeNAS ZFS over iSCSI interface | ||||||
| /usr/share/pve-manager/js/pvemanagerlib.js |  | ||||||
| /usr/share/perl5/PVE/Storage/ZFSPlugin.pm |  | ||||||
| 
 | 
 | ||||||
| copy | Please be aware that this enhancment uses the FreeNAS API's and NOT the ssh/scp | ||||||
| /usr/share/perl5/REST | like the other interface provide. | ||||||
| /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm |  | ||||||
| 
 | 
 | ||||||
| UPDATE FreeNAS username and password in FreeNAS.pm | 1) First use the following commands to patch the needed files forthe FreeNAS Interface | ||||||
|  |  patch /usr/share/pve-manager/js/pvemanagerlib.js < pve-manager/js/pvemanagerlib.js.patch | ||||||
|  |  patch /usr/share/perl5/PVE/Storage/ZFSPlugin.pm < perl5/PVE/Storage/ZFSPlugin.pm.patch | ||||||
|  |  patch /usr/share/pve-docs/api-viewer/apidoc.js < pve-docs/api-viewer/apidoc.js.patch | ||||||
| 
 | 
 | ||||||
|  | 2) Use the following commands to copy the needed files for the FreeNAS  | ||||||
|  |  mkdir -p /usr/share/perl5/REST | ||||||
|  |  cp perl5/REST/Client.pm | ||||||
|  |  cp perl5/PVE/Storage/LunCmd/FreeNAS.pm /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm | ||||||
| 
 | 
 | ||||||
| in /usr/bin/pvedaemon remove -T from perl | 3) Edit /usr/bin/pvedaemon and remove the '-T' from the perl command line. | ||||||
|  |  vi /usr/bin/pvedaemon | ||||||
| 
 | 
 | ||||||
|  | 4) Execute the following at a console command prompt to active the above | ||||||
|  systemctl restart pvedaemon |  systemctl restart pvedaemon | ||||||
| 
 | 
 | ||||||
|  | 5) Either goto the URL for the Proxmox GUI in your favorite browser | ||||||
|  |    or | ||||||
|  |    If you are already logged in via the GUI just refresh your browser to receive | ||||||
|  |    the new Javascript code.  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| --- pvemanagerlib.js.orig       2018-04-17 09:46:23.137417873 -0400
 | --- /usr/share/pve-manager/js/pvemanagerlib.js.orig     2018-05-23 16:53:17.014250092 -0400
 | ||||||
| +++ pvemanagerlib.js    2018-04-18 14:09:30.858616030 -0400
 | +++ /usr/share/pve-manager/js/pvemanagerlib.js  2018-05-23 16:58:22.848825697 -0400
 | ||||||
| @@ -5188,6 +5188,7 @@
 | @@ -5303,6 +5303,7 @@
 | ||||||
|      alias: ['widget.pveiScsiProviderSelector'], |      alias: ['widget.pveiScsiProviderSelector'], | ||||||
|      comboItems: [ |      comboItems: [ | ||||||
|         ['comstar', 'Comstar'], |         ['comstar', 'Comstar'], | ||||||
|  | @ -8,10 +8,11 @@ | ||||||
|         [ 'istgt', 'istgt'], |         [ 'istgt', 'istgt'], | ||||||
|         [ 'iet', 'IET'] |         [ 'iet', 'IET'] | ||||||
|      ] |      ] | ||||||
| @@ -26079,6 +26080,13 @@
 | @@ -27145,7 +27146,14 @@
 | ||||||
|                 value: '', |                 value: '', | ||||||
|                 fieldLabel: gettext('Target group'), |                 fieldLabel: gettext('Target group'), | ||||||
|                 allowBlank: true |                 allowBlank: true | ||||||
|  | -           }
 | ||||||
| +           },
 | +           },
 | ||||||
| +            {
 | +            {
 | ||||||
| +                xtype: me.isCreate ? 'textfield' : 'displayfield',
 | +                xtype: me.isCreate ? 'textfield' : 'displayfield',
 | ||||||
|  | @ -19,13 +20,15 @@ | ||||||
| +                value: '',
 | +                value: '',
 | ||||||
| +                fieldLabel: gettext('FreeNAS User'),
 | +                fieldLabel: gettext('FreeNAS User'),
 | ||||||
| +                allowBlank: true
 | +                allowBlank: true
 | ||||||
|             } | +            }
 | ||||||
|         ]; |         ]; | ||||||
| 
 | 
 | ||||||
| @@ -26110,6 +26118,13 @@
 |         me.column2 = [ | ||||||
|  | @@ -27176,7 +27184,14 @@
 | ||||||
|                 value: '', |                 value: '', | ||||||
|                 fieldLabel: gettext('Host group'), |                 fieldLabel: gettext('Host group'), | ||||||
|                 allowBlank: true |                 allowBlank: true | ||||||
|  | -           }
 | ||||||
| +           },
 | +           },
 | ||||||
| +            {
 | +            {
 | ||||||
| +                xtype: me.isCreate ? 'textfield' : 'displayfield',
 | +                xtype: me.isCreate ? 'textfield' : 'displayfield',
 | ||||||
|  | @ -33,5 +36,7 @@ | ||||||
| +                value: '',
 | +                value: '',
 | ||||||
| +                fieldLabel: gettext('FreeNAS Password'),
 | +                fieldLabel: gettext('FreeNAS Password'),
 | ||||||
| +                allowBlank: true
 | +                allowBlank: true
 | ||||||
|             } | +            }
 | ||||||
|         ]; |         ]; | ||||||
|  | 
 | ||||||
|  |         me.callParent(); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue