From 5dcb5ca11adc56887821a8fec01948f153324267 Mon Sep 17 00:00:00 2001 From: bergware Date: Wed, 19 Feb 2020 23:22:54 +0100 Subject: [PATCH 1/3] Added BTRFS balance mode dropdown options --- plugins/dynamix/DeviceInfo.page | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/plugins/dynamix/DeviceInfo.page b/plugins/dynamix/DeviceInfo.page index 46cdd14f0..973d27d2b 100644 --- a/plugins/dynamix/DeviceInfo.page +++ b/plugins/dynamix/DeviceInfo.page @@ -208,7 +208,6 @@ function xfsCheck(path) { } function updateMode(form,mode) { $(form).find('input[name="#arg[3]"]').val(mode); - if (mode.indexOf('raid5')>0||mode.indexOf('raid6')>0) $('#mode-warning').text('RAiD5/6 still has some issues and should be used for testing purposes only'); else $('#mode-warning').text(''); } $(function() { 1):?> @@ -364,15 +363,15 @@ btrfs balance status:   : 1):?> - =4) echo mk_option(1,'-dconvert=raid10 -mconvert=raid10','Convert to raid10 mode');?> - =3) echo mk_option(1,'-dconvert=raid5 -mconvert=raid1','Convert to raid5 mode');?> - =4) echo mk_option(1,'-dconvert=raid6 -mconvert=raid1','Convert to raid6 mode');?> - + =3) echo mk_option(1,'-dconvert=raid5 -mconvert=raid1','Convert to raid5 mode *see help');?> + =4) echo mk_option(1,'-dconvert=raid6 -mconvert=raid1','Convert to raid6 mode *see help');?> + *Perform full balance* @@ -380,14 +379,17 @@ btrfs balance status: > **Balance** will run the *btrfs balance* program to restripe the extents across all pool devices, for example, > to convert the pool from raid1 to raid0 or vice-versa. > -> Without any options specified a "full balance" is performed which will basically rewrite everything in the filesystem. +> A *Full Balance* basically rewrites everything in the filesystem and affects btrfs data extents; metadata always uses raid1 (and is converted to raid1 if necessary by any balance operation) +> > The run time is potentially very long, depending on the filesystem size. > > Unraid uses these default options when creating a multiple-device pool: > > `-dconvert=raid1 -mconvert=raid1` > -> For more complete documentation, please refer to the btrfs-balance [Manpage](https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs-balance). +> For more complete documentation, please refer to the btrfs-balance [Manpage](https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs-balance) +> +> *Note: raid5 and raid6 are generally still considered **experimental** by the Linux community* From f29c017e7148feeea5be7ba2e22ce5577105061d Mon Sep 17 00:00:00 2001 From: bergware Date: Wed, 19 Feb 2020 23:26:08 +0100 Subject: [PATCH 2/3] Style correction --- plugins/dynamix/UserAdd.page | 2 +- plugins/dynamix/UserEdit.page | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/dynamix/UserAdd.page b/plugins/dynamix/UserAdd.page index e5fb2f8ba..27ff27c09 100644 --- a/plugins/dynamix/UserAdd.page +++ b/plugins/dynamix/UserAdd.page @@ -33,7 +33,7 @@ span#dropbox{border:1px solid #1c1c1c;border-radius:5px;background:#e8e8e8;paddi i.top{position:absolute;padding-top:4px;cursor:pointer} i#showPass.checked{opacity:0.5} -.usage-disk.sys{display:inline-block;width:10rem;top:rem;margin-left:12px;border-radius:4px} +.usage-disk.sys{display:inline-block;width:10rem;top:rem;margin-left:12px;border-radius:4px} diff --git a/plugins/dynamix/UserEdit.page b/plugins/dynamix/UserEdit.page index f8adbf4d6..09b7448e1 100644 --- a/plugins/dynamix/UserEdit.page +++ b/plugins/dynamix/UserEdit.page @@ -40,7 +40,7 @@ span#dropbox{border:1px solid #1c1c1c;border-radius:5px;background:#e8e8e8;paddi i.top{position:absolute;padding-top:4px;cursor:pointer} i#showPass.checked{opacity:0.5} -.usage-disk.sys{display:inline-block;width:10rem;top:rem;margin-left:12px;border-radius:4px} +.usage-disk.sys{display:inline-block;width:10rem;top:rem;margin-left:12px;border-radius:4px} From 597aaed9f026c372c96257b51564dba28206d972 Mon Sep 17 00:00:00 2001 From: bergware Date: Thu, 20 Feb 2020 07:13:10 +0100 Subject: [PATCH 3/3] Added BTRFS balance mode dropdown options --- plugins/dynamix/DeviceInfo.page | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/dynamix/DeviceInfo.page b/plugins/dynamix/DeviceInfo.page index 973d27d2b..86ef616ba 100644 --- a/plugins/dynamix/DeviceInfo.page +++ b/plugins/dynamix/DeviceInfo.page @@ -379,9 +379,11 @@ btrfs balance status: > **Balance** will run the *btrfs balance* program to restripe the extents across all pool devices, for example, > to convert the pool from raid1 to raid0 or vice-versa. > -> A *Full Balance* basically rewrites everything in the filesystem and affects btrfs data extents; metadata always uses raid1 (and is converted to raid1 if necessary by any balance operation) +> When a *full balance* is perfomred, it basically rewrites everything in the current filesystem. > -> The run time is potentially very long, depending on the filesystem size. +> A *mode conversion* affects the btrfs data extents; metadata always uses raid1 and is converted to raid1 if necessary by any balance operation. +> +> The run time is potentially very long, depending on the filesystem size and speed of the device. > > Unraid uses these default options when creating a multiple-device pool: >