Get the App
SLTechnology News&Howtos  ›  Database  › 

What is the method of mounting Oracle shared storage?

Shulou Source: shulou.com Published: 2022-05-31 14:29:25 10月05日 Update

This article mainly explains the "Oracle shared storage mount method is what", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Oracle shared storage mount method is what" it!

1. Generate a rule file

Touch / etc/udev/rules.d/99-oracle-asmdevices.rulestouch / usr/lib/udev/rules.d/99-oracle-asmdevices.rules2. Generate rule for i in b Echo "KERNEL==\" sd*\ ", SUBSYSTEM==\" block\ ", PROGRAM==\" / usr/lib/udev/scsi_id-- whitelisted-- replace-whitespace-- device=/dev/\ $name\ ", RESULT==\" `/ usr/lib/udev/scsi_id-- whitelisted-- replace-whitespace-- device=/dev/sd$ i` ", SYMLINK+=\" asm-disk$i\ ", OWNER=\" grid\ ", GROUP=\" asmadmin\ ", MODE=\" 0660\ "for i in b1 b2echo" KERNEL==\ "sd$i\", SUBSYSTEM==\ "block\" PROGRAM==\ "/ usr/lib/udev/scsi_id-- whitelisted-- replace-whitespace-- device=/dev/\ $parent\", RESULT==\ "`/ usr/lib/udev/scsi_id-- whitelisted-- replace-whitespace-- device=/dev/sd$ {iVOV1}`\", SYMLINK+=\ "asm-disk$i\", OWNER=\ "grid\", GROUP=\ "asmadmin\", MODE=\ "0660\"3. Copy the result to 99-oracle-asmdevices.rules and paste the output of step 2 into the 99-oracle-asmdevices.rules file KERNEL== "sd*", SUBSYSTEM== "block", PROGRAM== "/ usr/lib/udev/scsi_id-- whitelisted-- replace-whitespace-- device=/dev/$name", RESULT== "36000c2948ef9d9e4a7937bfc65888bc8", NAME= "asm-diskb", OWNER= "grid", GROUP= "asmadmin", MODE= "0660" # / sbin/partprobe / dev/sdb Note: under Linux 7 You can use the following command: # / sbin/scsi_id-g-u / dev/sdb under Linux 5, you can use the following command: 4. For testing with udevadm, note that the udevadm command does not accept mount device names such as / dev/sdc, but must use raw device names such as / sys/block/sdb. Udevadm test / sys/block/sdbudevadm info-query=all-name=asm-diskb/usr/sbin/udevadm control-reload-rulessystemctl enable systemd-udevd.service6. Check that the device is properly bound # ls-l / dev/asm* / dev/sdbbrw-rw---- 1 grid asmadmin 8, 16 Nov 29 18:17 / dev/sdb

Thank you for reading, the above is the content of "what is the method of mounting Oracle shared storage?" after the study of this article, I believe you have a deeper understanding of what the method of mounting Oracle shared storage is, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Methods storage commands devices learning content files rules generation original comments that is ideas situations articles more knowledge knowledge points articles results Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL OPPO Reno Xiaomi Apple Docker