NAME

mapdev - Map disk instance names to device names and vice-versa

SYNOPSIS

mapdev mapdev [ instance | dev ... ]

DESCRIPTION

mapdev converts instance names to device names and vice-versa. 'Vanilla' SCSI disks, floppy disks, cdroms, SSA, A1000, A3000, A3500 and A5000 disks, tapes and NFS mounts are all catered for. With no arguments mapdev prints a list of all the mappings. With an argument like 'sdNNN', 'ssdNNN', 'nfsNNN', 'stNNN' etc it will display the corresponding device name. With an argument that looks like 'cNtNdNsN', 'rmt/N' or 'host:/nfs/share' it will print the corresponding sd, sdd, mt or nfs instance name. If the standard input is a pipe, it will convert any instance names to the corresponding device names, preserving column alignment as far as possible.

OPERANDS

The following operands are supported:

instance name

An instance name, e.g. as reported by 'sar -d'. This will be converted to the corresponding device name.

device name

A device name without the leading "/dev/..." prefix. This will be converted into the corresponding instance name.

EXAMPLES

$ mapdev
nfs132 is an alias for homesvr:/export/home/alan
nfs2 is an alias for mailsvr:/var/mail
nfs3 is an alias for workstation:vold(pid315)
sd0 is an alias for c0t0d0
sd8 is an alias for c0t9d0
sd9 is an alias for c0t10d0
st1 is an alias for mt0
st2 is an alias for mt1

$ mapdev nfs132 sd9,d c0t0d0s3
homesvr:/export/home/alan c0t10d0s3 sd0,d

$ sar -d 1 | mapdev
17:01:42   device        %busy   avque   r+w/s  blks/s  avwait  avserv
           c0t0d0            0     0.0       0       0     0.0     0.0
           c0t0d0s0          0     0.0       0       0     0.0     0.0
           c0t0d0s1          0     0.0       0       0     0.0     0.0
           c0t0d0s2          0     0.0       0       0     0.0     0.0
           c0t9d0            0     0.0       0       0     0.0     0.0
           c0t9d0s2          0     0.0       0       0     0.0     0.0
           c0t9d0s3          0     0.0       0       0     0.0     0.0
           c0t9d0s4          0     0.0       0       0     0.0     0.0
           c0t10d0           0     0.0       0       0     0.0     0.0
           c0t10d0s2         0     0.0       0       0     0.0     0.0
           c0t10d0s3         0     0.0       0       0     0.0     0.0
           c0t10d0s4         0     0.0       0       0     0.0     0.0
           rmt/1             0     0.0       0       0     0.0     0.0

AUTHOR

Alan Burlison, <Alan.Burlison@uk.sun.com>

SEE ALSO

Solaris::MapDev(3)

1 POD Error

The following errors were encountered while parsing the POD:

Around line 115:

You forgot a '=back' before '=head1'