ASM disks creation with size greater than 2 Terabyte

Creating Oracle ASM Disks on Azure VM

Environment:

  1. Azure VM Linux OS
  2. DB=Oracle 19c

 

fdisk command is used if the ASM disk creation size is less than or equal to 2 Terabyte.

For creating bigger volumes ,we use gdisk command.

In this Scenario the Oracle DB environment is on AZURE VM.

Step 1) Verify if the gdisk package is installed or not

#rpm -qa gdisk

o/p

gdisk-1.0.3-11.el8.x86_64

If the gdisk package is not installed , then run below command

#yum install gdisk

if the gdisk is there and you run the install command , then output is as follows

#yum install gdisk

Repository rhui-microsoft-azure-rhel8 is listed more than once in the configuration
Last metadata expiration check: 3:59:41 ago on Mon 15 Jul 2024 09:16:44 AM CDT.
Package gdisk-1.0.3-11.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

Step 2) Create 6TB (approximately) disk from the RAW by using gdisk

#gdisk /dev/sdd
GPT fdisk (gdisk) version 1.0.3

Warning: Partition table header claims that the size of partition table
entries is 0 bytes, but this program supports only 128-byte entries.
Adjusting accordingly, but partition table may be garbage.
Warning: Partition table header claims that the size of partition table
entries is 0 bytes, but this program supports only 128-byte entries.
Adjusting accordingly, but partition table may be garbage.
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present

***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing ‘q’ if you don’t want to convert your MBR partitions
to GPT format!
***************************************************************

Command (? for help): n
Partition number (1-128, default 1):
First sector (34-12582911966, default = 2048) or {+-}size{KMGTP}:
Last sector (2048-12582911966, default = 12582911966) or {+-}size{KMGTP}:
Current type is ‘Linux filesystem’
Hex code or GUID (L to show codes, Enter = 8300):
Changed type of partition to ‘Linux filesystem’

Command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): Y
OK; writing new GUID partition table (GPT) to /dev/sdd.
The operation has completed successfully.

 

 

Step 3) To verify the 6TB disk 

#lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

sdd          8:48           0   5.9T   0             disk
└─sdd1 8:49             0   5.9T  0              part

 

Step 4) Create asm disk by using oracleasm

# /usr/sbin/oracleasm createdisk DISK1 /dev/sdd1
Writing disk header: done
Instantiating disk: done

 

See Also