Bug 22625

Summary: Unable to install FreeBSD system to ATA RAID disk from boot floppies
Product: Base System Reporter: hidekazu <hidekazu>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 2.2.8-RELEASE   
Hardware: Any   
OS: Any   

Description hidekazu 2000-11-05 22:00:01 UTC
	I try to install 4.2-BETA(4.2-20001105-BETA) and 
        5.0-current(5.0-20001105-CURRENT) to new PC
        with kern.flp and mfsroot.flp floppies.

        When installing 4.2-BETA, there is not a ATA RAID device(ar0)
        at 'Custom/Partition' screen in sysinstall. But there ara
        ATA Disk devices(ad0,ad1).
        
        When installing 5.0-CURRENT, there are a ATA RAID device(ar0)
        and ATA Disk devices(ad0,ad1). After I select ar0 and edit Pa
        rtition and Disk Label, start to commit. But abort to commit
        with following message.
          'Unable to make device node for /dev/ar0s1b in /dev!'
          'The creation of filesystem will be aborted.'
        In vty2 screen,
          'DEBUG: MakeDev: Unknown major/minor for devtype ar0s1b'
          'DEBUG: MakeDev: Unknown major/minor for devtype ar0s1e'
          'DEBUG: MakeDev: Unknown major/minor for devtype ar0s1f'
          'DEBUG: MakeDev: Unknown major/minor for devtype ar0s1g'
Comment 1 debnar 2000-11-06 23:05:07 UTC
I looked through sysinstall source and libdisk source and guess what ! -
libdisk doesn't know about ar? devices yet.

Could someone update the libdisk source in stable and current to include the
device?
The files affected are:

/src/lib/libdisk/create_chunk.c
/src/lib/libdisk/disk.c

--- disk.c.orig Thu Sep 14 14:10:45 2000
+++ disk.c      Mon Nov  6 23:41:45 2000
@@ -461,7 +461,7 @@
 }
 #endif

-static char * device_list[] = {"wd", "ad", "da", "wfd", "fla", "idad",
"mlxd", "amrd", "twed", 0};
+static char * device_list[] = {"wd", "ad", "da", "wfd", "fla", "idad",
"mlxd", "amrd", "twed", "ar", 0};

 char **
 Disk_Names()


--- create_chunk.c.orig Fri Jul 14 08:30:59 2000
+++ create_chunk.c      Mon Nov  6 23:46:59 2000
@@ -300,6 +300,8 @@
        cmaj = 147, p += 4;
     else if (!strncmp(p, "da", 2))     /* CAM support */
        cmaj = 13, p += 2;
+    else if (!strncmp(p, "ar", 2))     /* ATA RAID */
+       cmaj = 157, p += 2;
     else {
        msgDebug("MakeDev: Unknown major/minor for devtype %s\n", p);
        return 0;

Unfortunately I am not able to compile and try this, but if someone can
create a set of 4-STABLE or 5-CURRENT installation disks and e-mail them,
I'm willing to try.

Those diffs are against 2000-10-30 stable, so they are just to show changes
what I thing should be done to actual current files. This should make
Current install on ATA RAID hopefully. I don't know, if it will make STABLE
sysinstall recognize the ar device. I hope so.


Ivan Debnár
Online Consulting, s.r.o.

tel.://+421 88 4146721
fax://+421 88 4142231
http://www.o-c.sk
Comment 2 dirk freebsd_committer freebsd_triage 2000-11-08 13:02:01 UTC
State Changed
From-To: open->feedback

Support for "ATA RAID" (ar) was added to libdisk and sysinstall, 
meanwhile. 

Can you please check, if it works, now?
Comment 3 dirk freebsd_committer freebsd_triage 2000-11-09 11:53:58 UTC
State Changed
From-To: feedback->closed

From the originator: 

"I achieved success in installing 4.2-20001108-BETA 
FreeBSD system ( 4.2-RC1-install.iso is very large. ) 
with boot floppies. But, I needed to create new partision 
and disklabel layouts, because occured a kernel panic 
with old layouts(created at failing installation and 
remained on RAID disk)."