Before starting your appliance for the first time, add a second harddrive that you will use to export the local storage.
I have added the example configuration files to the OVA, you can find them in /root/pmsapp/examples
There are also some extra scripts that might ease the configuration.
You can find them in /root/pmsapp/scripts
See explanation for the scripts at the bottom of this page.
Follow the steps below to configure your appliance.
- Initial Configuration
- iSCSI target configuration
- iSCSI initiator configuration – Skip the iscsid.conf part
- Software RAID configuration
- Storage Conclusion
- Initial Cluster Configuration
- Adding Resources
- Fencing – /usr/sbin/fence_disable is allready there
- Storage Resource – /etc/init.d/swraid is allready there
Script explanation:
- clustersvcon.sh
Ensure that cluster services are started during boot and generate password for the ricci user. - clustersvcstart.sh
Start the cluster services – cman, rgmanager, modclusterd and ricci. - create3diskraid5.sh
Create /dev/md0 as a raid 5 with 3 members.
Arguments: The 3 devices that should be members of the RAID set.
Example: ./create3diskraid5.sh /dev/sdb /dev/sdc /dev/sdd. - createmirror.sh
Create /dev/md0 as a mirror (raid 1) with 2 members.
Arguments: The 2 devices that should be members of the RAID set.
Example: ./createmirror.sh /dev/sdb /dev/sdc. - generateraidconf.sh
Generate /etc/mdadm.conf from a running raid array. - iscsidiscover.sh
Discover an iSCSI target.
Arguments: Name or IP of the system that should be discovered.
Example: ./iscsidiscover.sh 172.16.0.21 - iscsilogin.sh
Login to an iSCSI target.
Arguments: Target name and name or IP of the target system.
Example: ./iscsilogin.sh iqn.2012-03.org.pmsapp:pmsapp1.disk 172.16.0.21 - showdisks.sh
Show disk devices present in the system.