一、指定每块磁盘大小的创建ASM组CREATE DISKGROUP flashdg normal REDUNDANCY
failgroup flashsto1 disk
'/dev/qdata/mpath-s01.3261.01.dfd1' size 1500000M,
'/dev/qdata/mpath-s01.3262.01.dfc1' size 1500000M,
'/dev/qdata/mpath-s01.3263.01.dfb1' size 1500000M,
'/dev/qdata/mpath-s01.3264.01.dfa1' size 1500000M,
'/dev/qdata/mpath-s01.3265.01.nvme0n1p1' size 1500000M
failgroup flashsto2 disk
'/dev/qdata/mpath-s02.3261.01.dfd1' size 1500000M,
'/dev/qdata/mpath-s02.3262.01.dfc1' size 1500000M,
'/dev/qdata/mpath-s02.3263.01.dfb1' size 1500000M,
'/dev/qdata/mpath-s02.3264.01.dfa1' size 1500000M,
'/dev/qdata/mpath-s02.3265.01.nvme0n1p1' size 1500000M
failgroup flashsto3 disk
'/dev/qdata/mpath-s03.3261.01.dfd1' size 1500000M,
'/dev/qdata/mpath-s03.3262.01.dfc1' size 1500000M,
'/dev/qdata/mpath-s03.3263.01.dfb1' size 1500000M,
'/dev/qdata/mpath-s03.3264.01.dfa1' size 1500000M,
'/dev/qdata/mpath-s03.3265.01.nvme0n1p1' size 1500000M
failgroup flashsto4 disk
'/dev/qdata/mpath-s04.3261.01.dfc1' size 1500000M,
'/dev/qdata/mpath-s04.3262.01.dfb1' size 1500000M,
'/dev/qdata/mpath-s04.3263.01.dfa1' size 1500000M,
'/dev/qdata/mpath-s04.3264.01.nvme1n1p1' size 1500000M,
'/dev/qdata/mpath-s04.3265.01.nvme0n1p1' size 1500000M
failgroup flashsto5 disk
'/dev/qdata/mpath-s05.3261.01.nvme4n1p1' size 1500000M,
'/dev/qdata/mpath-s05.3262.01.nvme3n1p1' size 1500000M,
'/dev/qdata/mpath-s05.3263.01.nvme2n1p1' size 1500000M,
'/dev/qdata/mpath-s05.3264.01.nvme1n1p1' size 1500000M,
'/dev/qdata/mpath-s05.3265.01.nvme0n1p1' size 1500000M
attribute
'au_size'='1M';
二、不指定磁盘大小的创建CREATE DISKGROUP datadg normal REDUNDANCY
failgroup sto1 disk
'/dev/qdata/mpath-s01.3270.01.disk1',
'/dev/qdata/mpath-s01.3271.01.disk2',
'/dev/qdata/mpath-s01.3273.01.disk3'
failgroup sto2 disk
'/dev/qdata/mpath-s02.3270.01.disk1',
'/dev/qdata/mpath-s02.3272.01.disk2',
'/dev/qdata/mpath-s02.3273.01.disk3'
failgroup sto5 disk
'/dev/qdata/mpath-s05.3269.01.disk1',
'/dev/qdata/mpath-s05.3270.01.disk2',
'/dev/qdata/mpath-s05.3271.01.disk3'
attribute
'au_size'='1M';
CREATE DISKGROUP flashdg normal REDUNDANCY
failgroup flashsto1 disk
'/dev/qdata/mpath-s01.3261.01.dfd1' size 1500000M,
'/dev/qdata/mpath-s01.3262.01.dfc1' size 1500000M,
'/dev/qdata/mpath-s01.3263.01.dfb1' size 1500000M,
'/dev/qdata/mpath-s01.3264.01.dfa1' size 1500000M,
'/dev/qdata/mpath-s01.3265.01.nvme0n1p1' size 1500000M
failgroup flashsto2 disk
'/dev/qdata/mpath-s02.3261.01.dfd1' size 1500000M,
'/dev/qdata/mpath-s02.3262.01.dfc1' size 1500000M,
'/dev/qdata/mpath-s02.3263.01.dfb1' size 1500000M,
'/dev/qdata/mpath-s02.3264.01.dfa1' size 1500000M,
'/dev/qdata/mpath-s02.3265.01.nvme0n1p1' size 1500000M
failgroup flashsto3 disk
'/dev/qdata/mpath-s03.3261.01.dfd1' size 1500000M,
'/dev/qdata/mpath-s03.3262.01.dfc1' size 1500000M,
'/dev/qdata/mpath-s03.3263.01.dfb1' size 1500000M,
'/dev/qdata/mpath-s03.3264.01.dfa1' size 1500000M,
'/dev/qdata/mpath-s03.3265.01.nvme0n1p1' size 1500000M
failgroup flashsto4 disk
'/dev/qdata/mpath-s04.3261.01.dfc1' size 1500000M,
'/dev/qdata/mpath-s04.3262.01.dfb1' size 1500000M,
'/dev/qdata/mpath-s04.3263.01.dfa1' size 1500000M,
'/dev/qdata/mpath-s04.3264.01.nvme1n1p1' size 1500000M,
'/dev/qdata/mpath-s04.3265.01.nvme0n1p1' size 1500000M
failgroup flashsto5 disk
'/dev/qdata/mpath-s05.3261.01.nvme4n1p1' size 1500000M,
'/dev/qdata/mpath-s05.3262.01.nvme3n1p1' size 1500000M,
'/dev/qdata/mpath-s05.3263.01.nvme2n1p1' size 1500000M,
'/dev/qdata/mpath-s05.3264.01.nvme1n1p1' size 1500000M,
'/dev/qdata/mpath-s05.3265.01.nvme0n1p1' size 1500000M
attribute
'au_size'='1M';
CREATE DISKGROUP datadg normal REDUNDANCY
failgroup sto1 disk
'/dev/qdata/mpath-s01.3270.01.disk1',
'/dev/qdata/mpath-s01.3271.01.disk2',
'/dev/qdata/mpath-s01.3273.01.disk3'
failgroup sto2 disk
'/dev/qdata/mpath-s02.3270.01.disk1',
'/dev/qdata/mpath-s02.3272.01.disk2',
'/dev/qdata/mpath-s02.3273.01.disk3'
failgroup sto5 disk
'/dev/qdata/mpath-s05.3269.01.disk1',
'/dev/qdata/mpath-s05.3270.01.disk2',
'/dev/qdata/mpath-s05.3271.01.disk3'
attribute
'au_size'='1M';