DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: RAID levels

  1. #1
    Join Date
    Jan 2001
    Posts
    642

    RAID levels

    Hi,

    We have a SUN480R with the RAID configuration. But I would like to know what kind of RAID is configured on my box (RAID 5 or 1 or 1+0).

    Of course, I can as my sysadmin, but just wanted to know for myself.
    There is always a better way to do the things.

  2. #2
    Join Date
    Jan 2001
    Posts
    642
    Nevermind,

    I got this answer and so wanted to paste it here (sorry the original output was in different colors, that you cannot see here).

    $ sudo format
    Searching for disks...done


    AVAILABLE DISK SELECTIONS:
    0. c1t0d0
    /pci@1c,600000/scsi@2/sd@0,0
    1. c1t1d0
    /pci@1c,600000/scsi@2/sd@1,0
    2. c1t2d0
    /pci@1c,600000/scsi@2/sd@2,0
    3. c1t3d0
    /pci@1c,600000/scsi@2/sd@3,0
    4. c4t0d0
    /pci@1e,600000/IntraServer,fc@2,1/ssd@0,0
    Specify disk (enter its number): 4
    selecting c4t0d0
    [disk formatted]
    Warning: Current Disk has mounted partitions.


    FORMAT MENU:
    disk - select a disk
    type - select (define) a disk type
    partition - select (define) a partition table
    current - describe the current disk
    format - format and analyze the disk
    repair - repair a defective sector
    label - write label to the disk
    analyze - surface analysis
    defect - defect list management
    backup - search for backup labels
    verify - read and display labels
    inquiry - show vendor, product and revision
    volname - set 8-character volume name
    ! - execute , then return
    quit
    format> quit



    One other thing you can do is look at the device name in Sun.....let’s look at this DF output.



    $ df
    / (/dev/md/dsk/d20 ): 4433074 blocks 740539 files
    /proc (/proc ): 0 blocks 14915 files
    /etc/mnttab (mnttab ): 0 blocks 0 files
    /dev/fd (fd ): 0 blocks 0 files
    /var (/dev/md/dsk/d30 ): 9275602 blocks 756722 files
    /var/run (swap ):20054128 blocks 599762 files
    /tmp (swap ): 2096864 blocks 599762 files
    /ingsys (/dev/dsk/c4t0d0s4 ):817016950 blocks 62098445 files
    /u01 (/dev/dsk/c4t0d0s5 ):899708104 blocks 62062746 files
    /array (/dev/dsk/c4t0d0s6 ):361103908 blocks 49681592 files
    /ingsys-DBL (/ingsys/ingsys-DBL):817016950 blocks 62098445 files


    Lots of colors. Let’s see what they mean.


    Red ones are Solaris MD (I believe it stands for “meta-device”, but could be wrong) devices. These are straight mirrors using the Solstice Disk Suite (or whatever sun calls it these days – I believe they renamed it). This one is comprised of /dev/md/dsk/d21 and /dev/md/dsk/d22 which are both made up of slices on the physical disks in my machine.
    Purple are virtual – just held in memory, not real disk at all.
    Green ones are pulled from swap. On my machine swap is setup the same way as the red ones above (cat’d slices that are mirrored together – I believe these are d10, d11, and d12).
    Maroon are slices on the array. You can tell this by matching up the device with the bit from the format command above.
    The pink one is a loopback filesystem. It’s a mount that points back to a directory.


    OK, more on Disk Suite. In /etc/lvm are configs:
    $ more md.cf


    # metadevice configuration file
    # do not hand edit
    d30 -m d31 d32 1
    d31 1 1 c1t0d0s1
    d32 1 1 c1t1d0s1
    d20 -m d21 d22 1
    d21 1 1 c1t0d0s0
    d22 1 1 c1t1d0s0
    d10 -m d11 d12 -g 1
    d11 1 1 c1t0d0s4
    d12 1 1 c1t1d0s4


    I’ve highlighted the groups for you. Naming convention used was my own, although this is how the build doc I read spelled it out. The “md.tab” file out there shows the format.
    There is always a better way to do the things.

  3. #3
    Join Date
    Apr 2003
    Posts
    353
    use raid manager.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width