Reconfiguracion de dispositivos (por si la controladora cambia de numero después de un reboot -r)

Page last edited hace 2181 días 2 horas
De Solaris-ES
Saltar a: navegación, buscar
  • Desmontar los discos utilizados por esa controladora
# umount /soft01
# umount /soft02
  • Acceder al FS donde estan definidas las controladoras
# cd /dev/cfg/
# ls -lat
total 34
drwxr-xr-x   2 root     root         512 Oct 27 21:18 .
drwxr-xr-x  17 root     sys         8704 Oct 28 14:46 ..
lrwxrwxrwx   1 root     other         38 Oct 27 21:18 c7 ->../../devices/pci@6,2000/SUNW,ifp@1:fc
lrwxrwxrwx   1 root     root          37 Apr 28  2004 c0 ->../../devices/pci@1f,4000/scsi@3:scsi
lrwxrwxrwx   1 root     root          37 Apr 28  2004 c1 ->../../devices/pci@1f,4000/scsi@2:scsi
lrwxrwxrwx   1 root     root          36 Apr 28  2004 c2 ->../../devices/pci@6,4000/scsi@2:scsi
lrwxrwxrwx   1 root     root          38 Apr 28  2004 c3 ->../../devices/pci@6,4000/scsi@2,1:scsi
lrwxrwxrwx   1 root     root          36 Apr 28  2004 c4 ->../../devices/pci@6,4000/scsi@4:scsi
lrwxrwxrwx   1 root     root          38 Apr 28  2004 c5 ->../../devices/pci@6,4000/scsi@4,1:scsi
  • Renombrar la controladora por la nueva
# mv c7 c6
# ls -lat
total 34
drwxr-xr-x   2 root     root         512 Oct 30 09:32 .
drwxr-xr-x  17 root     sys         8704 Oct 28 14:46 ..
lrwxrwxrwx   1 root     other         38 Oct 27 21:18 c6 ->../../devices/pci@6,2000/SUNW,ifp@1:fc
lrwxrwxrwx   1 root     root          37 Apr 28  2004 c0 ->../../devices/pci@1f,4000/scsi@3:scsi
lrwxrwxrwx   1 root     root          37 Apr 28  2004 c1 ->../../devices/pci@1f,4000/scsi@2:scsi
lrwxrwxrwx   1 root     root          36 Apr 28  2004 c2 ->../../devices/pci@6,4000/scsi@2:scsi
lrwxrwxrwx   1 root     root          38 Apr 28  2004 c3 ->../../devices/pci@6,4000/scsi@2,1:scsi
lrwxrwxrwx   1 root     root          36 Apr 28  2004 c4 ->../../devices/pci@6,4000/scsi@4:scsi
lrwxrwxrwx   1 root     root          38 Apr 28  2004 c5 ->../../devices/pci@6,4000/scsi@4,1:scsi
  • Borrar los links a la controladora antigua
# cd /dev/rdsk/
# rm -r c7*
# cd /dev/dsk/
# rm -r c7*
  • Limpiar y reconfigurar los dispositivos
# devfsadm -Cv
  • Montar los FileSystems
# mount /soft01
# mount /soft02
# df -k