9 Replies Latest reply on Jun 5, 2012 12:46 PM by Nik

    How to check Raid

    user9275313
      Hi all,

      We have Sun Solaris 5.10 sparc sun server, How can we come to know that which raid is configure

      on server.

      Thanks
        • 1. Re: How to check Raid
          Nik
          Hi.
          You shloud provide more information:
          What server you use?
          You have only internal disks or have some extrenal disks ?
          What type of external storage ?

          Some information can provide output of following commands:

          metastat -p
          zpool status
          raidctl


          Regards.
          • 2. Re: How to check Raid
            user9275313
            bash-3.00# metastat -p
            d36 -m d16 d26 1
            d16 1 1 c0t0d0s6
            d26 1 1 c0t1d0s6
            d34 -m d14 d24 1
            d14 1 1 c0t0d0s4
            d24 1 1 c0t1d0s4
            d33 -m d13 d23 1
            d13 1 1 c0t0d0s3
            d23 1 1 c0t1d0s3
            d31 -m d11 d21 1
            d11 1 1 c0t0d0s1
            d21 1 1 c0t1d0s1
            d30 -m d10 d20 1
            d10 1 1 c0t0d0s0
            d20 1 1 c0t1d0s0
            d35 -m d15 d25 1
            d15 1 1 c0t0d0s5
            d25 1 1 c0t1d0s5
            d44 1 1 c1t0d1s4
            d43 1 1 c1t0d1s3
            bash-3.00# zpool status
            no pools available
            bash-3.00# raidctl
            Controller: 0
            Disk: 0.0.0
            Disk: 0.1.0
            Controller: 1
            Disk: 0.0.0
            bash-3.00#

            We have sun solaris sparc machine 4000 and storage is internal.

            Thanks
            • 3. Re: How to check Raid
              Nik
              Hi.

              Current configuration don't use and hardware based RAID ( M4000 don't support it).

              You have two disk : c0t0d0 ; c0t1d0

              Slices of him is mirrored via Solaris Volume Manager.

              You have disk c1t0d1 that mot mirrored.

              It' look more like external disk ( RAID). It's not clear for me reson use this disk under SVM.

              Show how this devices used:
              df -k
              swap -l

              For check status of this device:

              metastat

              Regards.
              • 4. Re: How to check Raid
                user9275313
                Hi ,

                Please check the result.

                bash-3.00# df -k
                Filesystem kbytes used avail capacity Mounted on
                /dev/md/dsk/d30 25215167 931567 24031449 4% /
                /devices 0 0 0 0% /devices
                ctfs 0 0 0 0% /system/contract
                proc 0 0 0 0% /proc
                mnttab 0 0 0 0% /etc/mnttab
                swap 54753640 1672 54751968 1% /etc/svc/volatile
                objfs 0 0 0 0% /system/object
                sharefs 0 0 0 0% /etc/dfs/sharetab
                /dev/md/dsk/d33 20174017 3389368 16582909 17% /usr
                fd 0 0 0 0% /dev/fd
                /dev/md/dsk/d34 20174017 4867516 15104761 25% /var
                /dev/md/dsk/d35 14120715 122705 13856803 1% /tmp
                swap 54752040 72 54751968 1% /var/run
                /dev/md/dsk/d43 516362641 366533931 144665084 72% /orauml
                /dev/md/dsk/d44 309814307 121299176 185416988 40% /appluml
                /dev/md/dsk/d36 20174017 20025 19952252 1% /export/home
                /dev/dsk/c1t0d0s6 287078011 139064498 145142733 49% /backup
                bash-3.00# swap -l
                swapfile dev swaplo blocks free
                /dev/md/dsk/d31 85,31 16 81937136 81809248
                bash-3.00# metstat
                bash: metstat: command not found
                bash-3.00# metastat
                d36: Mirror
                Submirror 0: d16
                State: Okay
                Submirror 1: d26
                State: Okay
                Pass: 1
                Read option: roundrobin (default)
                Write option: parallel (default)
                Size: 40968576 blocks (19 GB)

                d16: Submirror of d36
                State: Okay
                Size: 40968576 blocks (19 GB)
                Stripe 0:
                Device Start Block Dbase State Reloc Hot Spare
                c0t0d0s6 0 No Okay Yes


                d26: Submirror of d36
                State: Okay
                Size: 40968576 blocks (19 GB)
                Stripe 0:
                Device Start Block Dbase State Reloc Hot Spare
                c0t1d0s6 0 No Okay Yes


                d34: Mirror
                Submirror 0: d14
                State: Okay
                Submirror 1: d24
                State: Okay
                Pass: 1
                Read option: roundrobin (default)
                Write option: parallel (default)
                Size: 40968576 blocks (19 GB)

                d14: Submirror of d34
                State: Okay
                Size: 40968576 blocks (19 GB)
                Stripe 0:
                Device Start Block Dbase State Reloc Hot Spare
                c0t0d0s4 0 No Okay Yes


                d24: Submirror of d34
                State: Okay
                Size: 40968576 blocks (19 GB)
                Stripe 0:
                Device Start Block Dbase State Reloc Hot Spare
                c0t1d0s4 0 No Okay Yes


                d33: Mirror
                Submirror 0: d13
                State: Okay
                Submirror 1: d23
                State: Okay
                Pass: 1
                Read option: roundrobin (default)
                Write option: parallel (default)
                Size: 40968576 blocks (19 GB)

                d13: Submirror of d33
                State: Okay
                Size: 40968576 blocks (19 GB)
                Stripe 0:
                Device Start Block Dbase State Reloc Hot Spare
                c0t0d0s3 0 No Okay Yes


                d23: Submirror of d33
                State: Okay
                Size: 40968576 blocks (19 GB)
                Stripe 0:
                Device Start Block Dbase State Reloc Hot Spare
                c0t1d0s3 0 No Okay Yes


                d31: Mirror
                Submirror 0: d11
                State: Okay
                Submirror 1: d21
                State: Okay
                Pass: 1
                Read option: roundrobin (default)
                Write option: parallel (default)
                Size: 81937152 blocks (39 GB)

                d11: Submirror of d31
                State: Okay
                Size: 81937152 blocks (39 GB)
                Stripe 0:
                Device Start Block Dbase State Reloc Hot Spare
                c0t0d0s1 0 No Okay Yes


                d21: Submirror of d31
                State: Okay
                Size: 81937152 blocks (39 GB)
                Stripe 0:
                Device Start Block Dbase State Reloc Hot Spare
                c0t1d0s1 0 No Okay Yes


                d30: Mirror
                Submirror 0: d10
                State: Okay
                Submirror 1: d20
                State: Okay
                Pass: 1
                Read option: roundrobin (default)
                Write option: parallel (default)
                Size: 51205632 blocks (24 GB)

                d10: Submirror of d30
                State: Okay
                Size: 51205632 blocks (24 GB)
                Stripe 0:
                Device Start Block Dbase State Reloc Hot Spare
                c0t0d0s0 0 No Okay Yes


                d20: Submirror of d30
                State: Okay
                Size: 51205632 blocks (24 GB)
                Stripe 0:
                Device Start Block Dbase State Reloc Hot Spare
                c0t1d0s0 0 No Okay Yes


                d35: Mirror
                Submirror 0: d15
                State: Okay
                Submirror 1: d25
                State: Okay
                Pass: 1
                Read option: roundrobin (default)
                Write option: parallel (default)
                Size: 28675968 blocks (13 GB)

                d15: Submirror of d35
                State: Okay
                Size: 28675968 blocks (13 GB)
                Stripe 0:
                Device Start Block Dbase State Reloc Hot Spare
                c0t0d0s5 0 No Okay Yes


                d25: Submirror of d35
                State: Okay
                Size: 28675968 blocks (13 GB)
                Stripe 0:
                Device Start Block Dbase State Reloc Hot Spare
                c0t1d0s5 0 No Okay Yes


                d44: Concat/Stripe
                Size: 629153536 blocks (300 GB)
                Stripe 0:
                Device Start Block Dbase Reloc
                c1t0d1s4 0 No Yes

                d43: Concat/Stripe
                Size: 1048598144 blocks (500 GB)
                Stripe 0:
                Device Start Block Dbase Reloc
                c1t0d1s3 0 No Yes

                Device Relocation Information:
                Device Reloc Device ID
                c1t0d1 Yes id1,sd@n600a0b8000741163000001bc4c6c96c0
                c0t1d0 Yes id1,sd@n5000c5001d685e6b
                c0t0d0 Yes id1,sd@n5000c5001d685ddb


                Thanks
                • 5. Re: How to check Raid
                  Nik
                  Hi.

                  At this moment i can't see any direct problems, but some things stange for me.

                  1. Genraly, for /tmp use swap, not dedicated slice.
                  2. Configuration look like yu have external raid without multi-pathing. You should separate check raid-level and status of this device.
                  On this Raid configured 2 volumes:

                  c1t0d1 under SVM control:
                  /dev/md/dsk/d43 516362641 366533931 144665084 72% /orauml
                  /dev/md/dsk/d44 309814307 121299176 185416988 40% /appluml

                  c1t0d0 without SVM control:
                  /dev/dsk/c1t0d0s6 287078011 139064498 145142733 49% /backup

                  It's possible, but strange.

                  Also check status and configuration of MetaDB ( metadb )


                  Regards.
                  • 6. Re: How to check Raid
                    user9275313
                    Hi Nik,

                    I could not understand , what you mean , Please give me more detail about my server configuration, As I am not
                    solaris admin, but I have to see what is configured in server because no admin is here.


                    bash-3.00# metadb
                    flags first blk block count
                    a m p luo 16 8192 /dev/dsk/c0t0d0s7
                    a p luo 8208 8192 /dev/dsk/c0t0d0s7
                    a p luo 16 8192 /dev/dsk/c0t1d0s7
                    a p luo 8208 8192 /dev/dsk/c0t1d0s7
                    bash-3.00#
                    • 7. Re: How to check Raid
                      Nik
                      Hi.
                      At this moment metadb at normal state. You have 4 replicas ( 2 on c0t0d0s7 and 2 on c0t1d0s7 ).

                      What part should be clear ?

                      Regards.
                      • 8. Re: How to check Raid
                        user9275313
                        Hi Nik,

                        I understand one thing that we have mirroring and we have seven hard disks, But I need also commands

                        which can give me total output of my hard disk size and how many processes are used with how much capacity.



                        Thanks
                        • 9. Re: How to check Raid
                          Nik
                          Hmm
                          >> we have seven hard disks
                          It's not corret. You have 2 internal disk and one external raid, that provide 2 LUN. I don't know many disks have this array and what type of raid used.
                          total output of my hard disk size.
                          df -k show how disk used.

                          format can show disk size.
                          prtvtoc /dev/rdsk/c0t0d0s0 - show what partitions defined on disk
                          prtvtoc /dev/rdsk/c0t1d0s0
                          prtvtoc /dev/rdsk/c1t0d0s0
                          prtvtoc /dev/rdsk/c1t0d1s0
                          how many processes are used with how much capacity.
                          Process open and used files, not disk. So not clear what you ask.

                          Some usefull information can give:

                          ls -la /proc/<proc_id>/path


                          Regards.