Sponsored Content
Top Forums UNIX for Dummies Questions & Answers how to get disks info in solaris9 Post 302096255 by Tornado on Tuesday 14th of November 2006 03:34:50 PM
Old 11-14-2006
rm6(/usr/lib/osa) is for A1000 disk arrays..

To get the info you want use /usr/sbin/sccli

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


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w21000011c6c06310,0
       1. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
          /pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w21000011c6c0cd97,0
       2. c2t600C0FF000000000086A4C1A6991D300d0 <SUN-StorEdge3510-411I cyl 65533 alt 2 hd 64 sec 340>
          /scsi_vhci/ssd@g600c0ff000000000086a4c1a6991d300
       3. c2t600C0FF000000000086A4C7AA9CCC200d0 <SUN-StorEdge3510-411I cyl 65533 alt 2 hd 64 sec 477>
          /scsi_vhci/ssd@g600c0ff000000000086a4c7aa9ccc200
       4. c2t600C0FF000000000086A4C44AC0B8600d0 <SUN-StorEdge3510-411I cyl 65533 alt 2 hd 64 sec 477>
          /scsi_vhci/ssd@g600c0ff000000000086a4c44ac0b8600
       5. c2t600C0FF000000000086A4C498D854200d0 <SUN-StorEdge3510-411I cyl 65533 alt 2 hd 64 sec 477>
          /scsi_vhci/ssd@g600c0ff000000000086a4c498d854200
       6. c2t600C0FF000000000086A4C3795679100d0 <SUN-StorEdge3510-411I cyl 65533 alt 2 hd 64 sec 477>
          /scsi_vhci/ssd@g600c0ff000000000086a4c3795679100
