[Drbd-dev] Re: drbd in linux-ha cvs
Philipp Reisner
philipp.reisner at linbit.com
Tue Sep 7 11:43:01 CEST 2004
>
> the point was to have an easy way to _read_ all available information in
> a well defined way in one chunk. and having it in k=v form makes it
> direktly useable by bash, and easily useable by perl:
>
Is it worth the trouble to maintain two interfaces in drbdadm ?
Is it less rouble to maintain the
CSTATE=$(drbdadm cstate r0)
LOCAL_STATE=$( $DRBDADM state $RES 2> /dev/null )
LOCAL_STATE=${LOCAL_STATE%/*}
LOCAL_STORAGE= $(drbdadm sh-ll-dev r0)
...
lines in the bash script you do ?
-Philipp
--
: Dipl-Ing Philipp Reisner Tel +43-1-8178292-50 :
: LINBIT Information Technologies GmbH Fax +43-1-8178292-82 :
: Schönbrunnerstr 244, 1120 Vienna, Austria http://www.linbit.com :
More information about the drbd-dev
mailing list