[Veritas-vx] Clean Up device Trees and path_to_inst

Scott Howard scott at doc.net.au
Wed Feb 26 06:45:13 CST 2003


On Tue, Feb 25, 2003 at 08:06:59AM -0500, Louis C. Watta wrote:
> This is one area where Sun could really improve. We've run out of 
> devices on several hosts because of Sun's poor ability to remove disks. 
> Looks like they are trying to with the boot -p option but I've only ever 
> seen it remove things once.

from man devfsadm :

     -C    Cleanup mode. Prompts devfsadm to invoke cleanup  rou-
           tines that are not normally invoked to remove dangling
           logical links. If  -c  is  also  used,  devfsadm  only
           cleans up for the listed devices' classes.


# ls -l c1t2d0s0
lrwxrwxrwx   1 root     root          51 Jan 16 22:01 c1t2d0s0 -> ../../devices/sbus at 1f,0/SUNW,fas at 0,8800000/sd at 2,0:a
# ls -l ../../devices/sbus at 1f,0/SUNW,fas at 0,8800000/sd at 2,0:a
brw-r-----   1 root     sys       32,256 Jan 16 22:01 ../../devices/sbus at 1f,0/SUNW,fas at 0,8800000/sd at 2,0:a

# devfsadm -C

# ls -l c1t2d0s0
c1t2d0s0: No such file or directory
# ls -l ../../devices/sbus at 1f,0/SUNW,fas at 0,8800000/sd at 2,0:a
../../devices/sbus at 1f,0/SUNW,fas at 0,8800000/sd at 2,0:a: No such file or directory

  Scott



More information about the Veritas-vx mailing list