Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 2018 09:48:38 +0100 (CET)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        FreeBSD questions <freebsd-questions@freebsd.org>
Subject:   Re: Dualboot and ZFS
Message-ID:  <alpine.BSF.2.21.1801180938440.69908@mail.fig.ol.no>
In-Reply-To: <20180118051423.GA94227@admin.sibptus.transneft.ru>
References:  <20180115051308.GA45168@admin.sibptus.transneft.ru> <VI1PR02MB12007D071EA5398373D2189CF6EB0@VI1PR02MB1200.eurprd02.prod.outlook.com> <20180115125241.GB60956@admin.sibptus.transneft.ru> <VI1PR02MB1200C7F0066F361E60A6CBEDF6EB0@VI1PR02MB1200.eurprd02.prod.outlook.com> <20180115144747.GA65526@admin.sibptus.transneft.ru> <VI1PR02MB120018D174817F8FFB2981D5F6EB0@VI1PR02MB1200.eurprd02.prod.outlook.com> <20180115151526.GA66342@admin.sibptus.transneft.ru> <a7920f859b666cff48f4f73ee1b2f954@dweimer.net> <20180116034929.GB89443@admin.sibptus.transneft.ru> <alpine.BSF.2.21.1801160934560.69908@mail.fig.ol.no> <20180118051423.GA94227@admin.sibptus.transneft.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 18 Jan 2018 12:14+0700, Victor Sudakov wrote:

> Trond Endrestøl wrote:
> > [script]# sysctl vfs.zfs.min_auto_ashift=12
> > vfs.zfs.min_auto_ashift: 9 -> 12
> 
> Why do you change this?
> 
> "Min ashift used when creating new top-level vdevs", hmm. You probably
> know something I don't. 
> [dd]

If you know you will be using 4Kn (AF) drives now or in the near 
future, you might as well prepare ZFS. Otherwise leave ashift at 9.

> > !!! Write /boot/zfsboot as two separate pieces to /dev/ada0s3{,a} !!!
> > 
> > [script]# dd if=/boot/zfsboot of=/tmp/zfsboot1 count=1
> > 1+0 records in
> > 1+0 records out
> > 512 bytes transferred in 0.000383 secs (1337758 bytes/sec)
> > [script]# gpart bootcode -b /tmp/zfsboot1 /dev/ada0s3
> > bootcode written to ada0s3
> 
> Why do you need this trick with /tmp/zfsboot1 ? Why not
> 
> sysctl kern.geom.debugflags=0x10
> dd if=/boot/zfsboot of=/dev/ada0s3 count=1 
> 
> The example in zfsboot(8) is even weirder. They create a BSD label
> within an MBR slice, but never any partitions within. Why do they do
> it like that? Quoting the manual page:
> 
>          gpart create -s BSD ada0s1
>          gpart bootcode -b /boot/boot0 ada0
>          gpart set -a active -i 1 ada0
>          dd if=/boot/zfsboot of=/dev/ada0s1 count=1
>          dd if=/boot/zfsboot of=/dev/ada0s1 iseek=1 oseek=1024
> 
> > [script]# dd if=/boot/zfsboot of=/dev/ada0s3a skip=1 seek=1024
> > 128+0 records in
> > 128+0 records out
> > 65536 bytes transferred in 0.043591 secs (1503439 bytes/sec)
> 
> Should the "of=" target here be ada0s3a or just ada0s3 ?

I followed step 10 of 
https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition.
I'm sure you can optimize away the drudgery.

The key is to place some of the bootcode in the boot block of the 
disklabel and the remainder in the boot block of the zpool.

-- 
Trond.
From owner-freebsd-questions@freebsd.org  Thu Jan 18 10:41:31 2018
Return-Path: <owner-freebsd-questions@freebsd.org>
Delivered-To: freebsd-questions@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 255B3EC41DB
 for <freebsd-questions@mailman.ysv.freebsd.org>;
 Thu, 18 Jan 2018 10:41:31 +0000 (UTC)
 (envelope-from young.crickmar@hotmail.com)
