• 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 – Changing from iSCSI Static Discovery to SendTargets Discovery

by admin

This post is to provide steps from changing iSCSI Static Discovery to SendTargets Discovery. If zones are configured, zones need to be halted before changing the iSCSI discovery method then boot afterward. If zpool is configured, zpool needs to be exported before changing the iSCSI discovery method then import afterward.

Below are high level steps:

  1. halt zones
  2. export -f zfs pools
  3. remove static disks
  4. disable static discovery service
  5. restart target discovery service
  6. import pools
  7. boot zones

Below are detailed steps of changing from iSCSI Static to SendTargets Discovery method.

Note: No shutdown is required, but it will cause momentarily disruption to the connection.

1. Remove the luns from static-config and discovery address file.

# iscsiadm remove static-config iqn.2001-05.com.equallogic:0-8a0906-7fe02640d-3a76220fcab566f1-hddirswebep04-01,192.168.238.2:3260
# iscsiadm remove static-config iqn.2001-05.com.equallogic:0-8a0906-2e802640d-175003dddfc55491-hddirsappip01-01,192.168.238.2:3260

2. Disable static discovery

# iscsiadm modify discovery -s disable

3. Disable/enable SendTargets discovery to bring in the luns again.

# iscsiadm modify discovery -t disable
# iscsiadm modify discovery -t enable

4. Then list the target again to make sure all the luns are discovered.

Filed Under: Solaris, Solaris 11, ZFS, Zones

Some more articles you might also be interested in …

  1. How to Configure Integrated Load Balancer (ILB) in Solaris 11
  2. Solaris : Non-root user can’t run prtdiag command
  3. Solaris 10 zones troubleshooting : Unable to Share NFS File Systems From a Non-global Zone
  4. Solaris : How to set limit on the maximum number of open files per process
  5. ZFS destroy error “cannot determine dependent datasets: recursive dependency”
  6. Solaris ZFS command line reference (Cheat sheet)
  7. Complete hardware reference : M3000 / M4000 / M5000 / M8000 / M9000
  8. 17 Examples of using Solaris boot command
  9. Solaris Zones : How To Change The Number Of CPUs Using Dynamic Resource Pools
  10. Solaris 11 : How to Verify Kernel Zone Support on a Host

You May Also Like

Primary Sidebar

Recent Posts

  • batch: Execute commands at a later time when the system load levels permit
  • bat: Print and concatenate files
  • bastet: Clone of the game Tetris in the terminal
  • bashmarks: Save and jump to commonly used directories using 1 character commands

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright