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

Mailing List Archive: DRBD: Users

drbd read-only mode

 

 

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


zorro at megatrone

Mar 15, 2012, 7:21 AM

Post #1 of 7 (1200 views)
Permalink
drbd read-only mode

Hi

I installed 8.4.1 drdb.

The cluster operates on a primary/primary mode.

However, the drives are mounted in the mode of read-only

[root [at] noc-1-m7 /]# cat /proc/drbd

version: 8.4.1 (api:1/proto:86-100)

GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by
root [at] noc-1-synt, 2012-03-14 10:05:49

0: cs:Connected ro:Primary/Primary ds:UpToDate/UpToDate C r-----

^^

ns:0 nr:0 dw:0 dr:664 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0



Why not activate the read-write mode?



Config:

[root [at] noc-1-syn /]# cat /etc/drbd.d/r0.res

# create new

resource r0 {

startup {

wfc-timeout 20;

degr-wfc-timeout 10;

# we will keep this commented until tested successfully:

become-primary-on both;

}

net {

protocol C;

allow-two-primaries;

after-sb-0pri discard-zero-changes;

after-sb-1pri discard-secondary;

after-sb-2pri disconnect;



}

# DRBD device

device /dev/drbd0;

# phisical device

disk /dev/vg_noc1synt/lv02;

meta-disk internal;

on noc-1-synt.rutube.ru {

# IP address:port

address 10.1.20.10:7788;

}

on noc-1-m77.rutube.ru {

address 10.2.20.9:7788;

}

}

[root [at] noc-1-syn /]#


zorro at megatrone

Mar 15, 2012, 7:31 AM

Post #2 of 7 (1155 views)
Permalink
Re: drbd read-only mode [In reply to]

Read-only flag stands on two nodes.

I will use a cluster file system (ocfs2 of gfs2) for the correct operation of the two disks











From: Marcelo Pereira [mailto:marcelops [at] gmail]
Sent: Thursday, March 15, 2012 6:26 PM
To: ??????
Subject: Re: [DRBD-user] drbd read-only mode



Why do you want it to be primary on both nodes?????

--Marcelo


On Mar 15, 2012, at 10:21 AM, "??????" <zorro [at] megatrone> wrote:

Hi

I installed 8.4.1 drdb.

The cluster operates on a primary/primary mode.

However, the drives are mounted in the mode of read-only

[root [at] noc-1-m7 /]# cat /proc/drbd

version: 8.4.1 (api:1/proto:86-100)

GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by root [at] noc-1-synt, 2012-03-14 10:05:49

0: cs:Connected ro:Primary/Primary ds:UpToDate/UpToDate C r-----

^^

ns:0 nr:0 dw:0 dr:664 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0



Why not activate the read-write mode?



Config:

[root [at] noc-1-syn /]# cat /etc/drbd.d/r0.res

# create new

resource r0 {

startup {

wfc-timeout 20;

degr-wfc-timeout 10;

# we will keep this commented until tested successfully:

become-primary-on both;

}

net {

protocol C;

allow-two-primaries;

after-sb-0pri discard-zero-changes;

after-sb-1pri discard-secondary;

after-sb-2pri disconnect;



}

# DRBD device

device /dev/drbd0;

# phisical device

disk /dev/vg_noc1synt/lv02;

meta-disk internal;

on noc-1-synt.rutube.ru {

# IP address:port

address 10.1.20.10:7788;

}

on noc-1-m77.rutube.ru {

address 10.2.20.9:7788;

}

}

[root [at] noc-1-syn /]#







_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


themsley at voiceflex

Mar 15, 2012, 7:32 AM

Post #3 of 7 (1168 views)
Permalink
Re: drbd read-only mode [In reply to]

ro: is short for Role, not readonly