Received: from EUR03-DB5-obe.outbound.protection.outlook.com
 (mail-oln040092071025.outbound.protection.outlook.com [40.92.71.25])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits))
 (Client CN "mail.protection.outlook.com",
 Issuer "Microsoft IT TLS CA 4" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 971E22221
 for <freebsd-questions@freebsd.org>; Thu, 18 Jan 2018 10:41:29 +0000 (UTC)
 (envelope-from young.crickmar@hotmail.com)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
 s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version;
 bh=AKJ6tMV92ZzWZg1yqaur+kEVuMBIz7UFGZbx1cukU88=;
 b=rCTYeYkxyrpnWBd58MStkbNsGyX7he1osYMh/uZc7rC1mCtYr5e1lFaEtSJ/KE57sLvzKPqGfgmtyNPp04gwiOlzJxgQR/6OsCKVnWKgnGVVS26JfC7sMZVK3Fz7uL+pXJZQvn2OHFMLK7v1fGT69D1yerY2+yZUJZBqDFozD2lNmyefKmQRIVzOHk/wb7ljaNwjHi750J68Q2KnATKSUgsbddE7pt6Y4WxfTFVs/EHLpr1vb6QbAmKFoB/zqLpa71zcFp/hiC99andkdlReOn8V7bwGxccg5V1ggbBkuOoQfTksCCH8kE5Y3d71DhgIYZwHRSm6o/erfh6tKYNv3Q==
Received: from AM5EUR03FT021.eop-EUR03.prod.protection.outlook.com
 (10.152.16.54) by AM5EUR03HT112.eop-EUR03.prod.protection.outlook.com
 (10.152.17.70) with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.345.19; Thu, 18
 Jan 2018 10:41:26 +0000
Received: from LNXP265MB0361.GBRP265.PROD.OUTLOOK.COM (10.152.16.57) by
 AM5EUR03FT021.mail.protection.outlook.com (10.152.16.105) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id
 15.20.345.19 via Frontend Transport; Thu, 18 Jan 2018 10:41:27 +0000
Received: from LNXP265MB0361.GBRP265.PROD.OUTLOOK.COM
 ([fe80::d8a6:3536:7f73:ac3f]) by LNXP265MB0361.GBRP265.PROD.OUTLOOK.COM
 ([fe80::d8a6:3536:7f73:ac3f%13]) with mapi id 15.20.0407.012; Thu, 18 Jan
 2018 10:41:26 +0000
From: pss consulting llc pilar sarabia <young.crickmar@hotmail.com>
To: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject: inbox
Thread-Topic: inbox
Thread-Index: AQHTkEjkhunQOHUVUUG8XFB0KITdiQ==
Date: Thu, 18 Jan 2018 10:41:26 +0000
Message-ID: <LNXP265MB0361DE357214CB3D956B69F285E80@LNXP265MB0361.GBRP265.PROD.OUTLOOK.COM>
Reply-To: "pss.consultllc@outlook.com" <pss.consultllc@outlook.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-incomingtopheadermarker: OriginalChecksum:E2CD199DC8C9732EFA5BC9EAED5830FE789DEBB4FD85430C88F76DB7BF4B8C27;
 UpperCasedChecksum:F6E377D16DEFDDF647864D3DA0902C0F642900819D2F73C4805AC6006F9C7829;
 SizeAsReceived:7109; Count:47
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [aycCRCbzWXH0SzKcMNAoaz7S8BpfnjAf]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; AM5EUR03HT112;
 6:PSYcvHyJOY7i0u8Lw36Ugr8jbqxgEXMqCU7HkhSLQd/SM934CXeUeFPblTFLxltQ9bqgXvDTqire6zfpfC/eoM/8GvyBlsvV/+JzXl9nY4JJgU5Inu6w4bRHLcg0woDMcYDKORI71FhuxVRfq+mnzl4rN1TK3DfLNnaacLM8TUBmXVArdSldNdWBJyzJD/Z4jdtOcTukBgrZKOAcPvFCUGhCGKsxW9nz3Sm97m/6Ug7uWbzxD8IBup01XUS1cUTloSoA4DbZut73fvNYJD3AIr0yVKwqoF+ENioOKRPpOgwWD9xVNO0F2MceoEIrKD26HmTmxvNLn7McteWDJJfYTP4CRqsorXeFM+J9pEKe5Q0=;
 5:VDHqijDUDRtktp+FvICmdG28jaOEDpLCLx4yD0EqV65kbu5YemfWRBCEZKTcoXdqtn8RUDI5Kaz3Dk74E3jEo3djSmMG6hm7ELpCLIiO5VUKA+5N/kFXA99uZTm8S3LdRv16a39Fkzq4zhV7jSUG6mRuXA2FEKOM/c4Eh/Q/oMo=;
 24:PDid6uF7WFFdpjNLzNR8sY9cUm8p+uWEjPSyMZpK61hFBY0l5kWSIrQ3mubgmT2D0A3a+8jSlZ+qdfHdvMrSthKVK7/ch2b33sfERbaZesw=;
 7:93/dDW3vjmXUB1KnJsNuFgvn48Bi8THQZCV7dRIhsF+qT8LvXev4drSEbTQP3en6u0fyXpe1zS7NspQ495AeSSwe5C5Wq3H+lVZ0dptp5vjewR1dV/8zQhHo/e2ylDi7DGKvrBDdbnUn48PQMJUk2HbUJeOS7oe0sluujrUBalMkk/IBJv9g72XKM3PVTmRT0prZK02OrSD2hE6A5rGF6QjWdl7sppMzJwR7N9D6nBZrxqc2T4TlKPDa0FfFzedO
x-incomingheadercount: 47
x-eopattributedmessage: 0
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
 RULEID:(7020095)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125374)(1701031045);
 SRVR:AM5EUR03HT112; 
