Solution if drive letter shifts occur in a Red Hat cluster environment

Drive letters of the mounted raw disk, disk1, disk2, disk3, and disk4<>/b are used as an example. iqn.2010-05.com.forzw is the target name of the storage system's host port. 192.168.10.10 is the IP address of the storage system's host port.

When drive letter drift occurs, perform the following operations:

1. Run vi /etc/rc.local to open the /etc/rc.local file.

2. Press i to enter the editing mode and add the following contents to the beginning of the /etc/rc.local file.
/sbin/iscsiadm -m discovery -t sendtargets -p 192.168.10.10
/sbin/iscsiadm -m node -T iqn.2010-05.com.forzw.disk1 -p 192.168.10.10 -l
/sbin/iscsiadm -m node -T iqn.2010-05.com.forzw.disk2 -p 192.168.10.10 -l
/sbin/iscsiadm -m node -T iqn.2010-05.com.forzw.disk3 -p 192.168.10.10 -l
/sbin/iscsiadm -m node -T iqn.2010-05.com.forzw.disk4 -p 192.168.10.10 -l

3. Press Esc, enter :wq, and press Enter to save the file.

4. Run vi /etc/init.d/halt to open the /etc/init.d/halt file.

5. Press i to enter the editing mode and add the following contents to the beginning of the /etc/init.d/halt file.
/sbin/iscsiadm -m node -T iqn.2010-05.com.forzw.disk1 -p 192.168.10.10 -u
/sbin/iscsiadm -m node -T iqn.2010-05.com.forzw.disk2 -p 192.168.10.10 -u
/sbin/iscsiadm -m node -T iqn.2010-05.com.forzw.disk3 -p 192.168.10.10 -u
/sbin/iscsiadm -m node -T iqn.2010-05.com.forzw.disk4 -p 192.168.10.10 -u

6. Press Esc, enter :wq, and press Enter to save the file.

7. Restart the application server.

Scroll to top