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
In a text editor, create a YaST auto-configuration profile XML file named bccprofile.xml.
Auto-configuration files are typically stored in the /var/lib/autoinstall/repository/ directory, but you can use any directory.
The file should appear similar to the example below.
<?xml version="1.0"?> <!DOCTYPE profile SYSTEM "/usr/share/autoinstall/dtd/profile.dtd"> <profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> <configure> <bcc> <config-type>New</config-type> <start-now>Yes</start-now> <cluster-dn>cn=my_cluster.o=novell</cluster-dn> <ldap-server>10.1.1.0</ldap-server> <ldap-port>389</ldap-port> <ldap-secure-port>636</ldap-secure-port> <admin-dn>cn=admin.o=novell</admin-dn> <admin-password>password</admin-password> </bcc> </configure> </profile>
Edit the above example to apply to your own specific system settings.
Copy the XML file you created in Step 1 to each node in the cluster.
Use the same path on each node. You can use the scp command to copy the file securely. See the scp man page for information on using scp.