[DRBD-user] Pvcreate fails on drbd devices

Ivars Strazdiņš ivars.strazdins at gmail.com
Thu Sep 24 09:32:34 CEST 2009

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


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-tyre, 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.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
>   



More information about the drbd-user mailing list