Różnice pomiędzy wersjami 3 i 5 (Spinanie 2 wersji)
⇤ ← Wersja 3 z 2015-09-17 19:43:14 →
Rozmiar: 3102
Edytor: wtps0n
Komentarz: + komentarz dla beadm
← Wersja 5 z 2015-09-18 20:56:40 → ⇥
Rozmiar: 4744
Edytor: wtps0n
Komentarz: + rozbudowa loader.conf
Usunięcia zostały oznaczone w ten sposób. Dodatki zostały oznaczone w ten sposób.
Linia 21: Linia 21:
# (w przypadku instalacji wg przepisu dla beadm, można wyłączyć ładowanie modułów mirror/stripe # (w przypadku instalacji wg przepisu dla beadm, można wyłączyć ładowanie modułów mirror/stripe)
Linia 45: Linia 45:
# UWAGA! UWAGA! UWAGA! Serwery HP maj/a wyj/scie na klawiatur/e PS/2
# Ale tak naprawd/e jest to klawiatura USB (wewn/etrzna przej/sci/owka)
# Poni/zsze *MUSI* by/c
#
Linia 55: Linia 59:

# --- /scie/zka, z kt/orej nale/zy startowa/c system ------------------------
#
vfs.root.mountfrom="zfs:sys/bootenv/default"

# accf accept filters are used so the server will not have to context switch several times
# before performing the initial parsing of the request. This could decrease server load by
# reducing the amount of CPU time to handle incoming requests.

# Wait for data accept filter. For nginx https servers add "listen
# 127.0.0.1:443 ssl spdy accept_filter=dataready;"
##accf_data_load="YES"

# buffer incoming connections until complete HTTP requests arrive (nginx
# apache) for nginx http add, "listen 127.0.0.1:80 accept_filter=httpready;"
##accf_http_load="YES"

# Wait for full DNS request accept filter (unbound)
accf_dns_load="YES"

# Je/zeli nie jest wkompilowane w kernel:
# Advanced Host Controller Interface (AHCI)
#ahci_load="YES"

# Asynchronous I/O, or non-blocking I/O is a form of input/output processing
# permiting other processing to continue before the transmission has finished.
# AIO is used for accelerating Nginx on ZFS. Check for our tutorials on both.
aio_load="YES"

# thermal sensors for intel or amd cpus
coretemp_load="YES"
#amdtemp_load="YES"

# Increase VDEV read ahead cache size. This reduces scrub times and
# metadata-intensive tasks for a small cost in RAM. The vdev cache uses a
# simple FIFO rolling data set.
vfs.zfs.vdev.cache.size="64M"
vfs.zfs.vdev.cache.max="65536"
Linia 80: Linia 122:
/dev/gpt/swap0     none swap sw 0 0
/dev/gpt/swap1     none swap sw 0 0
/dev/gpt/swap0.eli none swap sw 0 0
/dev/gpt/swap1.eli none swap sw 0 0

Skopiowanie zpool.cache

Bardzo ważny krok - inaczej po reboocie zfs nie montuje się poprawnie i trzeba wymuszać ponowny import. WAŻNE: trzeba to zrobić z konsoli nr 4 (ALT-F4).

cp /var/tmp/zpool.cache /mnt/boot/zfs/zpool.cache

Wykonanie /boot/loader.conf

#
# loader.conf
#
# Lokalna konfiguracja bootowania systemu operacyjnego
#

# --- Za/ladowanie modu/l/ow do obs/lugi system/ow plik/ow -----------------
#
# (w przypadku instalacji wg przepisu dla beadm, można wyłączyć ładowanie modułów mirror/stripe)
geom_mirror_load="YES"
geom_stripe_load="YES"
opensolaris_load="YES"
zfs_load="YES"
kern.geom.label.gptid.enable=0

###
### tutaj dodanie odpowiedniej karty sieciowej
###

# --- Za/ladowanie modu/l/o/w odpowiedzialnych za interfejsy sieciowe ------
#
##miibus_load="YES"
##if_igb_load="YES"
##if_re_load="YES"

### potrzebne w celu posiadania klawiatury PS/2 (szczeg/olnie przez KVM via JNLP)
### UWAGA!!! Dopisa/c dopiero przed instalacj/a oraz uruchomieniem w/lasnego kernela!
### Wpisanie poni/zszego dla kernela "instalacyjnego" powoduje problem z bootowaniem
###

