Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hi there, if you use internal metadata, drbd will store some information at the end of your partition so you need to shrink the filesystem first. Or, if you do NOT have already important data on the underlying blockdevice (md0), format /dev/drbd0. See http://wiki.linux-ha.org/DRBD_2fQuickStart07. Am Dienstag, 22. März 2005 13:55 schrieb Paul Chen: > Hi, > > I am trying to get drbd to work with my current fs. I'm using jbod on my > system and I am mapping /dev/drbd0 to /dev/md0. When I tried to mount > /dev/drbd0 using ext3, I kept getting the following warning msg. > > [node1]# dmesg > .... > drbd0: Secondary/Unknown --> Primary/Unknown > kjournald starting. Commit interval 5 seconds > EXT3-fs warning: mounting fs with errors, running e2fsck is recommended > EXT3 FS on drbd0, internal journal > EXT3-fs: mounted filesystem with ordered data mode. > attempt to access beyond end of device > drbd0: rw=0, want=181928048, limit=155327232 > EXT3-fs error (device drbd0): ext3_get_inode_loc: unable to read inode > block - inode=11370497, block=22741005 Aborting journal on device drbd0. > ext3_abort called. > EXT3-fs abort (device drbd0): ext3_journal_start: Detected aborted journal > Remounting filesystem read-only > attempt to access beyond end of device > drbd0: rw=0, want=181141616, limit=155327232 > EXT3-fs error (device drbd0): ext3_get_inode_loc: unable to read inode > block - inode=11321345, block=22642701 > > However if I just mount /dev/md0, everything is ok and I get the following > message. So is there something with my harddisk or am i doing something > wrong? By the way, I formatted /dev/md0 to ext3 first before I start drbd, > should I format directly on /dev/drbd0 instead? > > [node1]# dmesg > .... > EXT3 FS on md0, internal journal > EXT3-fs: recovery complete > EXT3-fs: mounted filesystem with ordered data mode. > md:md2:sync done. > RAID1 conf printout: > --- wd:2 rd:2 > disk 0, wo:0 o:1, dev:sda2 > disk 2, wo:0 0:1, dev:sdb2 > > > I am using Redhat7.2 and kernel 2.6.8.1 > > my drbd.conf: > resource "drbd0" { > protocol C; > incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ; halt > -f"; > > disk { > on-io-error detach; > } > > syncer { > rate 20M; > } > > on node1 { > device /dev/drbd0; > disk /dev/md0; > address 192.168.2.1:7788; > meta-disk internal; > } > > on node2 { > device /dev/drbd0; > disk /dev/md0; > address 192.168.2.2:7788; > meta-disk internal; > } > } > > Thanks and best regards, > > Paul Chen