From owner-freebsd-sparc64@freebsd.org Sat Feb 18 04:21:38 2017 Return-Path: Delivered-To: freebsd-sparc64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4E285CE4107 for ; Sat, 18 Feb 2017 04:21:38 +0000 (UTC) (envelope-from gordonzaft@gmail.com) Received: from mail-io0-x22c.google.com (mail-io0-x22c.google.com [IPv6:2607:f8b0:4001:c06::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 19645DA4 for ; Sat, 18 Feb 2017 04:21:38 +0000 (UTC) (envelope-from gordonzaft@gmail.com) Received: by mail-io0-x22c.google.com with SMTP id j18so5002204ioe.2 for ; Fri, 17 Feb 2017 20:21:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Uhdhjm1p+skE9wZuWpG5I9g5KIEA0IWV69Jlub7Z//Q=; b=VL+us5rowVN5i3rOI1pTWrPDwmt37OrP7ojaxuYt4ddUuBd5B/N9uMgY6T/uN1GmeL lPbzfp2ObfvQsYlqBklpGlHPqXjNcpn9TysclFc8KDIGyJddYj3MtifxnBwEamuGbpuJ MxAZabhMOYLaU/EAmCMPw39CROlWQFSOz7Z776AXhxtaAYZvtXuTbRRA+IjQLPAcN4BA 23rIVmujouQF62LykkpIv+qINlMnxwUUniEFqLl0JVMhQQ5TuQPr5HyEFIhRxhNq9OZM f4MTfMJetW9dzDbxUDKUlxqcN/cAbEJRGjA+LsmNNTkp3WJ8G8jhgEc2+PuJMZhy7T1L vopw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Uhdhjm1p+skE9wZuWpG5I9g5KIEA0IWV69Jlub7Z//Q=; b=a/diNF+/KJNuB9VZRm3dY3cwc9psCmGMqH7Y31Ak0dxGQaK0BnkOZOhR3Fzeo4UMhO IiuAuNZfP2jBrViU4cshnIANCeEuCtXv8EW08W2eoBuUfdFzqDii+jy7XeLClWDoA4Bs uiIHczgsSefHsIe6WfuLO7S3DJNE+4/NltD3e8KP2C+mxk0aQdC02EfEiywcECqHaPoW 5YKpVqEgLrf1zNytiSsD91XQeIzYyOV7r1tjwx/mp6ouIROd7+osk48nwJy6gdoJ0mno FtjiUyZkj+o8mzk7hUAVsyw0KEUmsx7tplQ6RVF6uI/+yUykNbt2rdEe6c9TIo0lFPh0 pyfQ== X-Gm-Message-State: AMke39msqYmYlhqo2VcTS1b9liHTleUoNiiTP922tjDnLHAECXFB3Lp1++jD7FONoWux+Jga5P0Gvr+HttWqmg== X-Received: by 10.107.15.70 with SMTP id x67mr9114583ioi.103.1487391697033; Fri, 17 Feb 2017 20:21:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.15.93 with HTTP; Fri, 17 Feb 2017 20:21:36 -0800 (PST) In-Reply-To: References: From: Gordon Zaft Date: Fri, 17 Feb 2017 21:21:36 -0700 Message-ID: Subject: Re: Adding disk on Sun Fire V245 w/FreeBSD 11 To: freebsd-sparc64@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2017 04:21:38 -0000 Sorry, was not in plain text mode: I finally figured this out and figured I should document for posterity... I realized I had not tried to do a probe-scsi from the OBP prompt, so I did that. I got an endless cascade of Base SAS World Wide ID is 0! This must be fixed immediately using set-sas-wwid So digging into this document https://docs.oracle.com/cd/E19088-01/v215.srvr/819-3040-18/Disk-vols.html I realized the onboard RAID was messing me up. Following the directions, and the ok> prompt: setenv auto-boot? false setenv fcode-debug? true reset-all Then a ok>show-disks Select the SCSI disk controller (for me it was b) ) ok>select ^Y (inserts the line from show-disks; trim off the /disk) doing ok>show-volumes showed that the disks that I wasn't seeing were listed as disabled (or inactive) volumes. To fix this I deleted each volume ok>0 delete-volume ok>1 delete-volume ok>show-volumes now shows no volumes. Doing a ok>setenv fcode-debug? false ok>reset-all when the system came back a probe-scsi showed the disks now, and when I boot they are in dmesg. I still had to put a VTOC on them since, in my case they were IBM disks, or wiped Sun disks: /sbin/gpart create -s VTOC8 da1 Then /sbin/gpart add -t freebsd-ufs da1 to create one big partition. Then a newfs as usual and you're good to go! On Fri, Feb 17, 2017 at 9:20 PM, Gordon Zaft wrote: > > I finally figured this out and figured I should document for posterity... > > I realized I had not tried to do a probe-scsi from the OBP prompt, so I did > that. I > got an endless cascade of > > Base SAS World Wide ID is 0! > This must be fixed immediately using set-sas-wwid > > So digging into this document > https://docs.oracle.com/cd/E19088-01/v215.srvr/819-3040-18/Disk-vols.html I > realized the onboard RAID was messing me up. > > Following the directions, and the ok> prompt: > > setenv auto-boot? false > setenv fcode-debug? true > reset-all > > Then a > ok>show-disks > > Select the SCSI disk controller (for me it was b) ) > > ok>select ^Y (inserts the line from show-disks; trim off the /disk) > > doing > > ok>show-volumes > > showed that the disks that I wasn't seeing were listed as disabled (or > inactive) volumes. To fix this I deleted each volume > > ok>0 delete-volume > ok>1 delete-volume > > ok>show-volumes > > now shows no volumes. Doing a > > ok>setenv fcode-debug? false > ok>reset-all > > when the system came back a probe-scsi showed the disks now, and when I boot > they are in dmesg. > > I still had to put a VTOC on them since, in my case they were IBM disks, or > wiped Sun disks: > > /sbin/gpart create -s VTOC8 da1 > > Then > > /sbin/gpart add -t freebsd-ufs da1 > > to create one big partition. > > Then a newfs as usual and you're good to go! > > G > > > > On Fri, Nov 18, 2016 at 9:35 PM, Gordon Zaft wrote: >> >> >> I have a Sun Fire V245 running 11.0. It had one 146GB hard disk in it. I >> went to add a second similar disk but the OS doesn't seem to see it. I can >> tell the hardware sees it as if I pull it out while the machine's on I get >> an alert from the ALOM. But I don't see a "da1" device in dmesg. >> >> What am I doing wrong? >> >> Thanks in advance! >> >> -- >> Gordon Zaft >> Province 35 Governor >> Phi Mu Alpha Sinfonia Fraternity >> gordonzaft@gmail.com > > > > > -- > Gordon Zaft > Province 35 Governor > Phi Mu Alpha Sinfonia Fraternity > gordonzaft@gmail.com -- Gordon Zaft Province 35 Governor Phi Mu Alpha Sinfonia Fraternity gordonzaft@gmail.com