Use the raw disks when possible, which is everywhere except disks/pool that you're booting the OS from. I think this is the best approach.
Какой подход лучше для ZFS?
Я делаю zpools на машине FreeBSD. При создании zpools я наблюдаю следующие два случая:
Если я возьму
raw disks
и создаю,zpool
я смогу сформировать zpools, и они работают отлично.Если диски I формат, используя
gpart
вfreebsd-zfs
формате, а затем сделать zpool то и они работают отлично.
Где я запутался - какой подход лучше для создания zpools?
2 ответа на вопрос
ZFS uses a different approach to the traditional disk -> partition -> file system concept. As a storage disk handler, it is best used with access to the complete raw disks.
On the other hand, when installing operating systems, some special partitions/slices might be needed. E.g. a swap partition may provide better performance (more 'direct' approach) than a zfs-zvol or a swap file on a zfs volume: swap access would depend on zfs and would have to 'take the long way', which might cause bottle necks in high (io- and memory) load situations.
There are some special cases, for example freeNAS: as a default, it reserves some space for swap on each storage disk, thus it doesn't expose the whole physical disk to zfs. It's a good compromise for 'low key' setups (and I use those, too), but for 'business scenarios' I usually prefer to have a dedicated disk for swap. FreeNAS does have an option to disable default swap creation on newly added disks though, so that's an option. But I'm not sure if it exposes the full physical disk to zfs even then, I think there's some layer added in between (maybe encryption and/or block size correction, haven't looked into that yet).
Generally speaking, you'll probably have many advantages out of using zfs on partitions/slices, but if you're going to use whole disks, don't partition, don't slice, give the raw devices to ZFS and let it do it's magic. ;-)
And don't use any kind of 'hardware RAID' beneath ZFS, except if you know EXACTLY what you're doing. And even then, proceed with all due (and overdue) caution: Here be worse than just dragons...
Похожие вопросы
-
9
В чем разница между командами "su -s" и "sudo -s"?
-
1
Приостановить все, кроме x задач, интенсивно использующих процессор
-
9
"Отсоединить" и "Reattach" Xterms через X сессий?
-
-
1
Windows дата репрезентация
-
9
grep все файлы .java в каталоге для конкретной строки
-
3
Что такое "пиар"? Что означает PR в контексте портов FreeBSD?
-
1
Является ли kill -STOP временной командой?
-
2
Изменить количество строк и столбцов в VT420?
-
1
Во FreeBSD 7.0 в Parallels не хватило места при создании портов для Mono
-
10
Как я могу найти в истории bash и повторно запустить команду?