2020-06-25 12:53:05 +00:00
|
|
|
Ext.define('PBS.window.CreateZFS', {
|
|
|
|
extend: 'Proxmox.window.Edit',
|
|
|
|
xtype: 'pbsCreateZFS',
|
|
|
|
|
|
|
|
subject: 'ZFS',
|
|
|
|
|
|
|
|
showProgress: true,
|
|
|
|
|
|
|
|
onlineHelp: 'chapter_zfs',
|
|
|
|
|
|
|
|
width: 800,
|
|
|
|
|
|
|
|
url: '/nodes/localhost/disks/zfs',
|
|
|
|
method: 'POST',
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
xtype: 'inputpanel',
|
|
|
|
onGetValues: function(values) {
|
|
|
|
return values;
|
|
|
|
},
|
|
|
|
column1: [
|
|
|
|
{
|
|
|
|
xtype: 'proxmoxtextfield',
|
|
|
|
name: 'name',
|
|
|
|
fieldLabel: gettext('Name'),
|
|
|
|
allowBlank: false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
xtype: 'proxmoxcheckbox',
|
|
|
|
name: 'add-datastore',
|
2020-07-02 15:05:58 +00:00
|
|
|
fieldLabel: gettext('Add as Datastore'),
|
2020-06-25 12:53:05 +00:00
|
|
|
value: '1'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
column2: [
|
|
|
|
{
|
|
|
|
xtype: 'proxmoxKVComboBox',
|
|
|
|
fieldLabel: gettext('RAID Level'),
|
|
|
|
name: 'raidlevel',
|
|
|
|
value: 'single',
|
|
|
|
comboItems: [
|
|
|
|
['single', gettext('Single Disk')],
|
|
|
|
['mirror', 'Mirror'],
|
|
|
|
['raid10', 'RAID10'],
|
|
|
|
['raidz', 'RAIDZ'],
|
|
|
|
['raidz2', 'RAIDZ2'],
|
|
|
|
['raidz3', 'RAIDZ3']
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
xtype: 'proxmoxKVComboBox',
|
|
|
|
fieldLabel: gettext('Compression'),
|
|
|
|
name: 'compression',
|
|
|
|
value: 'on',
|
|
|
|
comboItems: [
|
|
|
|
['on', 'on'],
|
|
|
|
['off', 'off'],
|
|
|
|
['gzip', 'gzip'],
|
|
|
|
['lz4', 'lz4'],
|
|
|
|
['lzjb', 'lzjb'],
|
|
|
|
['zle', 'zle']
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
xtype: 'proxmoxintegerfield',
|
|
|
|
fieldLabel: gettext('ashift'),
|
|
|
|
minValue: 9,
|
|
|
|
maxValue: 16,
|
|
|
|
value: '12',
|
|
|
|
name: 'ashift'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
columnB: [
|
|
|
|
{
|
|
|
|
xtype: 'pmxMultiDiskSelector',
|
|
|
|
name: 'devices',
|
|
|
|
nodename: 'localhost',
|
|
|
|
typeParam: 'usage-type',
|
|
|
|
valueField: 'name',
|
|
|
|
height: 200,
|
|
|
|
emptyText: gettext('No Disks unused'),
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
xtype: 'displayfield',
|
|
|
|
padding: '5 0 0 0',
|
|
|
|
userCls: 'pmx-hint',
|
|
|
|
value: 'Note: ZFS is not compatible with disks backed by a hardware ' +
|
|
|
|
'RAID controller. For details see ' +
|
|
|
|
'<a target="_blank" href="' + Proxmox.Utils.get_help_link('chapter_zfs') + '">the reference documentation</a>.',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
});
|