bsd4me
Well-Known Member
Hi Leute,
ich hatte vor längerer Zeit mal ein kleines Programm geschrieben, mit dem ich über eine Kommandozeile leicht die Grundkonfiguration eines Servers installieren kann... das sieht dann so aus:
# host_install
USAGE: host_install poolname zfstype disc{,disc} rootsize swapsize ethdev image
WHERE
poolname - the name of the ZFS pool
zfstype - zfs type like "-", "mirror", "raidz1", "raidz2"
disc - a disc device, like ada0
rootsize - rootsize per disc in GB, like "2" (or "-" if the whole disk)
swapsize - swapsize per disc in GB, like "2"
ethdev - the ethernet device, like em0
image - the os image
DESCRIPTION
This script can be used to create partitions and install a FreeBSD
image on a hard disc. The best to to is in conjunction with PXE
booting.
das hat seinen Dienst auch sehr gut gemacht bisher... Auch mit den letzten 3 Servern unter FreeBSD 13.1
Heute hatte ich allerdings ein Problem nach dem Reboot:
zio_read error 5
ZFS. can't read MOS config
ZFS. can't find pool by guid
can't find /boot/zfsloader
Im anhang das Install programm und ein Bild vom Bildschirm... ich hoffe jemand kann mir einen Tipp geben...
PS: Der Rechner ist ein Supermirco Server mit 8 x 4 TB Festplatten
Lieben Dank! Norbert
ich hatte vor längerer Zeit mal ein kleines Programm geschrieben, mit dem ich über eine Kommandozeile leicht die Grundkonfiguration eines Servers installieren kann... das sieht dann so aus:
# host_install
USAGE: host_install poolname zfstype disc{,disc} rootsize swapsize ethdev image
WHERE
poolname - the name of the ZFS pool
zfstype - zfs type like "-", "mirror", "raidz1", "raidz2"
disc - a disc device, like ada0
rootsize - rootsize per disc in GB, like "2" (or "-" if the whole disk)
swapsize - swapsize per disc in GB, like "2"
ethdev - the ethernet device, like em0
image - the os image
DESCRIPTION
This script can be used to create partitions and install a FreeBSD
image on a hard disc. The best to to is in conjunction with PXE
booting.
das hat seinen Dienst auch sehr gut gemacht bisher... Auch mit den letzten 3 Servern unter FreeBSD 13.1
Heute hatte ich allerdings ein Problem nach dem Reboot:
zio_read error 5
ZFS. can't read MOS config
ZFS. can't find pool by guid
can't find /boot/zfsloader
Im anhang das Install programm und ein Bild vom Bildschirm... ich hoffe jemand kann mir einen Tipp geben...
PS: Der Rechner ist ein Supermirco Server mit 8 x 4 TB Festplatten
Lieben Dank! Norbert