Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
On Fri, Sep 12, 2008 at 10:17:45AM -0700, Chris Miller wrote: > Lars Ellenberg wrote: > > > do > > cat /proc/partitions > > lvs --units k -o name,vg_name,kernel_major,kernel_minor,size > > and, please do NOT use --units K. > > but --units k. > > see man lvs. > > > > also, do > > tune2fs -l /dev/drbd0 | > > awk -F: '/^Block count:/ { bc = $2; }; > > /^Block size:/ { bz = $2; }; > > END { print bc, bz ; print bc*bz/1024 }' > > [root at ha2 ~]# cat /proc/partitions > major minor #blocks name > > 8 0 732410880 sda > 8 1 200781 sda1 > 8 2 732202537 sda2 > 253 0 40960000 dm-0 > 253 1 690716672 dm-1 > 253 2 524288 dm-2 > 147 0 690662788 drbd0 > > [root at ha2 ~]# lvs --units k -o > name,vg_name,kernel_major,kernel_minor,size > LV VG KMaj KMin LSize > LogVol00 VolGroup00 253 0 40960000.00K > LogVol01 VolGroup00 253 2 524288.00K > LogVol02 VolGroup00 253 1 690716672.00K > > [root at ha2 ~]# tune2fs -l /dev/drbd0 | awk -F: '/^Block count:/ { bc > = $2; }; /^Block size:/ { bz = $2; }; END { print bc, bz ; print > bc*bz/1024 }' > > 172665697 4096 > 690662788 > > >> or is this just a GB/GiB thing?. > > 690662788 / 1024 / 1024 == 658 > > so, yes, this latter thing aparently is a GB GiB thing, > > as the size given in drbd.conf is GiB. > > So I should have put 658G in drbd.conf? > > Aside from that, my impression was this declaration was not "required". no you should not. it is not required. so, aparently tune2fs and /proc/partitions agree that the fs in question is 690662788 kByte. from your first post: Sep 10 22:57:27 ha2 kernel: attempt to access beyond end of device Sep 10 22:57:27 ha2 kernel: drbd0: rw=0, want=6365608736, limit=1381325576 Sep 10 22:57:27 ha2 kernel: drbd0: rw=0, want=14950835016, limit=1381325576 Sep 10 22:57:27 ha2 kernel: drbd0: rw=0, want=13983521568, limit=1381325576 Sep 10 22:57:27 ha2 kernel: drbd0: rw=0, want=6365080488, limit=1381325576 unit is sectors. limit says 1381325576s == 690662788 kB. right. so that agrees too. so far so good. but "something" requested sector number 14950835016, which is 7475417508 kByte, 7300212 MiB 7129 Gib almost 7 TiB into the device. you want to fsck. you want to memtest. A.S.A.P. -- : Lars Ellenberg : LINBIT HA-Solutions GmbH : DRBD®/HA support and consulting http://www.linbit.com DRBD® and LINBIT® are registered trademarks of LINBIT Information Technologies GmbH __ please don't Cc me, but send to list -- I'm subscribed