Device "/dev/SDG" is not a partition [continued]

Source: Internet
Author: User

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]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.