Al ejecutar luxadm remove_device /dev/rdsk/c1t1d0s2, el sistema pide confirmación e informa de que el disco se va a detener para ser extraído. Cuando se extrae el disco y se presiona Return, el sistema comunica que se han eliminado los enlaces con ese dispositivo.
Pero los enlaces no se han eliminado. El disco se puede volver a insertar y utilizar sin necesidad de ejecutar el comando luxadm insert_device. La siguiente vez que se ejecuta el comando, el sistema indica que no se ha agregado ningún dispositivo nuevo y la consola presenta el siguiente mensaje:
bash-2.03# luxadm remove_device /dev/rdsk/c1t1d0s2
WARNING!!! Please ensure that no filesystems are mounted on these device(s). All data on these devices should have been backed up.
The list of devices which will be removed is: 1: Device name: /dev/rdsk/c1t1d0s2 Node WWN: 2000002037e367e4 Device Type:Disk device Device Paths: /dev/rdsk/c1t1d0s2
Please verify the above list of devices and then enter 'c' or <CR> to Continue or 'q' to Quit. [Default: c]: stopping: /dev/rdsk/c1t1d0s2....Done offlining: /dev/rdsk/c1t1d0s2....Done
Hit <Return> after removing the device(s)
Device: /dev/rdsk/c1t1d0s2 Logical Nodes being removed under /dev/dsk/ and /dev/rdsk: c1t1d0s0 c1t1d0s1 c1t1d0s2 c1t1d0s3 c1t1d0s4 c1t1d0s5 c1t1d0s6 c1t1d0s7
Device: /dev/rdsk/c1t1d0s2 Logical Nodes being removed under /dev/dsk/ and /dev/rdsk: c1t1d0s0 c1t1d0s1 c1t1d0s2 c1t1d0s3 c1t1d0s4 c1t1d0s5 c1t1d0s6 c1t1d0s7
bash-2.03# ls -l /dev/dsk/c1t1* lrwxrwxrwx 1 root root 70 May 4 19:07 /dev/dsk/c1t1d0s0 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w2100002037e367e4,0:a |
lrwxrwxrwx 1 root root 70 May 4 19:07 /dev/dsk/c1t1d0s1 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w2100002037e367e4,0:b
bash-2.03# ls -l /dev/rdsk/c1t1* lrwxrwxrwx 1 root root 74 May 4 19:07 /dev/rdsk/c1t1d0s0 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w2100002037e367e4,0:a,raw lrwxrwxrwx 1 root root 74 May 4 19:07 /dev/rdsk/c1t1d0s7 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w2100002037e367e4,0:h,raw . . /* the following errors are caused by SUNWvts reprobe looking for said disk */
bash-2.03# 8012 05/22/01 14:05:07 Failed on iotcl DKIOCGMEDIAINFO: 6: No such device or address
8012 05/22/01 14:05:41 Failed on iotcl DKIOCGMEDIAINFO: 6: No such device or address
8012 05/22/01 14:07:25 Failed on iotcl DKIOCGMEDIAINFO: 6: No such device or address
bash-2.03# luxadm insert_device Please hit <RETURN> when you have finished adding Fibre Channel Enclosure(s)/Device(s):
Waiting for Loop Initialization to complete... No new device(s) were added!!
|
Solución alternativa: Introduzca el comando siguiente cuando luxadm remove_device indique que ha finalizado correctamente:
# devfsadm -C -c disk |