Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Oct 2023 06:09:30 +0000
From:      "azathanai@icloud.com" <azathanai@icloud.com>
To:        Warner Losh <imp@bsdimp.com>
Cc:        "freebsd-hackers@FreeBSD.org" <freebsd-hackers@FreeBSD.org>
Subject:   Re: Question of installing over SAS controller and USB flash
Message-ID:  <AM6PR02MB4471C1516952D8DCE423C9E7A5D5A@AM6PR02MB4471.eurprd02.prod.outlook.com>
In-Reply-To: <CANCZdfq5wT9j%2B_YDfk2w0_p_WvQB3X1tO2GLF9-ate0JgxkUJQ@mail.gmail.com>
References:  <AM6PR02MB4471B8EABD99C690DE9B9F49A5CDA@AM6PR02MB4471.eurprd02.prod.outlook.com> <CANCZdfrz1KZGavcCCpSUjpWUVN2Vem5XBWEzOii6yd=dUxTNJw@mail.gmail.com> <AM6PR02MB4471FE504225A2FBAF35DDA4A5CCA@AM6PR02MB4471.eurprd02.prod.outlook.com> <CANCZdfq5wT9j%2B_YDfk2w0_p_WvQB3X1tO2GLF9-ate0JgxkUJQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hey Warner,
thanks for the tool. I've been able to install Linux on the machine (when partitioning just put the /boot on the flash card and everything when very easy) and started the tool. If I'm understanding correctly it has BIOS and EFI flash:
___________________
Software Version Information
----------------------------
Current active firmware version is 0b000000 (11.00.00)
Firmware image's version is MPTFW-11.00.00.00-IT
  LSI Logic
  Not Packaged Yet
x86 BIOS image's version is MPT2BIOS-7.11.00.00 (2010.07.29)
EFI BIOS image's version is 7.00.00.01
___________________

However, the "BIOS" of the machine does not provide the option to boot from the controller and/or include it in the boot order. Is there some option in the lsiutil that I need to use to "force" the boot option for the controller?


________________________________
From: owner-freebsd-hackers@freebsd.org <owner-freebsd-hackers@freebsd.org> on behalf of Warner Losh <imp@bsdimp.com>
Sent: Wednesday, October 11, 2023 18:44
To: azathanai@icloud.com <azathanai@icloud.com>
Cc: freebsd-hackers@FreeBSD.org <freebsd-hackers@freebsd.org>
Subject: Re: Question of installing over SAS controller and USB flash

There's not a FreeBSD port/pkg for lsiutil, but I'ved used it at $WORK for things.

https://github.com/thomaslovell/LSIUtil

has an archive of sources. I've not used this at all, and it hasn't been ported to FreeBSD in this repo.
But I know it allows one to turn on/off the POST / BIOS in the card, which is what you need.  It runs
under Linux for sure (again, don't know what packages are available there). I don't think I can share
what I have for $WORK with the public since I think we got it in a way that doesn't let me disclose the
sources.

One might also be able move the code lsiutil that enables it to mpsutil. It's going to be sending a raw
command to the device. It shouldn't be too hard....

Warner

On Wed, Oct 11, 2023 at 6:02 AM azathanai@icloud.com<mailto:azathanai@icloud.com> <azathanai@icloud.com<mailto:azathanai@icloud.com>> wrote:
Hey Warner,
the box is very featureLESS (an old Xyratex HS-1235T box, as far as I researched it).
T2029_QR v1.3.ai (hackspace.org.uk)<https://wiki.london.hackspace.org.uk/w/images/b/b2/HS-1235T-ATX_Quick_Reference_Sheet.pdf>;
(5) Xyratex 0944037-03 Motherboard Mystery SOLVED : homelab (reddit.com)<https://www.reddit.com/r/homelab/comments/8loge6/xyratex_094403703_motherboard_mystery_solved/>;

Through the POST process and the BIOS there is no option to get into the SAS controller and enable its BIOS. I would love to install FreeBSD directly on the drives and not to deal with the flash card, but I suppose the lack of controller BIOS is the reason the box comes with reader and card directly.

As I'm new to FreeBSD and ZFS I'm struggling to set up the partitioning. I was thinking to:

  1.  Partition the entire FLASH card (4gigs) on MBR with freebsd-ufs and mount /boot. As I've read there should not be ESP (efi) partition as this is flash, thus MBR, which is "legacy" and without ESP.
  2.  Partition one of the drives (3tera) with GPT, freebsd-zfs stripe and mount /
  3.  When the system is up and running, add the rest of the drives (11 more) to the pool and change the pool to RAIDZ2. However I'm not sure this is possible, to change the type of the pool without erasing everything. Logical thinking says it is not possible.
  4.  After all of these comes the mounting of filesystems and creating fstab to continue the installation, which is full darkness at the moment, as I'm still struggling with the initial start and not have read anything on that.

All of these should be done in shell with the gpart utility during install and I cannot figure out, how to make points 2 and 3 on one go having directly the RAIDZ2.


________________________________
From: owner-freebsd-hackers@freebsd.org<mailto:owner-freebsd-hackers@freebsd.org> <owner-freebsd-hackers@freebsd.org<mailto:owner-freebsd-hackers@freebsd.org>> on behalf of Warner Losh <imp@bsdimp.com<mailto:imp@bsdimp.com>>
Sent: Wednesday, October 11, 2023 00:20
To: azathanai@icloud.com<mailto:azathanai@icloud.com> <azathanai@icloud.com<mailto:azathanai@icloud.com>>
Cc: freebsd-hackers@FreeBSD.org <freebsd-hackers@freebsd.org<mailto:freebsd-hackers@freebsd.org>>
Subject: Re: Question of installing over SAS controller and USB flash



On Tue, Oct 10, 2023 at 2:36 PM azathanai@icloud.com<mailto:azathanai@icloud.com> <azathanai@icloud.com<mailto:azathanai@icloud.com>> wrote:
Hi all,
a newbie in FreeBSD here trying to install a RAIDZ2 on a server with mps SAS controller with drives which are not visible in the boot order in BIOS.
So, I cannot install directly on the drives, despite that the installer "sees" them, because the BIOS does not see the controller and its drives as option.

Have you enabled the BIOS on the mps card itself? Otherwise it won't install a BIOS fragment to run at boot, and the drives won't be seen.

On the other hand, I have a card reader with a flash card on it (4gigs) from which I can boot and where I can have my /boot partition with the kernel.
I've a lot of questions and I still cannot find the answers to most of them, despite going through the handbook, the boot process explanation, the installation process handbook and a lot of more reading.


  *   How should the flash card be partitioned and with what mountpoints? The server is BIOS capable.
  *   How should the rest of the drives be partitioned with ZFS and the mountpoints? The standard configuration from the installer on RAIDZ2 is good for me.

I've experience with Linux but is not helping a lot here. The setup looks quite different .... probably because of the ZFS.

Any help, links, ideas and comments will be much appreciated!

That's a workaround, but you should be able to enable the BIOS part of the mps/mpr cards and boot off them. I've done that before.

Warner


Cyberly yours,
deragoth



[-- Attachment #2 --]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hey Warner,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
thanks for the tool. I've been able to install Linux on the machine (when partitioning just put the /boot on the flash card and everything when very easy) and started the tool. If I'm understanding&nbsp;correctly it has BIOS and EFI flash:</div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">___________________</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Software Version Information</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">----------------------------</span></div>
<div><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Current active firmware version is 0b000000 (11.00.00)</span></div>
<div><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Firmware image's version is MPTFW-11.00.00.00-IT</span></div>
<div><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">&nbsp; LSI Logic</span></div>
<div><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">&nbsp; Not Packaged Yet</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">x86 BIOS image's version is MPT2BIOS-7.11.00.00 (2010.07.29)</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">EFI BIOS image's version is 7.00.00.01</span></div>
<div class="elementToProof"><span style="letter-spacing: normal; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 16px; font-weight: 400; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">___________________</span></div>
<div class="elementToProof"><span style="letter-spacing: normal; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 16px; font-weight: 400; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br>
</span></div>
<div class="elementToProof"><span style="letter-spacing: normal; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 16px; font-weight: 400; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">However,
 the &quot;BIOS&quot; of the machine does not provide the option to boot from the controller and/or include it in the boot order. Is there some option in the lsiutil that I need to use to &quot;force&quot; the boot option for the controller?</span></div>
<div class="elementToProof"><span style="letter-spacing: normal; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 16px; font-weight: 400; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);"><br>
</span></div>
<div class="elementToProof"><span style="letter-spacing: normal; font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 16px; font-weight: 400; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">&nbsp;</span></div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> owner-freebsd-hackers@freebsd.org &lt;owner-freebsd-hackers@freebsd.org&gt; on behalf of Warner Losh &lt;imp@bsdimp.com&gt;<br>
<b>Sent:</b> Wednesday, October 11, 2023 18:44<br>
<b>To:</b> azathanai@icloud.com &lt;azathanai@icloud.com&gt;<br>
<b>Cc:</b> freebsd-hackers@FreeBSD.org &lt;freebsd-hackers@freebsd.org&gt;<br>
<b>Subject:</b> Re: Question of installing over SAS controller and USB flash</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">There's not a FreeBSD port/pkg for lsiutil, but I'ved used it at $WORK for things.
<div><br>
</div>
<div><a href="https://github.com/thomaslovell/LSIUtil">https://github.com/thomaslovell/LSIUtil</a><br>;
</div>
<div><br>
</div>
<div>has an archive of sources. I've not used this at all, and it hasn't been ported to FreeBSD in this repo.</div>
<div>But I know it allows one to turn on/off the POST / BIOS in the card, which is what you need.&nbsp; It runs</div>
<div>under Linux for sure (again, don't know what packages are available there). I don't think I can share</div>
<div>what I have for $WORK with the public since I think we got it in a way that doesn't let me disclose the</div>
<div>sources.</div>
<div><br>
</div>
<div>One might also be able move the code lsiutil that enables it to mpsutil. It's going to be sending a raw</div>
<div>command to the device. It shouldn't be too hard....</div>
<div><br>
</div>
<div>Warner</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Wed, Oct 11, 2023 at 6:02 AM <a href="mailto:azathanai@icloud.com">
azathanai@icloud.com</a> &lt;<a href="mailto:azathanai@icloud.com">azathanai@icloud.com</a>&gt; wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div class="x_msg6490224784667056540">
<div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hey Warner,</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
the box is very featureLESS (an old Xyratex HS-1235T box, as far as I researched it).&nbsp;</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<a href="https://wiki.london.hackspace.org.uk/w/images/b/b2/HS-1235T-ATX_Quick_Reference_Sheet.pdf" id="x_m_6490224784667056540OWAd4dc15b8-bba5-56c4-c5d4-b428c3cd49ed" target="_blank">T2029_QR v1.3.ai (hackspace.org.uk)</a><br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<a href="https://www.reddit.com/r/homelab/comments/8loge6/xyratex_094403703_motherboard_mystery_solved/" id="x_m_6490224784667056540LPlnkOWA36414efc-3743-e518-0991-1356629114c5" target="_blank">(5) Xyratex 0944037-03 Motherboard Mystery SOLVED : homelab (reddit.com)</a><br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Through the POST process and the BIOS there is no option to get into the SAS controller and enable its BIOS. I would love to install FreeBSD directly on the drives and not to deal with the flash card, but I suppose the lack of controller BIOS is the reason
 the box comes with reader and card directly.</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
As I'm new to FreeBSD and ZFS I'm struggling to set up the partitioning. I was thinking to:</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<ol>
<li style="list-style-type:&quot;1. &quot;"><span>Partition the entire FLASH card (4gigs) on MBR with freebsd-ufs and mount /boot. As I've read there should not be ESP (efi) partition as this is flash, thus MBR, which is &quot;legacy&quot; and without ESP.</span></li><li style="list-style-type:&quot;2. &quot;"><span>Partition one of the drives (3tera) with GPT, freebsd-zfs stripe and mount /</span></li><li style="list-style-type:&quot;3. &quot;"><span>When the system is up and&nbsp;running, add the rest of the drives (11 more) to the pool and change the pool to RAIDZ2. However I'm not sure this is possible, to change the type of the pool without erasing everything. Logical
 thinking says it is not possible.</span></li><li style="list-style-type:&quot;4. &quot;">After all of these comes the mounting of filesystems and creating fstab to continue the installation, which is full darkness at the moment, as I'm still struggling with the initial start and not have read anything on that.</li></ol>
<div><br>
</div>
<div><span>All of these should be done in shell with the gpart utility during install and I cannot figure out, how to make points 2 and 3 on one go having directly the RAIDZ2.</span></div>
<div><span><br>
</span></div>
<div><span><br>
</span></div>
</div>
<div id="x_m_6490224784667056540appendonsend"></div>
<hr style="display:inline-block; width:98%">
<div id="x_m_6490224784667056540divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b>
<a href="mailto:owner-freebsd-hackers@freebsd.org" target="_blank">owner-freebsd-hackers@freebsd.org</a> &lt;<a href="mailto:owner-freebsd-hackers@freebsd.org" target="_blank">owner-freebsd-hackers@freebsd.org</a>&gt; on behalf of Warner Losh &lt;<a href="mailto:imp@bsdimp.com" target="_blank">imp@bsdimp.com</a>&gt;<br>
<b>Sent:</b> Wednesday, October 11, 2023 00:20<br>
<b>To:</b> <a href="mailto:azathanai@icloud.com" target="_blank">azathanai@icloud.com</a> &lt;<a href="mailto:azathanai@icloud.com" target="_blank">azathanai@icloud.com</a>&gt;<br>
<b>Cc:</b> freebsd-hackers@FreeBSD.org &lt;<a href="mailto:freebsd-hackers@freebsd.org" target="_blank">freebsd-hackers@freebsd.org</a>&gt;<br>
<b>Subject:</b> Re: Question of installing over SAS controller and USB flash</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">
<div dir="ltr"><br>
</div>
<br>
<div>
<div dir="ltr">On Tue, Oct 10, 2023 at 2:36 PM <a href="mailto:azathanai@icloud.com" target="_blank">
azathanai@icloud.com</a> &lt;<a href="mailto:azathanai@icloud.com" target="_blank">azathanai@icloud.com</a>&gt; wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi all,</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
a newbie in FreeBSD here trying to install a RAIDZ2 on a server with mps SAS controller with drives which are not visible in the boot order in BIOS.</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
So, I cannot install directly on the drives, despite that the installer &quot;sees&quot; them, because the BIOS does not see the controller and its drives as option.</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>Have you enabled the BIOS on the mps card itself? Otherwise it won't install a BIOS fragment to run at boot, and the drives won't be seen.</div>
<div><br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
On the other hand, I have a card reader with a flash card on it (4gigs) from which I can boot and where I can have my /boot partition with the kernel.&nbsp;</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I've a lot of questions and I still cannot find the answers to most of them, despite going through the handbook, the boot process explanation, the installation process handbook and a lot of more reading.</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<ul>
<li style="list-style-type:&quot;- &quot;"><span>How should the flash card be partitioned and with what mountpoints? The server is BIOS capable.<br>
</span></li><li style="list-style-type:&quot;- &quot;"><span>How should the rest of the drives be partitioned with ZFS and the mountpoints? The standard configuration from the installer on RAIDZ2 is good for me.</span></li></ul>
<div><span>I've experience with Linux but is not helping a lot here. The setup looks quite different .... probably because of the ZFS.</span></div>
<div><span><br>
</span></div>
<div><span>Any help, links, ideas and comments will be much appreciated!</span></div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>That's a workaround, but you should be able to enable the BIOS part of the mps/mpr cards and boot off them. I've done that before.</div>
<div><br>
</div>
<div>Warner</div>
<div>&nbsp;</div>
<blockquote style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<div><span><br>
</span></div>
<div><span>Cyberly yours,</span></div>
<div><span>deragoth</span></div>
<div><span><br>
</span></div>
<div><span><br>
</span></div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</body>
</html>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AM6PR02MB4471C1516952D8DCE423C9E7A5D5A>