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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • 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. Solaris : How to automate scp transfer (using passwordless ssh)
  2. A beginners guide to Solaris Multipathing Software (MPxIO or STMS)
  3. How to prevent non-root user from creating crontab entry
  4. Script for finding the process using a specific port in Solaris
  5. How To Use ‘zpool split’ to Split rpool in solaris 11 (SPARC)
  6. How to replace a disk under ZFS in Solaris
  7. How to set up cron for automatic data collection from the system activity reporter (SAR) in Solaris 10 and 11
  8. Troubleshooting Solaris IPMP
  9. Solaris 11 : Increasing the size of a vdisk in LDom ( with backend device as ZFS volume )
  10. Solaris 11 : How to monitor network traffic using “ipstat”, “tcpstat” and “netstat” commands

You May Also Like

Primary Sidebar

Recent Posts

  • qsub Command Examples in Linux
  • qsub: command not found
  • qrcp Command Examples in Linux
  • qmrestore Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright