amd64/72333: vinum doesn't scan for drives on slices on amd64
jramirez at diatel.upm.es
Mon Oct 4 12:20:13 PDT 2004
>Synopsis: vinum doesn't scan for drives on slices on amd64
>Arrival-Date: Mon Oct 04 19:20:12 GMT 2004
>Originator: Javier Ramirez
>Release: FreeBSD 5.3-BETA6/amd64
FreeBSD agua.madrimasd.org 5.3-BETA6 FreeBSD 5.3-BETA6 #0: Sat Sep 25 21:49:38 UTC 2004
root at fanboy.samsco.home:/usr/obj/usr/src/sys/GENERIC amd64
Code at file /usr/src/sys/dev/vinum/vinumio.c , where vinum scans for drives looking for vinum partitions, it only considers slices existence (aka ad0s1h) when "__i386__" is defined.
So, i suppose that code doesn't execute on amd64 machines and vinum doesn't find vinum partitions on a pc slice. So, it doesn't find vinum partitions (this is critical for mounting root filesystem over vinum) when you put vinum.autostart="YES" in /boot/loader.conf.
By hand, vinum works if you do "vinum read ad4", because it find the vinum partition at this drive. But "vinum read" doesn't scan on pc slices, too (i suppose that use the same scan routine than boot scan).
On a amd64 box: install with /stand/sysinstall over a slice (aka ad0s1). Configure a vinum partition for root on than slice (aka ad0s1h).
Reboot (on single user, for example), and see "vinum: no drives found".
Warning: test with vinum partitions only on slices (if vinum takes its configuration from another copy in any drive, i suppose it will read the configuration from that drive.
Probably code at file /usr/src/sys/dev/vinum/vinumio.c , where vinum scans for drives looking for vinum partitions, must consider slices existence (aka ad0s1h) when "__i386__" or "__amd64__" is defined (not only "__i386__".
More information about the freebsd-amd64