Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux MultiPath software implementation instructions     - Build and verify MongoDB3.0.7 version (shard + replica) Cluster (Database)

- Redis configuration file interpretation (Database)

- Linux environment has been running Tomcat how to deploy the new Tomcat (Server)

- Linux, MySQL root privilege escalation another method (Linux)

- How to use Java to read OpenOffice document (Programming)

- About Python default character set (Linux)

- Copy and paste in Linux terminal and Vim (Linux)

- MySQL Data Types (Database)

- iOS constants, variables, properties and characteristics (Programming)

- You may not know the Linux command-line network monitoring tool (Linux)

- Java proxy use and proxy principle (Programming)

- grub boot error resolution examples (Linux)

- Binary Packages Golang (Linux)

- Processor in protected mode of protection (Linux)

- Red Hat Enterprise Linux 6.4 Configuring VNC Remote Desktop login access (Linux)

- Encrypted with GnuPG signature to verify the authenticity and integrity of downloaded file (Linux)

- Fragment Android developers learning to resolve (Programming)

- Linux server data backup (Server)

- LVM management reduces swap partition space to the root partition (Linux)

- Linux --- file descriptors and redirection (Linux)

 
         
  Linux MultiPath software implementation instructions
     
  Add Date : 2018-11-21      
         
         
         
  Multipath works

When multipath start when it gets UUID (universally unique identify) proc / partitions inside all block devices through the system command scsi_id -eg -s / block / sdX, then all have the same UUID block device composed of a Group, in / dev / mapper production corresponding to a separate device. When the device is ready to use to generate parted or fdisk partition, the partition can use kpartx command to register, and then you can use the system command to create a file system and mount.

Usually in the series installation process will install device-mapper package using the command rpm linux comes with inquiries about whether a package has been installed times. Use the command rpm -ivh installation, install the following rpm package:

device-mapper- *

device-mapper-multipath- *

device-mapper-1 *

Starting Multipath and Multipath Configuration

Starting Multipath, the default template is created by mpathconf command. Create a default configuration, launch and activation multipathd process, you can use the following command:

mpathconf --enable --with_multipathd y

After configuration is recommended to restart the multipathing software:

/etc/init.d/multipathd restart

Note: in / etc / next generation after the completion of startup files and generate bindings and multipath.conf wwid in / etc / multipath, which wwid recorded in the system tray all mounted disc unique ID, Bindings record corresponding to the ID Mapping after the disc is generally binding will produce similar mpathx and other documents in the / dev / mapper

Notes ------------------------------------------------- -----

If there is no generation can follow Deploying Oracle RAC 11g R2 Database on Red Hat EnterpriseLinux 6

To operate in the following manner:

1. As the root user, install the device-mapper-multipath package using the yum package

manager.

# Yum install device-mapper-multipath

2. Copy the multipath.conf file found within /usr/share/doc/device-mapper-multipath-0.4.9/

to / etc /

# Cp /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf / etc /

3. Capture the scsi id of the local disk (s) on the system.

# Scsi_id --whitelisted --replace-whitespace --device = / dev / sda

3600508b1001030353434363646301200

4. Uncomment and modify the blacklist section within the /etc/multipath.conf file to include

the scsi id of the local disk on the system. Once complete, save the changes made to

the multipath.conf file.

blacklist {

wwid 3600508b1001030353434363646301200

devnode "^ (ram | raw | loop | fd | md | dm- | sr | scd | st) [0-9] *"

devnode "^ hd [a-z]"

}

5. Start the multipath daemon.

# Service multipathd start

Starting multipathd daemon: [OK]

6. Enable the multipath daemon to ensure it is started upon boot time.

# Chkconfig multipathd on

7. Identify the dm- device, size, and WWID of each device mapper volume for Oracle

OCR and voting disks, data disks and recovery disks. In this example, volume mpathb

It is identified via the following command:

# Multipath -ll

Figure Multipath Device (mpathb)

8. Uncomment the defaults section found within the /etc/multipath.conf file.

defaults {

udev_dir / dev

polling_interval 10

path_selector "round-robin 0"

path_grouping_policy multibus

getuid_callout "/ lib / udev / scsi_id --whitelisted

--device = / dev /% n "

prio alua

path_checker readsector0

rr_min_io 100

max_fds 8192

rr_weight priorities

failback immediate

no_path_retry fail

user_friendly_names yes

}

NOTE: The standard options can be customized to better fit your storage array's

capabilities. Check with your storage vendor for details.

 

9. Un-comment the multipath section found within the /etc/multipath.conf file and create

an alias for each device mapper volume in order to enable persistent naming of those

volumes. Once complete, save the changes made to the multipath.conf file. The output

should resemble the example below. For reference, refer the Oracle data volumes

created for the reference environment as displayed in Table 2.4.3: Oracle OCR,

Voting Disk, & Data File Sizes.

/etc/multipath.conf

multipaths {

multipath {

wwid 3600c0ff000d7e7a854a0f65101000000

alias db1

}

multipath {

wwid 3600c0ff000dabfe562a0f65101000000

alias db2

}

multipath {

wwid 3600c0ff000d7e7a874a0f65101000000

alias fra

}

multipath {

wwid 3600c0ff000dabfe585a0f65101000000

alias redo

}

multipath {

wwid 3600c0ff000dabfe596a0f65101000000

alias ocrvote1

}

multipath {

wwid 3600c0ff000dabfe5a2a0f65101000000

alias ocrvote2

}

multipath {

wwid 3600c0ff000dabfe5b4a0f65101000000

alias ocrvote3

}

}

