Re: [DRBD-user] Understanding "classic" 3 node set up.

2018-02-07 Thread Paul O'Rorke

Oh my

2 weeks of missing that typo and frustration.  Thank you both Yannis and 
Peter.  Peter, I thought you were pointing out the answer to my question 
- which file is it failing to find.  I normally copy the .res file to 
ensure they are always identical, and it was correct on nodes 1 and 2


I really appreciate the help guys, it all makes sense now.  I was 
worried that I had a serious misunderstanding in what I was doing.


   root@trk-kvm-01:~# cat /proc/drbd
   version: 8.4.5 (api:1/proto:86-101)
   srcversion: 4B3E2E2CD48CAE5280B5205

   [...]
   12: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r-
    ns:4764 nr:0 dw:10719324 dr:21194772 al:1676 bm:0 lo:0 pe:0
   ua:0 ap:0 ep:1 wo:f oos:0
   [...]
   120: cs:SyncSource ro:Primary/Secondary ds:UpToDate/Inconsistent A
   r-
    ns:19642880 nr:0 dw:0 dr:19645043 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
   ep:1 wo:f oos:32782648
    [==>.] sync'ed: 37.5% (32012/51196)M
    finish: 0:12:39 speed: 43,136 (38,896) K/sec

and

   root@trk-kvm-03:/media/scratch# drbd-overview
   120:convirt-U/0  SyncTarget Secondary/Primary Inconsistent/UpToDate
    [===>] sync'ed: 44.8% (28312/51196)M

Makes me very happy!

*Paul O'Rorke*
*Tracker Software Products (Canada) Limited *
www.tracker-software.com 
Tel: +1 (250) 324 1621
Fax: +1 (250) 324 1623



Support:
http://www.tracker-software.com/support
Download latest Releases
http://www.tracker-software.com/downloads/




On 2018-02-07 04:22 AM, Yannis Milios wrote:
Did you fixed the typo that Peter mentioned on his last post ? That 
should be "internal" and not "inetrnal". Then must copy the resource 
file on all 3 nodes.
>>  meta-disk   inetrnal; 
After fixing that you should be able to create the metadata and 
initialize  the stacked device by:


On trk-kvm-01 (assuming that this is the primary node):
drbdadm create-md --stacked convirt-U

On trk-kvm-03:
drbdadm create-md convirt-U    #this will create the required metadata 
on the underlying device (i.e /dev/trk-kvm-03-vg/convirt). No need to 
transfer metadata manually from trk-kvm-01)


On trk-kvm-01:
drbdadm --stacked adjust convirt-U

On trk-kvm-03:
drbdadm adjust convirt-U

On trk-kvm-01:
drbdadm --stacked -- --overwrite-data-of-peer primary convirt-U
cat /proc/drbd



Y



___
drbd-user mailing list
drbd-user@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user


Re: [DRBD-user] Understanding "classic" 3 node set up.

2018-02-07 Thread Yannis Milios
Did you fixed the typo that Peter mentioned on his last post ? That should
be "internal" and not "inetrnal". Then must copy the resource file on all 3
nodes.


> >>  meta-disk   inetrnal;
>
>

After fixing that you should be able to create the metadata and initialize
the stacked device by:

On trk-kvm-01 (assuming that this is the primary node):
drbdadm create-md --stacked convirt-U

On trk-kvm-03:
drbdadm create-md convirt-U#this will create the required metadata on
the underlying device (i.e /dev/trk-kvm-03-vg/convirt). No need to transfer
metadata manually from trk-kvm-01)

On trk-kvm-01:
drbdadm --stacked adjust convirt-U

On trk-kvm-03:
drbdadm adjust convirt-U

On trk-kvm-01:
drbdadm --stacked -- --overwrite-data-of-peer primary convirt-U
cat /proc/drbd



Y
___
drbd-user mailing list
drbd-user@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user


Re: [DRBD-user] Understanding "classic" 3 node set up.

2018-02-07 Thread Paul O'Rorke

Thanks Peter,

as I understand it when I created the original drbd device(s) on my 
local nodes this metadata was automatically created and placed at the 
end of the underlying LVM volume.  Clearly this is not happening when 
creating the drbd device on the third node.  So being stacked I believe 
I need the meta data from the lower resource and then create-md will add 
the required metadata for the stacked resource.


How do I get that original metadata on my underlying volume so that is 
can do so?  I tried taking a snapshot of the underlying LVM volume on 
trk-kvm-01 (lower resource primary) and used dd to copy that to the 
underlying volume on trk-kvm-03 (third node upper resource) but I get 
the same error.


So what do I need to do to get this metadata there so I can create this 
drbd device on the third node?


*Paul O'Rorke*



On 2018-02-05 11:45 PM, Peter Schwindt wrote:

Paul,

On 2018-02-05 19:27, Paul O'Rorke wrote:


 root@trk-kvm-03:~# drbdadm create-md convirt-U
 open(inetrnal) failed: No such file or directory
 open(inetrnal) failed: No such file or directory



[...]


What file is it looking for that it fails to find?

The resource is defined with this:


[...]

     on trk-kvm-03 {
     device  /dev/drbd120;
     disk    /dev/trk-kvm-03-vg/convirt;
     address 192.168.0.201:7899;
     meta-disk   inetrnal;

   

Best,
Peter



___
drbd-user mailing list
drbd-user@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user


___
drbd-user mailing list
drbd-user@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user


Re: [DRBD-user] Understanding "classic" 3 node set up.

2018-02-07 Thread Paul O'Rorke

Thanks Peter,

as I understand it when I created the original drbd device(s) on my 
local nodes this metadata was automatically created and placed at the 
end of the underlying LVM volume.  Clearly this is not happening when 
creating the drbd device on the third node.  So being stacked I believe 
I need the meta data from the lower resource and then


*Paul O'Rorke*


On 2018-02-05 11:45 PM, Peter Schwindt wrote:

Paul,

On 2018-02-05 19:27, Paul O'Rorke wrote:


 root@trk-kvm-03:~# drbdadm create-md convirt-U
 open(inetrnal) failed: No such file or directory
 open(inetrnal) failed: No such file or directory



[...]


What file is it looking for that it fails to find?

The resource is defined with this:


[...]

     on trk-kvm-03 {
     device  /dev/drbd120;
     disk    /dev/trk-kvm-03-vg/convirt;
     address 192.168.0.201:7899;
     meta-disk   inetrnal;

   

Best,
Peter



___
drbd-user mailing list
drbd-user@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user


___
drbd-user mailing list
drbd-user@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user