When BCC-enabled cluster resources are BCC migrated to a peer cluster, BCC calls a Novell Cluster Services API that automatically runs the /opt/novell/ncs/bin/device_scan.sh script on each node that is currently active in the peer cluster. This allows the nodes to recognize the devices and storage objects that are migrated to the cluster.
By default, the script is empty. You must add the Linux shell commands that you need to refresh the nodes in the cluster. Any changes that are made to the script are not overwritten when Novell Cluster Services is upgraded.
WARNING:In EMC PowerPath environments, do not use the rescan-scsi-bus.sh utility provided with the operating system or the HBA vendor scripts for scanning the SCSI buses. To avoid potential file system corruption, EMC requires that you follow the procedure provided in the vendor documentation for EMC PowerPath for Linux.
On each node in every peer cluster, do the following:
In a text editor, open the script file /opt/novell/ncs/bin/device_scan.sh, add the Linux shell commands that scan your shared devices and storage objects, then save the file.
The following is a a sample script:
#!/bin/bash ## Logs to /var/log/messages with tag "bccd-scan" /bin/logger -t bccd-scan "BCC is running script - device_scan.sh -- Scanning for new devices" ## Rescan devices rescan-scsi-bus.sh -wcl ## Rescan storage objects, such as for expanded NSS pools nlvm rescan ## Add multipath command to rebuild maps if applies. # multipath