针对普通的linux cluster,diskstring必须加引号,单引号或者双引号都可以,但是如果不加引号的话,会报错,会报语法不正确
The command line is not formed properly. Type “asmca -h” to get the command line syntax.
但是对于exadata的diskstring,则可以不加引号,不加引号也不会报错
对于disklist的disk,则加单引号,双引号或者不加引号都可以,都不会报错
/scratch/oracle/GridHome/bin/asmca -silent -createDiskGroup -diskString '/dev/asmdisk*' -diskGroupName lila -diskList \
/dev/asmdiskc1,\
/dev/asmdiskc2,\
/dev/asmdiskc3 \
-redundancy external -au_size 4 -compatible.rdbms 18.0.0.0
/u01/app/gihome/bin/asmca -silent -createDiskGroup -diskString /o/*/* -diskGroupName d001 -diskList \
"o/192.168.41.245;192.168.41.246/wgz_FD_00_scaqai06celadm12",\
"o/192.168.41.245;192.168.41.246/wgz_FD_01_scaqai06celadm12",\
"o/192.168.41.245;192.168.41.246/wgz_FD_02_scaqai06celadm12",\
"o/192.168.41.245;192.168.41.246/wgz_FD_03_scaqai06celadm12",\
"o/192.168.41.247;192.168.41.248/wgz_FD_00_scaqai06celadm13",\
"o/192.168.41.247;192.168.41.248/wgz_FD_01_scaqai06celadm13",\
"o/192.168.41.247;192.168.41.248/wgz_FD_02_scaqai06celadm13",\
"o/192.168.41.247;192.168.41.248/wgz_FD_03_scaqai06celadm13",\
"o/192.168.41.249;192.168.41.250/wgz_FD_00_scaqai06celadm14",\
"o/192.168.41.249;192.168.41.250/wgz_FD_01_scaqai06celadm14",\
"o/192.168.41.249;192.168.41.250/wgz_FD_02_scaqai06celadm14",\
"o/192.168.41.249;192.168.41.250/wgz_FD_03_scaqai06celadm14" \
-redundancy NORMAL -au_size 4 -compatible.rdbms 18.0.0.0