[root@host ~]# fdisk -l

 

Disk /dev/sda: 21.4 GB, 21474836480 bytes

255 heads, 63 sectors/track, 2610 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1          13      104391   83  Linux

/dev/sda2              14        2610    20860402+  8e  Linux LVM

 

Disk /dev/sdb: 5368 MB, 5368709120 bytes

255 heads, 63 sectors/track, 652 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

   Device Boot      Start         End      Blocks   Id  System

/dev/sdb1               1         125     1004031   83  Linux

/dev/sdb2             126         250     1004062+  83  Linux

/dev/sdb3             251         375     1004062+  83  Linux

/dev/sdb4             376         500     1004062+  83  Linux

 

Disk /dev/sdc: 536 MB, 536870912 bytes

255 heads, 63 sectors/track, 65 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

   Device Boot      Start         End      Blocks   Id  System

/dev/sdc1               1          13      104391   83  Linux

/dev/sdc2              14          26      104422+  83  Linux

/dev/sdc3              27          39      104422+  83  Linux

/dev/sdc4              40          52      104422+  83  Linux

 

Disk /dev/sdd: 4294 MB, 4294967296 bytes

255 heads, 63 sectors/track, 522 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

   Device Boot      Start         End      Blocks   Id  System

/dev/sdd1               1         125     1004031   83  Linux

/dev/sdd2             126         250     1004062+  83  Linux

/dev/sdd3             251         375     1004062+  83  Linux

/dev/sdd4             376         500     1004062+  83  Linux

 

[root@host ~]# vi /etc/rc.local

#!/bin/sh

#

# This script will be executed *after* all the other init scripts.

# You can put your own initialization stuff in here if you don't

# want to do the full Sys V style init stuff.

 

touch /var/lock/subsys/local

raw /dev/raw/raw1 /dev/sdb1

raw /dev/raw/raw2 /dev/sdb2

raw /dev/raw/raw3 /dev/sdb3

raw /dev/raw/raw4 /dev/sdb4

raw /dev/raw/raw5 /dev/sdc1

raw /dev/raw/raw6 /dev/sdc2

raw /dev/raw/raw7 /dev/sdc3

raw /dev/raw/raw8 /dev/sdc4

raw /dev/raw/raw9 /dev/sdd1

raw /dev/raw/raw10 /dev/sdd2

raw /dev/raw/raw11 /dev/sdd3

raw /dev/raw/raw12 /dev/sdd4

chown oracle:dba /dev/raw/raw1

chown oracle:dba /dev/raw/raw2

chown oracle:dba /dev/raw/raw3

chown oracle:dba /dev/raw/raw4

chown oracle:dba /dev/raw/raw5

chown oracle:dba /dev/raw/raw6

chown oracle:dba /dev/raw/raw7

chown oracle:dba /dev/raw/raw8

chown oracle:dba /dev/raw/raw9

chown oracle:dba /dev/raw/raw10

chown oracle:dba /dev/raw/raw11

chown oracle:dba /dev/raw/raw12

chmod 660 /dev/raw/raw1

chmod 660 /dev/raw/raw2

chmod 660 /dev/raw/raw3

chmod 660 /dev/raw/raw4

chmod 660 /dev/raw/raw5

chmod 660 /dev/raw/raw6

chmod 660 /dev/raw/raw7

chmod 660 /dev/raw/raw8

chmod 660 /dev/raw/raw9

chmod 660 /dev/raw/raw10

chmod 660 /dev/raw/raw11

chmod 660 /dev/raw/raw12

"/etc/rc.local" 43L, 1289C written

 

 

[root@host ~]# source /etc/rc.local

/dev/raw/raw1:  bound to major 8, minor 17

/dev/raw/raw2:  bound to major 8, minor 18

/dev/raw/raw3:  bound to major 8, minor 19

/dev/raw/raw4:  bound to major 8, minor 20

/dev/raw/raw5:  bound to major 8, minor 33

/dev/raw/raw6:  bound to major 8, minor 34

/dev/raw/raw7:  bound to major 8, minor 35

/dev/raw/raw8:  bound to major 8, minor 36

/dev/raw/raw9:  bound to major 8, minor 49

/dev/raw/raw10: bound to major 8, minor 50

/dev/raw/raw11: bound to major 8, minor 51

/dev/raw/raw12: bound to major 8, minor 52

 

[root@host ~]# ls -rtl /dev/raw

total 0

crw-rw—- 1 oracle dba 162,  1 Jul 10 17:08 raw1

crw-rw—- 1 oracle dba 162,  2 Jul 10 17:08 raw2

crw-rw—- 1 oracle dba 162,  3 Jul 10 17:08 raw3

crw-rw—- 1 oracle dba 162,  4 Jul 10 17:08 raw4

crw-rw—- 1 oracle dba 162,  5 Jul 10 17:08 raw5

crw-rw—- 1 oracle dba 162,  6 Jul 10 17:08 raw6

crw-rw—- 1 oracle dba 162,  7 Jul 10 17:08 raw7

crw-rw—- 1 oracle dba 162,  8 Jul 10 17:08 raw8

crw-rw—- 1 oracle dba 162,  9 Jul 10 17:08 raw9

crw-rw—- 1 oracle dba 162, 10 Jul 10 17:08 raw10

crw-rw—- 1 oracle dba 162, 11 Jul 10 17:08 raw11

crw-rw—- 1 oracle dba 162, 12 Jul 10 17:08 raw12

 

 




Related posts

coded by nessus
分享:  DeliciousGReader鲜果豆瓣CSDN网摘
Trackback

only 1 comment untill now

  1. differs@raphaels.kapnek” rel=”nofollow”>.…

    áëàãîäàðþ….

Add your comment now

无觅相关文章插件