Search This Blog

Wednesday, August 11, 2021

STEPS TO CREATE RAW AND UPDATE PARTITIONS

 

Raw device

In computing, specifically Unix-like operating systems, a raw device is a special kind of block device file that allows accessing a storage device such as a hard drive directly, bypassing the operating system's caches and buffers (although the hardware caches might still be used).

a raw device offers a more "direct" route to the physical device and allows an application more control over the timing of IO to that physical device. This makes raw devices suitable for complex applications like Database Management Systems that typically do their own caching.

Raw devices are character devices (major number 162). The first minor number (i.e. 0) is reserved as a control interface and is usually found at /dev/rawctl. A utility called raw (see man raw) can be used to bind a raw device to an existing block device.

STEPS TO CREATE RAW AND UPDATE PARTITIONS:

PART -1

  1. To check partitions:  df -Th
  2. To check raw partitions: fdisk -l
  3. To create Partitions: # fdisk    /dev/sda (enter)           command (m for help): n

First Cylinder: (enter)

Last Cylinder: +2048M

We need to repeat the above to create various partitions. And at last : w (to save)

  1. Issue the following command to update:  # partprobe

 

PART – 2

  1. To rename the partition: # raw            /dev/raw/raw1 /dev/sda6

                                                    # raw           /dev/raw/raw2 /dev/sda7 ..... so on

PART – 3

Update /etc/sysconfig/rawdevices file with raw information:

Insert: /dev/raw/raw1  /dev/sda6

           /dev/raw/raw2  /dev/sda7 ..... so on

 

PART – 4

Change the ownership:

chown -R oracle:oinstall         /dev/raw/raw*

chmod -R 777 /dev/raw

 

PART – 5 : Open dbca and create ASM instance.

No comments:

Post a Comment

Transportable tablespace refresh

  1.check tablespace for the user which need to refresh -------------------------------------------------------------------  SQL> select ...