Configure raw devices in SuSE Linux 10)

Source: Internet
Author: User

A bare device is a non-formatted partition or disk. It is also called a bare partition (original partition) and is not read by UNIX through a file system. The application is responsible
It performs read/write operations. A device that is not directly managed by the operating system without being buffered by the file system. I/O efficiency is improved because I/O is managed across operating systems. In SuSE Linux
Oracle 10 Gb does not support storing OCR and votingdisk In the ASM disk. Therefore, you still need to use bare devices for Oracle 10g RAC installation. SuSE
The configuration of a Linux bare device is slightly different from that of other Linux devices.

1. Partition the disk first. SDD is processed as follows # In the following example, SDC and SDD are used as bare devices, one for OCR, and the other for votingdiskbo2dbp :~ # Fdisk/dev/sdcdevice contains neither a valid DOS partition table, Nor Sun, SGI or OSF disklabelbuilding a new dos disklabel. changes will remain in memory only, until you decide to write them. after that, of course, the previuscontent won't be recoverable. warning: Invalid flag 0x0000 of Partition Table 4 will be corrected by W (RITE) Command (M for help): ncommand Action E extended P primary part Ition (1-4) ppartition number (1-4): value out of range. partition Number (1-4): value out of range. partition Number (1-4): 1 first 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): wthe partition table has been altered! Calling IOCTL () to re-read Partition Table. syncing disks.2. Partition result bo2dbp :~ # Fdisk-L/dev/sdcdisk/dev/SDC: 209 MB, 209715200 bytes64 heads, 32 sectors/track, 200 cylindersunits = cylinders of 2048*512 = 1048576 bytes device boot start end blocks ID system/dev/sdc1 1 200 204784 83 linuxbo2dbp :~ # Fdisk-L/dev/sdddisk/dev/SDD: 209 MB, 209715200 bytes64 heads, 32 sectors/track, 200 cylindersunits = cylinders of 2048*512 = 1048576 bytes device boot start end blocks ID system/dev/sdd1 1 200 204784 83 linux3. Configure the bare device bo2dbp :~ # Vi/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 devicesraw1: sdc1raw2: sdd14. Start the bare device bo2dbp :~ # Rcraw startbind/dev/raw/raw1 to/dev/sdc1... donebind/dev/raw/raw2 to/dev/sdd1... done5. Configure the bare device to start bo2dbp with the system :~ # Chkconfig rawraw on # modify the permission and owner of the bare device. Although this operation is modified, it will become invalid after restart. For Permanent modification, see. Check whether the bare device is automatically activated: chkconfig -- list | grep rawbo2dbp :~ # Chown ORACLE: DBA/dev/raw/Raw [1-2] bo2dbp :~ # Chmod 660/dev/raw/Raw [1-2] 6. Test the bare device bo2dbp :~ # Dd If =/dev/Zero of =/dev/raw/raw1 BS = 1024 k count = 200dd: Writing '/dev/raw/raw1 ': no space left on device200 + 0 records in199 + 0 records out209698816 bytes (210 MB) Copied, 2.59567 seconds, 80.8 MB/S7, modify the permission and owner of the bare device after startup # Use the root user to modify/etc/udev/rules. d/50-udev-default.rules, ensure the raw device permission group = "dba", mode = "660 ", owner = "oracle" # change the records containing kenrel = "Raw" to the following kernel = "Raw [0-9] *", subsystem = "Raw ", name = "raw/% K", group = "Dba", mode = "660", owner = "oracle" 8. Confirm configuration success # status after restart # Author: Robinson Cheng blog: http://blog.csdn.net/robinson_0612bo2dbp :~ # Ls-hltr/dev/rawtotal 0crw-rw ---- 1 root disk 162, 0 Sep 19 rawctlcrw-RW ---- 1 Oracle DBA 162, 1 Sep 19 raw1crw-rw ---- 1 Oracle DBA 162, 2 Sep 19 10:22 raw2bo2dbs :~ #/Usr/sbin/raw-QA/dev/raw/raw1: bound to major 8, minor 33/dev/raw/raw2: bound to major 8, minor 49

More references
Passing variables between Linux/Unix shell SQL statements
Linux/Unix shell scripts call SQL and RMAN scripts
 

For more information about user-managed backup and recovery, see

Oracle cold backup

Oracle Hot Backup

Concept of Oracle backup recovery

Oracle instance recovery

Oracle recovery based on user management (describes media recovery and processing in detail)

System tablespace management and Backup Recovery

Sysaux tablespace management and recovery

Oracle backup control file recovery (unsing backup controlfile)

 

For information on RMAN backup recovery and management, see

RMAN overview and architecture

RMAN configuration, Monitoring and Management

Detailed description of RMAN backup

RMAN restoration and recovery

Create and use RMAN catalog

Create RMAN storage script based on catalog

Catalog-based RMAN backup and recovery

RMAN backup path confusion (when using plus archivelog)

 

For the Oracle architecture, see

Oracle tablespace and data files

Oracle Password File

Oracle parameter file

Oracle online redo log file)

Oracle Control File)

Oracle archiving logs

Oracle rollback and undo)

Oracle database instance startup and Shutdown Process

Automated Management of Oracle 10g SGA

Oracle instances and Oracle databases (Oracle Architecture)

 

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.