On 15/03/12 14:31, зоррыч wrote:
>
> Read-only flag stands on two nodes.
>
> I will use a cluster file system (ocfs2 of gfs2) for the correct
> operation of the two disks
>
>
>
>
>
>
>
>
>
>
>
> *From:*Marcelo Pereira [mailto:marcelops [at] gmail]
> *Sent:* Thursday, March 15, 2012 6:26 PM
> *To:* ??????
> *Subject:* Re: [DRBD-user] drbd read-only mode
>
>
>
> Why do you want it to be primary on both nodes?????
>
> --Marcelo
>
>
> On Mar 15, 2012, at 10:21 AM, "??????" <zorro [at] megatrone
> <mailto:zorro [at] megatrone>> wrote:
>
> Hi
>
> I installed 8.4.1 drdb.
>
> The cluster operates on a primary/primary mode.
>
> However, the drives are mounted in the mode of read-only
>
> [root [at] noc-1-m7 /]# cat /proc/drbd
>
> version: 8.4.1 (api:1/proto:86-100)
>
> GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by
> root [at] noc-1-synt <mailto:root [at] noc-1-synt>,
> 2012-03-14 10:05:49
>
> 0: cs:Connected ro:Primary/Primary ds:UpToDate/UpToDate C r-----
>
> ^^
>
> ns:0 nr:0 dw:0 dr:664 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b
> oos:0
>
>
>
> Why not activate the read-write mode?
>
>
>
> Config:
>
> [root [at] noc-1-syn /]# cat /etc/drbd.d/r0.res
>
> # create new
>
> resource r0 {
>
> startup {
>
> wfc-timeout 20;
>
> degr-wfc-timeout 10;
>
> # we will keep this commented until tested successfully:
>
> become-primary-on both;
>
> }
>
> net {
>
> protocol C;
>
> allow-two-primaries;
>
> after-sb-0pri discard-zero-changes;
>
> after-sb-1pri discard-secondary;
>
> after-sb-2pri disconnect;
>
>
>
> }
>
> # DRBD device
>
> device /dev/drbd0;
>
> # phisical device
>
> disk /dev/vg_noc1synt/lv02;
>
> meta-disk internal;
>
> on noc-1-synt.rutube.ru <http://noc-1-synt.rutube.ru> {
>
> # IP address:port
>
> address 10.1.20.10:7788;
>
> }
>
> on noc-1-m77.rutube.ru <http://noc-1-m77.rutube.ru> {
>
> address 10.2.20.9:7788;
>
> }
>
> }
>
> [root [at] noc-1-syn /]#
>
>
>
>
>
>
>
> _______________________________________________
> drbd-user mailing list
> drbd-user [at] lists <mailto:drbd-user [at] lists>
> http://lists.linbit.com/mailman/listinfo/drbd-user
>


andreas at hastexo

Mar 15, 2012, 7:35 AM

Post #4 of 7 (1168 views)
Permalink
Re: drbd read-only mode [In reply to]

On 03/15/2012 03:31 PM, зоррыч wrote:
> Read-only flag stands on two nodes.
>
> I will use a cluster file system (ocfs2 of gfs2) for the correct
> operation of the two disks

read-only flag??? Do you mean the ro:Primary/Primary which indicates the
role (ro..le) as being Primary on both sides?

Regards,
Andreas

--
Need help with DRBD?
http://www.hastexo.com/now

>
>
>
>
>
>
>
>
>
>
>
> *From:*Marcelo Pereira [mailto:marcelops [at] gmail]
> *Sent:* Thursday, March 15, 2012 6:26 PM
> *To:* ??????
> *Subject:* Re: [DRBD-user] drbd read-only mode
>
>
>
> Why do you want it to be primary on both nodes?????
>
> --Marcelo
>
>
> On Mar 15, 2012, at 10:21 AM, "??????" <zorro [at] megatrone
> <mailto:zorro [at] megatrone>> wrote:
>
> Hi
>
> I installed 8.4.1 drdb.
>
> The cluster operates on a primary/primary mode.
>
> However, the drives are mounted in the mode of read-only
>
> [root [at] noc-1-m7 /]# cat /proc/drbd
>
> version: 8.4.1 (api:1/proto:86-100)
>
> GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by
> root [at] noc-1-synt <mailto:root [at] noc-1-synt>,
> 2012-03-14 10:05:49
>
> 0: cs:Connected ro:Primary/Primary ds:UpToDate/UpToDate C r-----
>
> ^^
>
> ns:0 nr:0 dw:0 dr:664 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
>
>
>
> Why not activate the read-write mode?
>
>
>
> Config:
>
> [root [at] noc-1-syn /]# cat /etc/drbd.d/r0.res
>
> # create new
>
> resource r0 {
>
> startup {
>
> wfc-timeout 20;
>
> degr-wfc-timeout 10;
>
> # we will keep this commented until tested successfully:
>
> become-primary-on both;
>
> }
>
> net {
>
> protocol C;
>
> allow-two-primaries;
>
> after-sb-0pri discard-zero-changes;
>
> after-sb-1pri discard-secondary;
>
> after-sb-2pri disconnect;
>
>
>
> }
>
> # DRBD device
>
> device /dev/drbd0;
>
> # phisical device
>
> disk /dev/vg_noc1synt/lv02;
>
> meta-disk internal;
>
> on noc-1-synt.rutube.ru <http://noc-1-synt.rutube.ru> {
>
> # IP address:port
>
> address 10.1.20.10:7788;
>
> }
>
> on noc-1-m77.rutube.ru <http://noc-1-m77.rutube.ru> {
>
> address 10.2.20.9:7788;
>
> }
>
> }
>
> [root [at] noc-1-syn /]#
>
>
>
>
>
>
>
> _______________________________________________
> drbd-user mailing list
> drbd-user [at] lists <mailto:drbd-user [at] lists>
> http://lists.linbit.com/mailman/listinfo/drbd-user
>
>
>
> _______________________________________________
> drbd-user mailing list
> drbd-user [at] lists
> http://lists.linbit.com/mailman/listinfo/drbd-user
Attachments: signature.asc (0.22 KB)


