DRBD Recovery
This is documentation to bring back the old (Ubuntu 12.04) storage servers from a cold start to being able to connect with the XenServer cluster over NFS.
Current Configuration
Internal
-
Esau - primary/nfs
-
Jacob - secondary
External
-
Remus - primary/nfs
-
Romulus - secondary
The Steps
-
bring servers back from the dead, you can have them both up before starting anything
-
modprobe drbd- checks and enables the proper kernel module -
drbd-overview- checkdrbdstatus -
On Primary
-
drbdadm connect [i]nfs[1/2]- connect to thedrbdshares
-
-
On Secondary
-
drbdadm – –discard-my-data connect [i]nfs[1/2]- connect to thedrbdshares
-
-
On Primary
-
drbdadm primary [i]nfs[1/2]- set the primary server as the primary device withindrbd -
mount -o noatime /dev/drbd0 /srv/[i]nfs[1/2]- mount thedrbdblock device to the proper mount point -
service nfs-kernel-service start- start thenfsservice
-
You can now have the XenServer cluster go ahead and fix the NFS SR issues. Things should now be working.