schorsch_76
FreeBSD Fanboy
Bisher nutze ich UFS als rootfs. Da mir aber die snapshots von Linux/lvm fehlen möchte ich gerne ZFS nutzen. Der Dokumentation nach ist es die Eierlegende Wollmilchsau was Filesysteme angeht
Als ich die Guide durchgelesen habe, verstand ich das meiste bis auf ein paar Punkte:
a) Warum ist hier [2] ein mkdir/boot/zfs nötig?
b) Warum wird der Bootloader in den Protective MBR geschrieben? Normalerweise liegt der Loader bei EFI/GPT doch unter EFI/myos/myloader.efi [4]
c) Warum muss der Cache kopiert werden?
Sollten alle Daten nicht automatisch im ZFS liegen? Welche Aufgabe/Funktion hat dieser Cache?
d) Manchmal liest man zroot/tank. Was ist der Unterschied oder ist das nur ein Name den der Admin wählt?
e) Ist eine Bootenvironment [5] [6] praktisch nur ein ZFS Snapshot der alles inkl. Kernel enthält? Warum wird hier dann ein extra Script benötigt?
Vielen Dank fürs Lesen!
Gruß
Georg
[1] https://wiki.freebsd.org/RootOnZFS
[2] https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot
[3] https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/9.0-RELEASE
[4] https://www.thomas-krenn.com/de/wiki/OS-Installation_auf_UEFI-Systemen
[5] https://www.freebsd.org/cgi/man.cgi?beadm
[6] https://forums.freebsd.org/threads/55755/
Als ich die Guide durchgelesen habe, verstand ich das meiste bis auf ein paar Punkte:
a) Warum ist hier [2] ein mkdir/boot/zfs nötig?
Code:
Create ZFS Pool zroot
Fixit# mkdir /boot/zfs
Fixit# zpool create zroot /dev/gpt/disk0
Fixit# zpool set bootfs=zroot zroot
b) Warum wird der Bootloader in den Protective MBR geschrieben? Normalerweise liegt der Loader bei EFI/GPT doch unter EFI/myos/myloader.efi [4]
Code:
Install the Protective MBR (pmbr) and gptzfsboot loader
Fixit# gpart bootcode -b /mnt2/boot/pmbr -p /mnt2/boot/gptzfsboot -i 1 ad0
This may fail with an "operation not permitted" error message, since the kernel likes to protect critical parts of the disk. If this happens for you, run:
Fixit# sysctl kern.geom.debugflags=0x10
c) Warum muss der Cache kopiert werden?
Code:
Install zpool.cache to the ZFS filesystem
Fixit# cp /boot/zfs/zpool.cache /zroot/boot/zfs/zpool.cache
Sollten alle Daten nicht automatisch im ZFS liegen? Welche Aufgabe/Funktion hat dieser Cache?
d) Manchmal liest man zroot/tank. Was ist der Unterschied oder ist das nur ein Name den der Admin wählt?
e) Ist eine Bootenvironment [5] [6] praktisch nur ein ZFS Snapshot der alles inkl. Kernel enthält? Warum wird hier dann ein extra Script benötigt?
Vielen Dank fürs Lesen!
Gruß
Georg
[1] https://wiki.freebsd.org/RootOnZFS
[2] https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot
[3] https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/9.0-RELEASE
[4] https://www.thomas-krenn.com/de/wiki/OS-Installation_auf_UEFI-Systemen
[5] https://www.freebsd.org/cgi/man.cgi?beadm
[6] https://forums.freebsd.org/threads/55755/