Hi all,
We are making SuSE packages for drbd. But there are some changes needed
to integrate with other parts of our setup. One issue is that we are
trying very hard to be fully FHS compliant. Also the current drbd
installation makes some assumptions about what else is on the system.
Finally, it is not quite distribution neutral.
I have thought about this a bit and come up with a couple comments and
a proposal.
Tieing drbd to "/etc/ha.d/resource.d/" is too much a dependancy on heartbeat,
so I would prefer to not do that. And "/etc/sysconfig/" is a Redhat path.
The "drbd[0-9]" config files could go happily into /etc/drbd.d/ as far as I
care. My long term intent is to merge them all into one file anyway, maybe
"/etc/drbdtab", but that is not for today.
That leaves "datadisk", which is sortof like a sysVinit script, but is
really a HA resource script. But, it seems generally useful too. So I
propose we put it with the other drbd binary "/usr/sbin/drbdsetup".
I always end up making a symlink to it in /usr/sbin anyway. If we do
that, then the name "datadisk" is slightly confusing, so maybe it wants
a rename, maybe to "drbddisk" or even better, "drbd-control".
However, since drbd is used to support block devices, the drbd tools
(drbdsetup, datadisk/drbd-control) really should be in /sbin to allow
for /usr to be unavailable and to be FHS compliant.
Finally, there is the init script in "/sbin/init.d/drbd" used at boot time
to load and configure the module. On SuSE it is also symlinked
to "/sbin/rcdrbd".
To summarize, after some thought and debate I think we want to install
drbd like this:
/etc/drbd.d/drbd[0-9]+ # drbd device configuration
/sbin/init.d/drbd # sysV init script to configure drbd devices
/sbin/rcdrbd -> /sbin/init.d/drbd # symlink
/sbin/drbdsetup # binary that does the actual ioctls() to
# configure drbd
/sbin/drbd-control # script to control drbd state, eg primary vs
# secondary, master vs slave etc (was datadisk)
Comments?
-dg
--
David Gould dg@example.com
SuSE, Inc., 580 2cd St. #210, Oakland, CA 94607 510.628.3380
"I personally think Unix is "superior" because on LSD it tastes
like Blue." -- jbarnett
We are making SuSE packages for drbd. But there are some changes needed
to integrate with other parts of our setup. One issue is that we are
trying very hard to be fully FHS compliant. Also the current drbd
installation makes some assumptions about what else is on the system.
Finally, it is not quite distribution neutral.
I have thought about this a bit and come up with a couple comments and
a proposal.
Tieing drbd to "/etc/ha.d/resource.d/" is too much a dependancy on heartbeat,
so I would prefer to not do that. And "/etc/sysconfig/" is a Redhat path.
The "drbd[0-9]" config files could go happily into /etc/drbd.d/ as far as I
care. My long term intent is to merge them all into one file anyway, maybe
"/etc/drbdtab", but that is not for today.
That leaves "datadisk", which is sortof like a sysVinit script, but is
really a HA resource script. But, it seems generally useful too. So I
propose we put it with the other drbd binary "/usr/sbin/drbdsetup".
I always end up making a symlink to it in /usr/sbin anyway. If we do
that, then the name "datadisk" is slightly confusing, so maybe it wants
a rename, maybe to "drbddisk" or even better, "drbd-control".
However, since drbd is used to support block devices, the drbd tools
(drbdsetup, datadisk/drbd-control) really should be in /sbin to allow
for /usr to be unavailable and to be FHS compliant.
Finally, there is the init script in "/sbin/init.d/drbd" used at boot time
to load and configure the module. On SuSE it is also symlinked
to "/sbin/rcdrbd".
To summarize, after some thought and debate I think we want to install
drbd like this:
/etc/drbd.d/drbd[0-9]+ # drbd device configuration
/sbin/init.d/drbd # sysV init script to configure drbd devices
/sbin/rcdrbd -> /sbin/init.d/drbd # symlink
/sbin/drbdsetup # binary that does the actual ioctls() to
# configure drbd
/sbin/drbd-control # script to control drbd state, eg primary vs
# secondary, master vs slave etc (was datadisk)
Comments?
-dg
--
David Gould dg@example.com
SuSE, Inc., 580 2cd St. #210, Oakland, CA 94607 510.628.3380
"I personally think Unix is "superior" because on LSD it tastes
like Blue." -- jbarnett