How to setup a Raid1 device in a ha-cluster without using DLM
This document (7023520) is provided subject to the disclaimer at the end of this document.
Environment
Situation
2. This RAID1 device is not allowed to go active when the server boots.
Resolution
The contents of this file should be similar to the following.
DEVICE containers partitions
ARRAY /dev/md2 metadata=1.2 name=node2:test2 UUID=5170ae45:a9ee53ed:f9a5e4fd:6c83dda8
In the end the Raid1 primitive will look like this:
primitive prim_raid1_md2 Raid1 \
params raidconf="/etc/mdadmha.conf" raiddev="/dev/md2" \
op start interval=0 timeout=20s \
op stop interval=0 timeout=20s \
op monitor interval=10 timeout=20s
2. To avoid the Raid1 device being active at boot time, the line AUTO -all must be added to the default /etc/mdadm.conf
Example:
AUTO -all
DEVICE containers partitions
ARRAY /dev/md1 metadata=1.2 name=node1:test1 UUID=85531263:52c167a5:134cdb68:9d69d21c
This will activate /dev/md1 but not /dev/md2
AUTO -all will avoid auto-assembling all arrays, only the ones listed in this file are assembled.
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7023520
- Creation Date: 14-Nov-2018
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise High Availability Extension
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com