From: Tomasz Chmielewski <mangoo@wpkg.org>
To: Linux-Raid <linux-raid@vger.kernel.org>
Subject: why a bitmap file never changes?
Date: Wed, 29 Aug 2007 10:45:28 +0200 [thread overview]
Message-ID: <46D53228.4000400@wpkg.org> (raw)
I'm just synchronizing a local LVM volume to the remote one using md and
a bitmap file, as suggested by Neil Brown ("how to synchronize two
devices (RAID-1, but not really?)" thread from 15 May 2007):
mdadm --build /dev/md11 --level=1 --bitmap=/root/backup-bitmap \
--write-behind --raid-disks=2 /dev/san1/backup \
--write-mostly /dev/iscsi/....../part
Certainly, it takes a while to complete this operation.
I noticed that the bitmap file never changes as the devices are being
synced - md5sum stays always the same, no matter if resync progress was
10, 30, or 90%:
# md5sum /root/backup-bitmap
e8e0c4a8424dfd4d487b8facd231ce76 /root/backup-bitmap
# ls -l /root/backup-bitmap
-rw-r--r-- 1 root root 80676 2007-08-27 18:35 /root/backup-bitmap
The date of the file is the date of creation of this array, and as I
look inside, it's basically almost empty. When looking in a hex editor,
zeroes (+bitm etc.)at the beginning, and than FF to the end.
Is it normal?
# mdadm -D /dev/md11
/dev/md11:
Version : 00.90.03
Creation Time : Mon Aug 27 18:35:32 2007
Raid Level : raid1
Array Size : 658800640 (628.28 GiB 674.61 GB)
Device Size : 658800640 (628.28 GiB 674.61 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 11
Persistence : Superblock is not persistent
Intent Bitmap : /root/backup-bitmap
Update Time : Mon Aug 27 18:39:22 2007
State : active, resyncing
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Rebuild Status : 91% complete
Number Major Minor RaidDevice State
0 254 47 0 active sync /dev/dm-47
1 8 48 1 active sync writemostly /dev/sdd
# cat /proc/mdstat
Personalities : [raid1]
md11 : active raid1 sdd[1](W) dm-47[0]
658800640 blocks super non-persistent [2/2] [UU]
[==================>..] resync = 91.8% (605314368/658800640)
finish=65.6min speed=13584K/sec
bitmap: 315/315 pages [1260KB], 1024KB chunk, file:
/root/backup-bitmap
--
Tomasz Chmielewski
http://wpkg.org
next reply other threads:[~2007-08-29 8:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-29 8:45 Tomasz Chmielewski [this message]
2007-08-29 9:06 ` why a bitmap file never changes? Tomasz Chmielewski
2007-08-31 10:32 ` Tomasz Chmielewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46D53228.4000400@wpkg.org \
--to=mangoo@wpkg.org \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).