In this blog, I am going to talk about Disk Group Creation in RAC 18c in silent mode. (no UI)
First I am going to create the disks at the OS level and discover it in oracleasm.
1. Create Partition for New Disks. Do this for all the disks you have attached to your system. Make sure disks are attached to both nodes and partition is created on only one Node.
Details on Creating the partition are present in end of the blog.
2. Create Disks using oracleasm on Node 1
$ oracleasm createdisk FRA001 /dev/xvdf1
Writing disk header: done
Instantiating disk: done
$ oracleasm createdisk FRA002 /dev/xvdg1
Writing disk header: done
Instantiating disk: done
$ oracleasm createdisk FRA003 /dev/xvdh1
Writing disk header: done
Instantiating disk: done
3. Scan for disks using oracleasm on Node 2
$ oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Instantiating disk "FRA001"
Instantiating disk "FRA002"
Instantiating disk "FRA003"
4. Login as Grid and set the environment run asmca and create Disk Group
$ asmca -silent -sysAsmPassword Oracle123 -asmsnmpPassword Oracle123 -createDiskGroup -diskGroupName FRA -diskList /dev/oracleasm/disks/FRA001,/dev/oracleasm/disks/FRA002,/dev/oracleasm/disks/FRA003 -redundancy EXTERNAL -au_size 4 -compatible.asm 19.0.0.0.0 -compatible.rdbms 19.0.0.0.0
[INFO] [DBT-30001] Disk groups created successfully. Check /u01/app/grid/cfgtoollogs/asmca/asmca-190614AM043742.log for details.
Disk group creation complete. Verify using asmcmd (lsdg command)
New Disk Partition Creation
$ fdisk /dev/xvdf
Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0xc0515184.
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-251658239, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-251658239, default 251658239):
Using default value 251658239
Partition 1 of type Linux and of size 120 GiB is set
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
First I am going to create the disks at the OS level and discover it in oracleasm.
1. Create Partition for New Disks. Do this for all the disks you have attached to your system. Make sure disks are attached to both nodes and partition is created on only one Node.
Details on Creating the partition are present in end of the blog.
2. Create Disks using oracleasm on Node 1
$ oracleasm createdisk FRA001 /dev/xvdf1
Writing disk header: done
Instantiating disk: done
$ oracleasm createdisk FRA002 /dev/xvdg1
Writing disk header: done
Instantiating disk: done
$ oracleasm createdisk FRA003 /dev/xvdh1
Writing disk header: done
Instantiating disk: done
$ oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Instantiating disk "FRA001"
Instantiating disk "FRA002"
Instantiating disk "FRA003"
$ asmca -silent -sysAsmPassword Oracle123 -asmsnmpPassword Oracle123 -createDiskGroup -diskGroupName FRA -diskList /dev/oracleasm/disks/FRA001,/dev/oracleasm/disks/FRA002,/dev/oracleasm/disks/FRA003 -redundancy EXTERNAL -au_size 4 -compatible.asm 19.0.0.0.0 -compatible.rdbms 19.0.0.0.0
[INFO] [DBT-30001] Disk groups created successfully. Check /u01/app/grid/cfgtoollogs/asmca/asmca-190614AM043742.log for details.
Disk group creation complete. Verify using asmcmd (lsdg command)
New Disk Partition Creation
$ fdisk /dev/xvdf
Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0xc0515184.
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-251658239, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-251658239, default 251658239):
Using default value 251658239
Partition 1 of type Linux and of size 120 GiB is set
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
No comments:
Write comments