Hello everyone,
I am willing to change the way datadisk is working but before doing
anything I would like to have a feedback from all its current user.
From the moment the slave/master role is set up on the drbd
configuration file and is static. I would like to move the information
about state of the node in a separate configuration file.
The current DRDB file would be change. The configuration then have a
syntax looking like :
NODE1_"OPTION NAME"=OPTION VALUE
NODE2_"OPTION NAME"=OPTION VALUE
...
NNODEX_"OPTION NAME"=OPTION VALUE
A file called /etc/sysconfig/drdb/state would contain the word Slave or
Master.
This will determine the datadisk init behaviouring.
a new datadisk option called mode will then allow you to change the
stored mode.
ie : datadisk mode slave will force drbd to start up as slave after a
reboot.
The slave and master option will ne modified as well to write to the
status file before making any call to drdbsetup.
The main avantage of this change would be that after a takeover of a
service bringing back a computer will always bring it back in the good
mode.
If your slave and master are not using a heartbeat, you will be able to
keep the current master as it and the previously faulty computer will
always come back as slave.
This will allow the configuration to access more than to slave node ..
Philipp, I am sure you will do it ;*)
Any feedback will be appreciated
Thank you
Thomas
I am willing to change the way datadisk is working but before doing
anything I would like to have a feedback from all its current user.
From the moment the slave/master role is set up on the drbd
configuration file and is static. I would like to move the information
about state of the node in a separate configuration file.
The current DRDB file would be change. The configuration then have a
syntax looking like :
NODE1_"OPTION NAME"=OPTION VALUE
NODE2_"OPTION NAME"=OPTION VALUE
...
NNODEX_"OPTION NAME"=OPTION VALUE
A file called /etc/sysconfig/drdb/state would contain the word Slave or
Master.
This will determine the datadisk init behaviouring.
a new datadisk option called mode will then allow you to change the
stored mode.
ie : datadisk mode slave will force drbd to start up as slave after a
reboot.
The slave and master option will ne modified as well to write to the
status file before making any call to drdbsetup.
The main avantage of this change would be that after a takeover of a
service bringing back a computer will always bring it back in the good
mode.
If your slave and master are not using a heartbeat, you will be able to
keep the current master as it and the previously faulty computer will
always come back as slave.
This will allow the configuration to access more than to slave node ..
Philipp, I am sure you will do it ;*)
Any feedback will be appreciated
Thank you
Thomas