ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Using Software RAID-1 with FreeBSD
Subject:   Provider ad2 too small.
Date:   2008-08-06 21:15:42
From:   linuse
Hi,
I am trying to do RAID1 mirror on live freebsd6.0 system. Both harddisk are 40GB of size. When I type gmirror insert gm0 /dev/ad2 it gaves me "Provider ad2 too small" message. What's wrong? Earlier ad2 hardisk was running Winxp and freebsd dual OS. I completly deleted the partition and tried to do RAID1 but that errror "Provider ad2 too small" message comes up.
Sysinstall command shows both hardisk size of 38162MB. Output of the fdisk command on both hardisk:


computer1# fdisk /dev/ad0
******* Working on device /dev/ad0 *******
parameters extracted from in-core disklabel are:
cylinders=77545 heads=16 sectors/track=63 (1008 blks/cyl)


Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=77545 heads=16 sectors/track=63 (1008 blks/cyl)


Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 78156162 (38162 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>



bhw-proxy.hons.com.np# fdisk -s /dev/ad2
fdisk: invalid fdisk partition table found
fdisk: read_s0: Unknown error: 0
computer1# fdisk /dev/ad2
******* Working on device /dev/ad2 *******
parameters extracted from in-core disklabel are:
cylinders=77542 heads=16 sectors/track=63 (1008 blks/cyl)


Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=77542 heads=16 sectors/track=63 (1008 blks/cyl)


fdisk: invalid fdisk partition table found
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 78162273 (38165 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 741/ head 15/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>


Any suggestions? Please