x-ms-traffictypediagnostic: AM5EUR03HT112:
x-ms-office365-filtering-correlation-id: e8022637-eeec-41b5-6019-08d55e600676
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444000031);
 SRVR:AM5EUR03HT112; BCL:0; PCL:0; RULEID:(100000803101)(100110400095);
 SRVR:AM5EUR03HT112; 
x-forefront-prvs: 05568D1FF7
x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(98901004); DIR:OUT;
 SFP:1901; SCL:1; SRVR:AM5EUR03HT112; H:LNXP265MB0361.GBRP265.PROD.OUTLOOK.COM;
 FPR:; SPF:None; LANG:; 
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-Network-Message-Id: e8022637-eeec-41b5-6019-08d55e600676
X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2018 10:41:26.7960 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR03HT112
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.25
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.25
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Jan 2018 10:41:31 -0000

Dear Sales ,

I am from Pilar Sarabia Safety Consulting LLC, I write to you as our

firm is in need of suppliers capable of fulfilling our often office and

project supplies.

I will be needed the following products Quotation

Seagate - Backup Plus Slim 1TB External USB 3.0/2.0 Portable Hard Drive
Model: STDR1000100

Western Digital - WD 1TB My Passport USB 3.0 Secure Portable Hard Drive

(Black)
Model: MFR # WDBYNN0010BBK-WESN

HP 1TB, Internal,7200RPM,2.5"

HP 8GB PC4-2133P-R RAM Memory Kit

intel core i7 processor


HP 16GB PC4-2133P-R RAM Memory Kit

I will look out for your prompt response Advising me Availability,Prices an=
d

Lead time for shipping.



For: Pilar Sarabia Safety Consulting LLC.

Regards,

Mike
Procurements





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