Specify disk (enter its number): Specify disk (enter its number):
#
# /usr/sbin/sccli
sccli: selected device /dev/rdsk/c2t600C0FF000000000086A4C1A6991D300d0s2 [SUN StorEdge 3510 SN#086A4C]
sccli> show logical-drives
LD    LD-ID        Size  Assigned  Type   Disks Spare  Failed Status
------------------------------------------------------------------------
ld0   44AC0B86 955.34GB  Primary   RAID5  8     2      0      Good
                         Write-Policy Default          StripeSize 128KB
ld1   37956791 955.34GB  Primary   RAID5  8     2      0      Good
                         Write-Policy Default          StripeSize 128KB
ld2   498D8542 955.34GB  Primary   RAID5  8     2      0      Good
                         Write-Policy Default          StripeSize 128KB
ld3   7AA9CCC2 955.34GB  Primary   RAID5  8     2      0      Good
                         Write-Policy Default          StripeSize 128KB
ld4   1A6991D3 681.16GB  Primary   RAID5  11    3      0      Good
                         Write-Policy Default          StripeSize 128KB
sccli>

You can get a listing of each physical disk aswell
Code:
sccli> show disks
Ch     Id      Size   Speed  LD     Status     IDs                      Rev
----------------------------------------------------------------------------
 2(3)   0  136.73GB   200MB  ld0    ONLINE     SEAGATE ST314680FSUN146G 0407
                                                   S/N 3HY9TSV500007523
                                                  WWNN 20000011C659DDCE
 2(3)   1  136.73GB   200MB  ld3    ONLINE     SEAGATE ST314680FSUN146G 0407
                                                   S/N 3HY9TTPJ00007523
                                                  WWNN 20000011C659E2C8
 2(3)   2  136.73GB   200MB  GLOBAL STAND-BY   FUJITSU MAT3147F SUN146G 0602
                                                   S/N 000530C046WC
                                                  WWNN 500000E01146C300
:
<-- output cropped -->
:
sccli>

If you use disksuite use metastat -p to see how your logical drives are used.
Code:
# metastat -p
<-- cropped output, only showing one disk -->
d80 -p c2t600C0FF000000000086A4C7AA9CCC200d0s0 -o 1 -b 409600
d81 -p c2t600C0FF000000000086A4C7AA9CCC200d0s0 -o 409602 -b 167772160
d82 -p c2t600C0FF000000000086A4C7AA9CCC200d0s0 -o 168181763 -b 167772160
d83 -p c2t600C0FF000000000086A4C7AA9CCC200d0s0 -o 335953924 -b 62914560
d84 -p c2t600C0FF000000000086A4C7AA9CCC200d0s0 -o 398868485 -b 62914560
d85 -p c2t600C0FF000000000086A4C7AA9CCC200d0s0 -o 461783046 -b 209715200
d86 -p c2t600C0FF000000000086A4C7AA9CCC200d0s0 -o 671498247 -b 209715200
d87 -p c2t600C0FF000000000086A4C7AA9CCC200d0s0 -o 881213448 -b 1048576000
#

From the output above you can see that d80 is ld3 on one of my 3510 arrays which is a 955GB RAID5 volume and d81 to d87 are soft partitions on d80(which is ld3).
Now that you know that much you can work out what partitions are using the disk
Code:
# df -kl | grep /dev/md/dsk/d8
/dev/md/dsk/d81      82610963 36917156 44867698    46%    /export/proj1
/dev/md/dsk/d82      82610963 58065021 23719833    71%    /export/proj2
/dev/md/dsk/d83      30979101 18798629 11870681    62%    /export/proj3
/dev/md/dsk/d84      30979101 14965530 15703780    49%    /export/proj4
/dev/md/dsk/d85      103263708 3244415 98986656     4%    /export/proj5
/dev/md/dsk/d86      103263708 31829369 70401702    32%    /export/proj6
/dev/md/dsk/d87      516318605 378692800 132462619    75%    /export/proj7
#

Tornado
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Solaris9

Hi.. I was woundring something... I have a computer which has an Nvidia GeForce 2 MX card and i'm thinking of to download Solaris 9 but i don't know if this card supports of the operating system...can someone help me please...is there anything else i can do...Thanks (3 Replies)
Discussion started by: CreamHarry
3 Replies

2. UNIX for Dummies Questions & Answers

Solaris9 on Proliant 1850r

I am attempting to install solaris 9 for intel on a Proliant 1850r with a SmartArray 221 RAID controller. The setup program's detection routine seems to find all the required hardware and informs me that no changes are needed. However, once setup begins the GUI portion, it successfully passes the... (1 Reply)
Discussion started by: Brentetn
1 Replies

3. UNIX for Dummies Questions & Answers

how to set up user environment in Solaris9?

The follwoing is my .cshrc: and when I log in and type init, I got the follwoing message: Usage: init and also my login prompt is not ORACLE.bantest>> I believed I am running /bin/sh **************************************************** #ident "@(#)local.cshrc 1.2 ... (5 Replies)
Discussion started by: simt
5 Replies

4. Solaris

install solaris9-how to !

hi all ... I'm new in solaris i want install it, i need the good steps . my Pc is Intel i have 4 CDs for solaris9 . Can u help me plz by some websites or lessons ? I made search in the docs.sun.com but i need another websites. thanks. (1 Reply)
Discussion started by: memo
1 Replies

5. Solaris

Samba 3.0.22 on Solaris9

Hello all, I have successfully installed samba 3.0.22 on my sol 9 e250 machine. I created my share but when i try to get to my share from my windows machine, it prompts me for my username and passwd, i enter it and it just comes back prompting me for my username and passwd agai,. Has anyone been... (8 Replies)
Discussion started by: Gegestic
8 Replies

6. AIX

Map lun info to phyical disks

I have been ask to write a script to show what phyical disks are linked to what luns. By host name. I was hoping someone had some ideas on how to do this. I am from a linux background and am struggling a bit here...lol...I have been given one command to help me out....lsmap..Anyhelp would be... (3 Replies)
Discussion started by: jameszak
3 Replies

7. Solaris

linking in solaris9

at the end of the compilation in solaris 9. it is showing link error. like..... ld: fatal: library -lgthread-2.0 not found failed to create the binary the library is in /usr/lib and in /usr/local/lib the lib file is present --->libgthread.2.0.so ......etc if i remove... (3 Replies)
Discussion started by: biswajithit
3 Replies

8. Solaris

Solaris raw disks info

Hi, I need the following information. 1. We have raw disks but how to identify raw disks. Is there any command to identify its type and size. 2. How to differentiate between disks which are used as file system and that are still available to be used as raw. I know we can use df -n to... (7 Replies)
Discussion started by: malikshahid85
7 Replies

9. Solaris

Which FC HBA card support Solaris9

I have JNI FCE-6460-N fc card , it is detected in OK prompt.....I connected Sun StorEDGE A5000 FC storage. in OK prompt, PROBE-SCSI-ALL showing A5000 fc hdds details in ok prompt..... but in OS level.....not showing the hdd, i tried in DEVFSADM command and FORMAT command not showing A5000... (3 Replies)
Discussion started by: anysystem
3 Replies

10. Solaris

Solaris 10 Sparc. How to change Vendor info of SAN disks reported in "format" command?

Greetings! After block level migration using an external appliance, the luns are getting reported as DGC-RAID5 and these luns are infact from the new storage. I have a query on changing the device Vendor info from DGC-RAID5 to HP3par in the format o/p only. AVAILABLE DISK SELECTIONS: ... (3 Replies)
Discussion started by: n_Bhaskar
3 Replies
All times are GMT -4. The time now is 03:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy