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

Mailing List Archive: DRBD: Users

Pvcreate fails on drbd devices

 

 

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


dgs at slac

Sep 23, 2009, 11:50 AM

Post #1 of 3 (1495 views)
Permalink
Pvcreate fails on drbd devices

Hello,

I'm using DRBD 8.3.2 on RHEL 5.2 (x86_64). I've sucessfully create
two DRBD devices, /dev/drbd1 and /dev/drbd2 (drbd.conf below). I'm
trying to use them as physical volumes for LVM, as described in the
"Configuring a DRBD resource as a Physical Volume" section of the
user guide. But pvcreate fails:

pssrv101:103% sudo pvcreate -ff /dev/drbd1
Device /dev/drbd1 not found (or ignored by filtering).

pssrv101:104% sudo pvcreate -ff /dev/drbd2
Device /dev/drbd2 not found (or ignored by filtering).

pssrv101:106% sudo pvcreate -ff /dev/drbd/by-res/r1
Device /dev/drbd/by-res/r1 not found (or ignored by filtering).

pssrv101:107% sudo pvcreate -ff /dev/drbd/by-res/r2
Device /dev/drbd/by-res/r2 not found (or ignored by filtering).

The DRBD volumes are certainly present:

pssrv101:112% ls /dev/drbd*
/dev/drbd1 /dev/drbd2

/dev/drbd:
by-disk/ by-res/


pssrv101:115% cat /proc/drbd
`GIT-hash: dd7985327f146f33b86d4bff5ca8c94234ce840e build by phil [at] fat-tyr, 2009-07-03 15:35:39

1: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/DUnknown C r----
ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:975555468
2: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/DUnknown C r----
ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:1951110976


I'd be grateful for any assistance

David Simas
SLAC

------------------------------------------------------------------------

global {
usage-count no;
}

common {
protocol C;
}

resource r1 {
device /dev/drbd1;
disk /dev/sdc;
meta-disk internal;
on pssrv101 {
address 192.168.254.101:7791;
}
on pssrv102 {
address 192.168.254.102:7791;
}
}

resource r2 {
device /dev/drbd2;
disk /dev/sdd;
meta-disk internal;
on pssrv101 {
address 192.168.254.101:7792;
}
on pssrv102 {
address 192.168.254.102:7792;
}
}
_______________________________________________
drbd-user mailing list
drbd-user [at] lists
http://lists.linbit.com/mailman/listinfo/drbd-user


ivars.strazdins at gmail

Sep 24, 2009, 12:32 AM

Post #2 of 3 (1444 views)
Permalink
Re: Pvcreate fails on drbd devices [In reply to]

Isn't this the case?
http://www.drbd.org/users-guide-emb/s-lvm-drbd-as-pv.html

Ivars

David Simas wrote:
> Hello,
>
> I'm using DRBD 8.3.2 on RHEL 5.2 (x86_64). I've sucessfully create
> two DRBD devices, /dev/drbd1 and /dev/drbd2 (drbd.conf below). I'm
> trying to use them as physical volumes for LVM, as described in the
> "Configuring a DRBD resource as a Physical Volume" section of the
> user guide. But pvcreate fails:
>
> pssrv101:103% sudo pvcreate -ff /dev/drbd1
> Device /dev/drbd1 not found (or ignored by filtering).
>
> pssrv101:104% sudo pvcreate -ff /dev/drbd2
> Device /dev/drbd2 not found (or ignored by filtering).
>
> pssrv101:106% sudo pvcreate -ff /dev/drbd/by-res/r1
> Device /dev/drbd/by-res/r1 not found (or ignored by filtering).
>
> pssrv101:107% sudo pvcreate -ff /dev/drbd/by-res/r2
> Device /dev/drbd/by-res/r2 not found (or ignored by filtering).
>
> The DRBD volumes are certainly present:
>
> pssrv101:112% ls /dev/drbd*
> /dev/drbd1 /dev/drbd2
>
> /dev/drbd:
> by-disk/ by-res/
>
>
> pssrv101:115% cat /proc/drbd
> `GIT-hash: dd7985327f146f33b86d4bff5ca8c94234ce840e build by phil [at] fat-tyr, 2009-07-03 15:35:39
>
> 1: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/DUnknown C r----
> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:975555468
> 2: cs:WFConnection ro:Secondary/Unknown ds:Inconsistent/DUnknown C r----
> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:1951110976
>
>
> I'd be grateful for any assistance
>
> David Simas
> SLAC
>
> ------------------------------------------------------------------------
>
> global {
> usage-count no;
> }
>
> common {
> protocol C;
> }
>
> resource r1 {
> device /dev/drbd1;
> disk /dev/sdc;
> meta-disk internal;
> on pssrv101 {
> address 192.168.254.101:7791;
> }
> on pssrv102 {
> address 192.168.254.102:7791;
> }
> }
>
> resource r2 {
> device /dev/drbd2;
> disk /dev/sdd;
> meta-disk internal;
> on pssrv101 {
> address 192.168.254.101:7792;
> }
> on pssrv102 {
> address 192.168.254.102:7792;
> }
> }
> _______________________________________________
> 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


richard at catalyst

Sep 24, 2009, 3:17 AM

Post #3 of 3 (1442 views)
Permalink
Re: Pvcreate fails on drbd devices [In reply to]

On Wed, 2009-09-23 at 11:50 -0700, David Simas wrote:
> 1: cs:WFConnection ro:Secondary/Unknown
> ds:Inconsistent/DUnknown C r----
> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1
> wo:b oos:975555468
> 2: cs:WFConnection ro:Secondary/Unknown
> ds:Inconsistent/DUnknown C r----
> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1
> wo:b oos:1951110976
>

It needs to be Primary before you write to it in any way, surely?

Richard


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