[DRBD-user] DRBD 0.7.5 & LVM2 on 2.4.27

Tim Hasson tim at aidasystems.com
Mon Oct 4 10:10:28 CEST 2004

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


Hello Drbd'ers,

I just setup ext3 on LVM2 on top of DRBD 0.7.5 on a single node, to hopefully
put it in production soon (second node will come later in the next week or
two)

Everything went through fine and both drbd volumes (drbd0 and drbd1) come up as
master and shows consistent.
I had then created a pv on each of the two scsi disks (~35GB each)
Then I created the vg and then created the lv.

Then I run "/sbin/vgscan" (no problems so far)

Finally, I run "/sbin/vgchange -a y" to activate my volume which reports
success, but along I get some drbd warnings in syslog, just right after I run
"vgchange". This also happens at shutdown - when deactivating volume groups
("/sbin/vgchange -a n")

I can mount the drive, write to it, and everything looks fine. But I am
wondering why these _initial_ warnings/errors? Is this bad?

Oct  4 00:57:32 srv1 kernel: drbd0: ASSERT( !buffer_uptodate(bh) ) in
drbd_compat_wrappers.h:247
Oct  4 00:57:32 srv1 last message repeated 7 times
Oct  4 00:57:32 srv1 kernel: drbd1: ASSERT( !buffer_uptodate(bh) ) in
drbd_compat_wrappers.h:247
Oct  4 00:57:32 srv1 last message repeated 7 times
Oct  4 00:57:32 srv1 kernel: drbd0: ASSERT( !buffer_uptodate(bh) ) in
drbd_compat_wrappers.h:247
Oct  4 00:57:32 srv1 last message repeated 2 times
Oct  4 00:57:32 srv1 kernel: drbd1: ASSERT( !buffer_uptodate(bh) ) in
drbd_compat_wrappers.h:247



I am using the latest stable LVM2 code, compiled from source (also the
device-mapper and the kernel patch) per the LVM2 project page docs.

LVM2.2.00.25
device-mapper.1.00.18


[root at srv1 root]# uname -r
2.4.27-LVM2


[root at srv1 root]# cat /proc/drbd
version: 0.7.5 (api:76/proto:74)
SVN Revision: 1578 build by root at srv1.aidasystems.com, 2004-10-02 18:12:34
 0: cs:WFConnection st:Primary/Unknown ld:Consistent
    ns:0 nr:0 dw:141032 dr:5486 al:175 bm:689 lo:0 pe:0 ua:0 ap:0
 1: cs:WFConnection st:Primary/Unknown ld:Consistent
    ns:0 nr:0 dw:99816 dr:8276 al:190 bm:704 lo:0 pe:0 ua:0 ap:0



[root at srv1 root]# cat /etc/drbd.conf

# drbd.conf
 
resource data0 {
  protocol C;
  incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ; halt -f";
  startup {
    wfc-timeout 120;     # How long to wait after 2-node cluster is rebooted
    degr-wfc-timeout 60; # How long to wait after degraded cluster is rebooted
  }
  disk {
    on-io-error   panic;
  }
  syncer {
    rate 50M;
    group 1;
    al-extents 257;
  }
  on srv1.aidasystems.com {
    device     /dev/drbd0;
    disk       /dev/sdb1;
    address    192.168.10.10:7788;
    meta-disk  /dev/sdb2[0];
  }
  on srv2.aidasystems.com {
    device    /dev/drbd0;
    disk      /dev/sdb1;
    address   192.168.10.20:7788;
    meta-disk /dev/sdb2[0];
  }
}
 
resource data1 {
  protocol C;
  incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ; halt -f";
  startup {
    degr-wfc-timeout 60;
  }
  disk {
    on-io-error   panic;
  }
  syncer {
    rate 50M;
    group 1;
    al-extents 257;
  }
  on srv1.aidasystems.com {
    device     /dev/drbd1;
    disk       /dev/sdc1;
    address    192.168.10.10:7789;
    meta-disk  /dev/sdc2[0];
  }
  on srv2.aidasystems.com {
    device    /dev/drbd1;
    disk      /dev/sdc1;
    address   192.168.10.20:7789;
    meta-disk /dev/sdc2[0];
  }
}

# end drbd.conf



[root at srv1 root]# pvdisplay
  --- Physical volume ---
  PV Name               /dev/drbd0
  VG Name               Volume0
  PV Size               34.05 GB / not usable 0
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              8717
  Free PE               0
  Allocated PE          8717
  PV UUID               k2KNhn-3vmH-vPGX-71rA-FTdh-wiN7-85SDLX
    
  --- Physical volume ---
  PV Name               /dev/drbd1
  VG Name               Volume0
  PV Size               34.05 GB / not usable 0
  Allocatable           yes (but full)
  PE Size (KByte)       4096
  Total PE              8717
  Free PE               0
  Allocated PE          8717
  PV UUID               VY2Vna-HSzX-yX50-wWiK-QMAM-9rzR-QC1Q2Y
    


[root at srv1 root]# vgdisplay
  --- Volume group ---
  VG Name               Volume0
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  2
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               0
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               68.10 GB
  PE Size               4.00 MB
  Total PE              17434
  Alloc PE / Size       17434 / 68.10 GB
  Free  PE / Size       0 / 0
  VG UUID               q8MtjO-Kxbx-Va4C-yZeI-lr9I-Pfnz-ohW7NV
    

[root at srv1 root]# lvdisplay
  --- Logical volume ---
  LV Name                /dev/Volume0/LogVol0
  VG Name                Volume0
  LV UUID                uFp3gN-8Ent-vF9M-5xBV-QOwy-FyMG-iFbChz
  LV Write Access        read/write
  LV Status              NOT available
  LV Size                68.10 GB
  Current LE             17434
  Segments               2
  Allocation             inherit
  Read ahead sectors     0
    


[root at srv1 root]# grep -v "#" /etc/lvm/lvm.conf | grep -vx ""
devices {
    dir = "/dev"
    scan = [ "/dev" ]
    filter = [ "a/drbd.*/" , "r/.*/" ]
    cache = "/etc/lvm/.cache"
    write_cache_state = 1
    types = [ "drbd" , 16 ]
    md_component_detection = 1
}
log {
    verbose = 0
    syslog = 1
    overwrite = 0
    level = 0
     
    indent = 1
    command_names = 0
    prefix = "  "
}
backup {
    backup = 1
    backup_dir = "/etc/lvm/backup"
    archive = 1
    archive_dir = "/etc/lvm/archive"
     
    retain_min = 10
    retain_days = 30
}
shell {
    history_size = 100
}
global {
     
    umask = 077
    test = 0
    activation = 1
    format = "lvm2"
    proc = "/proc"
    locking_type = 1
    locking_dir = "/var/lock/lvm"
}
activation {
    missing_stripe_filler = "/dev/ioerror"
    mirror_region_size = 512
    reserved_stack = 256
    reserved_memory = 8192
    process_priority = -18
}



--
Respectfully,
Tim Hasson
Consultant, AiDA Systems
(510) 860-7658 Voice








More information about the drbd-user mailing list