1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
include "types.cf"
include "DRBDConfigureTypes.cf"
include "DRBDPrimaryTypes.cf"
cluster linbittestcluster (
UserNames = { admin = OoJaijegaolaiJaebi }
Administrators = { admin }
)
system linbit01 (
)
system linbit02 (
)
group DRBDGrp (
SystemList = { linbit01 = 0, linbit02 = 1 }
Parallel = 1
AutoStartList = { linbit01, linbit02 }
)
DRBDConfigure r0conf (
ResName = r0
)
// resource dependency tree
//
// group DRBDGrp
// {
// DRBDConfigure r0conf
// }
group DRBDPriGrp (
SystemList = { linbit01 = 0, linbit02 = 1 }
AutoStartList = { linbit01, linbit02 }
)
DRBDPrimary r0primary (
ResName = r0
)
Mount r0mount (
MountPoint = "/mnt/r0"
BlockDevice = "/dev/drbd0"
FSType = ext4
FsckOpt = "-y"
)
requires group DRBDGrp online local hard
r0mount requires r0primary
// resource dependency tree
//
// group DRBDPriGrp
// {
// Mount r0mount
// {
// DRBDPrimary r0primary
// }
// }
|