SQL> select * from v$asm_diskgroup; 2. From inside ASM, show Disks and their Disk Group assignments SQL> select path, name, REDUNDANCY, TOTAL_MB, FREE_MB, DISK_NUMBER, GROUP_NUMB ER, state from V$ASM_DISK; 3. From OS as root, show current ASM Disks # /etc/init.d/oracleasm listdisks | xargs /etc/init.d/oracleasm querydisk -p 4. From OS as root, show available disks # fdisk -l (fdisk -l | grep Disk) 5. Compare output from "oracleasm listdisks ..." and fdisk -l Do not re-use disks already in use. 6. Use either fdisk (or parted) to create a single whole-disk partition on the d isk devices Run as root # /sbin/fdisk <disk> (Example: /sbin/fdisk /dev/sda ) -> n new partition -> p primary -> 1 partition number -> use defaults for First cylinder and Last cylinder questions -> w write partition info and quit NOTE: It is likely that only this node will know of the new disk partitionin g. Other nodes will not "see" the partitioning until the partition table is r eread. "oracleasm scandisks" (performed below) will force other nodes to read the partition table. 7. As root, mark new, available disks for use by ASM (on one node) # oracleasm createdisk <NEW_ASM_DISK_NAME> <disk>1 Examples: # oracleasm createdisk DISK4 /dev/sda1 # oracleasm createdisk DISK5 /dev/sdd1 8. As root, make disks available on other nodes. Enter the following command as root on every node. # oracleasm scandisks 9. Again, from OS as root, show current ASM Disks (run on every node, should se e new disks) # /etc/init.d/oracleasm listdisks | xargs /etc/init.d/oracleasm querydisk -p 10. Change permissions so oracle can query the disks (may already be set properl y) # cd /dev/oracleasm/disks # chown oracle:oinstall DISK1 (already owned by oracle:oinstall - step not needed) # chown oracle:oinstall DISK2 (already owned by oracle:oinstall - step not needed) # chmod ug+rw DISK1 (permissions same as other ASM disks - st ep not needed) # chmod ug+rw DISK2 (permissions same as other ASM disks - st ep not needed) # chown oracle:oinstall /dev/sda1 (? - skipping this step) # chown oracle:oinstall /dev/sdb1 (? - skipping this step) # chmod ug+rw /dev/sda1 (? - skipping this step) # chmod ug+rw /dev/sdb1 (? - skipping this step) 11. Verify oracle can see ASM disks Login as oracle # /etc/init.d/oracleasm listdisks | xargs /etc/init.d/oracleasm querydisk -p 12. Add Disk to Disk Group. Login to ASM as SYSASM (sqlplus / as sysasm) Example add disk command:
SQL> alter diskgroup DATA add disk 'ORCL:DISK4' name DISK4;
13. From inside ASM, show Disks and their Disk Group assignments SQL> select path, name, REDUNDANCY, TOTAL_MB, FREE_MB, DISK_NUMBER, GROUP_NUMB ER, state from V$ASM_DISK;