From owner-freebsd-questions@freebsd.org Thu Aug 17 22:48:50 2017 Return-Path: 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 9161EDDCA13 for ; Thu, 17 Aug 2017 22:48:50 +0000 (UTC) (envelope-from shamim.shahriar@gmail.com) Received: from mail-wr0-x22a.google.com (mail-wr0-x22a.google.com [IPv6:2a00:1450:400c:c0c::22a]) (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 2502668120 for ; Thu, 17 Aug 2017 22:48:50 +0000 (UTC) (envelope-from shamim.shahriar@gmail.com) Received: by mail-wr0-x22a.google.com with SMTP id 49so47234383wrw.2 for ; Thu, 17 Aug 2017 15:48:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=s3dtk3Lml5R626dfYYcmpeQpqKTpEXDXu5SLxIXpggY=; b=ZcW2PotQse1nWlZVN17oWNVmMHbRbni+aRHix3hRWBNs59pLLGYDn2bbt3lfnrAw1h DBp28fpyNu+Ae31SjZUABNyebxl6HIyyU8RwOn4spuDByg3HzwQcjwpmkjZz7bpu89OO GI26Ng+YfCc6JQScwTv7DHEQooSxzRGv9bmI8n5nMp4lXePJ4HSqiD/BGkC0cbNeEB6o luYTqCBi+QysVNsAQ9ODVcTID1KYpI5a+TdMyz4pSsZ6WCvXA9Vm+Rk14lTmTktVCXDh GyJCVgCH68J5eJRhLKY61aDrW+ebbSLjnwdTucymncLvc5a5OkasrvAGvXvpQ9zcAOy+ 5hxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=s3dtk3Lml5R626dfYYcmpeQpqKTpEXDXu5SLxIXpggY=; b=FG7KBNiFVa7SRwgH5p5CZgR6Av2w6v3DbMZ+m6PI8ZfxkTAotBBS2Nl3OSiS/LzKzp 6DDu4X+O+uZcwI9KZpNnMGaWd1ig6i/5ID6Ben0C2HfNfQozFAqnjl+srUnP0gZShy3d WaN0UpI0ji8I3YY8rntPjT4np7dXy37UWr1gUI/N2fpYwYNGXL+SOh9etMg13tjYmYfh vkYTsYL4oA8NvyXCfmZsaeqKEhcstM8aFArS15zeJ9tw5TvCvMvDCBov/n5ZHE9hWD7c pWTsb1Vi98DXNw6qSvonWmfCS/Or4oBlyMSbbOtqSHuCIXZKkAnE72B9j6oWKbvifUuY Zz/Q== X-Gm-Message-State: AHYfb5jbffz1ELtU9NzHoECJU7zF6fbNDflDY76PCR+Jf71wBLjhJje6 8mfXGXEZrRS5r2af X-Received: by 10.28.47.84 with SMTP id v81mr258576wmv.57.1503010127671; Thu, 17 Aug 2017 15:48:47 -0700 (PDT) Received: from osk.homenet ([2001:470:196e:17:f2de:f1ff:fed1:783c]) by smtp.googlemail.com with ESMTPSA id w16sm7915780wrc.84.2017.08.17.15.48.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Aug 2017 15:48:46 -0700 (PDT) To: freebsd-questions@freebsd.org From: Shamim Shahriar Subject: using gmirror and zfs mirror on the same box -- thoughts? Message-ID: <012a6d18-7f67-9855-1740-479329bf9a65@gmail.com> Date: Thu, 17 Aug 2017 23:48:45 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Aug 2017 22:48:50 -0000 Good evening all, hope everyone is well. I have a strange requirement for a particular system that will sit at a remote location. I intend to use mirror, but at the same time encrypt the system. Boot time encryption is not an option -- I need the system to boot up normally (with network and ssh running, so I can do the rest remotely) and do not wish to risk the normal bootup due to some issues with either geli or other matters (fsck after a power out comes to mind). I would like to have the OS part mirrored as well the data part. As for the data part -- I definitely wish to use zfs with encryption. Encrypting OS is not necessary (but if can be done safely, ideas are welcome) Now, I can use multiple zpool, but then all of them will try to be active/functional when the machine boots. If I intend to encrypt the data pool (geli), then it needs to wait until the encryption part is taken care of. So, I am thinking (probably in a very wrong way, corrections welcome), if I get the OS part gmirror-ed, then that comes up with the OS, I have network and ssh to get into the system, and then manually run the encryption and zfs part. The system has 8GB RAM, which I am assuming should be good enough for geli, gmirror and zfs parts. If anyone has any better suggestion/scenerio to share, that is greatly welcome. If you think this might actually be disfunctional, please share your thoughts on that (preferably with explanation as to why this is a bad idea). if you have any suggestion that you think is a much better option, please do feel free to share. Best regards