From nobody Wed Oct 18 06:14:33 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S9LCz09k9z4xZk6 for ; Wed, 18 Oct 2023 06:14:39 +0000 (UTC) (envelope-from azathanai@icloud.com) Received: from qs51p00im-qukt01072102.me.com (qs51p00im-qukt01072102.me.com [17.57.155.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4S9LCy19RQz3Nqy for ; Wed, 18 Oct 2023 06:14:38 +0000 (UTC) (envelope-from azathanai@icloud.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=icloud.com header.s=1a1hai header.b=GqePUpc5; spf=pass (mx1.freebsd.org: domain of azathanai@icloud.com designates 17.57.155.11 as permitted sender) smtp.mailfrom=azathanai@icloud.com; dmarc=pass (policy=quarantine) header.from=icloud.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1697609677; bh=KYbPrd2Eu31THnrSH9xg4kBDdZorWcjXnwo0RHrm0Uo=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=GqePUpc5L7fOhBSyMvA2qeLNsRkEsBUiJqVzIEkkXPS13W7dd7V2k54calZKg5Yan YQKb7wiRVw2pQx2vXPLc3umxI+HFJIw3rMhqhg1RTwQwu/IcrdNzzEmtOuBRjrKUG5 B3ZFADc+voDDqcumIMTWRHgzYbgGM7L1FflWjhGaBrGeDkxIAbDd720RTxxT42l0LU 2Li0kX9UxyohuqeE66qMA6m2PVdGj+B+00zB6ZA/lXinIdIISoDSeQnd7ZTRN0rXg1 LzpprTPPVXsRuW8M7O869r5PBW3ySCGJUv6LLZESAlMFWdNpGs5jEtgjRKMLSF5NvT /oWdn0BgQhfsw== Received: from AM6PR02MB4471.eurprd02.prod.outlook.com (qs51p00im-dlb-asmtp-mailmevip.me.com [17.57.155.28]) by qs51p00im-qukt01072102.me.com (Postfix) with ESMTPSA id 0B38C3401BF; Wed, 18 Oct 2023 06:14:35 +0000 (UTC) From: "azathanai@icloud.com" To: Miroslav Lachman <000.fbsd@quip.cz> CC: "freebsd-hackers@FreeBSD.org" Subject: Re: Question of installing over SAS controller and USB flash Thread-Topic: Question of installing over SAS controller and USB flash Thread-Index: AQHZ+7gox8b2WXJ7x0SXInCUTrHiVLBDh8MAgADxNbGAACMPAIAEK6+c X-MS-Exchange-MessageSentRepresentingType: 1 Date: Wed, 18 Oct 2023 06:14:33 +0000 Message-ID: References: <84c06802-a6d9-fa5d-8dab-9ebe18074321@quip.cz> In-Reply-To: <84c06802-a6d9-fa5d-8dab-9ebe18074321@quip.cz> Accept-Language: en-US, bg-BG Content-Language: en-US X-MS-Has-Attach: X-MS-Exchange-Organization-SCL: -1 X-MS-TNEF-Correlator: X-MS-Exchange-Organization-RecordReviewCfmType: 0 msip_labels: Content-Type: multipart/alternative; boundary="_000_AM6PR02MB4471AD796A475A88421738B9A5D1AAM6PR02MB4471eurp_" List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: -7GD-ZdXoAreS9RZbuCB0t_ctcyWcfvD X-Proofpoint-GUID: -7GD-ZdXoAreS9RZbuCB0t_ctcyWcfvD X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.138,18.0.790,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2022-01-12=5F02:2020-02-14=5F02,2022-01-12=5F02,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 mlxlogscore=999 adultscore=0 phishscore=0 mlxscore=0 malwarescore=0 bulkscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2310180052 X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.20 / 15.00]; WHITELIST_SPF_DKIM(-3.00)[icloud.com:d:+,icloud.com:s:+]; FROM_DN_EQ_ADDR(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[icloud.com,quarantine]; R_SPF_ALLOW(-0.20)[+ip4:17.57.155.0/24:c]; R_DKIM_ALLOW(-0.20)[icloud.com:s=1a1hai]; RWL_MAILSPIKE_VERYGOOD(-0.20)[17.57.155.11:from]; ONCE_RECEIVED(0.10)[]; RCVD_IN_DNSWL_LOW(-0.10)[17.57.155.11:from]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_EQ_ADDR_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:714, ipnet:17.57.155.0/24, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_FROM(0.00)[icloud.com]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DWL_DNSWL_NONE(0.00)[icloud.com:dkim]; DKIM_TRACE(0.00)[icloud.com:+]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_ENVFROM(0.00)[icloud.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4S9LCy19RQz3Nqy --_000_AM6PR02MB4471AD796A475A88421738B9A5D1AAM6PR02MB4471eurp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hey Miroslav, thank you for the help. I've tried with the first part of your suggestion - gpart bootcode, but tha= t was not enough. I suppose I do need the /boot on the flash card, as I've = installed Linux and put the /boot "folder" on the flash and everything was = working flawlessly. I'll try your suggestion with the memstick. Just a question there. Do I need to make the "gpart bootcode" part if I'm creating the memstick, o= r the memstick has everything needed to boot from it, i.e. it has the bootc= odes? Thanks again for your help and willingness to waste your time on a noob que= stions! Cyberly yours, Nikolay Balov ________________________________ From: owner-freebsd-hackers@freebsd.org = on behalf of Miroslav Lachman <000.fbsd@quip.cz> Sent: Wednesday, October 11, 2023 16:49 To: azathanai@icloud.com ; Warner Losh Cc: freebsd-hackers@FreeBSD.org Subject: Re: Question of installing over SAS controller and USB flash On 11/10/2023 14:02, 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) > > (5) Xyratex 0944037-03 Motherboard Mystery SOLVED : homelab (reddit.com) > > > 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. [..] This depends on at what stage the computer starts to see the disk behind the SAS controller. I had an old HP server that only saw one disk out of four in the BIOS, so it couldn't boot from RAIDZ, but it was enough to make a 10GB partition on each disk as a 4 way ZFS mirror, boot from that and use the rest of each disk for the main RAIDZ storage (4x 8TB). Maybe it would have been enough to use a USB flash drive for the freebsd-boot partition in GPT scheme and then continue boot from the disks on the SAS controller. gpart create -s GPT da0 gpart bootcode -b /boot/pmbr da0 gpart add -b 40 -s 512 -t freebsd-boot da0 gpart bootcode -p /boot/zfsgptboot -i 1 da0 As long as the computer boots from the installer CD, FreeBSD with RAIDZ can be installed on the disks behind the SAS controller without any modification, only the USB flash drive must provide the boot. If the USB flash drive must also contain a UFS /boot partition, then copy an image that can be downloaded from the web as a "mini-memstick" to the USB flash drive https://www.freebsd.org/releases/13.2R/announce/ (use dd according to the instructions) Or again, create a complete installation from the FreeBSD installer on the USB flash drive. But the installation to big drives with RAIDZ should be done normally from the FreeBSD installer. No modifications needed. Kind regards Miroslav Lachman --_000_AM6PR02MB4471AD796A475A88421738B9A5D1AAM6PR02MB4471eurp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hey Miroslav,
thank you for the help.
I've tried with the first part of your suggestion - gpart bootcode, but tha= t was not enough. I suppose I do need the /boot on the flash card, as I've = installed Linux and put the /boot "folder" on the flash and every= thing was working flawlessly.
I'll try your suggestion with the memstick. Just a question there.
Do I need to make the "gpart bootcode" part if I'm creating the m= emstick, or the memstick has everything needed to boot from it, i.e. it has= the bootcodes?

Thanks again for your help and willingness to waste your tim= e on a noob questions!

Cyberly yours,
Nikolay Balov



From: owner-= freebsd-hackers@freebsd.org <owner-freebsd-hackers@freebsd.org> on be= half of Miroslav Lachman <000.fbsd@quip.cz>
Sent: Wednesday, October 11, 2023 16:49
To: azathanai@icloud.com <azathanai@icloud.com>; Warner L= osh <imp@bsdimp.com>
Cc: freebsd-hackers@FreeBSD.org <freebsd-hackers@FreeBSD.org= >
Subject: Re: Question of installing over SAS controller and USB= flash
 
On 11/10/2023 14:02, azathanai@icloud= .com wrote:
> Hey Warner,
> the box is very featureLESS (an old Xyratex HS-1235T box, as far as I<= br> > researched it).
> T2029_QR v1.3.ai (hackspace.org.uk)
> <https://wiki.lond= on.hackspace.org.uk/w/images/b/b2/HS-1235T-ATX_Quick_Reference_Sheet.pdf>
> (5) Xyratex 0944037-03 Motherboard Mystery SOLVED : homelab (reddit.co= m)
> <
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 t= he
> 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.

[..]

This depends on at what stage the computer starts to see the disk behind the SAS controller. I had an old HP server that only saw one disk out of four in the BIOS, so it couldn't boot from RAIDZ, but it was enough to
make a 10GB partition on each disk as a 4 way ZFS mirror, boot from that and use the rest of each disk for the main RAIDZ storage (4x 8TB).

Maybe it would have been enough to use a USB flash drive for the
freebsd-boot partition in GPT scheme and then continue boot from the
disks on the SAS controller.

gpart create -s GPT da0
gpart bootcode -b /boot/pmbr da0
gpart add -b 40 -s 512 -t freebsd-boot da0
gpart bootcode -p /boot/zfsgptboot -i 1 da0

As long as the computer boots from the installer CD, FreeBSD with RAIDZ
can be installed on the disks behind the SAS controller without any
modification, only the USB flash drive must provide the boot.

If the USB flash drive must also contain a UFS /boot partition, then
copy an image that can be downloaded from the web as a "mini-memstick&= quot;
to the USB flash drive
https://www.freebsd.org/releases/13.2R/announce/ (use dd a= ccording to
the instructions)
Or again, create a complete installation from the FreeBSD installer on
the USB flash drive.

But the installation to big drives with RAIDZ should be done normally
from the FreeBSD installer. No modifications needed.

Kind regards
Miroslav Lachman


--_000_AM6PR02MB4471AD796A475A88421738B9A5D1AAM6PR02MB4471eurp_--