Project

General

Profile

Bug #27417

Support Fibre Channel loop mode

Added by Ice BoosteR over 2 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Important
Assignee:
Alexander Motin
Category:
OS
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

HP DL380G7
56GB ECC RAM (40GB to FreeNAS VM)
14x450GB FC HDD via Qlogic QLE2462

ChangeLog Required:
No

Description

After upgrading from 11.0-U4 to 11.1 on my testsystem I cannot import my encrypted pool.
Error messages are:
Dec 25 17:37:02 NetApp uwsgi: [middleware.exceptions:36] [MiddlewareError: Unable to geli attach gptid/4a5ad25d-9c90-11e7-97fb-000c29bd1821: geli: Cannot open gptid/4a5ad25d-9c90-11e7-97fb-000c29bd1821: No such file or directory.

I found out that my 14 multipath FC disks did not show up in the "disk" view nor the "MULTIPATH" button was shown
Reverted back to 11.0-U4 and all is fine.
Disks are encrypted and configured as multipath.

So error message makes sense, as disks are not present. Did some drivers has changed? I am using Qlogic QLE2462 as FC device to a NetApp DS14MK4

multipath working.png (140 KB) multipath working.png Ice BoosteR, 12/25/2017 08:50 AM
no disk 11.1.png (90.2 KB) no disk 11.1.png Ice BoosteR, 12/25/2017 08:50 AM
tunables.png (85.2 KB) tunables.png Ice BoosteR, 12/27/2017 11:35 AM
mdisks.png (114 KB) mdisks.png Ice BoosteR, 12/27/2017 11:35 AM
13586
13587
13613
13614

Related issues

Has duplicate FreeNAS - Bug #27862: error during import pool Closed2018-01-18

Associated revisions

Revision ca445dd0 (diff)
Added by Alexander Motin over 2 years ago

Revert "Force FC ports to N-Port mode (block loop modes, not working with NPIV)" This reverts commit 64520af70eb6b3e66583315d166ef1970d9ff578. There are still existing FC JBODs using only the loop mode. Since FreeNAS does not really utilize NPIV now, revert this to make default configuration more universal. Ticket: #27417

Revision 004234da (diff)
Added by Alexander Motin over 2 years ago

Revert "Force FC ports to N-Port mode (block loop modes, not working with NPIV)" This reverts commit 64520af70eb6b3e66583315d166ef1970d9ff578. There are still existing FC JBODs using only the loop mode. Since FreeNAS does not really utilize NPIV now, revert this to make default configuration more universal. Ticket: #27417 (cherry picked from commit ca445dd05cf240db385337d5acb6a1c7c0c4e9b4)

History

#1 Avatar?id=14398&size=24x24 Updated by Kris Moore over 2 years ago

  • Assignee changed from Release Council to Alexander Motin
  • Priority changed from No priority to Important
  • Target version set to 11.1-U1

#2 Updated by Alexander Motin over 2 years ago

  • Status changed from Unscreened to 15

Ice, it would help a lot if you would attach standard debug data, ideally from both forking and not working states, but at least the last one.

#3 Updated by Ice BoosteR over 2 years ago

  • File debug-NetApp-20171225172232.tgz added
  • Private changed from No to Yes

Here we go, debug attached. Hopefully you see something, right now I have no access to the server. Let me know when you need more.

#4 Updated by Alexander Motin over 2 years ago

This does not seem to be related neither to encryption nor to multipath. I don't see disks detected at all, and looking deeper I don't FC connection at all:

dev.isp.1.topo: 0                                                                                                                       
dev.isp.1.loopstate: 0                                                                                                                  
dev.isp.1.fwstate: 0                                                                                                                    
dev.isp.1.linkstate: 0                                                                                                                  
dev.isp.1.speed: 0                                                                                                                      
dev.isp.1.role: 2                                                                                                                       
...
dev.isp.0.topo: 0                                                                                                                       
dev.isp.0.loopstate: 0                                                                                                                  
dev.isp.0.fwstate: 0                                                                                                                    
dev.isp.0.linkstate: 0                                                                                                                  
dev.isp.0.speed: 0                                                                                                                      
dev.isp.0.role: 2                                                                                                                       

I am recalling now that in 11.1 we have disabled FC loop mode support, which we considered never being used any more, since it caused issues for NPIV support. I guess you could hit that. Can you try to set such loader tunables and say whether it help:

hint.isp.0.topology="lport" 
hint.isp.1.topology="lport" 

#5 Updated by Ice BoosteR over 2 years ago

I will try that tomorrow if that is ok. Yes the point is, that the disks does not show up, so I suggested the drives was not loaded or something. I will report back.

#6 Updated by Ice BoosteR over 2 years ago

13613
13614

Hi,

I have set the tunables as you can see in the screenshot, and it failed. Disks/Multipath are shown again but I was not able to import the volume as there are background stuff doing:

Environment:

Software Version: FreeNAS-11.1-RELEASE (dc7d195f4)
Request Method: POST
Request URL: https://192.168.178.101/storage/volume/1/unlock/?X-Progress-ID=4f1d7f61-e037-46b6-8084-77fbe276b523

Traceback:
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
42. response = get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
178. response = middleware_method(request, callback, callback_args, callback_kwargs)
File "./freenasUI/freeadmin/middleware.py" in process_view
162. return login_required(view_func)(request, *view_args, **view_kwargs)
File "/usr/local/lib/python3.6/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
23. return view_func(request, *args, **kwargs)
File "./freenasUI/storage/views.py" in volume_unlock
1005. form.done(volume=volume)
File "./freenasUI/storage/forms.py" in done
2799. _notifier.restart("system_datasets")
File "./freenasUI/middleware/notifier.py" in restart
223. return c.call('service.restart', what, {'onetime': onetime}, **kwargs)
File "./freenasUI/middleware/notifier.py" in restart
223. return c.call('service.restart', what, {'onetime': onetime}, **kwargs)
File "/usr/local/lib/python3.6/site-packages/middlewared/client/client.py" in call
394. raise ClientException(c.error, c.errno, c.trace, c.extra)

Exception Type: ClientException at /storage/volume/1/unlock/
Exception Value: [EFAULT] Failed to update dataset: Device busy

#7 Updated by Ice BoosteR over 2 years ago

Okey, I was able to import the pool, by de-selecting all services to start with the pool.
Maybe this is antoher problem?
Here is the output from /var/log/messages
attached

#8 Updated by Ice BoosteR over 2 years ago

  • File messages.txt added

#9 Updated by Alexander Motin over 2 years ago

  • Subject changed from Cannot import (encrypted) pool after update to 11.1 - multipath-disks not seen to Fibre Channel devices supporting only a loop mode are not detected
  • Status changed from 15 to Fix In Progress

That is some different problem. Open a new ticket for it, if it bother you again.

What's about the original problem here -- proposed tunables did their trick. I'll think about reverting that change for FreeNAS, since we do not use NPIV there any way, unlike TrueNAS.

#10 Updated by Ice BoosteR over 2 years ago

Hi Alexander, thanks for the feedback. I think I will open a new ticket for that.

#11 Updated by Ice BoosteR over 2 years ago

#13 Updated by Alexander Motin over 2 years ago

  • Status changed from Fix In Progress to Ready For Release
  • Needs QA changed from Yes to No

Committed and merged.

#14 Updated by Dru Lavigne over 2 years ago

  • File deleted (debug-NetApp-20171225172232.tgz)

#15 Updated by Dru Lavigne over 2 years ago

  • File deleted (messages.txt)

#16 Updated by Dru Lavigne over 2 years ago

  • Private changed from Yes to No

#17 Updated by Dru Lavigne over 2 years ago

  • Subject changed from Fibre Channel devices supporting only a loop mode are not detected to Support Fibre Channel loop mode

#18 Updated by Dru Lavigne about 2 years ago

  • Status changed from Ready For Release to Resolved

#19 Updated by Alexander Motin about 2 years ago

  • Has duplicate Bug #27862: error during import pool added

Also available in: Atom PDF