The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Ultra 10 - Copying Files From Disc After Booting Up With Recovery Disc? ideffects SUN Solaris 1 05-31-2008 08:30 AM
Mount a remote file system mirciulicai SUN Solaris 4 05-30-2008 10:54 PM
how to mount a file system of a remote machine to local file system cy163 UNIX for Dummies Questions & Answers 2 01-31-2008 09:04 AM
physical and logical disc, mount etc ajaya UNIX for Dummies Questions & Answers 0 03-03-2006 02:00 AM
check the system mount ust Shell Programming and Scripting 7 04-03-2005 03:59 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-11-2007
ailnilanjan ailnilanjan is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 21
File system and disc mount

Hello All

Well i m using sun fire and I want to view file system on each disc mount then what will be the commands?...like i want to get each disc like c0t0d0s0 and others and i want to see directories and files distributed on each discs....

with heartiest greetings
nilanjan
  #2 (permalink)  
Old 01-11-2007
Tornado's Avatar
Tornado Tornado is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2006
Location: Melbourne
Posts: 249
df -k
If you are using disksuite use metastat -p to see what disks are used for your metadevices.
  #3 (permalink)  
Old 01-11-2007
Tornado's Avatar
Tornado Tornado is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2006
Location: Melbourne
Posts: 249
Here is a rather long example:

Code:
$ df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/md/dsk/d0       4138926 1274597 2822940    32%    /
/proc                      0       0       0     0%    /proc
fd                         0       0       0     0%    /dev/fd
mnttab                     0       0       0     0%    /etc/mnttab
/dev/md/dsk/d3       8268461  467317 7718460     6%    /var
swap                 16650904      32 16650872     1%    /var/run
swap                 16824824  173952 16650872     2%    /tmp
/dev/md/dsk/d4       8268461  605134 7580643     8%    /opt
/dev/md/dsk/d83      30979101 18875280 11794030    62%    /export/proj2r1
/dev/md/dsk/d81      82610963 35449614 46335240    44%    /export/proj1r1
/dev/md/dsk/d82      82610963 39879651 41905203    49%    /export/proj1r3
/dev/md/dsk/d84      30979101 15762265 14907045    52%    /export/proj2r3
/dev/md/dsk/d85      103263708 5995033 96236038     6%    /export/proj7r1
/dev/md/dsk/d96      103263708 32091905 70139166    32%    /export/proj7r4
/dev/md/dsk/d95      103263708 17120678 85110393    17%    /export/proj7r2
/dev/md/dsk/d93      30979101 9359901 21309409    31%    /export/proj2r2
/dev/md/dsk/d91      82610963 38350560 43434294    47%    /export/proj1r2
/dev/md/dsk/d94      30979101 26929254 3740056    88%    /export/proj2r4
/dev/md/dsk/d86      103263708 31027946 71203125    31%    /export/proj7r3
/dev/md/dsk/d92      82610963 37786724 43998130    47%    /export/proj1r4
/dev/md/dsk/d6       8268461  355885 7829892     5%    /usr/local
/dev/md/dsk/d97      516318605 433553079 77602340    85%    /export/proj3r2
/dev/md/dsk/d87      516318605 435169703 75985716    86%    /export/proj3r1
/dev/md/dsk/d115     5162822    5139 5106055     1%    /export/proj4r3
/dev/md/dsk/d113     5162822    8966 5102228     1%    /export/proj4r1
/dev/md/dsk/d116     5162822    5139 5106055     1%    /export/proj4r4
/dev/md/dsk/d112     206527432 43134568 161327590    22%    /export/proj9r
/dev/md/dsk/d101     485339487 431735998 48750095    90%    /export/proj3r3
/dev/md/dsk/d114     5162822    5139 5106055     1%    /export/proj4r2
/dev/md/dsk/d102     485339487 420466164 60019929    88%    /export/proj3r4
/dev/md/dsk/d122     30980158   30737 30639620     1%    /export/proj2r5
/dev/md/dsk/d121     82614151   65553 81722457     1%    /export/proj1r5
/dev/md/dsk/d125     51634432   51219 51066869     1%    /export/proj7r5
/dev/md/dsk/d111     722843517 219142726 496472356    31%    /export/proj6r
/dev/md/dsk/d124     5162934    5137 5106168     1%    /export/proj4r5
/dev/md/dsk/d123     413076399 372186945 36758691    92%    /export/proj3r5
/dev/md/dsk/d104     5162934    5137 5106168     1%    /export/app_a2/proj4r5
/dev/md/dsk/d127     5162934    5137 5106168     1%    /export/app_a1/proj4r5
/dev/md/dsk/d126     41307067 24055730 16838267    59%    /export/app_a1/proj1r5
/dev/md/dsk/d103     41307067 24351935 16542062    60%    /export/app_a2/proj1r5
$

$ metastat -p
d0 -m d10 d20 1
d10 1 1 c1t0d0s0
d20 1 1 c1t1d0s0
d1 -m d11 d21 1
d11 1 1 c1t0d0s1
d21 1 1 c1t1d0s1
d3 -m d13 d23 1
d13 1 1 c1t0d0s3
d23 1 1 c1t1d0s3
d4 -m d14 d24 1
d14 1 1 c1t0d0s4
d24 1 1 c1t1d0s4
d6 -m d16 d26 1
d16 1 1 c1t0d0s6
d26 1 1 c1t1d0s6
d7 -m d17 d27 1
d17 1 1 c1t0d0s7
d27 1 1 c1t1d0s7
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
d90 -p c2t600C0FF000000000086A4C44AC0B8600d0s0 -o 1 -b 409600
d91 -p c2t600C0FF000000000086A4C44AC0B8600d0s0 -o 409602 -b 167772160
d92 -p c2t600C0FF000000000086A4C44AC0B8600d0s0 -o 168181763 -b 167772160
d93 -p c2t600C0FF000000000086A4C44AC0B8600d0s0 -o 335953924 -b 62914560
d94 -p c2t600C0FF000000000086A4C44AC0B8600d0s0 -o 398868485 -b 62914560
d95 -p c2t600C0FF000000000086A4C44AC0B8600d0s0 -o 461783046 -b 209715200
d96 -p c2t600C0FF000000000086A4C44AC0B8600d0s0 -o 671498247 -b 209715200
d97 -p c2t600C0FF000000000086A4C44AC0B8600d0s0 -o 881213448 -b 1048576000
d100 -p c2t600C0FF000000000086A4C498D854200d0s0 -o 1 -b 409600
d101 -p c2t600C0FF000000000086A4C498D854200d0s0 -o 409602 -b 985661440
d102 -p c2t600C0FF000000000086A4C498D854200d0s0 -o 986071043 -b 985661440
d103 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 1279672329 -b 83886080
d104 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 1363558410 -b 10485760
d110 -p c2t600C0FF000000000086A4C3795679100d0s0 -o 1 -b 409600
d111 -p c2t600C0FF000000000086A4C3795679100d0s0 -o 409602 -b 1468006400
d112 -p c2t600C0FF000000000086A4C3795679100d0s0 -o 1468416003 -b 419430400
d113 -p c2t600C0FF000000000086A4C3795679100d0s0 -o 1887846404 -b 10485760
d114 -p c2t600C0FF000000000086A4C3795679100d0s0 -o 1898332165 -b 10485760
d115 -p c2t600C0FF000000000086A4C3795679100d0s0 -o 1908817926 -b 10485760
d116 -p c2t600C0FF000000000086A4C3795679100d0s0 -o 1919303687 -b 10485760
d120 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 1 -b 409600
d121 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 409602 -b 167772160
d122 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 168181763 -b 62914560
d123 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 231096324 -b 838860800
d124 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 1069957125 -b 10485760
d125 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 1080442886 -b 104857600
d126 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 1185300487 -b 83886080
d127 -p c2t600C0FF000000000086A4C1A6991D300d0s0 -o 1269186568 -b 10485760
$

From the metastat output you can see that the root disk is a mirror of c1t0d0 and c1t1d0. The slices used are s0 , s1 , s3, s4, s6 and s7 and these are used to creat the mirrors d0, d1, d3, d4, d6 and d7

So:
c1t0d0s0 and c1t1d0s0 is /
c1t0d0s3 and c1t1d0s3 is /var
c1t0d0s4 and c1t1d0s4 is /opt
c1t0d0s6 and c1t1d0s6 is /usr/local

So what about d1 and d7 ?

d1 is swap and d7 is not mounted or used, which is a bit strange as we normaly use slice7 for the metadb, but on this server slice 5 is used for the metadb
Code:
$ metadb
        flags           first blk       block count
     a m  p  luo        16              1034            /dev/dsk/c1t0d0s5
     a    p  luo        1050            1034            /dev/dsk/c1t0d0s5
     a    p  luo        16              1034            /dev/dsk/c1t1d0s5
     a    p  luo        1050            1034            /dev/dsk/c1t1d0s5
     a    p  luo        2084            1034            /dev/dsk/c1t0d0s5
     a    p  luo        2084            1034            /dev/dsk/c1t1d0s5