# --- Za/ladowanie oraz konfiguracja obs/lugi wielu klawiatur ---------------
#
# UWAGA! UWAGA! UWAGA! Serwery HP maj/a wyj/scie na klawiatur/e PS/2
# Ale tak naprawd/e jest to klawiatura USB (wewn/etrzna przej/sci/owka)
# Poni/zsze *MUSI* by/c
#
kbdmux_load="YES"
hint.atkbdc.0.at="isa"
hint.atkbdc.0.port="0x060"
hint.atkbd.0.at="atkbdc"
hint.atkbd.0.irq="1"

# --- Konfiguracja rozmiaru pami/eci dla kernela oraz ZFS -------------------
#
vm.kmem_size="6G" # This should be 150% of your RAM.
vfs.zfs.arc_max="3G" # This should be a little less than the amount of your RAM.

# --- /scie/zka, z kt/orej nale/zy startowa/c system ------------------------
#
vfs.root.mountfrom="zfs:sys/bootenv/default"

# accf accept filters are used so the server will not have to context switch several times
# before performing the initial parsing of the request. This could decrease server load by
# reducing the amount of CPU time to handle incoming requests.

# Wait for data accept filter. For nginx https servers add "listen
# 127.0.0.1:443 ssl spdy accept_filter=dataready;"
##accf_data_load="YES"

# buffer incoming connections until complete HTTP requests arrive (nginx
# apache) for nginx http add, "listen 127.0.0.1:80 accept_filter=httpready;"
##accf_http_load="YES"

# Wait for full DNS request accept filter (unbound)
accf_dns_load="YES"

# Je/zeli nie jest wkompilowane w kernel:
# Advanced Host Controller Interface (AHCI)
#ahci_load="YES"

# Asynchronous I/O, or non-blocking I/O is a form of input/output processing
# permiting other processing to continue before the transmission has finished.
# AIO is used for accelerating Nginx on ZFS. Check for our tutorials on both.
aio_load="YES"

# thermal sensors for intel or amd cpus
coretemp_load="YES"
#amdtemp_load="YES"

# Increase VDEV read ahead cache size. This reduces scrub times and
# metadata-intensive tasks for a small cost in RAM. The vdev cache uses a
# simple FIFO rolling data set.
vfs.zfs.vdev.cache.size="64M"
vfs.zfs.vdev.cache.max="65536"

Wykonanie /etc/fstab !!!

Należy pamiętać, o wykonaniu /etc/fstab. Inaczej system nie wstanie!!!

mkdir -p /tmp/bsdinstall_etc/
touch /tmp/bsdinstall_etc/fstab
mount -p | egrep '(mnt|proc)' | sed -E 's!mnt/?!!' > /etc/fstab

# re-montowanie ZFSa, aby przy pierwszym restarcie serwera (po instalacji) nie było błędów.
# (do sprawdzenia, czy konieczne skoro został skopiowany cache dla zpoola) - być może krok już nie potrzebny
# sprawdzone: krok nie jest potrzebny w przypadku przekopiowania pliku zpool.cache
zfs umount -a
umount /mnt/opt
zfs set mountpoint=/opt tank
zpool set cachefile=/boot/zfs/zpool.cache tank

# dopisanie ZFS-a do rc.conf
#
echo 'zfs_enable="YES"' >> /etc/rc.conf

Modyfikacja (rozbudowa) /etc/fstab

fdescfs jest na potrzeby instalacji bash-a:

/dev/gpt/swap0.eli      none                    swap    sw              0 0
/dev/gpt/swap1.eli      none                    swap    sw              0 0
/dev/cd0                /media/cdrom            cd9660  ro,noauto       0 0
/dev/da0s1              /media/flash            msdosfs rw,sync,noauto,longnames,-Lpl_PL.UTF-8  0 0
fdescfs                 /dev/fd                 fdescfs rw              0 0

oraz utworzenie katalogów dla mediów zewnętrznych:

mkdir -p /media/cdrom /media/flash


{i}  (c) 2004 - 2026 BSD Serwis Krzysztof Stryjek. W przypadku błędów, poprawek proszę kontaktować się z administratorem wiki.

BsdPostInstall (ostatnio edytowane 2018-03-29 09:42:54 przez wtps0n)