10.Restart the device mapper multipath daemon.

# Service multipathd restart

ok

Stopping multipathd daemon: [OK]

Starting multipathd daemon: [OK]

11.Verify the device mapper paths and aliases are displayed properly. Below is an

example of one device mapper device labeled fra.

# Multipath -ll

fra (3600c0ff000d7e7a89e85ac5101000000) dm-10 HP, MSA2324fc

size = 186G features = '1 queue_if_no_path' hwhandler = '0' wp = rw

| - + - Policy = 'round-robin 0' prio = 130 status = active

| | - 3: 0: 0: 3 sdd 8:48 active ready running

| | - 3: 0: 1: 3 sdh 8: 112 active ready running

| | - 4: 0: 0: 3 sdt 65:48 active ready running

| `- 4: 0: 1: 3 sdx 65: 112 active ready running

`- + - Policy = 'round-robin 0' prio = 10 status = enabled

| - 3: 0: 2: 3 sdl 8: 176 active ready running

| - 3: 0: 3: 3 sdp 8: 240 active ready running

| - 4: 0: 2: 3 sdab 65: 176 active ready running

`- 4: 0: 3: 3 sdaf 65: 240 active ready running

Profiles

          By default, DM-Multipath use most multi-path provides configuration value. In addition, DM-Multipath supports most common support DM-Multipath storage array. The default configuration values ​​and the supported devices, please refer /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf.defaults file.

You can edit /etc/multipath.conf override the default configuration of the DM-Multipath. If necessary, you can also configure the file does not support the storage array may default.

Multipath configuration file can be divided into the following sections:

blacklist

It is not considered a specific list of equipment and more paths.

blacklist_exceptions

Lists are not blacklisted multipath device according to blacklist section parameters.

defaults

DM-Multipath general default settings.

multipaths

Characteristics of each individual multipath device settings. These values ​​cover specified in the defaults and devices section of the configuration file values.

devices

Each set of the storage controller. These values ​​cover the defaults section of the configuration file of the specified value. If you're not a default supported storage arrays, you may need to create devices sub-section for your array.

When the system determines the attributes of a multipath device, first it checks the multipath settings, then the settings on each device, and then the multipath system defaults.

After the above configuration, start multipathd process, the device will automatically scan the process started at / dev / mapper directory can see generating equipment, such as: mapth4
1. Use the multipath command to check whether the path is normal,

[Root @ dbserv1 mapper] # multipath -d -l

  
2. Use fdisk command system partition, use the command kpartx l / dev / mapper / mpath4 view the partition information

  
3. If you can not find use kpartx d / dev / mapper / mpath4 partition command register
4. If the case of using ASM disk management, the next step is to configure partitions by udev permissions and aliases, so that Oracle ASM in the configuration process can be seen in these partitions. The configuration procedure in the next article about udev will be described.
5. Of course, you can also use Oracle ASMLib to configure the ASM disks, this relatively udev way when a little trouble, but also a corresponding benefit in that the excess out of the space in the ASM configuration by allowing the OS file system identified.

  
6. If you do not Rac, in a single-node environment, use mke2fs -j / dev / mapper / mapth4p1 create a file system on the corresponding partition
7. Use the mount command to mount the file system can be used.

Multipath basic maintenance commands

1. Commitment multipath:

/etc/init.d/multipathd stop / start / reatart

2. Check the current link status and disk multipathing situation:

multipath -ll

 
3. Remove the multipath device:

multipath -F

4. Re-scanning device:

multipath -v3

 

5. When a new device is added in the DM-Multipath, the new devices will be located in the / dev directory in two different positions:

/ Dev / mapper / mpathn

/ Dev / dm-n

/ Dev / mapper devices are generated during the boot process. You can use these devices to access the multipath device, for example when creating logical volumes

All / dev / dm-n devices format for internal use only, please do not use them
     
         
         
         
  More:      
 
- Python in os.path Magical (Programming)
- Adjustment expand VMDK format VirtualBox disk space (Linux)
- Ubuntu install ruby (Linux)
- JavaScript cross-browser event object library (Programming)
- Linux Getting Started tutorial: GNU C and Vim will fight the C / C ++ IDE semi-automatic (Linux)
- GitLab Installation Guide -Ubuntu 14.04 LTS (Server)
- Linux commands to access the cheat sheet (Linux)
- The security administrator network analysis tools SATAN Introduction under Linux (Linux)
- Oracle Execute to Parse perform analytical Ratio Analysis (Database)
- Ubuntu installation 2.10.x version of Scala (Linux)
- Chkconfig command Detailed service is added and shut down the system in two ways to start service under Linux (Linux)
- Use ldap implement Windows Remote Desktop Ubuntu Linux (Linux)
- Using packet capture libpcap be reconciliation package in Ubuntu 14.04 64 bits (Linux)
- Linux firewall settings -DNS server articles (Server)
- Android Delete project useless resource file (Programming)
- Windows SmartGit installation (Linux)
- Install DB2 V10 and Data Studio V3 under Linux (Ubuntu) environment (Database)
- CentOS6.3 build a Python 3.3 environment to access Oracle 11gR2 (Database)
- Linux POST fstab configuration file read-only variable can not be modified problem (Linux)
- AngularJS - Getting Started with Routing (Programming)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.