• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Solaris : How to scan new storage LUNs (scsi/iscsi/fc/sas)

By admin

Storage requirements for servers (and applications) is constantly changing. It becomes very important to be able to allocate or deallocate space without interruption to service. This document provides some approaches to discovering new storage, without performing a reconfiguration reboot. This applies to internal and external disk drives as well as virtual disks. Most of the times the disks are detected automatically without doing anything. 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. Use below methods if the disks are still not visible in the format command.

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 forcelips 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

5. Veritas volume manager

In case you are using veritas volume manager, you may have to scan the LUNs again using “vxdctl enable” to make them visible under VxVM.

# vxdctl enable

Filed Under: Solaris

Some more articles you might also be interested in …

  1. How to Install Oracle Solaris 11 (Text Installer)
  2. How to force a crash dump on T1000/T2000 servers from ALOM
  3. Solaris ZFS : How to replace a failed disk in rpool (x86)
  4. How to create or change or view Boot Device Aliases in Solaris Online
  5. M8000 / M9000 : How to update XCP firmware (XSCF firmware upgrade)
  6. Solaris Interview Questions – Inodes and the Filesystem Troubleshooting
  7. Solaris ZFS : How to Create and Manage Mirrored Storage Pools
  8. Solaris : How to include date and timestamp in bash shell command history
  9. How to Configure iSCSI targets on Solaris 10
  10. How Passwordless SSH works in Linux / UNIX

You May Also Like

Primary Sidebar

Recent Posts

  • What are different Oracle Database Vault Roles
  • Unable to export realm protected table using data pump
  • Beginners Guide to Oracle Database Vault
  • How to Disable IPv6 on Ubuntu 18.04 Bionic Beaver Linux
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary