[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse
Subject:    Re: [opensuse] lvm on a drbd device ?
From:       Per Jessen <per () computer ! org>
Date:       2018-02-27 18:30:36
Message-ID: p7484c$uba$1 () saturn ! local ! net
[Download RAW message or body]

Andrei Borzenkov wrote:

> On Tue, Feb 27, 2018 at 5:20 PM, Per Jessen <per@computer.org> wrote:
>> I need a second pair of eyes.  Or a third or a fourth.
>>
>> I am working on a drbd test setup.  Two machines, each has a 2Tb
>> disk, 3
>> partitions (root, swap, drbd).  drbd will eventually be controlled by
>> pacemaker, for now I am just starting and stopping manually.  I had
>> drbd working fine, but then I created an lvm PV on /dev/drbd1 and
>> carved out a 10Gb LV.
>>
>> When I boot up either of the two systems, I see a PV:
>>
>> office36:~ # pvdisplay
>>   WARNING: Device for PV k2i0DX-Gsao-z8pt-zLDD-Iv4b-qkq1-gGxdoW not
>> found or rejected by a filter.
>>   WARNING: Device for PV k2i0DX-Gsao-z8pt-zLDD-Iv4b-qkq1-gGxdoW not
>> found or rejected by a filter.
>>   --- Physical volume ---
>>   PV Name               unknown device
>>   VG Name               Grp1
>>   PV Size               1.77 TiB / not usable 3.52 MiB
>>   Allocatable           yes
>>   PE Size               4.00 MiB
>>   Total PE              463093
>>   Free PE               460533
>>   Allocated PE          2560
>>   PV UUID               k2i0DX-Gsao-z8pt-zLDD-Iv4b-qkq1-gGxdoW
>>
>> At this point drbd is not yet running, so there is no /dev/drbd1.  I
>> guess lvm start-up sort of gleans the above from /dev/sda3, the drbd
>> partition.
>>
>> I can't start drbd either -
>>
>> office36:~ # drbdadm up  drbddemo
>> open(/dev/sda3) failed: Device or resource busy
>> Operation canceled.
>> Command 'drbdmeta 1 v09 /dev/sda3 internal apply-al' terminated with
>> exit code 20
>>
>>
>> So something is using /dev/sda3 (my drbd partition), but what?
>>
> 
> lvmetad? Try stopping it.
> 
> Try explicitly exclude partition from LVM for testing (filter or
> probably global_filter in case of lvmetad, I suspect filter will case
> device still be opened but ignored).

Thanks Andrei - I already had 'filter' set to only work with /dev/drbd*,
but nothing in 'global_filter'. 

 

-- 
Per Jessen, Zürich (-7.6 °C)
http://www.cloudsuisse.com/ - your owncloud, hosted in Switzerland.


--
To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse+owner@opensuse.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic