For maximum compatibility and redudancy; mirrored vdev
is now always used for boot pool Signed-off-by: Maurice Zhou <jasper@apvc.uk>
This commit is contained in:
committed by
George Melikov
parent
7fe3e8ceb1
commit
f121be16dc
@@ -120,6 +120,9 @@ Preparation
|
|||||||
`here <https://www.delphix.com/blog/delphix-engineering/zfs-raidz-stripe-width-or-how-i-learned-stop-worrying-and-love-raidz>`__
|
`here <https://www.delphix.com/blog/delphix-engineering/zfs-raidz-stripe-width-or-how-i-learned-stop-worrying-and-love-raidz>`__
|
||||||
and `here <https://docs.google.com/spreadsheets/d/1tf4qx1aMJp8Lo_R6gpT689wTjHv6CGVElrPqTA0w_ZY/>`__.
|
and `here <https://docs.google.com/spreadsheets/d/1tf4qx1aMJp8Lo_R6gpT689wTjHv6CGVElrPqTA0w_ZY/>`__.
|
||||||
|
|
||||||
|
For boot pool, which must be readable by GRUB, mirrored vdev should always be used for maximum redundancy.
|
||||||
|
This guide will use mirrored bpool for multi-disk setup.
|
||||||
|
|
||||||
Refer to `zpoolconcepts <https://openzfs.github.io/openzfs-docs/man/7/zpoolconcepts.7.html>`__
|
Refer to `zpoolconcepts <https://openzfs.github.io/openzfs-docs/man/7/zpoolconcepts.7.html>`__
|
||||||
and `zpool-create <https://openzfs.github.io/openzfs-docs/man/8/zpool-create.8.html>`__
|
and `zpool-create <https://openzfs.github.io/openzfs-docs/man/8/zpool-create.8.html>`__
|
||||||
man pages for details.
|
man pages for details.
|
||||||
|
|||||||
@@ -43,6 +43,9 @@ System Installation
|
|||||||
|
|
||||||
#. Create boot pool::
|
#. Create boot pool::
|
||||||
|
|
||||||
|
disk_num=0; for i in $DISK; do disk_num=$(( $disk_num + 1 )); done
|
||||||
|
if [ $disk_num -gt 1 ]; then INST_VDEV_BPOOL=mirror; fi
|
||||||
|
|
||||||
zpool create \
|
zpool create \
|
||||||
-o compatibility=grub2 \
|
-o compatibility=grub2 \
|
||||||
-o ashift=12 \
|
-o ashift=12 \
|
||||||
@@ -57,7 +60,7 @@ System Installation
|
|||||||
-O mountpoint=/boot \
|
-O mountpoint=/boot \
|
||||||
-R /mnt \
|
-R /mnt \
|
||||||
bpool_$INST_UUID \
|
bpool_$INST_UUID \
|
||||||
$INST_VDEV \
|
$INST_VDEV_BPOOL \
|
||||||
$(for i in ${DISK}; do
|
$(for i in ${DISK}; do
|
||||||
printf "$i-part2 ";
|
printf "$i-part2 ";
|
||||||
done)
|
done)
|
||||||
|
|||||||
@@ -118,6 +118,10 @@ root pool will be replaced by keyfile, embedded in initrd.
|
|||||||
|
|
||||||
#. Recreate boot pool with mappers as vdev::
|
#. Recreate boot pool with mappers as vdev::
|
||||||
|
|
||||||
|
disk_num=0; for i in $DISK; do disk_num=$(( $disk_num + 1 )); done
|
||||||
|
if [ $disk_num -gt 1 ]; then INST_VDEV_BPOOL=mirror; fi
|
||||||
|
|
||||||
|
|
||||||
zpool create \
|
zpool create \
|
||||||
-o compatibility=grub2 \
|
-o compatibility=grub2 \
|
||||||
-o ashift=12 \
|
-o ashift=12 \
|
||||||
@@ -131,7 +135,7 @@ root pool will be replaced by keyfile, embedded in initrd.
|
|||||||
-O xattr=sa \
|
-O xattr=sa \
|
||||||
-O mountpoint=/boot \
|
-O mountpoint=/boot \
|
||||||
bpool_$INST_UUID \
|
bpool_$INST_UUID \
|
||||||
$INST_VDEV \
|
$INST_VDEV_BPOOL \
|
||||||
$(for i in ${DISK}; do
|
$(for i in ${DISK}; do
|
||||||
printf "/dev/mapper/${i##*/}-part2-luks-bpool_$INST_UUID ";
|
printf "/dev/mapper/${i##*/}-part2-luks-bpool_$INST_UUID ";
|
||||||
done)
|
done)
|
||||||
|
|||||||
@@ -117,6 +117,9 @@ Preparation
|
|||||||
`here <https://www.delphix.com/blog/delphix-engineering/zfs-raidz-stripe-width-or-how-i-learned-stop-worrying-and-love-raidz>`__
|
`here <https://www.delphix.com/blog/delphix-engineering/zfs-raidz-stripe-width-or-how-i-learned-stop-worrying-and-love-raidz>`__
|
||||||
and `here <https://docs.google.com/spreadsheets/d/1tf4qx1aMJp8Lo_R6gpT689wTjHv6CGVElrPqTA0w_ZY/>`__.
|
and `here <https://docs.google.com/spreadsheets/d/1tf4qx1aMJp8Lo_R6gpT689wTjHv6CGVElrPqTA0w_ZY/>`__.
|
||||||
|
|
||||||
|
For boot pool, which must be readable by GRUB, mirrored vdev should always be used for maximum redundancy.
|
||||||
|
This guide will use mirrored bpool for multi-disk setup.
|
||||||
|
|
||||||
Refer to `zpoolconcepts <https://openzfs.github.io/openzfs-docs/man/7/zpoolconcepts.7.html>`__
|
Refer to `zpoolconcepts <https://openzfs.github.io/openzfs-docs/man/7/zpoolconcepts.7.html>`__
|
||||||
and `zpool-create <https://openzfs.github.io/openzfs-docs/man/8/zpool-create.8.html>`__
|
and `zpool-create <https://openzfs.github.io/openzfs-docs/man/8/zpool-create.8.html>`__
|
||||||
man pages for details.
|
man pages for details.
|
||||||
|
|||||||
@@ -43,6 +43,11 @@ System Installation
|
|||||||
|
|
||||||
#. Create boot pool::
|
#. Create boot pool::
|
||||||
|
|
||||||
|
|
||||||
|
disk_num=0; for i in $DISK; do disk_num=$(( $disk_num + 1 )); done
|
||||||
|
if [ $disk_num -gt 1 ]; then INST_VDEV_BPOOL=mirror; fi
|
||||||
|
|
||||||
|
|
||||||
zpool create \
|
zpool create \
|
||||||
-o compatibility=grub2 \
|
-o compatibility=grub2 \
|
||||||
-o ashift=12 \
|
-o ashift=12 \
|
||||||
@@ -57,7 +62,7 @@ System Installation
|
|||||||
-O mountpoint=/boot \
|
-O mountpoint=/boot \
|
||||||
-R /mnt \
|
-R /mnt \
|
||||||
bpool_$INST_UUID \
|
bpool_$INST_UUID \
|
||||||
$INST_VDEV \
|
$INST_VDEV_BPOOL \
|
||||||
$(for i in ${DISK}; do
|
$(for i in ${DISK}; do
|
||||||
printf "$i-part2 ";
|
printf "$i-part2 ";
|
||||||
done)
|
done)
|
||||||
|
|||||||
@@ -82,6 +82,9 @@ Preparation
|
|||||||
`here <https://www.delphix.com/blog/delphix-engineering/zfs-raidz-stripe-width-or-how-i-learned-stop-worrying-and-love-raidz>`__
|
`here <https://www.delphix.com/blog/delphix-engineering/zfs-raidz-stripe-width-or-how-i-learned-stop-worrying-and-love-raidz>`__
|
||||||
and `here <https://docs.google.com/spreadsheets/d/1tf4qx1aMJp8Lo_R6gpT689wTjHv6CGVElrPqTA0w_ZY/>`__.
|
and `here <https://docs.google.com/spreadsheets/d/1tf4qx1aMJp8Lo_R6gpT689wTjHv6CGVElrPqTA0w_ZY/>`__.
|
||||||
|
|
||||||
|
For boot pool, which must be readable by GRUB, mirrored vdev should always be used for maximum redundancy.
|
||||||
|
This guide will use mirrored bpool for multi-disk setup.
|
||||||
|
|
||||||
Refer to `zpoolconcepts <https://openzfs.github.io/openzfs-docs/man/7/zpoolconcepts.7.html>`__
|
Refer to `zpoolconcepts <https://openzfs.github.io/openzfs-docs/man/7/zpoolconcepts.7.html>`__
|
||||||
and `zpool-create <https://openzfs.github.io/openzfs-docs/man/8/zpool-create.8.html>`__
|
and `zpool-create <https://openzfs.github.io/openzfs-docs/man/8/zpool-create.8.html>`__
|
||||||
man pages for details.
|
man pages for details.
|
||||||
|
|||||||
@@ -43,6 +43,11 @@ System Configuration
|
|||||||
|
|
||||||
#. Create boot pool::
|
#. Create boot pool::
|
||||||
|
|
||||||
|
|
||||||
|
disk_num=0; for i in $DISK; do disk_num=$(( $disk_num + 1 )); done
|
||||||
|
if [ $disk_num -gt 1 ]; then INST_VDEV_BPOOL=mirror; fi
|
||||||
|
|
||||||
|
|
||||||
zpool create \
|
zpool create \
|
||||||
-d -o feature@async_destroy=enabled \
|
-d -o feature@async_destroy=enabled \
|
||||||
-o feature@bookmarks=enabled \
|
-o feature@bookmarks=enabled \
|
||||||
@@ -67,7 +72,7 @@ System Configuration
|
|||||||
-O mountpoint=/boot \
|
-O mountpoint=/boot \
|
||||||
-R /mnt \
|
-R /mnt \
|
||||||
bpool_$INST_UUID \
|
bpool_$INST_UUID \
|
||||||
$INST_VDEV \
|
$INST_VDEV_BPOOL \
|
||||||
$(for i in ${DISK}; do
|
$(for i in ${DISK}; do
|
||||||
printf "$i-part2 ";
|
printf "$i-part2 ";
|
||||||
done)
|
done)
|
||||||
|
|||||||
@@ -114,6 +114,10 @@ root pool will be replaced by keyfile, embedded in initrd.
|
|||||||
|
|
||||||
#. Recreate boot pool with mappers as vdev::
|
#. Recreate boot pool with mappers as vdev::
|
||||||
|
|
||||||
|
disk_num=0; for i in $DISK; do disk_num=$(( $disk_num + 1 )); done
|
||||||
|
if [ $disk_num -gt 1 ]; then INST_VDEV_BPOOL=mirror; fi
|
||||||
|
|
||||||
|
|
||||||
zpool create \
|
zpool create \
|
||||||
-d -o feature@async_destroy=enabled \
|
-d -o feature@async_destroy=enabled \
|
||||||
-o feature@bookmarks=enabled \
|
-o feature@bookmarks=enabled \
|
||||||
@@ -138,7 +142,7 @@ root pool will be replaced by keyfile, embedded in initrd.
|
|||||||
-O mountpoint=/boot \
|
-O mountpoint=/boot \
|
||||||
-R /mnt \
|
-R /mnt \
|
||||||
bpool_$INST_UUID \
|
bpool_$INST_UUID \
|
||||||
$INST_VDEV \
|
$INST_VDEV_BPOOL \
|
||||||
$(for i in ${DISK}; do
|
$(for i in ${DISK}; do
|
||||||
printf "/dev/mapper/${i##*/}-part2-luks-bpool_$INST_UUID ";
|
printf "/dev/mapper/${i##*/}-part2-luks-bpool_$INST_UUID ";
|
||||||
done)
|
done)
|
||||||
|
|||||||
@@ -119,6 +119,9 @@ Preparation
|
|||||||
`here <https://www.delphix.com/blog/delphix-engineering/zfs-raidz-stripe-width-or-how-i-learned-stop-worrying-and-love-raidz>`__
|
`here <https://www.delphix.com/blog/delphix-engineering/zfs-raidz-stripe-width-or-how-i-learned-stop-worrying-and-love-raidz>`__
|
||||||
and `here <https://docs.google.com/spreadsheets/d/1tf4qx1aMJp8Lo_R6gpT689wTjHv6CGVElrPqTA0w_ZY/>`__.
|
and `here <https://docs.google.com/spreadsheets/d/1tf4qx1aMJp8Lo_R6gpT689wTjHv6CGVElrPqTA0w_ZY/>`__.
|
||||||
|
|
||||||
|
For boot pool, which must be readable by GRUB, mirrored vdev should always be used for maximum redundancy.
|
||||||
|
This guide will use mirrored bpool for multi-disk setup.
|
||||||
|
|
||||||
Refer to `zpoolconcepts <https://openzfs.github.io/openzfs-docs/man/7/zpoolconcepts.7.html>`__
|
Refer to `zpoolconcepts <https://openzfs.github.io/openzfs-docs/man/7/zpoolconcepts.7.html>`__
|
||||||
and `zpool-create <https://openzfs.github.io/openzfs-docs/man/8/zpool-create.8.html>`__
|
and `zpool-create <https://openzfs.github.io/openzfs-docs/man/8/zpool-create.8.html>`__
|
||||||
man pages for details.
|
man pages for details.
|
||||||
|
|||||||
@@ -43,6 +43,11 @@ System Installation
|
|||||||
|
|
||||||
#. Create boot pool::
|
#. Create boot pool::
|
||||||
|
|
||||||
|
|
||||||
|
disk_num=0; for i in $DISK; do disk_num=$(( $disk_num + 1 )); done
|
||||||
|
if [ $disk_num -gt 1 ]; then INST_VDEV_BPOOL=mirror; fi
|
||||||
|
|
||||||
|
|
||||||
zpool create \
|
zpool create \
|
||||||
-d -o feature@async_destroy=enabled \
|
-d -o feature@async_destroy=enabled \
|
||||||
-o feature@bookmarks=enabled \
|
-o feature@bookmarks=enabled \
|
||||||
@@ -67,7 +72,7 @@ System Installation
|
|||||||
-O mountpoint=/boot \
|
-O mountpoint=/boot \
|
||||||
-R /mnt \
|
-R /mnt \
|
||||||
bpool_$INST_UUID \
|
bpool_$INST_UUID \
|
||||||
$INST_VDEV \
|
$INST_VDEV_BPOOL \
|
||||||
$(for i in ${DISK}; do
|
$(for i in ${DISK}; do
|
||||||
printf "$i-part2 ";
|
printf "$i-part2 ";
|
||||||
done)
|
done)
|
||||||
|
|||||||
Reference in New Issue
Block a user