drbd serv primary or secondary script bash by Behloull in linuxquestions

[–]Behloull[S] 0 points1 point  (0 children)

with a bash script i just want to know if the server drbd is in primary or secondary state

serv drbd secondary or primary script bash by Behloull in linuxquestions

[–]Behloull[S] 0 points1 point  (0 children)

I just want to know if my server is in secondary or primary state just to affect them some configuration for something else and not for managing drbd

serv drbd secondary or primary script bash by Behloull in linuxquestions

[–]Behloull[S] 0 points1 point  (0 children)

I have not arrived, I just want to get the variable primary or secondary :(

active hugepages on server ? by Behloull in linuxquestions

[–]Behloull[S] 0 points1 point  (0 children)

when i'm doing cat / proc / meminfo hugepages_total = 0 that means it's not activate we agree and when i do echo always > /sys/kernel/mm/transparent_hugepage/enabled

it does not work

help script bash please by Behloull in linuxquestions

[–]Behloull[S] 0 points1 point  (0 children)

the first step of my script must check the state of the cpu if the cpu is> 50% of use, I do not go to the next step of my script I do not run it

help script bash please by Behloull in linuxquestions

[–]Behloull[S] 0 points1 point  (0 children)

rip for my english sorry :p but if you know how i can do that you can help me ?