$

$ swap -l
swapfile             dev  swaplo blocks   free
/dev/md/dsk/d1      85,1      16 16790384 16590960
$

Thats the easy bit, the internal root disks, But how about those other metadevices ?
The other metadevices are soft partitions made on logical drives from 5 3510 disk arrays and you need a few more commands to work out what is what.

Code:
# 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> quit
#

# 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):
#

Above you can see that we have 5 logical drives, ld0 -> ld4. Using all this output we get the following.

Drive 4 is logical drive ld0 and is metadevice d90 (relavent sections are in bold)
ld0 is 955GB and is a RAID5 of 8 physical disks
metadevice d90 is split up into soft partitions d91 -> d96
You can see what d91 -> d96 is mounted as in the df -k output

If you want to know what disks make up ld0 (d90) you will need to use sccli and run the command show disks. The output below has been edited, I didn't want to list all 75 disks.
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)   5  136.73GB   200MB  ld0    ONLINE     SEAGATE ST314680FSUN146G 0407
                                                   S/N 3HY9TV9Y00007523
                                                  WWNN 20000011C659E435
 2(3)  19  136.73GB   200MB  ld0    ONLINE     SEAGATE ST314680FSUN146G 0407
                                                   S/N 3HY9TT2700007523
                                                  WWNN 20000011C659DE23
 2(3)  20  136.73GB   200MB  ld0    ONLINE     SEAGATE ST314680FSUN146G 0407
                                                   S/N 3HY9TMJ000007523
                                                  WWNN 20000011C659D02D
 2(3)  23  136.73GB   200MB  ld0    ONLINE     SEAGATE ST314680FSUN146G 0407
                                                   S/N 3HY9TNJX00007523
                                                  WWNN 20000011C659D0B7
 2(3)  27  136.73GB   200MB  ld0    ONLINE     FUJITSU MAT3147F SUN146G 0602
                                                   S/N 000525C03GKA
                                                  WWNN 500000E011350410
 2(3)  32  136.73GB   200MB  ld0    ONLINE     SEAGATE ST314670FSUN146G 0354
                                                   S/N 1740X8DJ
                                                  WWNN 20000011C6C062DA
 2(3)  33  136.73GB   200MB  ld0    ONLINE     SEAGATE ST314670FSUN146G 0354
                                                   S/N 1740YWX4
                                                  WWNN 20000011C6C090E2

A long example, but hopefully covers what you might have on your end.
Just for completeness of this example, this is how the root disk is partitioned..
Code:
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -   412        4.01GB    (413/0/0)     8405376
  1       swap    wu     413 -  1237        8.01GB    (825/0/0)    16790400
  2     backup    wm       0 - 14086      136.71GB    (14087/0/0) 286698624
  3        var    wm    1238 -  2062        8.01GB    (825/0/0)    16790400
  4 unassigned    wm    2063 -  2887        8.01GB    (825/0/0)    16790400
  5 unassigned    wm    2888 -  2889       19.88MB    (2/0/0)         40704
  6        usr    wm    2890 -  3714        8.01GB    (825/0/0)    16790400
  7 unassigned    wm    3715 - 14086      100.66GB    (10372/0/0) 211090944

I don't like the way its sliced up, but this server has been around here longer then I have been.

Last edited by Tornado; 01-11-2007 at 06:00 AM..
  #4 (permalink)  
Old 01-11-2007
reborg's Avatar
reborg reborg is online now Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,246
Quote:
Originally Posted by Tornado
Here is a rather long example
Yes, but also a very complete and visually well presented one, which is nice to see. Keep up the good work Tornado!
  #5 (permalink)  
Old 01-11-2007
suntac suntac is offline
Registered User
  
 

Join Date: Jul 2005
Location: Amsterdam
Posts: 97
Quote:
Originally Posted by Tornado
Here is a rather long example:
Nice posting Tornado. :-)
  #6 (permalink)  
Old 01-12-2007
ailnilanjan ailnilanjan is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 21
Smile

yeah!...thanx tornado for such a elaborated reply
  #7 (permalink)  
Old 01-12-2007
maheshwin maheshwin is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 55
really nice , keep up
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:16 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0