dbarker at visioncomm

Mar 15, 2012, 7:37 AM

Post #5 of 7 (1168 views)
Permalink
Re: drbd read-only mode [In reply to]

ro: doesn't mean Read Only in that context. I don't recall offhand what it
does mean, but my disks are all read-write and show ro: there.



Someone else will chime in with the real meaning, I'm sure.



Dan



From: drbd-user-bounces [at] lists
[mailto:drbd-user-bounces [at] lists] On Behalf Of ??????
Sent: Thursday, March 15, 2012 10:22 AM
To: drbd-user [at] lists
Subject: [DRBD-user] drbd read-only mode



Hi

I installed 8.4.1 drdb.

The cluster operates on a primary/primary mode.

However, the drives are mounted in the mode of read-only

[root [at] noc-1-m7 /]# cat /proc/drbd

version: 8.4.1 (api:1/proto:86-100)

GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by
root [at] noc-1-synt, 2012-03-14 10:05:49

0: cs:Connected ro:Primary/Primary ds:UpToDate/UpToDate C r-----

^^

ns:0 nr:0 dw:0 dr:664 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0



Why not activate the read-write mode?



Config:

[root [at] noc-1-syn /]# cat /etc/drbd.d/r0.res

# create new

resource r0 {

startup {

wfc-timeout 20;

degr-wfc-timeout 10;

# we will keep this commented until tested successfully:

become-primary-on both;

}

net {

protocol C;

allow-two-primaries;

after-sb-0pri discard-zero-changes;

after-sb-1pri discard-secondary;

after-sb-2pri disconnect;



}

# DRBD device

device /dev/drbd0;

# phisical device

disk /dev/vg_noc1synt/lv02;

meta-disk internal;

on noc-1-synt.rutube.ru {

# IP address:port

address 10.1.20.10:7788;

}

on noc-1-m77.rutube.ru {

address 10.2.20.9:7788;

}

}

[root [at] noc-1-syn /]#


brian at linbit

Mar 15, 2012, 7:38 AM

Post #6 of 7 (1157 views)
Permalink
Re: drbd read-only mode [In reply to]

On 03/15/2012 07:21 AM, ?????? wrote:
>
> Hi
>
> I installed 8.4.1 drdb.
>
> The cluster operates on a primary/primary mode.
>
> However, the drives are mounted in the mode of read-only
>
> [root [at] noc-1-m7 /]# cat /proc/drbd
>
> version: 8.4.1 (api:1/proto:86-100)
>
> GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by
> root [at] noc-1-synt, 2012-03-14 10:05:49
>
> 0: cs:Connected ro:Primary/Primary ds:UpToDate/UpToDate C r-----
>
> ^^
>
> ns:0 nr:0 dw:0 dr:664 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0
>
>
>
> Why not activate the read-write mode?
>

For a complete list of what the flags mean please see:

http://www.drbd.org/users-guide/ch-admin.html#s-proc-drbd

--

: Brian Hellman
: LINBIT | "Your Way to High Availability"
: 1-503-573-1262 | 1-877-4-LINBIT
: Web: http://www.linbit.com
:
: Twitter: http://www.linbit.com/en/twitter
: Facebook: http://www.linbit.com/en/facebook

_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


zorro at megatrone

Mar 15, 2012, 8:04 AM

Post #7 of 7 (1168 views)
Permalink
Re: drbd read-only mode [In reply to]

Thanks, did not understand 's right documentation.



-----Original Message-----
From: drbd-user-bounces [at] lists
[mailto:drbd-user-bounces [at] lists] On Behalf Of Brian R. Hellman
Sent: Thursday, March 15, 2012 6:38 PM
To: drbd-user [at] lists
Subject: Re: [DRBD-user] drbd read-only mode



On 03/15/2012 07:21 AM, ?????? wrote:
>
> Hi
>
> I installed 8.4.1 drdb.
>
> The cluster operates on a primary/primary mode.
>
> However, the drives are mounted in the mode of read-only
>
> [root [at] noc-1-m7 /]# cat /proc/drbd
>
> version: 8.4.1 (api:1/proto:86-100)
>
> GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by
> root [at] noc-1-synt, 2012-03-14 10:05:49
>
> 0: cs:Connected ro:Primary/Primary ds:UpToDate/UpToDate C r-----
>
> ^^
>
> ns:0 nr:0 dw:0 dr:664 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b
> oos:0
>
>
>
> Why not activate the read-write mode?
>

For a complete list of what the flags mean please see:

http://www.drbd.org/users-guide/ch-admin.html#s-proc-drbd

--

: Brian Hellman
: LINBIT | "Your Way to High Availability"
: 1-503-573-1262 | 1-877-4-LINBIT
: Web: http://www.linbit.com
:
: Twitter: http://www.linbit.com/en/twitter
: Facebook: http://www.linbit.com/en/facebook

_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


_______________________________________________
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.