• 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

How to remove a failed disk using luxadm and cfgadm

By admin

The failed disk in any solaris servers can be removed basically using these 2 commands :

1. luxadm ( most SAS and SCSI disks )
2. cfgadm ( most fiber channel disk )

Make sure you have removed the disk from volume manager control before removing the disk from OS control.

Using luxadm

1. Remove the disk using the luxadm command :

# /usr/sbin/luxadm remove_device /dev/rdsk/c1t1d0s2

2. If the disk fails to get removed, physically remove the disk and use below command :

# luxadm -e offline /dev/rdsk/c1t1d0s2

If the disk is multipathed, run the above command on the 2nd path as well. The picld daemon notifies the system about the disk removal.

3. Cleanup the device files for the removed device from /dev directory :

# devfsadm -Cv

Using cfgadm

1. Use the cfgadm command to display all the disks in the server.

# cfgadm -al
Ap_Id             Type            Receptacle   Occupant     Condition
c0                scsi-bus        connected    configured   unknown
c0::dsk/c0t0d0    CD-ROM          connected    configured   unknown
c1                scsi-bus        connected    configured   unknown
c1::dsk/c1t0d0    disk            connected    configured   unknown
c1::dsk/c1t1d0    disk            connected    configured   unknown
c1::dsk/c1t2d0    disk            connected    configured   unknown
c1::dsk/c1t3d0    disk            connected    configured   unknown
c2                scsi-bus        connected    configured   unknown
c2::dsk/c2t2d0    disk            connected    configured   unknown
.....

2. On identifying the disk to be removed, unconfigure the disk. You may have to use -f along with -c to forcibly remove the disk in some cases.

# cfgadm -c unconfigure c1::dsk/c1t3d0

3. Verify the status of the disk in cfgadm -al command. It should show unconfigured and unavailable.

c1::dsk/c1t3d0    unavailable     connected    unconfigured unknown

You can safely remove the disk from the server now.

Installing the new disk

Insert the new disk into the disk slot of the server and run the below command. The command is common for both the above methods.

# devfsadm

You should see the new disk detected in the OS:

# ls /dev/rdsk/c#t#d#*

Filed Under: Solaris

Some more articles you might also be interested in …

  1. Solaris 11 (x86/64) : How to boot from DVD to single user mode
  2. How to set up cron for automatic data collection from the system activity reporter (SAR) in Solaris 10 and 11
  3. How to determine link status (up/down) of network interfaces in Solaris
  4. How to configure rsyslog on Solaris 11.1 to send messages to a remote host using TCP
  5. How To Use ‘zpool split’ to Split rpool in solaris 11 (x86/x64)
  6. Solaris : How to increase the Inodes on UFS file system with newfs command
  7. How to update Solaris 11 system Using IPS
  8. Troubleshooting Solaris IPMP
  9. The ultimate Solaris jumpstart troubleshooting guide
  10. How to dynamically replace CPU/memory board (dynamic reconfiguration) on SunFire s6800/e12K/e15K/e25K

You May Also Like

Primary Sidebar

Recent Posts

  • Failed to start LSB: Bring up/down networking – On restarting network service CentOS/RHEL (DHCP client)
  • How To Add Timestamps To dmesg Kernel Boot Log in CentOS/RHEL
  • How to disable ICMP redirects on CentOS/RHEL
  • What are Oracle Key Vault Roles
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary