Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DRBD: Users

drbd updates

 

 

DRBD users RSS feed   Index | Next | Previous | View Threaded


sharpe at example

Jul 6, 2000, 2:58 AM

Post #1 of 2 (374 views)
Permalink
drbd updates

Hi Philipp,

I am looking at using drbd at a site of mine where I have two SMP machines
with the second backing up the first. I eventually will use Linux-HA with
drbd and perhaps ReiserFS ... It all looks good.

I wanted a simple command to allow me to see the current drbd config, and I
thought that is easy, I will hack an ioctl into drbd that reads back the
config and then I will modify drbdsetup to print the info out if you do:

drbdsetup /dev/nb0

I have modified the driver and I get the config info back OK, but I find
that I have a problem ... The lower device is recorded as the file
descriptor of the caller, which appears to be irrelevant when drbdsetup
runs again next time to list this stuff out.

What I would like to do is modify the drbd_ioctl_struct or whatever to
contain this info.

I would then like to contribute back all my changes, and perhaps contribute
a short how-to on using this tool. I will also fix up some English
problems in the messages :-)

Who should I contact on this? Are you happy to have me do this?

Regards
-------
Richard Sharpe, sharpe [at] example
Samba (Team member, www.samba.org), Ethereal (Team member, www.zing.org)
Co-author, SAMS Teach Yourself Samba in 24 Hours
Author: First Australian 5-day, intensive, hands-on Linux SysAdmin course
Author: First Australian 2-day, intensive, hands-on Samba course


philipp at example

Jul 8, 2000, 2:34 AM

Post #2 of 2 (354 views)
Permalink
Re: drbd updates [In reply to]

Am Don, 06 Jul 2000 schriebst Du:
>Hi Philipp,
>
>I am looking at using drbd at a site of mine where I have two SMP machines
>with the second backing up the first. I eventually will use Linux-HA with
>drbd and perhaps ReiserFS ... It all looks good.
>
>I wanted a simple command to allow me to see the current drbd config, and I
>thought that is easy, I will hack an ioctl into drbd that reads back the
>config and then I will modify drbdsetup to print the info out if you do:
>
> drbdsetup /dev/nb0
>
>I have modified the driver and I get the config info back OK, but I find
>that I have a problem ... The lower device is recorded as the file
>descriptor of the caller, which appears to be irrelevant when drbdsetup
>runs again next time to list this stuff out.
>

Yes of course...

>What I would like to do is modify the drbd_ioctl_struct or whatever to
>contain this info.

Yes, please go ahead...

>I would then like to contribute back all my changes, and perhaps contribute
>a short how-to on using this tool. I will also fix up some English
>problems in the messages :-)

In the excitement of writing code I am always neglecting the messages :(

>
>Who should I contact on this? Are you happy to have me do this?
>

Richard,

This would be great!
The ability to read out the config is a missing feature.

Please send your modifications as diff -u to me or to the list.
I am _very happy_ that you are doing this.

-Philipp

DRBD users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.