Advertisement
Guest User

Fencing (STONITH) Configure paste code

a guest
Oct 24th, 2016
550
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. Dear Now I configure the Fencing (STONITH)
  2.  
  3. I use SCSI Share disk
  4.  
  5. [node1 node2 ]# yum install fence-agents-all -y
  6.  
  7. Configure fence device. It's OK to set on a node.
  8. The example "/dev/sdd" below is just the device of shared storage.
  9.  
  10. [node1/2] cat /proc/partitions
  11. [node1/2] ll /dev/disk/by-id | grep sdd
  12.  
  13. Now we need create cluster Resource for fencing...
  14.  
  15. pcs stonith create scsi-shooter fence_scsi devices=/dev/disk/by-id/wwn-0x6001405189b893893594dffb3a2cb3e9 meta provides=unfencing
  16.  
  17. pcs property set no-quorum-policy=freeze (It means we dont use quoram policy here)
  18.  
  19. pcs stonith show scsi-shooter
  20.  
  21. Dear Dont think i do anything by Pause.. :)
  22.  
  23. I was go my washroom
  24.  
  25. The fencing will update upter some time may be max 1 min- 2 min...see now
  26.  
  27.  
  28. See the error gone :) nodes , resourse , fence everything is ok now
  29.  
  30. So its done now!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement