OCI: Configuring local RAID filesystems on a BM.DenseIO2.52 shape using NVMe SSD disks

That shape comes with 52 oCPUs, 104 vCPUs, 768GB and 51TB of local NVMe SSD disks, including 8 NVMe disks, 5.8TB each. Additionally this shape support up to 512TB of  block volumes attachment.

This note is about how to configure the local NVMe SSD disks.

# lsblk
sda 8:0 0 75G 0 disk 
nvme0n1 259:0 0 5.8T 0 disk 
nvme1n1 259:2 0 5.8T 0 disk 
nvme2n1 259:1 0 5.8T 0 disk 
nvme3n1 259:3 0 5.8T 0 disk 
nvme4n1 259:4 0 5.8T 0 disk 
nvme5n1 259:5 0 5.8T 0 disk 
nvme6n1 259:6 0 5.8T 0 disk 
nvme7n1 259:7 0 5.8T 0 disk


To configure 2 RAID 6 groups with 4 NVMe each:

mdadm --create /dev/md0 --raid-devices=4 --level=10 /dev/nvme0n1 /dev/nvme1n1 /dev/nvme2n1 /dev/nvme3n1
mdadm --create /dev/md1 --raid-devices=4 --level=10 /dev/nvme4n1 /dev/nvme5n1 /dev/nvme6n1 /dev/nvme7n1

mdadm --detail --scan


To create and mount 2 filesystems for /oradata and /orareco

pvcreate /dev/md0
vgcreate vg_oradata /dev/md0
lvcreate -l 20 -n lv_oradata vg_oradata
lvextend --extents +100%FREE /dev/vg_oradata/lv_oradata
e2fsck -f /dev/vg_oradata/lv_oradata
mkfs.ext4 /dev/vg_oradata/lv_oradata -L oradata
mkdir -p /oradata
mount /dev/mapper/vg_oradata-lv_oradata /oradata
chown oracle:oinstall /oradata

pvcreate /dev/md1
vgcreate vg_orareco /dev/md1
lvcreate -l 20 -n lv_orareco vg_orareco
lvextend --extents +100%FREE /dev/vg_orareco/lv_orareco
e2fsck -f /dev/vg_orareco/lv_orareco
mkfs.ext4 /dev/vg_orareco/lv_orareco -L orareco
mkdir -p /orareco
mount /dev/mapper/vg_orareco-lv_orareco /orareco
chown oracle:oinstall /orareco





Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s