Subject: Re: RAID-1 and crash dumps
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: current-users
Date: 02/04/2004 11:16:38
Manuel Bouyer wrote:

>># disklabel raid0
>> a:  16777216         0     4.2BSD   2048 16384 27672
>> b:   2097152  16777216       swap
>> d: 241254528         0     unused      0     0
>> e: 222380160  18874368     4.2BSD   2048 16384 28856

> Obvisouly something changed. The value "192" for the offset looks suspicious to
> me, on 2 i386 hosts here it's 96. Can you try with 96 ?

I found the correct offset, it is 63+96=159 for raid0a's
real offset on wd0.

But this is weird as according to my calculations this should
be 63+129 as 129 is the number I get for the RAID internal
structures. Isn't this the way to calculate the size?

# dc
241254657	# sizeof(wd0a)
241254528	# sizeof(raid0d)
-p
129

But anyway, here it is with 96.

# disklabel /dev/rwd0d
  a: 241254657        63       RAID
  c: 241254657        63     unused      0     0
  d: 241254720         0     unused      0     0
  e:  16777216       159     4.2BSD   2048 16384 27672
  f: 222380160  18874527     4.2BSD   2048 16384 28856

# mount -r /dev/wd0e /mnt
# df -h
Filesystem    Size     Used     Avail Capacity  Mounted on
/dev/raid0a   7.9G     362M      7.1G     4%    /
/dev/raid0e   104G     7.2G       92G     7%    /home
/dev/wd0e     7.9G       0B      7.5G     0%    /mnt
# umount /mnt
# mount -r /dev/wd0f /mnt
# df -h
Filesystem    Size     Used     Avail Capacity  Mounted on
/dev/raid0a   7.9G     362M      7.1G     4%    /
/dev/raid0e   104G     7.2G       92G     7%    /home
/dev/wd0f     104G       0B       99G     0%    /mnt

But it does not look correct (see the Used fields). So I
umounted /home first and tried again. No change.

# umount /home
# mount -r /dev/wd0f /mnt
# df -h
Filesystem    Size     Used     Avail Capacity  Mounted on
/dev/raid0a   7.9G     362M      7.1G     4%    /
/dev/wd0f     104G       0B       99G     0%    /mnt

Any ideas?

Martti