大网数据广告活动
服务器运维问答

How to plan your hard drives in a ZFS pool?

· 52CE 我爱测

So I'm planning my hard drives for ZFS on ubuntu. One point I'm very confused is the number of hard drives that are needed to create a zpool. Say I am creating a raidz1 with 5 hard drives. The number of hard drives required is ac…

问题原文

原帖链接 · tipsywacky · CC BY-SA 3.0

So I'm planning my hard drives for ZFS on ubuntu. One point I'm very confused is the number of hard drives that are needed to create a zpool.

Say I am creating a raidz1 with 5 hard drives. The number of hard drives required is actually 6 because I need 1 to run ubuntu and create the zpool in the other 5 drives.

But in raid (non ZFS), you actually don't need the extra hard drive for your OS and raid can be configure during installation.

So my question is, is it possible to use zfs without extra drive? Any advice or point to tutorials would be appreciated.

sources: https://pthree.org/2012/12/05/zfs-administration-part-ii-raidz/

已采纳解答

原帖链接 · Tobi Oetiker · CC BY-SA 3.0

You can use zfs as a boot device. There is a nice little page explaining this on https://github.com/zfsonlinux/zfs/wiki/Ubuntu-16.04-Root-on-ZFS

The trick is to NOT install ubuntu directly (that is not yet possible) but to go into "Try Linux" mode and then prepare the system from there. Once the zpool is setup, you can then install ubuntu into the new pool and also install grub to boot from it.

A word of caution: Most people who use ZFS, do so in rather large setups, where they don't care about shelling out a few bucks for extra boot disks ... and thus this process is probably not as well honed as it would be if zfs was your plain old consumer-level filesystem.

You could also just install your ubuntu on a usb stick and boot from there ...

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-11-21)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。