Sun Microsystems, Inc.  Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1569381.1
Update Date:2018-01-16
Keywords:

Solution Type  Technical Instruction Sure

Solution  1569381.1 :   How to Detect New Fibre Channel (FC) LUNs in Solaris Without Rebooting  


Related Items
  • Emulex FC HBA
  •  
  • Solaris Operating System
  •  
  • Solaris Operating System
  •  
  • SPARC T5-8
  •  
  • Qlogic FC HBA
  •  
Related Categories
  • PLA-Support>Sun Systems>DISK>Storage Drivers>SN-DK: Storage Drivers
  •  




In this Document
Goal
Solution
References


Created from <SR 3-7292704901>

Applies to:

Qlogic FC HBA - Version All Versions to All Versions [Release All Releases]
Emulex FC HBA - Version All Versions to All Versions [Release All Releases]
Solaris Operating System - Version 8 6/00 U1 to 11.1 [Release 8.0 to 11.0]
SPARC T5-8 - Version All Versions to All Versions [Release All Releases]
Information in this document applies to any platform.

Goal

How can I get new Fiber Channel SAN LUNs seen by Solaris without rebooting?
 

Solution


Steps

1) Wait several minutes to see if the system detects the new LUNs by itself.

The devfsadmd daemon will be running in the background and constantly checking for the presence of new hardware, so often times the device will be found right away.


2) If still no LUNs issue "devfsadm -c disk" command then check for LUNs.

3) Issue "cfgadm -o show_FCP_dev -al" command then check for LUNs.


4) Issue "luxadm -e forcelip /dev/cfg/c#" command.

Disclaimer:

- Normally, this command should not be needed to see newly mapped LUNs.
- If accessing newly mapped LUNs is not urgent then recommendation is to open a Oracle Service Request to investigate why newly mapped LUNs are not seen yet.
- It is a expert level command and should be used with caution.
- Verify other paths/links are operating properly and can provide IO access for existing LUNs before running command on a path.
- Allow at least 5 minutes for link to recover before using this command on any other link.


Where 'c#' is the controller number of the HBA.  You can map these controller numbers to physical paths with "ls -l /dev/cfg".

For example, Before:

$ cfgadm -o show_FCP_dev -al
Ap_Id                          Type         Receptacle   Occupant     Condition
c2                             fc-fabric    connected    configured   unknown
c2::201600a0b847953c,1         disk         connected    configured   unusable
c2::201600a0b847953c,4         disk         connected    configured   unknown
c2::201600a0b847953c,5         disk         connected    configured   unknown


(Now new LUNs are mapped on storage device)

$ luxadm -e forcelip /dev/cfg/c2


Wait one minute.

$ cfgadm -o show_FCP_dev -al
Ap_Id                          Type         Receptacle   Occupant     Condition
c2                             fc-fabric    connected    configured   unknown
c2::201600a0b847953c,1         disk         connected    configured   unusable
c2::201600a0b847953c,4         disk         connected    configured   unknown
c2::201600a0b847953c,5         disk         connected    configured   unknown
c2::201600a0b847953c,7         disk         connected    configured   unknown     < NOTE NEW LUN 7


This command can also be run as 'luxadm -e forcelip {hba-path}' with {hba-path} being the full physical device path from 'luxadm -e port' output.

PLEASE NOTE that luxadm forcelips are momentarily disruptive to i/o that is currently active on this HBA path (but not on the 2nd HBA port if this is dual port, and not on any other HBAs in that host), but it's a lot easier than having to reboot each time.  It is suggested that i/o on the HBA path is quiesced before issuing this command.



References

<NOTE:1542438.1> - Discovery of Fibre Channel (FC) Disk (LUN) and Tape Storage Devices from a Solaris host perspective

Attachments
This solution has no attachment
  Copyright © 2018 Oracle, Inc.  All rights reserved.
 Feedback