I actually found exactly what you said 5 minutes after I sent the 
email.  Would have been
great for backing up the filesystem.

I have heartbeat up and running for a 3rd IP and found a bit to mount it:

grandpa IPaddr::192.168.0.243/24/eth0 
Filesystem::/dev/drbd0::/data::xfs::defaults

Is that all I need to have the backup machine (grandma) mount /data when 
grandpa fails?

Robert


On 8/5/09 4:56 PM, Brian R. Hellman wrote:
> There is no way to mount a secondary device without first promoting it
> to primary.
> If what you're looking to do is have one server primary with a read-only
> secondary, it is not possible.
>
> Your secondary servers 'cat /proc/drbd' should look similar with the
> exception of Primary/Secondary are reversed.
>
> Brian
>
> Robert L. Harris wrote:
>    
>>     I have remade the system using single primary since that's all that
>> is needed in reality.
>> At current I have this on the primary:
>>
>> r...@grandpa:~# cat /proc/drbd
>> version: 8.3.0 (api:88/proto:86-89)
>> GIT-hash: 9ba8b93e24d842f0dd3fb1f9b90e8348ddb95829 build by
>> iv...@ubuntu, 2009-01-17 07:49:56
>>    0: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r---
>>       ns:825415525 nr:0 dw:133509 dr:825282384 al:37 bm:50372 lo:0 pe:0
>> ua:0 ap:0 ep:1 wo:b oos:0
>>
>> I get the same off the secondary system as well.  When I try to mount
>> the xfs filesystem I am
>> getting this:
>>
>> r...@grandma:~# mount -t xfs -o ro /dev/drbd0 /data/
>> mount: Wrong medium type
>>
>> I am looking but don't see a doc that says how to mount the image read
>> only on the secondary
>> machine.
>>
>> Robert
>>
>>
>>      
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>    

-- 

:wq!
====================================================================
Robert L. Harris                     | GPG Key ID: E344DA3B
                                          @ x-hkp://pgp.mit.edu
DISCLAIMER:
       These are MY OPINIONS             With Dreams To Be A King,
        ALONE.  I speak for              First One Should Be A Man
        no-one else.                       - Manowar


_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to