How to remove a LUN in "Online Busy" state?

Hi all, I have a LUN that is in "Online Busy" when I issue the dev_gestate subcommand of luxadm:

root@es088wb6:~# luxadm -v -e dev_getstate /dev/rdsk/c21t50050763090887FEd4s2
phys path = "/devices/pci@6c0/pci@1/pci@0/pci@4/SUNW,qlc@0/fp@0,0/ssd@w50050763090887fe,4:c,raw"
        /dev/rdsk/c21t50050763090887FEd4s2: Online Busy

The problem is, I cannot do

luxadm -e offline 

of that LUN because of that state. I'm pretty sure that is not in use right NOW, as the LDOM that was using it is now deleted.

Is there any way to force the "Online" state, in order to remove it from the OS?

are you using the LUN for an LDOM or exported to a zone as a device?

Those LUNs were used as root and mirror of rpool of an LDOM, now deleted.

so you deleted the LDOM. Did you delete the VDS device?

please provide the output of

ldm list -o disk primary

1 Like

Can you see the disk with cfgadm?

cfgadm -al

if the answer is yes, if you unconfigure with cfgadm

cfgadm -f -c unconfigure path-to-disk

after to this probably you can execute the luxadm sucessfully.

I hope that this can be useful.

Hi, thanks for your reply. How can I unconfigure a specific disk using cfgadm? As far as I know, it can only unconfigure a whole WWN, am I wrong?