Thursday, February 6, 2014

How to Configure Multipath on Oracle Linux

After creating new disk on SAN and presenting on host.. Scan the host bus  with below command on server;

echo "- - -" > /sys/class/scsi_host/host0/scan

Note: if you have more then one host bus then scan for each one by changing "host0"  to  "host1" and go on...

Output  Before Scanning host bus;

[root@testdb /]# cd /dev/disk/
[root@testdb disk]# ll
total 0
drwxr-xr-x. 2 root root 240 Feb  5 16:52 by-id
drwxr-xr-x. 2 root root 120 Feb  5 16:52 by-path
drwxr-xr-x. 2 root root 100 Feb  5 16:52 by-uuid
[root@testdb disk]# cd by-id/
[root@testdb by-id]# ll
total 0
lrwxrwxrwx. 1 root root 16 Feb  5 16:52 cciss-3600508b100184a39535748394f500006 -> ../../cciss/c0d0
lrwxrwxrwx. 1 root root 18 Feb  5 16:52 cciss-3600508b100184a39535748394f500006-part1 -> ../../cciss/c0d0p1
lrwxrwxrwx. 1 root root 18 Feb  5 16:52 cciss-3600508b100184a39535748394f500006-part2 -> ../../cciss/c0d0p2
lrwxrwxrwx. 1 root root 10 Feb  5 16:52 dm-name-vg_testdb-lv_root -> ../../dm-0
lrwxrwxrwx. 1 root root 10 Feb  5 16:52 dm-name-vg_testdb-lv_swap -> ../../dm-1
lrwxrwxrwx. 1 root root 10 Feb  5 16:52 dm-uuid-LVM-a84PMI5ipJD3bHQ3jD5MKMpRxCoXRWn0pBKsI1EsJVypftv78hkRRPbpJMvO71Q2 -> ../../dm-0
lrwxrwxrwx. 1 root root 10 Feb  5 16:52 dm-uuid-LVM-a84PMI5ipJD3bHQ3jD5MKMpRxCoXRWn0zIvrWlJWKRoW126ZyzhSwd1Tr0Pyd7sx -> ../../dm-1
lrwxrwxrwx. 1 root root 16 Feb  5 16:52 wwn-0x600508b100184a39535748394f500006 -> ../../cciss/c0d0
lrwxrwxrwx. 1 root root 18 Feb  5 16:52 wwn-0x600508b100184a39535748394f500006-part1 -> ../../cciss/c0d0p1
lrwxrwxrwx. 1 root root 18 Feb  5 16:52 wwn-0x600508b100184a39535748394f500006-part2 -> ../../cciss/c0d0p2