Sponsored Content
Operating Systems Solaris How to get LUN WWN in Solaris? Post 302834597 by Manish00712 on Friday 19th of July 2013 10:51:05 AM
Old 07-19-2013
How to get LUN WWN in Solaris?

How to get LUN WWN (i.e LUN mapped from a storage box say Symmetrix or clariion) in Solaris. fcinfo command does give the Target port wwn but what i'm looking for is the LUN WWN. Any help is appreciated.
 

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 9 or 10 LUN Limitations

Is there a limit to the number of LUNS that can be concatenated using Solaris Volume manager with Soft partitions? I have worked with some AIX admins in the past and there was such a limitation therefore limiting the size the filesystem could grow to. Is there such a limitation in Solaris 9... (6 Replies)
Discussion started by: BG_JrAdmin
6 Replies

2. Solaris

LUN allocation in solaris server

hi all can anyone tell me how to track a new attached LUN in a solaris server?? (3 Replies)
Discussion started by: raynu.sharma
3 Replies

3. Solaris

Largest LUN size in Solaris 10

What is the largest possible LUN size that can be presented to Solaris 10. I've been googling a lot about this. The new EFI lablels (an alternative to VTOC) supports LUNs greater than 2TB. I need to know the upper limit. please help me find it. (4 Replies)
Discussion started by: pingmeback
4 Replies

4. Solaris

Set up iscsi LUN on solaris 9?

Hi, I need to set up iscsi LUN on Solaris 9. I've done it on Solaris 10 with iscsiadm. How do you do it on Solaris 9 though? Currently using Solaris 9 update 2. Your help is appreciated. Thanks, Sparcman (6 Replies)
Discussion started by: sparcman
6 Replies

5. Solaris

Find LUN with WWN

Hello all, I need find in my OS (Sun10) on LUN 1Tb with WWN 6005-08b4-0010-7137-0000-e000-0076-0000 (HBA) How do it?, Thanks, (3 Replies)
Discussion started by: aav1307
3 Replies

6. Solaris

Incorrect fabric WWN and path_to_inst Solaris 9

Hi, Over a period of time we gradually migrated all LUN's from our HP EVA array over to our EMC array. From the server it would appear some files require a tidy up and was wondering what the impact it would have if changes were to be made to the fabric_WWN_map and path_to_inst files and if... (0 Replies)
Discussion started by: jamba1
0 Replies

7. Solaris

new attached lun in solaris 10

hi, what are the steps to detect and configure a new attached lun in Solaris 10. Is there any difference between cfgadm and luxadm command ? rgds, snjksh (5 Replies)
Discussion started by: snjksh
5 Replies

8. Solaris

Problem with Solaris LUN and New FS

Hi All, I'm using Solaris server, SunOS 5.10 Generic_144488-08 sun4u sparc SUNW, SPARC-Enterprise. There is a newly created LUN of 250GB (EMC). I've scanned the system and able to see the new LUN. For example: 103. emcpower19a <DGC-VRAID-0430 cyl 48638 alt 2 hd 256 sec 16>... (4 Replies)
Discussion started by: superHonda123
4 Replies

9. Solaris

Solaris 10, adding new LUN from SAN storage

Hello to all, Actually, currently on my Solaris box, I've a LUN (5TB space) from a EMC storage which is working fine, and a partition with ZFS filesystem is created for that LUN. as further you'll see in the logs, the "c4t6006016053802E00E6A9196B6506E211d0s2" is the current configured LUN in the... (4 Replies)
Discussion started by: Anti_Evil
4 Replies

10. Solaris

LUn' unmapped from storage still showing on Solaris 10

How can i remove LUN's from solaris 10 those are unmapped from SAN? from storage side i got confirmation that they removed lun. but in my solaris box still it's visible. i tried below. root@globalares2.example.com #luxadm -e offline /dev/rdsk/c2t600D02310007D16C42FF09E24B5B8255d0s2... (7 Replies)
Discussion started by: bentech4u
7 Replies
hbaapi_scsi_info_fns(3C)												  hbaapi_scsi_info_fns(3C)

NAME
hbaapi_scsi_info_fns: HBA_SendScsiInquiry(), HBA_SendReportLUNs(), HBA_SendReadCapacity() - Fibre Channel SNIA HBA APIs to send SCSI com- mands to SCSI devices which have been mapped behind Fibre Channel interfaces SYNOPSIS
DESCRIPTION
This manpage covers Fibre Channel SNIA HBA APIs to send SCSI commands to SCSI devices which have been mapped behind Fibre Channel inter- faces. If the return status indicates success, the response buffer may be interpreted. If the return status indicates a SCSI check condi- tion, the sense buffer may have to be interpreted. These functions require that the applications calling them have an effective user id as that of the root user (euid = 0). This function sends a SCSI inquiry command to a remote WWN (World Wide Name). See INQUIRY Command and Device Identification Page in SCSI Primary Commands - 2 (SPC-2), T10 Project 1236-D revision 18. The argument handle is of type (Refer to and is obtained through a call to The port_wwn argument is remote Port WWN to which a is to be sent. The argument fc_lun corresponds to the specific FC LUN ID to send the inquiry to. The argument EVPD (Enable Vital Product Data) is set to to return the standard SCSI INQUIRY data and to to return the vital product data specified by The argument page_code is the Vital Product Data page code to request when is set to The argument ptr_rsp_buffer is a pointer to the buffer which receives the response. The argument rsp_buffer_size corresponds to the size of the buffer which receives the response. The argument ptr_sense_buffer is a pointer to the buffer which receives the sense data if any. The argument sense_buffer_size corresponds to the size of the buffer which receives the sense information. This function sends a SCSI report LUNs command to a remote WWN. See in SCSI Primary Commands - 2 (SPC-2), T10 Project 1236-D revision 18 The argument handle is of type (Refer to and is obtained through a call to The argument port_wwn is the remote Port WWN to which a report LUNs command is to be sent. The argument ptr_rsp_buffer is a pointer to the buffer which receives the response. The argument rsp_buffer_size corresponds to the size of the buffer which receives the response. The argument ptr_sense_buffer is a pointer to the buffer which receives the sense data if any. The argument sense_buffer_size corresponds to the size of the buffer which receives the sense information. This function sends a read capacity command to a remote WWN. See in SCSI Block Commands (SBC), ANSI NCITS.306:1998. The argument handle is of (Refer to type and is obtained through a call to The argument port_wwn is the remote Port WWN to which a is to be sent. The argument fc_lun corresponds to the specific FC LUN ID to which the read capacity command is to be sent. The argu- ment ptr_rsp_buffer is a pointer to the buffer which receives the response. The argument rsp_buffer_size corresponds to the size of the buffer which receives the response. The argument ptr_sense_buffer is a pointer to the buffer which receives the sense data if any. The argument sense_buffer_size corresponds to the size of the buffer which receives the sense information. 1. The bit is always set to zero in this function and hence the returned Logical Block Address and Block Length in bytes are those of the last logical block on the block device. WARNINGS
This implemention of the FC SNIA HBA API enforces a calling order as follows: or is called before any of the below mentioned functions: RETURN VALUES and return the following values: on success. when a internal library or system error is detected. when the library is busy processing a call that cannot be executed concurrently with other calls and may be modifying internal data structures. when the handle passed to this function is invalid. when any of the pointer passed to this function is NULL. when the adapter to which the handle corresponds is not available. when the WWN given as input does not match the WWN of any discovered port. when the response or sense buffer is smaller than required. when a SCSI Check condition occurs. may also return when the EVPD argument has an invalid value. EXAMPLE
memset (resp_buffer, 0, sizeof(resp_buffer)); memset (senseBuffer, 0, sizeof(sense_buffer)); if ((status = HBA_SendScsiInquiry(handle, wwn, fc_lun, evpd_reqd, page_code, &resp_buffer, sizeof(resp_buffer), &sense_buffer, sizeof(sense_buffer))) != HBA_STATUS_OK) { printf ("HBA_SendScsiInquiry error %d ", status); } else printf ("HBA_SendScsiInquiry output: %s ", resp_buffer); memset (lunBuffer, 0, sizeof(lunBuffer)); memset (senseBuffer, 0, sizeof(senseBuffer)); if ((status = HBA_SendReportLUNs(handle, wwn, &lunBuffer, sizeof(lunBuffer), &senseBuffer, sizeof(senseBuffer))) != HBA_STATUS_OK) { printf ("HBA_SendReportLUNs error %d ", status); } else printf ("HBA_SendReportLUNs %d ", lunBuffer[0]); memset (resp_buffer, 0, sizeof(resp_buffer)); memset (sense_buffer, 0, sizeof(sense_buffer)); if ((status = HBA_SendReadCapacity(handle, wwn, fc_lun, &resp_buffer, sizeof(resp_buffer), &sense_buffer, sizeof(sense_buffer))) != HBA_STATUS_OK) { printf ("HBA_SendReadCapacity error %d ", status); } else printf ("HBA_SendReadCapacity %d ", lunBuffer[0]); FILES
Contains the related data structures and definitions as in AUTHOR
These APIs were developed by Hewlett-Packard Company. SEE ALSO
HBAAPI(3C), HBA_GetVersion(3C), HBA_LoadLibrary(3C), HBA_FreeLibrary(3C), HBA_GetNumberOfAdapters(3C), HBA_GetAdapterName(3C), HBA_Ope- nAdapter(3C), HBA_CloseAdapter(3C), HBA_GetAdapterAttributes(3C), HBA_GetAdapterPortAttributes(3C), HBA_GetPortStatistics(3C), HBA_GetDis- coveredPortAttributes(3C), HBA_GetPortAttributesByWWN(3C), HBA_SendCTPassThru(3C), HBA_GetEventBuffer(3C), HBA_SetRNIDMgmtInfo(3C), HBA_GetRNIDMgmtInfo(3C), HBA_SendRNID(3C), HBA_GetFcpTargetMapping(3C), HBA_GetFcpPersistentBinding(3C), HBA_RefreshInformation(3C), HBA_ResetStatistics(3C). hbaapi_scsi_info_fns(3C)
All times are GMT -4. The time now is 09:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy