[root@host Server]# /etc/init.d/oracleasm createdisk ASMDISK1_DATA /dev/mapper/racdb_asm1
Marking disk "ASMDISK1_DATA" as an ASM disk: [ OK ]
[root@host Server]# /etc/init.d/oracleasm createdisk ASMDISK1_FRA /dev/mapper/racdb_asm2
Marking disk "ASMDISK1_FRA" as an ASM disk: [ OK ]
[root@cun0401 Server]# /etc/init.d/oracleasm listdisks
ASMDISK1_DATA
ASMDISK1_FRA
root@host:~$ format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@0,600000/pci@0/pci@8/pci@0/scsi@1/sd@0,0
1. c0t1d0 Solaris
/pci@0,600000/pci@0/pci@8/pci@0/scsi@1/sd@1,0
2. c2t600A0B800029B03400001B474BE28D9Bd0
/scsi_vhci/ssd@g600a0b800029b03400001b474be28d9b
3. c2t600A0B800029B034000022A64DB65A53d0
/scsi_vhci/ssd@g600a0b800029b034000022a64db65a53
4. c2t600A0B800029B034000020104C43B3C1d0
/scsi_vhci/ssd@g600a0b800029b034000020104c43b3c1
5. c2t600A0B800029B034000021104C612E6Dd0
/scsi_vhci/ssd@g600a0b800029b034000021104c612e6d
6. c2t600A0B8000269A3200007F3F4BE25284d0
/scsi_vhci/ssd@g600a0b8000269a3200007f3f4be25284
7. c2t600A0B8000269A32000084B24CC8D1D5d0
/scsi_vhci/ssd@g600a0b8000269a32000084b24cc8d1d5
8. c2t600A0B8000269A32000084C74CD0F3D2d0
/scsi_vhci/ssd@g600a0b8000269a32000084c74cd0f3d2
9. c2t600A0B8000269A320000802A4BF3820Ad0
/scsi_vhci/ssd@g600a0b8000269a320000802a4bf3820a
10. c2t600A0B8000269A320000834C4C439596d0
/scsi_vhci/ssd@g600a0b8000269a320000834c4c439596
11. c2t600A0B8000269A320000834F4C43960Fd0
/scsi_vhci/ssd@g600a0b8000269a320000834f4c43960f
Specify disk (enter its number): 3
Select partitioning base:
0. Current partition table (original)
1. All Free Hog
Choose base (enter number) [0]? 1
Part Tag Flag Cylinders Size Blocks
0 root wm 0 0 (0/0/0) 0
1 swap wu 0 0 (0/0/0) 0
2 backup wu 0 - 51197 100.00GB (51198/0/0) 209707008
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
Do you wish to continue creating a new partition table based on above table[yes]? Yes
Free Hog partition[6]? 7
Enter size of partition '0' [0b, 0c, 0.00mb, 0.00gb]: 500mb
Enter size of partition '1' [0b, 0c, 0.00mb, 0.00gb]:
Enter size of partition '3' [0b, 0c, 0.00mb, 0.00gb]:
Enter size of partition '4' [0b, 0c, 0.00mb, 0.00gb]:
Enter size of partition '5' [0b, 0c, 0.00mb, 0.00gb]:
Enter size of partition '6' [0b, 0c, 0.00mb, 0.00gb]: 99.50gb
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 249 500.00MB (250/0/0) 1024000
1 swap wu 0 0 (0/0/0) 0
2 backup wu 0 - 51197 100.00GB (51198/0/0) 209707008
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 250 - 51193 99.50GB (50944/0/0) 208666624
7 unassigned wm 51194 - 51197 8.00MB (4/0/0) 16384
Okay to make this the current partition table[yes]? Yes
Enter table name (remember quotes): "asm"
Ready to label disk, continue? yes
partition> q
format> verify
-bash-3.00$ sqlplus / as sysasm
SQL> select path, name from v$asm_disk;
PATH NAME
-------------------------------------------------- ------------------------------
/dev/did/rdsk/d9s6
/dev/did/rdsk/d9s7
/dev/did/rdsk/d9
/dev/did/rdsk/d4s6 RECOVERY_0000
/dev/did/rdsk/d22s6 DATOS_0001
/dev/did/rdsk/d18s6 OCRVOTING_0000
/dev/did/rdsk/d19s6 OCRVOTING_0001
SQL> alter diskgroup DATOS add disk ‘/dev/did/rdsk/d9s6’;
SQL> select path, name from v$asm_disk;
PATH NAME
-------------------------------------------------- ------------------------------
/dev/did/rdsk/d9s7
/dev/did/rdsk/d9
/dev/did/rdsk/d4s6 RECOVERY_0000
/dev/did/rdsk/d9s6 DATOS_0000
/dev/did/rdsk/d22s6 DATOS_0001
/dev/did/rdsk/d18s6 OCRVOTING_0000
/dev/did/rdsk/d19s6 OCRVOTING_0001
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (1)
Commented: