sar -d and how to determine which filesystem using the disk devices?

sar -d and how to determine which filesystem using the disk devices?

Post by MikeH » Fri, 08 Jul 2005 22:08:29



One can see from the sar -d reports that md1 is at 100% used.
But how to determine which filesystem using the disk devices? Thanks.
09:06:04   md0              65     1.8      19     365    32.0    63.0
           md1             100    11.4     284    7107     1.4    38.8
           md10             52     0.8      10     220     0.0    84.2
           md11            100     7.6     169    5260     0.0    45.2
           md20             37     0.5      10     145     0.0    45.7
           md21            100     5.9     169    5260     0.0    35.0
           sd2             100     6.7     180    5409     3.4    34.0
           sd2,a            36     0.5      10     145     1.2    44.5
           sd2,b           100     5.9     169    5260     3.5    31.5
           sd3             100     9.2     179    5487     5.4    45.7
           sd3,a            51     0.8      10     220     1.3    82.9
           sd3,b           100     7.6     169    5260     5.5    39.7
           sd3,h            52     0.7       1       1    39.1   878.0
           sd113            56     0.7     215   55002     0.0     3.2
           sd113,e          56     0.7     215   55002     0.0     3.2
           sd115            40     0.4     382   12193     0.0     1.1
           sd115,e          40     0.4     382   12193     0.0     1.1
           sd116            41     0.5     455   14541     0.0     1.0
           sd116,e          41     0.5     455   14541     0.0     1.0
           sd118            36     0.4     390   12672     0.0     1.0
           sd118,e          36     0.4     390   12672     0.0     1.0
 
 
 

sar -d and how to determine which filesystem using the disk devices?

Post by venk » Fri, 08 Jul 2005 22:39:02


Try "iostat -xnpCm 2 " and see if it helps.

Thanks
Venku

 
 
 

sar -d and how to determine which filesystem using the disk devices?

Post by MikeH » Sat, 09 Jul 2005 04:29:01


Thanks for reply. using iostat -xnpCm2 displays filesystems associated
to the root disk group and not the veritas disk gps
like below. Any other ways? Thanks
                    extended device statistics
    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
   46.1   22.3  340.5  490.5  0.3  2.0    4.6   29.2   1  13 c0
  403.5   17.8 13282.1  346.5  0.0  0.8    0.0    1.9   0   2 c2
    6.4    1.9   76.3   17.4  0.0  0.3    5.5   39.2   4  11 d0 (/)
   31.0    5.5  247.7  206.1  0.0  1.5    1.0   40.3   4  16 d1
    8.4    2.7   14.1   21.3  0.0  0.1    3.3   11.7   3  10 d3 (/var)
    0.2    0.0    2.4    0.1  0.0  0.0    4.3  103.9   0   1 d5
(/usr/local)
    3.2    1.9   38.2   17.3  0.0  0.2    0.0   41.2   0   9 d10
   15.5    5.5  123.9  206.1  0.0  0.9    0.0   42.5   0  13 d11
    4.2    2.7    7.1   21.3  0.0  0.1    0.0   13.7   0   8 d13
    0.1    0.0    1.2    0.1  0.0  0.0    0.0  117.6   0   1 d15
    3.2    1.9   38.1   17.3  0.0  0.1    0.0   29.6   0   8 d20
   15.5    5.5  123.9  206.1  0.0  0.7    0.0   31.5   0  13 d21
    4.2    2.7    7.1   21.3  0.0  0.1    0.0   11.4   0   7 d23
    0.1    0.0    1.2    0.1  0.0  0.0    0.0   86.7   0   1 d25
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t0d0
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t0d0s2
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t0d0s4
   23.0   11.1  170.2  245.2  0.1  0.9    3.0   25.9   1  19 c0t2d0
    3.3    1.9   38.1   17.3  0.0  0.1    1.4   28.5   0   8 c0t2d0s0
   15.5    5.5  123.9  206.1  0.1  0.6    4.3   27.2   1  13 c0t2d0s1
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t2d0s2
    4.2    2.8    7.1   21.3  0.0  0.1    0.4   11.6   0   6 c0t2d0s3
    0.1    0.0    1.2    0.1  0.0  0.0    3.4   82.1   0   1 c0t2d0s5
    0.0    0.0    0.0    0.0  0.0  0.0    0.0    8.4   0   0 c0t2d0s6
    0.0    1.0    0.0    0.5  0.0  0.1    2.3   80.4   0   6 c0t2d0s7
   23.0   11.1  170.3  245.2  0.2  1.1    6.3   32.4   2  20 c0t3d0
 
 
 

sar -d and how to determine which filesystem using the disk devices?

Post by Matt Bul » Sun, 10 Jul 2005 03:13:15



Quote:> Thanks for reply. using iostat -xnpCm2 displays filesystems associated
> to the root disk group and not the veritas disk gps
> like below. Any other ways? Thanks
>                    extended device statistics
>    r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
>   46.1   22.3  340.5  490.5  0.3  2.0    4.6   29.2   1  13 c0
>  403.5   17.8 13282.1  346.5  0.0  0.8    0.0    1.9   0   2 c2
>    6.4    1.9   76.3   17.4  0.0  0.3    5.5   39.2   4  11 d0 (/)
>   31.0    5.5  247.7  206.1  0.0  1.5    1.0   40.3   4  16 d1
>    8.4    2.7   14.1   21.3  0.0  0.1    3.3   11.7   3  10 d3 (/var)
>    0.2    0.0    2.4    0.1  0.0  0.0    4.3  103.9   0   1 d5
> (/usr/local)
>    3.2    1.9   38.2   17.3  0.0  0.2    0.0   41.2   0   9 d10
>   15.5    5.5  123.9  206.1  0.0  0.9    0.0   42.5   0  13 d11
>    4.2    2.7    7.1   21.3  0.0  0.1    0.0   13.7   0   8 d13
>    0.1    0.0    1.2    0.1  0.0  0.0    0.0  117.6   0   1 d15
>    3.2    1.9   38.1   17.3  0.0  0.1    0.0   29.6   0   8 d20
>   15.5    5.5  123.9  206.1  0.0  0.7    0.0   31.5   0  13 d21
>    4.2    2.7    7.1   21.3  0.0  0.1    0.0   11.4   0   7 d23
>    0.1    0.0    1.2    0.1  0.0  0.0    0.0   86.7   0   1 d25
>    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t0d0
>    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t0d0s2
>    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t0d0s4
>   23.0   11.1  170.2  245.2  0.1  0.9    3.0   25.9   1  19 c0t2d0
>    3.3    1.9   38.1   17.3  0.0  0.1    1.4   28.5   0   8 c0t2d0s0
>   15.5    5.5  123.9  206.1  0.1  0.6    4.3   27.2   1  13 c0t2d0s1
>    0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t2d0s2
>    4.2    2.8    7.1   21.3  0.0  0.1    0.4   11.6   0   6 c0t2d0s3
>    0.1    0.0    1.2    0.1  0.0  0.0    3.4   82.1   0   1 c0t2d0s5
>    0.0    0.0    0.0    0.0  0.0  0.0    0.0    8.4   0   0 c0t2d0s6
>    0.0    1.0    0.0    0.5  0.0  0.1    2.3   80.4   0   6 c0t2d0s7
>   23.0   11.1  170.3  245.2  0.2  1.1    6.3   32.4   2  20 c0t3d0

Must be missing something here...

Can't you just see what filesystems are mounted from df -k, the metadevices
should be listed?

Cheers,
Matt

 
 
 

sar -d and how to determine which filesystem using the disk devices?

Post by news.iinet.net.a » Mon, 11 Jul 2005 00:18:32


Hi Mike,


> Thanks for reply. using iostat -xnpCm2 displays filesystems associated
> to the root disk group and not the veritas disk gps
> like below. Any other ways? Thanks

If you are looking information regarding Veritas disks and volumes, then
vxstat is the command you want to use.

Kind Regards,

Nathan Dietsch

 
 
 

sar -d and how to determine which filesystem using the disk devices?

Post by AIX n00 » Mon, 11 Jul 2005 07:08:20



> One can see from the sar -d reports that md1 is at 100% used.
> But how to determine which filesystem using the disk devices? Thanks.
> 09:06:04   md0              65     1.8      19     365    32.0    63.0
>            md1             100    11.4     284    7107     1.4    38.8
>            md10             52     0.8      10     220     0.0    84.2
>            md11            100     7.6     169    5260     0.0    45.2
>            md20             37     0.5      10     145     0.0    45.7
>            md21            100     5.9     169    5260     0.0    35.0
>            sd2             100     6.7     180    5409     3.4    34.0
>            sd2,a            36     0.5      10     145     1.2    44.5
>            sd2,b           100     5.9     169    5260     3.5    31.5
>            sd3             100     9.2     179    5487     5.4    45.7
>            sd3,a            51     0.8      10     220     1.3    82.9
>            sd3,b           100     7.6     169    5260     5.5    39.7
>            sd3,h            52     0.7       1       1    39.1   878.0
>            sd113            56     0.7     215   55002     0.0     3.2
>            sd113,e          56     0.7     215   55002     0.0     3.2
>            sd115            40     0.4     382   12193     0.0     1.1
>            sd115,e          40     0.4     382   12193     0.0     1.1
>            sd116            41     0.5     455   14541     0.0     1.0
>            sd116,e          41     0.5     455   14541     0.0     1.0
>            sd118            36     0.4     390   12672     0.0     1.0
>            sd118,e          36     0.4     390   12672     0.0     1.0

Do a "metastat" and see which concat/stripe devices are associated with
which mirrors.  Quite frankly, nothing you provided gives that
information.  You are not using Veritas Volume Manager here, you are
using SVM/SDS.  And if you do an iostat at 5 second intervals, you will
probably see that the 100 percent value is being traded between the
concat/stripe devices in the mirror.  "metastat" will tell you how
everything is laid out.

Great success.

SG

 
 
 

1. Using SAR to determine Programs Mem Use.

Hello:

There may be a much easier way of determining this.  We have several
servers that we monitor memory utilization and on one machine
specifically memory utilization just seems to drop steadily although the
load remains much the same as does the processing.  I'd like to find a
way to analyze the memory utilization per program and find out if I have
a misbehaving program.   I'd like suggestions on how to best do this.  
We do have sar capturing data on this machine so I was wondering if I
could use this to look at specific programs utilization.  I've just
started using sar and have found it nice for looking at historical
utilization.   Will a simple ps tell me what I need to know.  Hints from
anyone who's done this in the past?    We recently started using
syslog-ng for logging and I want to make sure I'm not consuming too much
memory for this single program.

TIA.

Brian Seppanen
Charter Communications                          
Regional Data Center                            906-228-3100 ext 23

2. Sun security FAQ?

3. Using major/minor device numbers to determine SCSI or ATAPI CD-ROM drives

4. MIT-SHM, weird problem

5. How too determine disk space used by a directory tree?

6. Compiling, Disk Space

7. How to determine if tty device is a serial device

8. scsi cd confgi e cdrecord

9. how does the device driver determines its device number?

10. Determining memory bottlenecks thru SAR

11. using the loop device to mount encrypted filesystems

12. Which filesystem is used in SCO UNIX 3.2.4.2 disk?

13. Linux-2.4.18-rc3-ac3: bug with using whole disks as filesystems