If you encountered following Error while removing the disk from the Solaris 11 Environment then this post will definatley help you.
root@oratest:~# ldm rm-vdisk vdisk2_sol114 orautestdb2 Guest LDom returned the following reason for failing the operation: Resource Information ---------------------------------------------------------- ----------------------------- /devices/virtual-devices@100/channel-devices@200/disk@2:a mounted filesystem "/.cdrom" VIO operation failed because device is being used in LDom orautestdb2 Failed to remove vdisk instanceCause: The virtual devices cannot be removed the virtual machine is up and running.
root@oratest:~# ldm list NAME STATE FLAGS CONS VCPU MEMORY UTIL NORM UPTIME primary active -n-cv- UART 16 18G 0.6% 0.6% 82d 21h 38m orautestapp active -n---- 5001 48 32G 0.1% 0.1% 48d 3h 25m orautestdb active -n---- 5000 64 64G 0.1% 0.1% 13d 1h 46m orautestdb2 active -n---- 5002 24 64G 0.2% 0.2% 13d 56m orautestapp2 inactive ------ 24 64G root@oratest:~#Solution: Stop the virtual machine on which we are trying to remove the virtual disk and then remove the device it will complete without any issues.
root@oratest:~# ldm rm-vdisk vdisk2_sol114 orautestdb2Thanks for reading :)
regards,
Zaheer
Comments