Cannot add cache disk on PetaSAN 3.1.0
rhamon
30 Posts
November 2, 2022, 11:34 pmQuote from rhamon on November 2, 2022, 11:34 pmI'm trying to add a new 3.84TB SSD as cache disk into PetaSAN 3.1.0 and always get the error "Partition Size can not be larger than disk size." no matter what I put in.
I have the feeling it's coming from " function setFormAction(event) { " in /opt/petasan/services/web/static/dist/js/pages/node/disk_list.js
There should be a check for disk_size_unit in here: " else if (parseInt(partitions_val) > disk_size ) { " (line 245 of disk_list.js)
Or maybe there shouldn't be any conversion done from GB to TB for disk_info.size itself in "function loadDiskInfo(id, name) {" of /opt/petasan/services/web/static/dist/js/pages/disk/list.js
Thanks.
I'm trying to add a new 3.84TB SSD as cache disk into PetaSAN 3.1.0 and always get the error "Partition Size can not be larger than disk size." no matter what I put in.
I have the feeling it's coming from " function setFormAction(event) { " in /opt/petasan/services/web/static/dist/js/pages/node/disk_list.js
There should be a check for disk_size_unit in here: " else if (parseInt(partitions_val) > disk_size ) { " (line 245 of disk_list.js)
Or maybe there shouldn't be any conversion done from GB to TB for disk_info.size itself in "function loadDiskInfo(id, name) {" of /opt/petasan/services/web/static/dist/js/pages/disk/list.js
Thanks.
rhamon
30 Posts
November 2, 2022, 11:48 pmQuote from rhamon on November 2, 2022, 11:48 pmI overlooked that disk_size is local to that " if (sel_value === "cache") " as seen in " var disk_size = $('#physical_disk_size').val(); " so ignore my fix but the issue seems to stem from that GB/TB conversion somewhere in there.
Cheers
I overlooked that disk_size is local to that " if (sel_value === "cache") " as seen in " var disk_size = $('#physical_disk_size').val(); " so ignore my fix but the issue seems to stem from that GB/TB conversion somewhere in there.
Cheers
admin
2,918 Posts
November 3, 2022, 5:15 amQuote from admin on November 3, 2022, 5:15 am1 Have you done any changes to the files yourself ?
2 Was this a fresh install from ver 3,1 or have you upgraded from older version ?
3 What browser are you using ? Can you try Chrome or Firefox, can you delete browser cache, or try from a different client machine ?
4 Can you post content of following files:
/opt/petasan/services/web/static/dist/js/pages/cluster/node_role.js
/opt/petasan/services/web/static/dist/js/pages/node/disk_list.js
1 Have you done any changes to the files yourself ?
2 Was this a fresh install from ver 3,1 or have you upgraded from older version ?
3 What browser are you using ? Can you try Chrome or Firefox, can you delete browser cache, or try from a different client machine ?
4 Can you post content of following files:
/opt/petasan/services/web/static/dist/js/pages/cluster/node_role.js
/opt/petasan/services/web/static/dist/js/pages/node/disk_list.js
rhamon
30 Posts
November 3, 2022, 5:47 amQuote from rhamon on November 3, 2022, 5:47 amFresh install of 3.1.0 iirc... haven't modified those files prior to today.
My temporary workaround was to replace in disk_list.js line 245:
else if (parseInt(partitions_val) > disk_size ) {
With:
else if (false) {
To disable the check.
The file disk_list.js: https://pastebin.com/KRJub0LS
And node_role.js: https://pastebin.com/TPnLTkTJ
I don't think it's a browser issue, the disk_size is in TB but it's checking against a partition size in GB for cache. From 0 to 49 I get a message that partition must be 50GB or more and anything 50 or above I get the message partition cannot be larger than size of the disk.
Thanks
Fresh install of 3.1.0 iirc... haven't modified those files prior to today.
My temporary workaround was to replace in disk_list.js line 245:
else if (parseInt(partitions_val) > disk_size ) {
With:
else if (false) {
To disable the check.
The file disk_list.js: https://pastebin.com/KRJub0LS
And node_role.js: https://pastebin.com/TPnLTkTJ
I don't think it's a browser issue, the disk_size is in TB but it's checking against a partition size in GB for cache. From 0 to 49 I get a message that partition must be 50GB or more and anything 50 or above I get the message partition cannot be larger than size of the disk.
Thanks
Last edited on November 3, 2022, 5:52 am by rhamon · #4
rhamon
30 Posts
November 6, 2022, 4:48 pmQuote from rhamon on November 6, 2022, 4:48 pmCan you confirm the bug from your end?
Or did I mess up my installation somehow?
Thanks
Can you confirm the bug from your end?
Or did I mess up my installation somehow?
Thanks
Cannot add cache disk on PetaSAN 3.1.0
rhamon
30 Posts
Quote from rhamon on November 2, 2022, 11:34 pmI'm trying to add a new 3.84TB SSD as cache disk into PetaSAN 3.1.0 and always get the error "Partition Size can not be larger than disk size." no matter what I put in.
I have the feeling it's coming from " function setFormAction(event) { " in /opt/petasan/services/web/static/dist/js/pages/node/disk_list.js
There should be a check for disk_size_unit in here: " else if (parseInt(partitions_val) > disk_size ) { " (line 245 of disk_list.js)
Or maybe there shouldn't be any conversion done from GB to TB for disk_info.size itself in "function loadDiskInfo(id, name) {" of /opt/petasan/services/web/static/dist/js/pages/disk/list.js
Thanks.
I'm trying to add a new 3.84TB SSD as cache disk into PetaSAN 3.1.0 and always get the error "Partition Size can not be larger than disk size." no matter what I put in.
I have the feeling it's coming from " function setFormAction(event) { " in /opt/petasan/services/web/static/dist/js/pages/node/disk_list.js
There should be a check for disk_size_unit in here: " else if (parseInt(partitions_val) > disk_size ) { " (line 245 of disk_list.js)
Or maybe there shouldn't be any conversion done from GB to TB for disk_info.size itself in "function loadDiskInfo(id, name) {" of /opt/petasan/services/web/static/dist/js/pages/disk/list.js
Thanks.
rhamon
30 Posts
Quote from rhamon on November 2, 2022, 11:48 pmI overlooked that disk_size is local to that " if (sel_value === "cache") " as seen in " var disk_size = $('#physical_disk_size').val(); " so ignore my fix but the issue seems to stem from that GB/TB conversion somewhere in there.
Cheers
I overlooked that disk_size is local to that " if (sel_value === "cache") " as seen in " var disk_size = $('#physical_disk_size').val(); " so ignore my fix but the issue seems to stem from that GB/TB conversion somewhere in there.
Cheers
admin
2,918 Posts
Quote from admin on November 3, 2022, 5:15 am1 Have you done any changes to the files yourself ?
2 Was this a fresh install from ver 3,1 or have you upgraded from older version ?
3 What browser are you using ? Can you try Chrome or Firefox, can you delete browser cache, or try from a different client machine ?
4 Can you post content of following files:
/opt/petasan/services/web/static/dist/js/pages/cluster/node_role.js
/opt/petasan/services/web/static/dist/js/pages/node/disk_list.js
1 Have you done any changes to the files yourself ?
2 Was this a fresh install from ver 3,1 or have you upgraded from older version ?
3 What browser are you using ? Can you try Chrome or Firefox, can you delete browser cache, or try from a different client machine ?
4 Can you post content of following files:
/opt/petasan/services/web/static/dist/js/pages/cluster/node_role.js
/opt/petasan/services/web/static/dist/js/pages/node/disk_list.js
rhamon
30 Posts
Quote from rhamon on November 3, 2022, 5:47 amFresh install of 3.1.0 iirc... haven't modified those files prior to today.
My temporary workaround was to replace in disk_list.js line 245:
else if (parseInt(partitions_val) > disk_size ) {
With:
else if (false) {
To disable the check.
The file disk_list.js: https://pastebin.com/KRJub0LS
And node_role.js: https://pastebin.com/TPnLTkTJ
I don't think it's a browser issue, the disk_size is in TB but it's checking against a partition size in GB for cache. From 0 to 49 I get a message that partition must be 50GB or more and anything 50 or above I get the message partition cannot be larger than size of the disk.
Thanks
Fresh install of 3.1.0 iirc... haven't modified those files prior to today.
My temporary workaround was to replace in disk_list.js line 245:
else if (parseInt(partitions_val) > disk_size ) {
With:
else if (false) {
To disable the check.
The file disk_list.js: https://pastebin.com/KRJub0LS
And node_role.js: https://pastebin.com/TPnLTkTJ
I don't think it's a browser issue, the disk_size is in TB but it's checking against a partition size in GB for cache. From 0 to 49 I get a message that partition must be 50GB or more and anything 50 or above I get the message partition cannot be larger than size of the disk.
Thanks
rhamon
30 Posts
Quote from rhamon on November 6, 2022, 4:48 pmCan you confirm the bug from your end?
Or did I mess up my installation somehow?
Thanks
Can you confirm the bug from your end?
Or did I mess up my installation somehow?
Thanks