I summarized the error before creating an ASM Disk: http://blog.csdn.net/rhys_oracle/article/details/17029333
This is the case today. As follows:
When you use openfiler to map to a local disk through iSCSI, the following error occurs when you create the entire disk as ASM:
[[email protected] iscsi]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdhMarking disk "VOL1" as an ASM disk: [FAILED][[email protected] iscsi]# tail -5 /var/log/oracleasm Cleaning any stale ASM disks...Scanning system for ASM disks...Device "/dev/sdg" is not a partitionDevice "/dev/sdh" is not a partitionDevice "/dev/sdh" is not a partition[[email protected] iscsi]#
The prompt is not a partition. Why?
The reason is that the iSCSI disk attached to the local disk must be partitioned before use, and the partition must be the primary partition. If the attached disk is larger than 2 TB, use the parted tool to create partitions (fdisk does not support creating partitions on disks larger than 2 TB ).
Re-partitioning:
[[email protected] iscsi]# fdisk /dev/sdhDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabelBuilding a new DOS disklabel with disk identifier 0xcf1af59a.Changes will remain in memory only, until you decide to write them.After that, of course, the previous content won't be recoverable.Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u').Command (m for help): nCommand action e extended p primary partition (1-4)pPartition number (1-4): 1First cylinder (1-10240, default 1): Using default value 1Last cylinder, +cylinders or +size{K,M,G} (1-10240, default 10240): Using default value 10240Command (m for help): wThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.[[email protected] iscsi]#
Re-create an ASM Disk:
[[email protected] iscsi]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdh1Marking disk "VOL1" as an ASM disk: [ OK ][[email protected] iscsi]#
Device "/dev/SDG" is not a partition [continued]