naming

All posts tagged naming

In order to convert the Solaris ssd naming from sd# to c#t#d#, very useful as in the log files will be showed only the sd# naming, we can use the next simple set of commands to convert them. # paste -d= <(iostat -x | awk 'NR>2{print $1}') <(iostat -nx | awk 'NR>2{print "/dev/dsk/"$11}') this the output for some disks: sd0=/dev/dsk/c0t5000CCA0164B7CDCd0 sd1=/dev/dsk/c0t5000CCA0164BD734d0 sd4=/dev/dsk/c1t0d0 ssd0=/dev/dsk/c4t5000097500015190d6 ssd1=/dev/dsk/c4t5000097500015190d5 If Read more...
Sometimes we would like to access devices with a more friendly naming or unify naming with disks or devices. Normally USB disks naming depends the order you connect the disk, so if you want to set always the same name for a specific device to access it as /dev/ipod follow next rules to symlink to a new name. To link devices in /dev find the block device, for example with sdi USB disk. # udevinfo -q all -n /dev/sdi P: /block/sdi N: sdj and check which parameters we can use, here is the output Read more...