Implement ASM on LVM

Source: Internet
Author: User

Environment: RHEL-5.8 Oracle _ 10gR2

Bind a bare Device

  1. [Root @ localhost ~] # Fdisk-l
  2. Disk/dev/sda: 32.2 GB, 32212254720 bytes
  3. 255 heads, 63 sectors/track, 3916 cylinders
  4. Units = cylinders of 16065*512 = 8225280 bytes
  5. Device Boot Start End Blocks Id System
  6. /Dev/sda1*1 13 104391 83 Linux
  7. /Dev/sda2 14 1288 10241437 + 83 Linux
  8. /Dev/sda4 1289 3916 21109410 5 Extended
  9. /Dev/sda5 1289 1301 104391 8e Linux LVM
  10. /Dev/sda6 1302 1314 104391 8e Linux LVM
  11. /Dev/sda7 1315 1327 104391 8e Linux LVM
  12. /Dev/sda8 1328 1340 104391 8e Linux LVM
  13. /Dev/sda9 1341 1353 104391 8e Linux LVM
  14. /Dev/sda10 1354 1366 104391 8e Linux LVM
  15. /Dev/sda11 1367 1379 104391 8e Linux LVM
  16. /Dev/sda12 1380 1392 104391 8e Linux LVM

② In/etc/sysconfig/rawdevices, add:

  1. /Dev/raw/raw5/dev/sda5
  2. /Dev/raw/raw6/dev/sda6
  3. /Dev/raw/raw7/dev/sda7
  4. /Dev/raw/raw8/dev/sda8
  5. /Dev/raw/raw9/dev/sda9
  6. /Dev/raw/raw10/dev/sda10
  7. /Dev/raw/raw11/dev/sda11
  8. /Dev/raw/raw12/dev/sda12

③ Under assign_raw at start of/etc/rc. d/init. d/rawdevices, add:

  1. Sleep 3
  2. Chown-R oracle: oinstall/dev/raw/

④ Check bare Devices

  1. [Root @ localhost init. d] # chkconfig rawdevices on
  2. [Root @ localhost init. d] # partprobe
  3. [Root @ localhost init. d] # service rawdevices restart
  4. Assigning devices:
  5. /Dev/raw/raw5 -->/dev/sda5
  6. /Dev/raw/raw5: bound to major 8, minor 5
  7. /Dev/raw/raw6 -->/dev/sda6
  8. /Dev/raw/raw6: bound to major 8, minor 6
  9. /Dev/raw/raw7 -->/dev/sda7
  10. /Dev/raw/raw7: bound to major 8, minor 7
  11. /Dev/raw/raw8 -->/dev/sda8
  12. /Dev/raw/raw8: bound to major 8, minor 8
  13. /Dev/raw/raw9 -->/dev/sda9
  14. /Dev/raw/raw9: bound to major 8, minor 9
  15. /Dev/raw/raw10 -->/dev/sda10
  16. /Dev/raw/raw10: bound to major 8, minor 10
  17. /Dev/raw/raw11 -->/dev/sda11
  18. /Dev/raw/raw11: bound to major 8, minor 11
  19. /Dev/raw/raw12 -->/dev/sda12
  20. /Dev/raw/raw12: bound to major 8, minor 12
  21. Done
  22. [Root @ localhost init. d] # raw-qa
  23. /Dev/raw/raw5: bound to major 8, minor 5
  24. /Dev/raw/raw6: bound to major 8, minor 6
  25. /Dev/raw/raw7: bound to major 8, minor 7
  26. /Dev/raw/raw8: bound to major 8, minor 8
  27. /Dev/raw/raw9: bound to major 8, minor 9
  28. /Dev/raw/raw10: bound to major 8, minor 10
  29. /Dev/raw/raw11: bound to major 8, minor 11
  30. /Dev/raw/raw12: bound to major 8, minor 12
  • 1
  • 2
  • 3
  • 4
  • Next Page

Related Article

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.