Re: [DRBD-user] LVM and DRBD

2011-02-16 Thread Etienne Pretorius
Thank you Roland, I think you are right, also thank you for trying. Etienne On 16/02/2011 16:26, Roland Friedwagner wrote: IMHO this has nothing to do with drbd. It is probably a problem with your LVM. You may add "r|/dev/dm-.*|" to your lvm filter list. But this should be equal as your curre

Re: [DRBD-user] LVM and DRBD

2011-02-16 Thread Roland Friedwagner
IMHO this has nothing to do with drbd. It is probably a problem with your LVM. You may add "r|/dev/dm-.*|" to your lvm filter list. But this should be equal as your current lvm filter filter = [ "a|drbd.*|", "a|md.*|", "r|.*|" ] ignores it already. But you get /dev/dm-3 as PV for VG vm and dm-3

Re: [DRBD-user] LVM and DRBD

2011-02-16 Thread Etienne Pretorius
Hello Roland, I attached the output to this email. I noticed that DRBD is started at the end of the boot process but LVM is obviously started before that. That means that I have to rescan for volume groups after DRBD has started, but it still does not explain why I can not use the device afte

Re: [DRBD-user] LVM and DRBD

2011-02-16 Thread Roland Friedwagner
[root@0-0-0:/] pvs --segments --units s -o vg_name,vg_extent_size,pv_name,pvseg_start,pvseg_size,lv_name,lv_size,lv_attr,pe_start,seg_pe_ranges VG Ext PV Start SSize LV LSize Attr 1st PE PE Ranges vm 8192S /dev/dm-3 0 25000 freeradius 204

Re: [DRBD-user] LVM and DRBD

2011-02-16 Thread Etienne Pretorius
Hello Roland, I have attached the terminal output to this email. Thank you, Etienne Pretorius [root@0-0-0:/] drbdsetup /dev/drbd0 show disk { size0s _is_default; # bytes on-io-error pass_on _is_default; fencing dont-care _is_default; max-bio-b

Re: [DRBD-user] LVM and DRBD

2011-02-16 Thread Roland Friedwagner
Sorry my fault - /dev/vgsys/test02 was my testing lv. On your system it should be: write: echo "HELLO" | dd of=/dev/drbd0 oflag=direct bs=512 cbs=512 conv=block read: dd if=/dev/drbd0 iflag=direct bs=512 count=1 | strings => HELLO write: echo "FOOBAR" | dd of=/dev/drbd0 oflag=direct bs=512 cbs=51

Re: [DRBD-user] LVM and DRBD

2011-02-16 Thread Etienne Pretorius
On 15/02/2011 19:03, Roland Friedwagner wrote: Am Dienstag 15 Februar 2011 schrieb Etienne Pretorius: [root@0-0-0:/tmp] pvcreate /dev/drbd0<== INIT PV Physical volume "/dev/drbd0" successfully created [root@0-0-0:/tmp] lvm lvm> pvdisplay --- Physical volume --- PV Name /

Re: [DRBD-user] LVM and DRBD

2011-02-15 Thread Roland Friedwagner
Am Dienstag 15 Februar 2011 schrieb Etienne Pretorius: > [root@0-0-0:/tmp] pvcreate /dev/drbd0<== INIT PV > Physical volume "/dev/drbd0" successfully created > [root@0-0-0:/tmp] lvm > lvm> pvdisplay > --- Physical volume --- > PV Name /dev/md0 > VG Name

Re: [DRBD-user] LVM and DRBD

2011-02-15 Thread Etienne Pretorius
On Tue, 2011-02-15 at 16:37 +0200, Etienne Pretorius wrote: > Hello List, > > This is more lvm centric, just wandered if anyone could point out what I > have done wrong. > > I have the following setup: > > sda1 => +---+ > |md0| > sdb1 => +---+ => lvm:system-drdb => drdb:r0 => lvm:vm >

[DRBD-user] LVM and DRBD

2011-02-15 Thread Etienne Pretorius
Hello List, This is more lvm centric, just wandered if anyone could point out what I have done wrong. I have the following setup: sda1 => +---+ |md0| sdb1 => +---+ => lvm:system-drdb => drdb:r0 => lvm:vm Before the creation of volume group vm: "/dev/mapper/system-drbd" is a new phy