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

Mailing List Archive: DRBD: Users

Can't promote to primary

 

 

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


Yount.William at menloworldwide

Aug 2, 2012, 1:52 AM

Post #1 of 2 (518 views)
Permalink
Can't promote to primary

I have a two node DRBD cluster. It is setup in Primary/Primary. Everything works good. I turned Node2 off and for some reason the IP address didn't automatically failover, but that is an issue for another group.

I decided to restart Node1 and the IP address did come back up on Node1. The issue now is that the although it was primary when I restarted, it came back up in Secondary. Not a big deal, I just need to promote to primary. However I keep getting this error when I run 'drbdadm primary nfs':

0: State change failed: (-2) Need access to UpToDate data
Command 'drbdsetup 0 primary' terminated with exit code 17

I tried looking that up but didn't come up with anything. I am not sure why it would need up to date information if I am trying to set it to primary. Shouldn't it just assume that the information is up to date? I have attached my configuration.

Can anyone see any changes I need to make to my configuration that would help resolve this?



William
Attachments: nfs.res (1.48 KB)


david at davidcoulson

Aug 2, 2012, 4:23 AM

Post #2 of 2 (498 views)
Permalink
Re: Can't promote to primary [In reply to]

Provide cat /proc/drbd from both nodes. I'd guess your split brain and one node doesn't have uptodate disk.

Sent from my iPad

On Aug 2, 2012, at 4:52 AM, "Yount, William D" <Yount.William [at] menloworldwide> wrote:

> I have a two node DRBD cluster. It is setup in Primary/Primary. Everything works good. I turned Node2 off and for some reason the IP address didn’t automatically failover, but that is an issue for another group.
>
> I decided to restart Node1 and the IP address did come back up on Node1. The issue now is that the although it was primary when I restarted, it came back up in Secondary. Not a big deal, I just need to promote to primary. However I keep getting this error when I run ‘drbdadm primary nfs’:
>
> 0: State change failed: (-2) Need access to UpToDate data
> Command 'drbdsetup 0 primary' terminated with exit code 17
>
> I tried looking that up but didn’t come up with anything. I am not sure why it would need up to date information if I am trying to set it to primary. Shouldn’t it just assume that the information is up to date? I have attached my configuration.
>
> Can anyone see any changes I need to make to my configuration that would help resolve this?
>
>
>
> William
> <nfs.res>
> _______________________________________________
> drbd-user mailing list
> drbd-user [at] lists
> http://lists.linbit.com/mailman/listinfo/drbd-user

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.