[DRBD-user] drbd for ramdisk

witalij wp at ypsilon.net
Thu Aug 28 11:07:33 CEST 2008

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


Hi all !

how can i use DRBD with /dev/ram0

i try

dd if=/dev/zero  of=/dev/ram0 bs=512 count=1024K
mkfs.xfs  /dev/ram0

then

lab:~# drbdadm create-md mirror
open(/dev/ram0) failed: Invalid argument
Command 'drbdmeta /dev/drbd0 v08 /dev/ram0 internal create-md' 
terminated with exit code 20
drbdadm aborting



this is my config

resource mirror {

protocol C;

on lab {
        device /dev/drbd0;
        disk /dev/ram0;
        address 192.168.80.254:7788;
        meta-disk internal;
}
on lector {
        device /dev/drbd0;
        disk /dev/ram0;
        address 12.168.70.198:7788;
        meta-disk internal;
}
disk {
        on-io-error detach;
}

net {
        max-buffers 2048;
        ko-count 4;
}
syncer {
        rate 10M;
        al-extents 257;
}
startup {
        wfc-timeout 0;
        degr-wfc-timeout 120;
}
}


thanks




More information about the drbd-user mailing list