> > going to write to the FS, you might need to re-sync your partitions
> > either by using raid tools or you might want to use dd (is this safe for
> > RAID 1? anybody who tried this to re-sync RAID-1 pairs?)
hi you may be onto something here. I tried this experiment
and it appears the 2 halves of a raid-1 partition are perfect
mirrors.( or at least the first 10 blocks). I've no idea
where the bookkeeping/misc info is located (there has to be since
the kernel has to keep track which disk is synced and which
is not, and other disk state stuff--somebody wiser than me can
probably comment on this). Personally i'd rather see
kernel reconstruct than deal with DD though:
[EMAIL PROTECTED] root]# cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md5 : active raid1 hde15[0] hdg9[1]
10596992 blocks [2/2] [UU]
md4 : active raid1 hde14[0] hdg8[1]
15360256 blocks [2/2] [UU]
md3 : active raid1 hde13[0] hdg7[1]
2048192 blocks [2/2] [UU]
md2 : active raid1 hde12[0] hdg6[1]
2048192 blocks [2/2] [UU]
md1 : active raid1 hde11[0] hdg5[1]
1028032 blocks [2/2] [UU]
md0 : active raid1 hde10[0] hdg1[1]
1028032 blocks [2/2] [UU]
unused devices: <none>
[EMAIL PROTECTED] root]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hde5 787M 330M 418M 45% /
/dev/hde1 68M 39M 25M 61% /boot
none 251M 0 250M 0% /dev/shm
/dev/hde6 1.4G 5.1M 1.3G 1% /tmp
/dev/hde7 4.3G 3.3G 907M 79% /usr
/dev/md0 988M 309M 629M 33% /var
/dev/md1 988M 315M 623M 34% /log
/dev/md2 1.9G 269M 1.5G 15% /home
/dev/md3 1.9G 349M 1.4G 19% /www
/dev/md4 14G 4.9G 8.7G 36% /pictures
/dev/md5 9.9G 6.3G 3.1G 67% /windump
/dev/hdg10 19G 844M 17G 5% /misc
/dev/hdg11 19G 1.9G 16G 11% /picimage
/dev/hdg12 387M 338M 29M 92% /webcache
/dev/hdg13 4.3G 2.1G 1.9G 51% /tgadump
[EMAIL PROTECTED] root]# umount /dev/md5
[EMAIL PROTECTED] root]# dd if=/dev/hde15 of=/tmp/disk1 count=10
10+0 records in
10+0 records out
[EMAIL PROTECTED] root]# dd if=/dev/hdg9 of=/tmp/disk2 count=10
10+0 records in
10+0 records out
[EMAIL PROTECTED] root]# ls -l /tmp/disk?
-rw-r--r-- 1 root root 5120 Sep 3 19:32 /tmp/disk1
-rw-r--r-- 1 root root 5120 Sep 3 19:32 /tmp/disk2
[EMAIL PROTECTED] root]# cmp /tmp/disk?
[EMAIL PROTECTED] root]# file /tmp/disk?
/tmp/disk1: Linux rev 1.0 ext2 filesystem data
/tmp/disk2: Linux rev 1.0 ext2 filesystem data
[EMAIL PROTECTED] root]#
---
jondz
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie