Advertisement
Guest User

Untitled

a guest
Mar 15th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. /var/lib/linstor.d/vm-103-disk-1.res
  2.  
  3.  
  4.  
  5. the first installed one
  6.  
  7.  
  8.  
  9.  
  10.  
  11. resource "vm-103-disk-1"
  12. {
  13. template-file "linstor_common.conf";
  14.  
  15. net
  16. {
  17. cram-hmac-alg sha1;
  18. shared-secret "removed";
  19. allow-two-primaries yes;
  20. }
  21.  
  22. on pve-virt1
  23. {
  24. volume 0
  25. {
  26. disk /dev/drbdpool/vm-103-disk-1_00000;
  27. meta-disk internal;
  28. device minor 1003;
  29. }
  30. node-id 0;
  31. }
  32.  
  33. on pve-virt2
  34. {
  35. volume 0
  36. {
  37. disk /dev/drbd/this/is/not/used;
  38. meta-disk internal;
  39. device minor 1003;
  40. }
  41. node-id 1;
  42. }
  43.  
  44. connection
  45. {
  46. host pve-virt1 address ipv4 10.0.0.16:7003;
  47. host pve-virt2 address ipv4 10.0.0.66:7003;
  48. }
  49. }
  50.  
  51.  
  52.  
  53.  
  54. and the second - added node
  55.  
  56.  
  57.  
  58. resource "vm-103-disk-1"
  59. {
  60. template-file "linstor_common.conf";
  61.  
  62. net
  63. {
  64. cram-hmac-alg sha1;
  65. shared-secret "removed";
  66. allow-two-primaries yes;
  67. }
  68.  
  69. on pve-virt2
  70. {
  71. volume 0
  72. {
  73. disk /dev/vg-virt2-sata10/vm-103-disk-1_00000;
  74. meta-disk internal;
  75. device minor 1003;
  76. }
  77. node-id 1;
  78. }
  79.  
  80. on pve-virt1
  81. {
  82. volume 0
  83. {
  84. disk /dev/drbd/this/is/not/used;
  85. meta-disk internal;
  86. device minor 1003;
  87. }
  88. node-id 0;
  89. }
  90.  
  91. connection
  92. {
  93. host pve-virt2 address ipv4 10.0.0.66:7003;
  94. host pve-virt1 address ipv4 10.0.0.16:7003;
  95. }
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement