> I'm trying to figure out which kind of disk a certain file system is mounted on.
> lets look at, say, /data/db1.
> reading mnttab I can see that /data/db1 is mounted on: /dev/dsk/c3t0d5s2
> /dev/dsk/c3t0d5s2 /SAN_NOVRTS/rdb5402 ufs rw,... ,dev=3c40052 1029325712
> so, I can see it's a ufs and the device.
> How can I tell if this is a local disk or a SAN lun?????
I can think of a few ways, none of them terribly pretty. The system
generally makes it so you don't care about the difference, so this sort
of thing isn't usually necessary.
1) Use iostat -En and look at the label on the disk. Often, scsi
attached and SAN attached disks will be different. If you have a Sun
array though, this might not be true.
2) Figure out what your SAN HBAs are. You might have to get some
information from prtconf, or from /etc/path_to_inst, or you might
just keep a table. The drive files point to the full hardware path.
# ls -l /dev/rdsk/c4t45d74s2
lrwxrwxrwx 1 root other 51 Jul 17 13:18 /dev/rdsk/c4t45d74s2 ->
I know that there's a JNI card in that spot, so this is a SAN disk.
or I can parse..
c4t45d74 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: EMC Product: SYMMETRIX Revision: 5567 Serial No:
Size: 48.27GB <48270213120 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
and guess the same thing...
Unix System Administrator Taos - The SysAdmin Company
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >