How to differ local disks from attached from storage ones?


 
Thread Tools Search this Thread
Operating Systems Solaris How to differ local disks from attached from storage ones?
# 1  
Old 03-25-2012
How to differ local disks from attached from storage ones?

Hello.
I have a solaris box with several local disks and several come from SYMMETRIX storage. Is there any way to tell format (or other util) to show only local disks?
# 2  
Old 03-25-2012
Post output of
Code:
cfgadm -al

# 3  
Old 03-25-2012
Code:
Ap_Id                          Type         Receptacle   Occupant     Condition
c0                             scsi-bus     connected    configured   unknown
c0::dsk/c0t0d0                 disk         connected    configured   unknown
c0::dsk/c0t1d0                 disk         connected    configured   unknown
c0::emcpsf0                    unknown      connected    configured   unknown
c1                             scsi-bus     connected    configured   unknown
c1::dsk/c1t4d0                 CD-ROM       connected    configured   unknown
c1::emcpsf1                    unknown      connected    configured   unknown


Last edited by DukeNuke2; 03-25-2012 at 07:49 PM..
# 4  
Old 03-25-2012
So this will show your local disks:
Code:
cfgadm -al c0 | grep disk

# 5  
Old 03-25-2012
It shows me two disks
Code:
cfgadm -la c0 |grep disk
c0::dsk/c0t0d0                 disk         connected    configured   unknown
c0::dsk/c0t1d0                 disk         connected    configured   unknown

But format shows some disks on c2 which are definitely not from storage. Why?

Code:
echo |format
Searching for disks...done

AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <FUJITSU-MAW3073NC-3701 cyl 24345 alt 2 hd 8 sec 737>
          /pci@87,2000/scsi@1/sd@0,0
       1. c0t1d0 <FUJITSU-MAW3073NC-3701 cyl 24345 alt 2 hd 8 sec 737>
          /pci@87,2000/scsi@1/sd@1,0
       2. c2t8d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@85,4000/FJSV,ulsa@3/sd@8,0
       3. c2t9d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@85,4000/FJSV,ulsa@3/sd@9,0
       4. c2t10d0 <SEAGATE-ST373207LSUN72G-045A cyl 14087 alt 2 hd 24 sec 424>
          /pci@85,4000/FJSV,ulsa@3/sd@a,0
       5. c2t11d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@85,4000/FJSV,ulsa@3/sd@b,0
       6. c5t24d49 <EMC-SYMMETRIX-5773 cyl 65533 alt 2 hd 15 sec 320>
          /pci@84,2000/lpfc@1/sd@18,31
       7. c5t24d60 <EMC-SYMMETRIX-5771 cyl 54613 alt 2 hd 30 sec 128>
          /pci@84,2000/lpfc@1/sd@18,3c

# 6  
Old 03-25-2012
Did you post the whole output of "cfgadm -al" in the second post?
# 7  
Old 03-25-2012
yes, sure
Code:
cfgadm -al
Ap_Id                          Type         Receptacle   Occupant     Condition
c0                             scsi-bus     connected    configured   unknown
c0::dsk/c0t0d0                 disk         connected    configured   unknown
c0::dsk/c0t1d0                 disk         connected    configured   unknown
c0::emcpsf0                    unknown      connected    configured   unknown
c1                             scsi-bus     connected    configured   unknown
c1::dsk/c1t4d0                 CD-ROM       connected    configured   unknown
c1::emcpsf1                    unknown      connected    configured   unknown

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Migrate /export/home from storage path to local

I am newbies in solaris, hope u guys can help me, I need to transfer /export/home directory that currently mount at storage and migrate into local disk. may i know the best way to do it? Thanks (6 Replies)
Discussion started by: Deeo
6 Replies

2. HP-UX

To identify if local disks are mirrored

Hello All, Am trynig to identify if the local HD's on our BL860 (running 11v3) are indeed mirrored to each other. Cheers, Cameron (3 Replies)
Discussion started by: Cameron
3 Replies

3. Shell Programming and Scripting

How to get number of attached hard disks in HP-UX

how do i get the number of attached hard disks in HP-UX (1 Reply)
Discussion started by: achak01
1 Replies

4. Shell Programming and Scripting

crontab; copy most recent *.mpg file from local machine to smb storage device

Hello, I've been searching your forum for an answer to the following question and whilst I've seen several which may help I'm afraid my inexperience with UNIX systems has got the better of me and I'm incapable of piecing your considerable expertise together. Problem: I have a linux box which... (5 Replies)
Discussion started by: julezsht
5 Replies

5. Shell Programming and Scripting

Script to login to attached SUN Storage through Solaris m/c w/o user intervention

I want to create a shell script to CLI login to attached SUN 6140 storage from Sun Solaris 9 m/c (instead of using CAM ) but that prompts me for password despite the fact that i am adding them in script .. i am using "expect" feature for this .. however as i never used "expect " before .. so... (0 Replies)
Discussion started by: yogesh29sharma
0 Replies

6. Programming

Thread local storage on ancient AIX

What I'm given: Pure C code in one file that has to compile on Windows, SunOS, and AIX. My task is making minimal changes to the code to make it thread safe. I'm not in control of threads - they are created elsewhere. The code has a function invoked externally. The first call to this function is... (1 Reply)
Discussion started by: vkleban
1 Replies

7. Solaris

Get onyl local hard disks

How can I get only the local hard disks in Solaris? I've tried iostat -x, iostat -E, etc, but it shows the cdroms, dvds, external storage... I want only the local physical hard disks. Thanks. (2 Replies)
Discussion started by: psimoes79
2 Replies

8. Programming

Can't dlopen() a library containing Thread Local Storage

Hi, I have a small test c program which tries to dlopen a shared library(libjvm.sl). But i get error as "Can't dlopen() a library containing Thread Local Storage" My program is as below when i run the program i get error any pointers why the error?? I am using hp-ux . The... (1 Reply)
Discussion started by: shriashishpatil
1 Replies

9. UNIX for Advanced & Expert Users

Saving of UNIX based e-mail on to local disks

Dear friends, Someone please let me know how to store e-mail on local hard disk or floppy disks. I am using UNIX based PINE e-mail programme and the copy of this mail I wanted to store it in my local disks. Thanks in advance. Regards, Rajan (4 Replies)
Discussion started by: rajan9
4 Replies
Login or Register to Ask a Question