From owner-freebsd-fs@FreeBSD.ORG Wed Jul 3 11:56:21 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6F96D725 for ; Wed, 3 Jul 2013 11:56:21 +0000 (UTC) (envelope-from Ivailo.Tanusheff@skrill.com) Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe001.messaging.microsoft.com [216.32.181.181]) by mx1.freebsd.org (Postfix) with ESMTP id 1E5D312D3 for ; Wed, 3 Jul 2013 11:56:20 +0000 (UTC) Received: from mail1-ch1-R.bigfish.com (10.43.68.233) by CH1EHSOBE013.bigfish.com (10.43.70.63) with Microsoft SMTP Server id 14.1.225.22; Wed, 3 Jul 2013 11:56:19 +0000 Received: from mail1-ch1 (localhost [127.0.0.1]) by mail1-ch1-R.bigfish.com (Postfix) with ESMTP id 9B2BE402B1; Wed, 3 Jul 2013 11:56:19 +0000 (UTC) X-Forefront-Antispam-Report: CIP:157.56.249.213; KIP:(null); UIP:(null); IPV:NLI; H:AM2PRD0710HT004.eurprd07.prod.outlook.com; RD:none; EFVD:NLI X-SpamScore: 20 X-BigFish: PS20(zz9371I542I168aJd88dizz1f42h1ee6h1de0h1fdah2073h1202h1e76h1d1ah1d2ah1fc6hzz17326ah8275dhz2fh2a8h668h839h944hd24hf0ah1220h1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh162dh1631h1758h18e1h1946h19b5h19ceh1ad9h1b0ah1d07h1d0ch1d2eh1d3fh1de9h1dfeh1dffh1e1dh9a9j1594im1155h) Received-SPF: pass (mail1-ch1: domain of skrill.com designates 157.56.249.213 as permitted sender) client-ip=157.56.249.213; envelope-from=Ivailo.Tanusheff@skrill.com; helo=AM2PRD0710HT004.eurprd07.prod.outlook.com ; .outlook.com ; X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(189002)(199002)(57704003)(13464003)(377454003)(56776001)(31966008)(76576001)(74316001)(16406001)(54356001)(33646001)(59766001)(76796001)(74706001)(77982001)(63696002)(65816001)(66066001)(79102001)(80022001)(74876001)(76786001)(77096001)(47446002)(74662001)(81542001)(49866001)(46102001)(4396001)(83072001)(81342001)(69226001)(54316002)(74502001)(47976001)(74366001)(50986001)(53806001)(51856001)(76482001)(56816003)(15202345003)(47736001)(24736002)(554374003); DIR:OUT; SFP:; SCL:1; SRVR:DBXPR07MB063; H:DBXPR07MB064.eurprd07.prod.outlook.com; RD:InfoNoRecords; MX:1; A:1; LANG:en; Received: from mail1-ch1 (localhost.localdomain [127.0.0.1]) by mail1-ch1 (MessageSwitch) id 1372852577913855_1468; Wed, 3 Jul 2013 11:56:17 +0000 (UTC) Received: from CH1EHSMHS027.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.242]) by mail1-ch1.bigfish.com (Postfix) with ESMTP id DCD2B1E005C; Wed, 3 Jul 2013 11:56:17 +0000 (UTC) Received: from AM2PRD0710HT004.eurprd07.prod.outlook.com (157.56.249.213) by CH1EHSMHS027.bigfish.com (10.43.70.27) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 3 Jul 2013 11:56:17 +0000 Received: from DBXPR07MB063.eurprd07.prod.outlook.com (10.242.147.22) by AM2PRD0710HT004.eurprd07.prod.outlook.com (10.255.165.39) with Microsoft SMTP Server (TLS) id 14.16.324.0; Wed, 3 Jul 2013 11:56:08 +0000 Received: from DBXPR07MB064.eurprd07.prod.outlook.com (10.242.147.24) by DBXPR07MB063.eurprd07.prod.outlook.com (10.242.147.22) with Microsoft SMTP Server (TLS) id 15.0.702.21; Wed, 3 Jul 2013 11:56:06 +0000 Received: from DBXPR07MB064.eurprd07.prod.outlook.com ([169.254.7.13]) by DBXPR07MB064.eurprd07.prod.outlook.com ([169.254.7.13]) with mapi id 15.00.0702.005; Wed, 3 Jul 2013 11:56:06 +0000 From: Ivailo Tanusheff To: Alexandr , "freebsd-fs@freebsd.org" Subject: RE: Whole disk ZFS or -a4k partition Thread-Topic: Whole disk ZFS or -a4k partition Thread-Index: AQHOd87nvMtnsaGDhUiDqo7kXsjtiplS1DuQ Date: Wed, 3 Jul 2013 11:56:05 +0000 Message-ID: <8afaecbe0f764963b57fac7743f483bc@DBXPR07MB064.eurprd07.prod.outlook.com> References: <51D3ED4F.5030102@shurik.kiev.ua> In-Reply-To: <51D3ED4F.5030102@shurik.kiev.ua> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [217.18.249.148] x-forefront-prvs: 0896BFCE6C Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: skrill.com X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jul 2013 11:56:21 -0000 Hi, I can give you my point of view: Which zpool do you refer to? Still I would align both pools - on SSD becaus= e you will have a boot code anyway.=20 What I would do on SSD is to use: gpart add -b 34 -s 94 -t freebsd-boot The second thing I would get in mind Is the swap - I would not use a ZFS fo= r that, had a lot of issues with similar setup and taking into account that= ZFS uses a lot of RAM you may become to situation when you want to swap da= ta to use RAM for ZFS functionality, related to the swap volume on the ZFS = subsystem, which is a deadlock scenario. So I would advise you to create swap partition on the SSD and use this part= ition in the system. gpart add -t freebsd-swap -s 4G -l ssd-swap gpart add -t freebsd-zfs -l ssd-zfs This will solve you the alignment, swap issues and etc. About the second drive - there are two issues: may you need to replace the = disk and will you need additional swap in some case. Just because future is unsure I would recommend to again use 4K align, to c= reate a similar SWAP partition and DO NOT use it on the system and use gnop= for the 4K sizing: gnop create -S 4096 /dev/gpt/disk0 zpool create zroot /dev/gpt/disk0.nop zpool export zroot gnop destroy /dev/gpt/disk0.nop zpool import zroot This way you will solve: - the 4K issues, if you have any; - the replacement issues, if you get a disk with smaller sector count; - in case you have some swap issues/needs, you will be able to issue swapon= /dev/gpt/... and temporary increasethe swap, but not using this all time y= ou will not decrease performance of the system in normal days. Best regards, Ivailo Tanusheff -----Original Message----- From: owner-freebsd-fs@freebsd.org [mailto:owner-freebsd-fs@freebsd.org] On= Behalf Of Alexandr Sent: Wednesday, July 03, 2013 12:22 PM To: freebsd-fs@freebsd.org Subject: Whole disk ZFS or -a4k partition Hello, community! I have a laptop with 2 disks - mSATA 32Gb SSD and 500Gb HDD. I plan to use = SSD as whole disk ZFS pool with root and /usr partitions and 500Gb SATA as = ZFS pool for /home and /var. My questions are: 1. Do I need to create a 4k aligned partition on HDD for zfs pool or best t= o use a whole disk? 2. Where the best place for swap - ssd or hdd? SSD is much faster, but with= limited write life cycle. _______________________________________________ freebsd-fs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-fs To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"