File system and disc mount


 
Thread Tools Search this Thread
Operating Systems Solaris File system and disc mount
# 1  
Old 01-11-2007
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  
Old 01-11-2007
df -k
If you are using disksuite use metastat -p to see what disks are used for your metadevices.
Tornado
# 3  
Old 01-11-2007
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..
Tornado
# 4  
Old 01-11-2007
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  
Old 01-11-2007
Quote:
Originally Posted by Tornado
Here is a rather long example:
Nice posting Tornado. :-)
# 6  
Old 01-12-2007
Bug

yeah!...thanx tornado for such a elaborated reply
# 7  
Old 01-12-2007
really nice , keep up
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Cannot mount file system

Hi , We i try to mount aix filesystem i am getting the following error mount: 0506-324 Cannot mount /dev/fslv11 on /testdir: A system call received a parameter that is not valid. Please help me out (2 Replies)
Discussion started by: chidori
2 Replies

2. HP-UX

[Solved] Mount HP-UX File System in Windows 7

Hello, We just got a rx4640 that is running on: HP-UX B.11.31 U ia64 2426088954 unlimited-user license There is a plenty of space in it and we would like to use it for storage. I can access with ftp and place the files in there but i need to mount the file system in every PC that is running... (7 Replies)
Discussion started by: gjk
7 Replies

3. Solaris

Specifying file system mount order

Does anyone know if it's possible to specify the mount order of local and remote file systems? I'd like to mount a local ZFS file system on top of an NFS mount automatically and have that repeated on every reboot. I've checked man pages and Google, but can't find anything that addresses,... (6 Replies)
Discussion started by: Monty51
6 Replies

4. HP-UX

how to mount a file system from a solaris server into an hp-ux system

Hi all I wonder if its possible to mount on a hp-ux server a file system that was previously mounted on a solaris 10 server. The LUN is on NetApp stoarge. The problem on hp-ux I cannot do pvcreate on the lun (disk) because contains data. Any help will be appreciated FR (2 Replies)
Discussion started by: fretagi
2 Replies

5. Solaris

Solaris 11 - how to backup and restore system disc

I have installed Solaris 11 Express on my machine and now I am wondering what is the best way to backup (to another hard disc) and restore the system hard disc content. The backup should to be done every night using a script launched by cron and all previously done backups should be available to... (8 Replies)
Discussion started by: RychnD
8 Replies

6. UNIX and Linux Applications

The usage of mount file system of different servers

There is a file system in server1 which is mounted on different file system on server2. Filesystem kbytes used avail capacity Mounted on server1:/users/user1 7047581 5994192 982914 86% /u01 /data/datafiles/user1 The data in... (1 Reply)
Discussion started by: vamshikrishnab
1 Replies

7. Solaris

Mount a remote file system

Hello, I'm having troubles with sharing a filesystem across 2 machines... Machine A, running Solaris 10, is sharian via NFS the filesystem /sp. Machine B, running Solaris 10, is mounting /sp shared by A in /tm/sp and shares via NFS the /tm folder. Machine C, running HP-UX, is mounting... (4 Replies)
Discussion started by: mirciulicai
4 Replies

8. UNIX for Dummies Questions & Answers

how to mount a file system of a remote machine to local file system

Hi friends, In my case, there are serveral PCs running Linux in a LAN. I would like to to mount the directory /A_river of machine-A to the file system of another machine machine-B so that I can access files in that directory. I do not know how to do this. The situation is complicated by... (2 Replies)
Discussion started by: cy163
2 Replies

9. UNIX for Dummies Questions & Answers

physical and logical disc, mount etc

say i have a hard disc and like to install unix. I made two partition. plese explain what happens then how devices are created like /dev/hd2 /dev/hd9 etc how /usr/mqm is created. does the directory /usr exist? where ? aslo how we create partition in physical directorY? and link... (0 Replies)
Discussion started by: ajaya
0 Replies
Login or Register to Ask a Question