Environment: RHEL-5.8 Oracle _ 10gR2
Bind a bare Device
- [Root @ localhost ~] # Fdisk-l
- Disk/dev/sda: 32.2 GB, 32212254720 bytes
- 255 heads, 63 sectors/track, 3916 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 1288 10241437 + 83 Linux
- /Dev/sda4 1289 3916 21109410 5 Extended
- /Dev/sda5 1289 1301 104391 8e Linux LVM
- /Dev/sda6 1302 1314 104391 8e Linux LVM
- /Dev/sda7 1315 1327 104391 8e Linux LVM
- /Dev/sda8 1328 1340 104391 8e Linux LVM
- /Dev/sda9 1341 1353 104391 8e Linux LVM
- /Dev/sda10 1354 1366 104391 8e Linux LVM
- /Dev/sda11 1367 1379 104391 8e Linux LVM
- /Dev/sda12 1380 1392 104391 8e Linux LVM
② In/etc/sysconfig/rawdevices, add:
- /Dev/raw/raw5/dev/sda5
- /Dev/raw/raw6/dev/sda6
- /Dev/raw/raw7/dev/sda7
- /Dev/raw/raw8/dev/sda8
- /Dev/raw/raw9/dev/sda9
- /Dev/raw/raw10/dev/sda10
- /Dev/raw/raw11/dev/sda11
- /Dev/raw/raw12/dev/sda12
③ Under assign_raw at start of/etc/rc. d/init. d/rawdevices, add:
- Sleep 3
- Chown-R oracle: oinstall/dev/raw/
④ Check bare Devices
- [Root @ localhost init. d] # chkconfig rawdevices on
- [Root @ localhost init. d] # partprobe
- [Root @ localhost init. d] # service rawdevices restart
- Assigning devices:
- /Dev/raw/raw5 -->/dev/sda5
- /Dev/raw/raw5: bound to major 8, minor 5
- /Dev/raw/raw6 -->/dev/sda6
- /Dev/raw/raw6: bound to major 8, minor 6
- /Dev/raw/raw7 -->/dev/sda7
- /Dev/raw/raw7: bound to major 8, minor 7
- /Dev/raw/raw8 -->/dev/sda8
- /Dev/raw/raw8: bound to major 8, minor 8
- /Dev/raw/raw9 -->/dev/sda9
- /Dev/raw/raw9: bound to major 8, minor 9
- /Dev/raw/raw10 -->/dev/sda10
- /Dev/raw/raw10: bound to major 8, minor 10
- /Dev/raw/raw11 -->/dev/sda11
- /Dev/raw/raw11: bound to major 8, minor 11
- /Dev/raw/raw12 -->/dev/sda12
- /Dev/raw/raw12: bound to major 8, minor 12
- Done
- [Root @ localhost init. d] # raw-qa
- /Dev/raw/raw5: bound to major 8, minor 5
- /Dev/raw/raw6: bound to major 8, minor 6
- /Dev/raw/raw7: bound to major 8, minor 7
- /Dev/raw/raw8: bound to major 8, minor 8
- /Dev/raw/raw9: bound to major 8, minor 9
- /Dev/raw/raw10: bound to major 8, minor 10
- /Dev/raw/raw11: bound to major 8, minor 11
- /Dev/raw/raw12: bound to major 8, minor 12