SUSE How to configure raw devices in Linux 10

Source: Internet
Author: User
Tags bind file system range linux

A bare device is a special character device that is not formatted with a partition or disk, also known as a bare partition (the original partition), and is not read by UNIX through the file system. It is the responsibility of the application to read and write it. A device that is not managed directly by the operating system without the buffer of the file system. I/O is more efficient because it spans operating system management. If Oracle 10g RAC is installed on SuSE Linux 10, the bare device mode is still required because Oracle 10g does not support the storage of OCR and Votingdisk on the ASM disk. The configuration of SUSE Linux bare devices differs slightly from other Linux, as described below.

[Python] View plaincopyprint?

1, first partition the disk, SDD as the following method of processing

#下面的示例中使用sdc和sdd来用作裸设备, one for OCR, one for Votingdisk

bo2dbp:~ # FDISK/DEV/SDC

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF Disklabel

Building a new DOS Disklabel. Changes would remain in memory only,

Until you decide to write them. After that, the course, the previous

Content won ' t be recoverable.

Warning:invalid flag 0x0000 of partition table 4 is corrected by W (rite)

Command (M for help): N

Command Action

E Extended

P primary partition (1-4)

P

Partition number (1-4):

Value out of range.

Partition number (1-4):

Value out of range.

Partition number (1-4): 1

The cylinder (1-200, default 1):

Using Default value 1

Last cylinder or +size or +sizem or +sizek (1-200, default 200):

Using Default Value 200

Command (M for help): W

The partition table has been altered!

Calling IOCTL () to re-read partition table.

Syncing disks.

2, the results after the partition

bo2dbp:~ # fdisk-l/DEV/SDC

disk/dev/sdc:209 MB, 209715200 bytes

Heads, Sectors/track, cylinders

Units = Cylinders of 2048 * 1048576 bytes

Device Boot Start End Blocks Id System

/DEV/SDC1 1 204784 MB Linux

bo2dbp:~ # fdisk-l/DEV/SDD

disk/dev/sdd:209 MB, 209715200 bytes

Heads, Sectors/track, cylinders

Units = Cylinders of 2048 * 1048576 bytes

Device Boot Start End Blocks Id System

This paper url:http://www.bianceng.cn/os/linux/201410/45623.htm

/DEV/SDD1 1 204784 MB Linux

3. Dispose of bare equipment

bo2dbp:~ # Vi/etc/raw

#/etc/raw

#

# sample configuration to bind raw devices

# to block devices

#

# The format of this file is:

# raw<n>:<blockdev>

#

# example:

# ---------

# RAW1:HDB1

#

# this MEANS:BIND/DEV/RAW/RAW1 to/dev/hdb1

#

# ...

#Add New RAW Devices

Raw1:sdc1

Raw2:sdd1

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.