[DRBD-user] Errors when creating a LVM PV on DRBD

Luciano Miguel Ferreira Rocha strange at nsk.no-ip.org
Tue Jun 20 13:14:20 CEST 2006

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


On Tue, Jun 20, 2006 at 10:49:51PM +1200, Simon wrote:
> This is so i can create lv partitions on server1 and have them
> automatically mirrored to server2 without changing setup (ie adding
> each lv to the drdb.conf file).

You'll have to manually (or in a script) activate/deactivate the lvm
volumes.

> In my test environment, I have server1 and server2, both with
> /dev/sdb1 as the meta data drive and /dev/sdb2 as a Linux LV
> partition, then both servers have "disk = /dev/sdb2" set in the
> drbd.conf file. Then try to do the following with the following result
> (can anyone help me here please?):
> 
> server1:/# pvcreate /dev/drbd0
> Physical volume "/dev/drbd0" successfully created
> server1:/# pvdisplay
> Found duplicate PV 947ghY5ndShGUC7jE8kUuhq9xEH6nvIB: using /dev/sdb2

Change the filter directive in /etc/lvm/lvm.conf, to exclude sdb.* or
just include the devices that you know will be used for lvm.

-- 
lfr
0/0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20060620/6d26acb5/attachment.pgp>


More information about the drbd-user mailing list