Forums

Home / Forums

You need to log in to create posts and topics. Login · Register

Cannot add cache disk on PetaSAN 3.1.0

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.

 

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

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

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

 

Can you confirm the bug from your end?

Or did I mess up my installation somehow?

Thanks