Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Troubleshooting Linux virtual machine device id and the letter of inconsistencies     - Oracle DATABASE LINK (DBLINK) Create (Database)

- Ubuntu 15.04 and Ubuntu 14.04 installed Cinnamon 2.6 (Linux)

- Nginx caching using the official guide (Server)

- ORA-08102 errors (Database)

- Linux Security and Optimization (Linux)

- Difference Docker mirror and containers (Server)

- Access.log Apache access log analysis and how to import it into MySQL (Server)

- Classical sorting algorithm - Selection Sort (Linux)

- Linux file system (inode and block) (Linux)

- Using DBMS_STAT function closes mission (Database)

- How to manage KVM virtual environments with command-line tools in Linux (Server)

- Linux can modify the maximum number of open files (Linux)

- How to use static, class, abstract method in Python (Programming)

- DataGuard a hardware issue warnings found (Database)

- C ++ inheritance and derived (induction principle) (Programming)

- Why HBase need to build SQL engine layer (Database)

- Change CentOS 7 NIC name eno16777736 to eth0 (Linux)

- 5 fast Node.js application performance tips (Programming)

- Linux system security norms (Linux)

- Open Ubuntu system updates (Linux)

 
         
  Troubleshooting Linux virtual machine device id and the letter of inconsistencies
     
  Add Date : 2016-10-26      
         
         
         
  When the user mounts a plurality scsi disks after restarting Linux virtual machine inside a virtual machine disk mapping and user configuration inconsistencies. User-configured virtual machine scsi device id and letter correspondence.

When the virtual machine restarts, the correspondence between the virtual machine scsi device id and the letter and user configuration inconsistencies.

In this case, when the letter corresponding to the device used in the Oracle RAC changes cause some impact on business.

Solution:
You need to specify when using virtual machines scsi device scsi device id, this workaround is mainly applied to use the entire scsi disk, not a virtual machine on the internal situation scsi disk partitions. Environment: RedHat 6.5 64-bit operating system, for example: /etc/udev/rules.d/60-raw.rules profile.
ACTION == "add", KERNEL == "sd *", PROGRAM == "/ sbin / scsi_id -g -u -d / dev / $ name",
RESULT == "360022a11000e085d0de717f500000003", RUN + = "/ bin / raw / dev / raw / raw1% N"
ACTION == "add", KERNEL == "sd *", PROGRAM == "/ sbin / scsi_id -g -u -d / dev / $ name",
RESULT == "360022a11000e085d0de7372c0000002e", RUN + = "/ bin / raw / dev / raw / raw2% N"
KERNEL == "raw1", OWNER = "grid", GROUP = "oinstall", MODE = "777"
KERNEL == "raw2", OWNER = "grid", GROUP = "oinstall", MODE = "777"

We can / sbin / scsi_id -g -u -d / dev / $ name, to get the configuration RESULT. E.g:

When you need to use the / dev / sda as RAC devices, you can do:
# / Sbin / scsi_id -g -u -d / dev / sda
The result is:
# 360022a11000e085d0de717f500000003 \\ configuration RESULTRedhat 6.5 64-bit operating system, for example: /etc/udev/rules.d/60-raw.rules profile.
ACTION == "add", KERNEL == "sd *", PROGRAM == "/ sbin / scsi_id -g -u -s% p",
RESULT == "360022a11000be24a0004aeee0000000a", RUN + = "/ bin / raw / dev / raw / raw1% N"
KERNEL == "raw1", OWNER = "grid", GROUP = "oinstall", MODE = "777"

PROGRAM by specifying in the / sbin / scsi_id -g -u -s% p, to obtain configuration RESULT. E.g:

If you need to use the / dev / sda as RAC devices, you can do:
# / Sbin / scsi_id -g -u -s / block / sda
The result is:
# 360022a11000be24a0004aeee0000000a \\ configuration RESULT

Cause Analysis:

When Oracle RAC configuration scsi disk during the installation process, the traditional way is to point to a specific drive letter, the contents of the configuration file as follows /etc/udev/rules.d/60-raw.rules specific letter in which KERNEL field represents the point.

ACTION == "add", KERNEL == "sdb", RUN + = "/ bin / raw / dev / raw / raw1% N"
ACTION == "add", KERNEL == "sdc", RUN + = "/ bin / raw / dev / raw / raw2% N"
ACTION == "add", KERNEL == "sdd", RUN + = "/ bin / raw / dev / raw / raw3% N"
KERNEL == "raw1", OWNER = "grid", GROUP = "oinstall", MODE = "777"
KERNEL == "raw2", OWNER = "grid", GROUP = "oinstall", MODE = "777"
KERNEL == "raw3", OWNER = "grid", GROUP = "oinstall", MODE = "777"

Physical device map presented to the virtual machine device id and letter (such as sda \ sdb) in the correspondence between the virtual machine restart may change, for the following reasons:

Linux generate sda, sdb, sdc rule is determined by the Linux kernel. Linux kernel for mapping this disk device is substantially dependent on the order of three, first load the disk drivers; the second is the host PCI slot monitoring; third is to monitor the disk itself, the first to be sda, and so on.

Physical machine after hot-swap device reboot, will face change letter. For example, before the start of the sda, sdb, sdc, sdb restart the device unplugged, rendering device number is sda, sdb (original sdc).
     
         
         
         
  More:      
 
- Introduction Linux namespace (Linux)
- CentOS7 install and configure Nagios (Server)
- Use IF NOT EXISTS create a data table (Database)
- Using packet capture libpcap be reconciliation package in Ubuntu 14.04 64 bits (Linux)
- Setting Derby as Linux / Windows running as a service from the start (Server)
- RHEL5.8 physical opportunities to Read-only file system (Linux)
- LinkedList Basic Usage (Programming)
- How to use OpenVPN and PrivacyIDEA build two-factor authentication for remote access (Server)
- Installation Eduspec university management systems 17 Linux Mint (Server)
- How to install and use the malware detection tool LMD and ClamAV antivirus engine on Linux (Linux)
- Linux configuration startup mount: fstab file (Linux)
- SpringMVC garbage processing (Programming)
- Java memory model subclasses (Programming)
- Linux System Getting Started Tutorial: How to find the maximum memory your system supports (Linux)
- Based on OpenSSL for HTTPS service configuration (Server)
- Gitolite how to import other Git repositories (Server)
- Erlang concurrency and foundation (Programming)
- How to use Monit to deploy a server to monitor the system (Server)
- OpenNMS separate database (Server)
- Ubuntu 32 compile Android 4.0.4 Problems (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.