Richard,

I think I know what you want. If you are trying to determine the actual
physical
disks that your datafiles are layed out on, and you're on Solaris, you
probably
need to use the 'vxprint' command.  This assuming you have Veritas volume
manager, which many Solaris sites use.

What you find may surprise  you.  I know I was when I discovered the TEMP
file system mapped onto the spare space on 156 physical disks.

Jared

-------------------------------------------------------------------------------------
#!/bin/ksh
#
# Script to convert a File System mount point to a list of disks in ssdxx
form
#

# jkstill 02/24/2000 - some mods to make this much faster

PROG=$(print $0 | sed -e 's,.*/,,g')     # Name of this program
USAGE_MESSAGE="Usage: $PROG filesystem"

if (( $# != 1 )); then
   print $USAGE_MESSAGE
   exit 1
fi

VX_TMP_FILE=/tmp/vxprint.out.$$

DFOUT=$( df -k $1 | grep -v Filesystem | awk '{ print $1 }' )
VXDG="`echo $DFOUT | cut -f5 -d/`"
VXVOL="`echo $DFOUT | cut -f6 -d/`"

#print DFOUT = $DFOUT
#print VXDG  = $VXDG
#print VXVOL = $VXVOL

vxprint -tsg $VXDG | grep $VXVOL | cut -c67-74 >| $VX_TMP_FILE

#print 1 = $1

while read device
do
   #print $device
   Y=$( /bin/ls -lL /dev/dsk/${device}s0 | /bin/cut -f2 -d, | /bin/awk '{
print $1 }' )
   #print $Y
   ((Z = Y / 8))
   print ssd${Z}
done < $VX_TMP_FILE
---------------------------------------------------------------------




                                                                                       
                          
                    Richard Huntley                                                    
                          
                    <rhuntley@mindle       To:     Multiple recipients of list 
ORACLE-L <[EMAIL PROTECTED]>   
                    aders.com>             cc:                                         
                          
                    Sent by:               Subject:     UNIX                           
                          
                    [EMAIL PROTECTED]                                                   
                          
                                                                                       
                          
                                                                                       
                          
                    07/10/01 10:51                                                     
                          
                    AM                                                                 
                          
                    Please respond                                                     
                          
                    to ORACLE-L                                                        
                          
                                                                                       
                          
                                                                                       
                          




Does anyone know of a command or file that would display the available
disks
on a Solaris 2.6 box and/or the corresponding disks for each mount point???

TIA,
Richard Huntley

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Richard Huntley
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to