IT dragons tamed since 2006 (with 743 solutions and growing)

[login]
[join]

your IP[54.162.44.105]




If you thought this solution was helpfull, please login and vote. Not a member? click here

ID737
TitleHow to scan new storage LUNs (scsi/iscsi/fc/sas) with Solaris
Byjohn
Keywordssolaris SAN devfsadm
Categorystorage
Votes0
Views41
Score41
Date2017-02-13
Body
How to scan new storage LUNs (scsi/iscsi/fc/sas) with Solaris



1. SCSI disks

For any scsi attached jbod device, you can recreate the device trees “on the fly” by reloading the associated driver and re-creating the device trees. In this example, we re-create the device information for a “sd” managed SCSI disk drive in a JBOD array.

# devfsadm -i sd    ## reloading associated driver

# devfsadm -Cv     ## re-creating device trees

 

Some of the Internal disks in servers use the cfgadm utility to facilitate a disk replacment. Here is an example of replacing an internal failed disk.

# cfgadm -c unconfigure c1::dsk/c1t3d0     ## used prior during removal

# cfgadm -c configure  c1::dsk/c1t3d0

 

2. SAS disks

Some SAS connected disk drives are hot swapable via the mpt driver.

# devfsadm -i mpt
# devfsadm -Cv

 

3. iSCSI disks

Even iscsi uses the same technique.

# devfsadm -i iscsi
# devfsadm -Cv

 

4. Fiber channel (FC) disks

Fiber Channel fabric attached devices use the cfgadm utility. In this example, lun 1 of fabric device 203400a0b82fbc5d is added to the server. The lun as seen from the output below is un-configured and needs to be configured to make it seen in the format command.

# cfgadm -al -o show_FCP_dev

Ap_Id                          Type        
Receptacle   Occupant     Condition

c2::203400a0b82fbc5d,1         disk         connected    unconfigured   unknown

# cfgadm -c configure c2::203400a0b82fbc5d,1

 

As a last resort you can use luxadm force_lip command to scan the new FC luns.

# luxadm -e force_lip  /dev/cfg/c2

# cfgadm -o show_FCP_dev -al

# devfsadm –Cv

 

NOTE : luxadm force_lip are momentarily disruptive to i/o that is currently active on the HBA path. So you may want to use it as last resort or when you know there is least or no i/o hapenning on the HBA controller you want to forcelip

 

SharediggDigg this solutiondel.icio.usPost to del.icio.usSlashdotSlashdot it!email to a friend
PrintPrint This Solution Print
If you thought this solution was helpfull, please login and vote. Not a member? click here


Latest News

Thanks to Dave for hosting this site!

Registered User Area

[login]
[new user]


Paying the Rent



Advanced Search:

Choose body, keywords, title, or all to include in search 
words to include in search 
and(+)

Choose body, keywords, title, or all to include in search 
additional words to include in search 
not(-)

Choose body, keywords, title, or all to exclude in search 
words to exclude from search 


catagory
order by






diggDigg Dracko
del.icio.usPost to del.icio.us
SlashdotSlashdot us!




Don't forget to vote!
Powered by John Core
Bye!

Dracko by John Core

me

View John Core's profile on LinkedIn


Certifications
security logo saber ccsa logo ccna-logo hbss veritas

Technologies
oracle_logo
solaris_logo linux-logo openstack_logo vbox_logo splunk storagetek_logo sun_logo oraclevm_logo brocade_logo bsd_logo

Languages
c-logo bash-logo php-logo

Employers
PlanetPayment Medecision AWi PennStateHershey DISA DLA cim Sun

Consulting
KMBS PNC FBI CCS PTD Sentinel