4 Replies Latest reply: Feb 12, 2013 8:41 AM by Victor Armbrust RSS

    ASM on Solaris

    Jcgo-Oracle
      Hi All,

      I am prepping a Solaris 11 system for ASM.

      As part of the prep, correct me if I am wrong..i a supposed to format/label the disks to be included in the diskgroups.

      Some of the disks are in 'DRIVE STATUS UKNOWN". I am assuming this is because it has not been formatted yet. And obviously will use these for ASM groups

      And so, I run the FORMAT command and select a drive, and then next options are:

      0. Auto configure
      1. Quantum ProDrive 80S
      2. Quantum ProDrive 105S
      3. CDC Wren IV 94171-344
      4. SUN0104
      5. SUN0207
      6. SUN0327
      7. SUN0340
      8. SUN0424
      9. SUN0535
      10. SUN0669
      11. SUN1.0G
      12. SUN1.05
      13. SUN1.3G
      14. SUN2.1G
      15. SUN2.9G
      16. Zip 100
      17. Zip 250
      18. Peerless 10GB
      19. SUN300G
      20. DGC-VRAID-0430
      21. DGC-VRAID-0430
      22. DGC-VRAID-0430
      23. other


      Question is: what to use?

      Using 11gr2 ASM for this....

      thanks
        • 1. Re: ASM on Solaris
          brunors
          Hi,

          read :


          http://docs.oracle.com/cd/E19745-01/E37211/doc-err.html Information Not Covered in the Online Documentation


          Kind regards,
          Bruno Reis.
          www.brunors.com
          • 2. Re: ASM on Solaris
            onedbguru
            You do NOT format an ASM device. You need to read the documentation and ASM concepts. You also need to use a partition of the entire device minus the first cylinder. The partition should start at cylinder 2 through the end.
            • 3. Re: ASM on Solaris
              Jcgo-Oracle
              Hi Onedbguru,

              Thank you for the reply.
              I am not gonna sit here and argue otherwise. I know obviously very little.
              But according to this doc:

              http://docs.oracle.com/cd/E18728_01/html/821-2852/bacdibbi.html#fhzuo

              yes, you're right. I am aware of creating the partition at partition # 2 to start.

              Sorry, I am used to Linux OS and they are somewhat different with Solaris, where we obviously created partitions, etc.

              thanks
              • 4. Re: ASM on Solaris
                Victor Armbrust
                How to format disks for ASM use in SOLARIS:

                make sure to start your disk at cylinder 3
                bash-3.2# format
                Searching for disks...done
                
                
                AVAILABLE DISK SELECTIONS:
                       0. c0t0d0 <DEFAULT cyl 36348 alt 2 hd 255 sec 126>
                          /pci@0,0/pci8086,3408@1/pci1000,9262@0/sd@0,0
                       1. c6t500601683BA04C38d0 <drive type unknown>
                          /pci@0,0/pci8086,340a@3/pci111d,806c@0/pci111d,806c@2/pci1077,172@0/fp@0,0/disk@w500601683ba04c38,0
                       2. c7t60060160F58D2C00A420F0557032E211d0 <DEFAULT cyl 13442 alt 2 hd 255 sec 63>
                          /scsi_vhci/disk@g60060160f58d2c00a420f0557032e211
                       3. c7t60060160F58D2C00A2182DE07132E211d0 <DEFAULT cyl 13442 alt 2 hd 255 sec 63>
                          /scsi_vhci/disk@g60060160f58d2c00a2182de07132e211
                       .
                       .
                       .
                       .
                      DISK_N ....
                Specify disk (enter its number): 7
                selecting c7t60060160F58D2C00C6CD70647132E211d0
                [disk formatted]
                
                
                format> fdisk
                No fdisk table exists. The default partition for the disk is:
                
                  a 100% "SOLARIS System" partition
                
                Type "y" to accept the default partition,  otherwise type "n" to edit the
                 partition table.
                y
                format> partition
                
                PARTITION MENU:
                        0      - change `0' partition
                        1      - change `1' partition
                        2      - change `2' partition
                        3      - change `3' partition
                        4      - change `4' partition
                        5      - change `5' partition
                        6      - change `6' partition
                        7      - change `7' partition
                        select - select a predefined table
                        modify - modify a predefined partition table
                        name   - name the current table
                        print  - display the current table
                        label  - write partition map and label to the disk
                        !<cmd> - execute <cmd>, then return
                        quit
                partition> 4
                Part      Tag    Flag     Cylinders         Size            Blocks
                  4 unassigned    wm       0                0         (0/0/0)             0
                
                Enter partition id tag[unassigned]: 
                Enter partition permission flags[wm]: 
                Enter new starting cyl[0]: 3
                Enter partition size[0b, 0c, 3e, 0.00mb, 0.00gb]: 100gb
                partition> l
                Ready to label disk, continue? yes 
                
                partition> print
                Current partition table (unnamed):
                Total disk cylinders available: 13442 + 2 (reserved cylinders)
                
                Part      Tag    Flag     Cylinders         Size            Blocks
                  0 unassigned    wm       0                0         (0/0/0)             0
                  1 unassigned    wm       0                0         (0/0/0)             0
                  2     backup    wu       0 - 13441      102.97GB    (13442/0/0) 215945730
                  3 unassigned    wm       0                0         (0/0/0)             0
                  4 unassigned    wm       3 - 13057      100.01GB    (13055/0/0) 209728575
                  5 unassigned    wm       0                0         (0/0/0)             0
                  6 unassigned    wm       0                0         (0/0/0)             0
                  7 unassigned    wm       0                0         (0/0/0)             0
                  8       boot    wu       0 -     0        7.84MB    (1/0/0)         16065
                  9 unassigned    wm       0                0         (0/0/0)             0
                
                partition> q
                Very easy. DO NOT USE PARTITION 2 (IT HAS THE VTOC of disk)

                Take a look on this:

                http://docs.oracle.com/cd/E23824_01/html/821-1459/disksprep-34.html
                ASM Does Not Discover Disk on Solaris [ID 368840.1]
                http://www.experts-exchange.com/Database/Oracle/A_7289-How-to-mark-disks-for-ASM-in-Solaris.html
                disks not showup for ASM  while insalling  11gr2 on solaris 10 using gui

                Hope have helped

                Victor