[[{{SUBPAGENAME}}]] wurde durch [[Server/freenas/FreeNAS]] ersetzt.

{{Vorlage:historisch}}

{{Broken
|Reason=mit 200 epairs/50 bridges zu komplex, zu lahm, zu instabil
* {{#dateformat:2014-09-09}} Wechsel auf [[FreeNAS]]!
*: siehe [[Server/freenas/FreeNAS]]
}}

== FreeBSD Installation ==

USB Stick booten, 10x Enter drücken, fertüsch :D

== FreeBSD Einrichtung ==

==== SSH für Root erlauben ====

<source lang="bash">
vi /etc/ssh/sshd_config

PermitRootLogin yes

service sshd restart
</source>

ssh root@freebert.hq.c3d2.de und default ZFS Datasets anpassen

<source lang="bash">
zfs set checksum=sha256 zroot
zfs set checksum=sha256 zroot/ROOT
zfs set checksum=sha256 zroot/ROOT/default
zfs set checksum=sha256 zroot/tmp
zfs set checksum=sha256 zroot/usr
zfs set checksum=sha256 zroot/usr/home
zfs set checksum=sha256 zroot/usr/ports
zfs set checksum=sha256 zroot/usr/src
zfs set checksum=sha256 zroot/var
zfs set checksum=sha256 zroot/var/crash
zfs set checksum=sha256 zroot/var/log
zfs set checksum=sha256 zroot/var/mail
zfs set checksum=sha256 zroot/var/tmp

zfs set compression=lz4 zroot
zfs set compression=lz4 zroot/ROOT
zfs set compression=lz4 zroot/ROOT/default
zfs set compression=lz4 zroot/tmp
zfs set compression=lz4 zroot/usr
zfs set compression=lz4 zroot/usr/home
zfs set compression=lz4 zroot/usr/ports
zfs set compression=lz4 zroot/usr/src
zfs set compression=lz4 zroot/var
zfs set compression=lz4 zroot/var/crash
zfs set compression=lz4 zroot/var/log
zfs set compression=lz4 zroot/var/mail
zfs set compression=lz4 zroot/var/tmp
</source>

==== Kernel Optionen anpassen ====

<source lang="bash">
vi /boot/loader.conf

### ### ### C3D2 ### ### ###
#
### FreeBSD 10 - no crypto // ###
zfs_load="YES"
if_lagg_load="YES"
### // FreeBSD 10 - no crypto ###
#
vfs.zfs.arc_max="2048000000"
#kern.maxswzone="16268512"
vfs.zfs.prefetch_disable="1"
### vfs.zfs.zio.use_uma="0"
#
virtio_load="YES" 
virtio_pci_load="YES" 
virtio_blk_load="YES" 
if_vtnet_load="YES" 
virtio_balloon_load="YES"
#
aio_load="YES"
fdescfs_load="YES"
#
kern.maxfiles="512000"
#
### VirtualBox // ###
vboxdrv_load="YES"
atapicam_load="YES"
#
# Increase netgraph memory size for heavy VirtualBox network load
net.graph.maxdata=65536
### // VirtualBox ###
#
### ### ### C3D2 ### ### ###
# EOF
</source>

==== rc.conf anpassen ====

<source lang="bash">
vi /etc/rc.conf

### ### ### C3D2 ### ### ###
#

hostname="freebert.hq.c3d2.de"
sshd_enable="YES"
sendmail_enable="NO"
zfs_enable="YES"
ntpd_enable="NO"
ntpdate_enable="YES"

### ifconfig_em0="inet 172.22.99.11 netmask 255.255.255.0"
### ifconfig_em1="inet 172.22.99.12 netmask 255.255.255.0"
### defaultrouter="172.22.99.4"

### LACP // ###
ifconfig_em0="up"
ifconfig_em1="up"
cloned_interfaces="lagg0"
ifconfig_lagg0="laggproto lacp laggport em0 laggport em1 172.22.99.10/24"
defaultrouter="172.22.99.4"
### // LACP ###

### ipv6_activate_all_interfaces="YES"
### ifconfig_em0_ipv6="inet6 accept_rtadv"
### ifconfig_em1_ipv6="inet6 accept_rtadv"
ifconfig_lagg0_ipv6="inet6 accept_rtadv"
ip6addrctl_policy="ipv6_prefer"

### Firewall // ###
pf_enable="NO"                  # PF aktivieren (Modul, wenn noetig, aktivieren)
pf_rules="/etc/pf.conf"         # Datei mit Regeldefinitionen fuer pf
pf_flags=""                     # zusaetzliche Parameter fuer den Start von pfctl
pflog_enable="NO"               # starte pflogd(8)
pflog_logfile="/var/log/pflog"  # wo soll pflogd die Protokolldatei speichern
pflog_flags=""                  # zusaetzliche Parameter fuer den Start von pflogd
### // Firewall ###

### rsyslog // ###
### syslogd_enable="YES"
### syslogd_flags="-ss"
syslogd_enable="NO"
rsyslogd_enable="YES"
rsyslogd_pidfile="/var/run/syslog.pid"
### // rsyslog ###

font8x16="iso15-8x16"
font8x14="iso15-8x14"
font8x8="iso15-8x8"
keymap="german.iso"
### keymap="german.cp850.kbd"

### SSMTP // ###
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
### // SSMTP ###

### SMARTMONTOOLS // ###
smartd_enable="YES"
### // SMARTMONTOOLS ###

### 10.0 // ###
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
### // 10.0 ###

### <--- --- --- --- --- --- --- --- ---> ###

hald_enable="YES"
dbus_enable="YES"
### webcamd_enable="YES"

powerd_enable="YES"
cupsd_enable="NO"
moused_enable="NO"

avahi_daemon_enable=NO
avahi_dnsconfd_enable=NO

miredo_enable="NO"
### miredo-server_enable="NO"

### Linux Layer // ###
linux_enable="YES"
### // Linux Layer ###

### vidcontrol -i mode (1024x768x16) ###
allscreens_flags="MODE_279"

### VirtualBox // ###
devfs_system_ruleset="system"
#
vboxnet_enable="YES"
vboxheadless_enable="NO"
vboxwatchdog_enable="NO"
vboxwebsrv_enable="NO"
#
### only guest options // ###
### vboxguest_enable="YES"
### vboxservice_enable="YES"
### vboxservice_flags="--disable-timesync"
### // only guest options ###
#
# VMs to start (whitespace-separated list):
vboxheadless_machines="flatbert"
#
# definition for VM with acronym "flatbert":
vboxheadless_test_name="flatbert"
vboxheadless_test_user="rewt"
###vboxheadless_test_flags=""
vboxheadless_test_stop="acpipowerbutton"
### // VirtualBox ###

### <--- --- --- --- --- --- --- --- ---> ###

### inetd_enable="NO"

### xdm_enable="NO"
### kdm_enable="NO"
### gdm_enable="NO"

### VirtualNetwork // ###
### cloned_interfaces="bridge0"
### ifconfig_bridge0="inet 10.0.0.1/8"
### ifconfig_bridge0_ipv6="up"
### ifconfig_epair="up"
### ifconfig_bridge0="addm bge0 addm epair0a up"
### ifconfig_epair0a="inet 10.0.0.2/8"
### ifconfig_bridge0="addm bge0 addm epair0b up"
### ifconfig_epair0b="inet 10.0.0.3/8"
### // VirtualNetwork ###

### /usr/local services // ###
#
### uuidd_enable="NO"
### svnserve_enable="NO"
### snmptrapd_enable="NO"
### snmpd_enable="NO"
### rsyncd_enable="NO"
### rrdcached_enable="NO"
### libvirtd_enable="NO"
### htcacheclean_enable="NO"
### ezjail_enable="NO"
### collectdmon_enable="NO"
### bsdstats_enable="NO"
#
### // /usr/local services ###

### iSCSI Target // ###
ctld_enable="NO"
### // iSCSI Target ###

#
### ### ### C3D2 ### ### ###
# EOF
</source>

==== tmux, zsh und co. ====

<source lang="bash">
touch /etc/pf.conf

portsnap fetch extract update

cd /usr/ports/sysutils/tmux/ && make install clean
### with LIBEVENT2 + STATICLIBEVENT ###

cd /usr/ports/shells/zsh/ && make install clean

cd /usr/ports/sysutils/py-glances/ && make install clean

cd /usr/ports/ftp/wget/ && make install clean
</source>

==== zsh config + useradd ====

<source lang="bash">

cd /
mkdir admin
cd admin
wget --no-check-certificate https://raw.githubusercontent.com/plitc/zshrc/master/.zshrc

ln -s /admin/.zshrc .zshrc

useradd

chsh -s /usr/local/bin/zsh root
chsh -s /usr/local/bin/zsh rewt

cd /root
ln -s /admin/.zshrc .zshrc
cd /home/rewt
ln -s /admin/.zshrc .zshrc

chown -R rewt:rewt /admin
</source>

==== sshd public key auth ====

<source lang="bash">
vi /etc/ssh/sshd_config

### ### ### C3D2 ### ### ###
#
AllowUsers      root rewt
#
PermitRootLogin without-password
#
DenyUsers       daemon operator bin tty kmem games news man sshd smmsp mailnull bind proxy _pflogd _dhcp uucp pop www hast nobody auditdistd cyrus messagebus avahi ssmtp
#
Banner /etc/issue.net
#
### Security
UsePAM no
ChallengeResponseAuthentication no
PasswordAuthentication no
PermitEmptyPasswords no
#
### ### ### C3D2 ### ### ###

#
# EOF

mkdir /root/.shh
chmod 700 /root/.ssh

vi /root/.ssh/authorized_keys

...

chmod 600 /root/.ssh/authorized_keys

mkdir /home/rewt/.ssh
chmod 700 /home/rewt/.ssh

cp /root/.ssh/authorized_keys /home/rewt/.ssh/authorized_keys

chmod 700 /root/.ssh
chmod 700 /home/rewt/.ssh
chown -R rewt:rewt /home/rewt

chmod 600 /home/rewt/.ssh/authorized_keys

service sshd restart
</source>

==== sshd login info ====

<source lang="bash">
vi /etc/issue.net

***************************************************************************
                            NOTICE TO USERS


This computer system is the private property of its owner, whether
individual, corporate or government.  It is for authorized use only.
Users (authorized or unauthorized) have no explicit or implicit
expectation of privacy.

Any or all uses of this system and all files on this system may be
intercepted, monitored, recorded, copied, audited, inspected, and
disclosed to your employer, to authorized site, government, and law
enforcement personnel, as well as authorized officials of government
agencies, both domestic and foreign.

By using this system, the user consents to such interception, monitoring,
recording, copying, auditing, inspection, and disclosure at the
discretion of such personnel or officials.  Unauthorized or improper use
of this system may result in civil and criminal penalties and
administrative or disciplinary action, as appropriate. By continuing to
use this system you indicate your awareness of and consent to these terms
and conditions of use. LOG OFF IMMEDIATELY if you do not agree to the
conditions stated in this warning.

***************************************************************************
</source>

==== glances auf tty7 ====

<source lang="bash">
vi /etc/ttys

#ttyv7  "/usr/libexec/getty Pc"         xterm   on  secure
ttyv7   "/usr/libexec/getty ttyglances" xterm   on  secure

vi /etc/gettytab

### /admin/ttyglances.sh // ###
ttyglances|al.9600:\
        :al=root:lo=/admin/ttyglances.sh:tc=std.9600:
### // /admin/ttyglances.sh ###

vi /admin/ttyglances.sh

#!/bin/sh
###exec /usr/bin/top -P
exec /usr/local/bin/glances
# EOF

chmod ug+x /admin/ttyglances.sh
</source>

==== UTF-8 ====

<source lang="bash">
vi /etc/login.conf

### ### ### C3D2 ### ### ###
german|German Users Accounts:\
        :charset=UTF-8:\
        :lang=de_DE.UTF-8:\
        :tc=default:
### ### ### C3D2 ### ### ###

cap_mkdb /etc/login.conf

pw usermod root -L german
pw usermod rewt -L german
</source>

==== default snapshots erstellen ====

<source lang="bash">
zfs create -o checksum=sha256 -o compression=lz4 -o mountpoint=/iscsi zroot/iscsi
zfs create -o checksum=sha256 -o compression=lz4 -o mountpoint=/vserver zroot/vserver

vi /admin/zfs_destroy_all_snap.csh

#!/bin/csh
#

zfs list -H -o name -t snapshot | xargs -n1 zfs destroy

zfs list -t snapshot

#
# EOF

vi /admin/zfs_default_snap.csh

#!/bin/csh
#
### ### ### C3D2 ### ### ###
### /sbin/zfs snapshot bootpool@default
### <--->
/sbin/zfs snapshot zroot@default
/sbin/zfs snapshot zroot/ROOT@default
/sbin/zfs snapshot zroot/ROOT/default@default
### <--->
/sbin/zfs snapshot zroot/iscsi@default
/sbin/zfs snapshot zroot/vserver@default
### <--->
/sbin/zfs snapshot zroot/tmp@default
/sbin/zfs snapshot zroot/usr@default
/sbin/zfs snapshot zroot/usr/home@default
/sbin/zfs snapshot zroot/usr/ports@default
/sbin/zfs snapshot zroot/usr/src@default
### <--->
/sbin/zfs snapshot zroot/var@default
/sbin/zfs snapshot zroot/var/crash@default
/sbin/zfs snapshot zroot/var/log@default
/sbin/zfs snapshot zroot/var/mail@default
/sbin/zfs snapshot zroot/var/tmp@default
### ### ### C3D2 ### ### ###
# EOF

chmod ug+x /admin/*.csh
</source>

==== sudo ====

<source lang="bash">
cd /usr/ports/security/sudo/ && make install clean

visudo

### rewt // ###
%rewt ALL=(ALL) NOPASSWD: ALL
### // rewt ###
</source>

==== iscsi target ====

<source lang="bash">
### ### ### C3D2 ### ### ###

portal-group pg0 {
      discovery-auth-group no-authentication
      listen 0.0.0.0
}

target iqn.2012-06.de.c3d2.hq.freebert:target0 {
      auth-group no-authentication
      portal-group pg0

      lun 0 {
            path /iscsi/target0-0
            size 2600G
      }
}

### ### ### C3D2 ### ### ###
# EOF

touch /iscsi/target0-0

vi /etc/rc.conf

### iSCSI Target // ###
ctld_enable="YES"
### // iSCSI Target ###
</source>

==== crontab ====

<source lang="bash">
vi /etc/crontab

### ### ### C3D2 ### ### ###
#
@daily  root    freebsd-update  cron
#
@daily  root    portsnap -I cron update && pkg version -vIL=
#
### ZFS Snapshot - vserver
#@daily   root   /admin/zfs_vserver_snap.csh
#
### SMARTCTL // ###
00 6   * * *   root   /usr/local/sbin/smartctl -t short /dev/ada0
00 6   * * *   root   /usr/local/sbin/smartctl -t short /dev/ada1
00 6   * * *   root   /usr/local/sbin/smartctl -t short /dev/ada2
00 6   * * *   root   /usr/local/sbin/smartctl -t short /dev/ada3
### // SMARTCTL ###
#
### ### ### C3D2 ### ### ###
# EOF
</source>

==== /etc/hosts ====

<source lang="bash">
vi /etc/hosts

### ### ### C3D2 ### ### ###
#
::1                     localhost    localhost.my.domain
127.0.0.1               localhost    localhost.my.domain
#
172.22.99.10            freebert     freebert.hq.c3d2.de
#
### ### ### C3D2 ### ### ###
# EOF
</source>

==== zoneinfo ====

<source lang="bash">
cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime
</source>

==== cleanlogs ====

<source lang="bash">
vi /admin/cleanlogs.csh

#!/bin/csh
### ### ### C3D2 ### ### ###
#

/bin/echo "" > /var/log/auth.log

/bin/echo "" > /var/log/cron

/bin/echo "" > /var/log/debug.log

/bin/echo "" > /var/log/lpd-errs

/bin/echo "" > /var/log/maillog

/bin/echo "" > /var/log/messages

/bin/echo "" > /var/log/ppp.log

/bin/echo "" > /var/log/security

/bin/echo "" > /var/log/userlog

/bin/echo "" > /var/log/xferlog

### /bin/echo "" > /var/log/samba4/log.samba
### /bin/echo "" > /var/log/samba4/log.smbd

/bin/echo "" > /var/log/dmesg.today
/bin/echo "" > /var/log/dmesg.yesterday

/bin/echo "" > /var/log/mount.today
/bin/echo "" > /var/log/mount.yesterday

### /bin/echo "" > /var/log/pf.today
### /bin/echo "" > /var/log/pf.yesterday

/bin/echo "" > /var/log/setuid.today
/bin/echo "" > /var/log/setuid.yesterday

### /bin/echo "" > /var/log/samba4/krb5libs.log
### /bin/echo "" > /var/log/samba4/krb5kdc.log
### /bin/echo "" > /var/log/samba4/kadmind.log

### /bin/echo "" > /var/log/ejabberd/ejabberd.log
### /bin/echo "" > /var/log/ejabberd/erlang.log

### /bin/echo "" > /var/named/var/log/named.log
### /bin/echo "" > /var/named/var/log/named_query.log
### /bin/echo "" > /var/named/var/log/named_security.log

/bin/echo "" > /var/log/httpd-error.log

# cat /dev/null > /var/log/pflog ; kill -HUP `cat /var/run/pflogd.pid`
### /bin/rm /var/log/pflog ; kill -HUP `cat /var/run/pflogd.pid`


/bin/rm /var/log/*.bz2

/usr/bin/find /var/log -exec touch -c {} \;

#
### ### ### C3D2 ### ### ###
# EOF

chmod 555 /admin/cleanlogs.csh
</source>

==== freebsd_update ====

<source lang="bash">
vi /admin/freebsd_update.csh

#!/bin/csh

echo '< ---- START ---- >'

portsnap fetch

echo '< ---- ---- ---- >'

portsnap update

echo '< ---- ---- ---- >'

pkg version -l "<"

echo '< ---- ---- ---- >'

portupgrade -a

echo '< ---- END ---- >'

# EOF

cd /usr/ports/ports-mgmt/portupgrade && make install clean

vi /etc/make.conf

OPTIONS_UNSET=          X11
</source>

==== show pflog ====

<source lang="bash">
vi /admin/show_pf.csh

#!/bin/csh

tcpdump -s 256 -n -e -ttt -r /var/log/pflog

# EOF
</source>

==== pkg audit ====

<source lang="bash">
pkg audit -F
</source>

==== chpass ====

<source lang="bash">
Full Name: root@freebert.hq.c3d2.de
</source>

==== smartmontools ====

<source lang="bash">
cd /usr/ports/sysutils/smartmontools && make install clean

cp /usr/local/etc/smartd.conf.sample /usr/local/etc/smartd.conf

cat << EOF > /etc/periodic.conf
### ### ### C3D2 ### ### ###
#
daily_status_smart_devices="/dev/ada0 /dev/ada1 /dev/ada2 /dev/ada3"
#
### ### ### C3D2 ### ### ###
# EOF
EOF
</source>

==== ssmtp ====

<source lang="bash">
cd /usr/ports/mail/ssmtp && make install replace clean

cat << EOF > /usr/local/etc/ssmtp/ssmtp.conf
### ### ### C3D2 ### ### ###
#
MailHub=mail.c3d2.de:587                   # Mail server to connect to (port 465 is SMTP/SSL)
UseTLS=YES                                 # Enable SSL/TLS
UseSTARTTLS=YES                            # Enable STARTTLS
AuthUser=                                  # Username for SMTP AUTH
AuthPass=                                  # Password for SMTP AUTH
FromLineOverride=YES                       # Force the From: address to the user account
Hostname=freebert.hq.c3d2.de               # Name of this host
RewriteDomain=freebert.hq.c3d2.de          # Where the mail will seem to come from
Root=flatbert-admin@c3d2.de                #
# Root=postmaster                          # Mail for root@ is redirected to postmaster@
#
### ### ### C3D2 ### ### ###
EOF

pw useradd ssmtp -g nogroup -h - -s /sbin/nologin -d /nonexistent -c "sSMTP pseudo-user"

cd /usr/local/etc/ssmtp
chown ssmtp:wheel .
chmod 4750 .

chown ssmtp:wheel . ssmtp.conf
chmod 640 ssmtp.conf

chown ssmtp:nogroup /usr/local/sbin/ssmtp
chmod 4555 /usr/local/sbin/ssmtp

vi /etc/aliases

### ### ### C3D2 ### ### ###
root: admin-c3d2@plitc.eu
### ### ### C3D2 ### ### ###

newaliases

### --> TEST: sendmail root < /etc/rc.conf <-- ###
</source>

==== systemboot mail ====

<source lang="bash">
vi /etc/rc.local

cat << EOF > /etc/rc.local
#!/bin/sh
### ### ### C3D2 ### ### ###
#

### sSMTP // ###
#
/usr/bin/mail -s "FreeBSD Server - Systemboot" flatbert-admin@c3d2.de < /var/log/messages
#
### // sSMTP ###

#
### ### ### C3D2 ### ### ###
# EOF
EOF
</source>

==== rsyslogd ====

<source lang="bash">
cd /usr/ports/sysutils/rsyslog8-devel && make install clean

vi /etc/rc.conf

### rsyslog // ###
### syslogd_enable="YES"
### syslogd_flags="-ss"
syslogd_enable="NO"
rsyslogd_enable="YES"
rsyslogd_pidfile="/var/run/syslog.pid"
### // rsyslog ###

vi /usr/local/etc/rsyslog.conf

### ### ### C3D2 ### ### ###
#
$ModLoad imklog.so        # kernel logging
$ModLoad imuxsock.so      # provides support for local system logging
$ModLoad immark.so        # provides --MARK-- message capability
#
### ---> *.err;kern.warning;auth.notice;mail.crit                        /dev/console
#
*.err;kern.warning;auth.notice;mail.crit                        /var/log/console.log
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err   /var/log/messages
security.*                                                      /var/log/security
auth.info;authpriv.info                                         /var/log/auth.log
mail.info                                                       /var/log/maillog
lpr.info                                                        /var/log/lpd-errs
ftp.info                                                        /var/log/xferlog
cron.*                                                          /var/log/cron
*.=debug                                                        /var/log/debug.log
*.emerg                                                         :omusrmsg:*
#
# uncomment this to log all writes to /dev/console to /var/log/console.log
# touch /var/log/console.log and chmod it to mode 600 before it will work
### ---> console.info                                                    /var/log/console.log
# uncomment this to enable logging of all log messages to /var/log/all.log
# touch /var/log/all.log and chmod it to mode 600 before it will work
### ---> *.*                                                             /var/log/all.log
# uncomment this to enable logging to a remote loghost named loghost
#*.*                                                            @loghost
# uncomment these if you're running inn
# news.crit                                                     /var/log/news/news.crit
# news.err                                                      /var/log/news/news.err
# news.notice                                                   /var/log/news/news.notice
#
### ---> !ppp
### ---> *.*                                                             /var/log/ppp.log
### ---> !*
#
### ### ### C3D2 ### ### ###
# EOF

touch /var/log/console.log
chmod 600 /var/log/console.log
cd /var/log
/admin/cleanlogs.csh

service syslogd restart
</source>

==== NFS einrichten ====

s. [[Storage#HOST:_FreeBSD_NFS_Export_.2F_ZFS_sharenfs|Storage/NFS Export einrichten]]

== VirtualBox installieren ==

<source lang="bash">
cd /usr/ports/emulators/virtualbox-ose-kmod

vi /etc/make.conf
# auskommentieren

make config-recursive
make install clean

cd /usr/ports/emulators/virtualbox-ose

make install clean

vi /boot/loader.conf

### VirtualBox // ###
vboxdrv_load="YES"
### // VirtualBox ###

pw groupmod vboxusers -m rewt
pw groupmod operator -m rewt

vi /etc/devfs.rules

[system=10]
add path 'usb/*' mode 0660 group operator

vi /etc/rc.conf

### VirtualBox // ###
devfs_system_ruleset="system"
#
vboxnet_enable="YES"
vboxheadless_enable="YES"
vboxwatchdog_enable="YES"
vboxwebsrv_enable="NO"
### // VirtualBox ###

/etc/rc.d/devfs restart

vi /boot/loader.conf

atapicam_load="YES"

vi /etc/rc.conf

hald_enable="YES"

powerd_enable="YES"
cupsd_enable="NO"
moused_enable="NO"

vi /etc/devfs.conf

### VirtualBox Host DVD/CD access // ###
perm cd0 0660
perm xpt0 0660
perm pass0 0660
### // VirtualBox Host DVD/CD access ###
# EOF
</source>

==== vserver ====

<source lang="bash">
sudo zfs create -o checksum=sha256 -o compression=lz4 -o mountpoint=/vserver/flatbert zroot/vserver/flatbert

sudo chown -R rewt:rewt /vserver

cd /vserver/flatbert

fetch http://debian.netcologne.de/debian-cd/7.4.0/amd64/iso-cd/debian-7.4.0-amd64-netinst.iso

VBoxManage createvm --name flatbert --ostype Debian_64 --register

mv "/home/rewt/VirtualBox VMs/flatbert/flatbert.vbox" /vserver/flatbert 

cd /home/rewt
mv VirtualBox\ VMs VirtualBox\ VMs_
sudo ln -s /vserver /home/rewt/VirtualBox\ VMs

VBoxManage modifyvm flatbert --memory 4096 --ioapic on --cpus 2 \
     --chipset ich9 --nic1 bridged --nictype1 82540EM --bridgeadapter1 lagg0

VBoxManage createhd --filename /vserver/flatbert/system.vdi --size 102400

VBoxManage storagectl flatbert --name "SATA Controller" --add sata \
     --controller IntelAhci --portcount 4

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 0 --device 0 --type hdd --medium /vserver/flatbert/system.vdi

VBoxManage storagectl flatbert --name "IDE Controller" --add ide --controller PIIX4

VBoxManage storageattach flatbert --storagectl "IDE Controller" \
     --port 1 --device 0 --type dvddrive --medium /vserver/flatbert/debian-7.4.0-amd64-netinst.iso

VBoxManage list extpacks

VBoxManage modifyvm flatbert --vrdeproperty VNCPassword=rewt
VBoxManage modifyvm flatbert --vrdeauthlibrary null
VBoxManage modifyvm flatbert --vrdeport 9999

VBoxManage modifyvm flatbert --vrdeaddress "0.0.0.0"

VBoxManage modifyvm flatbert --usb on
VBoxManage modifyvm flatbert --cpuexecutioncap 90

VBoxManage modifyvm flatbert --vnckeymap /usr/share/syscons/keymaps/german.iso.acc.kbd

### http://lists.freebsd.org/pipermail/freebsd-emulation/2010-April/007694.html
### http://www.freebsd.org/doc/handbook/virtualization-host.html

VBoxManage export "flatbert" --output flatbert_vm_cnf_28.03.2014.ovf

VBoxHeadless --startvm flatbert

VBoxManage storageattach flatbert --storagectl "IDE Controller" \
     --port 1 --device 0 --type dvddrive --medium none

###VBoxManage storageattach vmMaridia --storagectl maridiaide --port 0 --device 0 --medium none

VBoxManage showvminfo "flatbert"

VBoxManage controlvm flatbert acpipowerbutton

VBoxManage createhd --filename /vserver/flatbert/os_migration.vdi --size 10240

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 1 --device 0 --type hdd --medium /vserver/flatbert/rescue.vdi

### http://wiki.sysconfig.org.uk/display/howto/VirtualBox+On+FreeBSD ###

vi /etc/rc.conf

### only guest options // ###
### vboxguest_enable="YES"
### vboxservice_enable="YES"
### vboxservice_flags="--disable-timesync"
### // only guest options ###
#
# VMs to start (whitespace-separated list):
vboxheadless_machines="flatbert"
#
# definition for VM with acronym "flatbert":
vboxheadless_test_name="flatbert"
vboxheadless_test_user="rewt"
###vboxheadless_test_flags=""
vboxheadless_test_stop="acpipowerbutton"
### // VirtualBox ###
</source>

==== flatbertrescue ====

<source lang="bash">
Basis Setup von -> flatbertrescue
</source>

==== backup/recovery mit debian rescue auf iscsi (ext4) ====

<source lang="bash">
apt-get install open-iscsi

vi /etc/iscsi/iscsid.conf

node.startup = automatic

iscsiadm -m discovery -t st -p 172.22.99.10
iscsiadm -m node
iscsiadm -m node --targetname "iqn.2014-03.de.c3d2.hq:target0" --portal "172.22.99.10:3260" --login
mkdir /iscsi
mount -o ro /dev/sdc1 /iscsi

root@flatbertrescue:/# /bin/lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0   100G  0 disk 
sdb      8:16   0    10G  0 disk 
├─sdb1   8:17   0   9,6G  0 part /
├─sdb2   8:18   0     1K  0 part 
└─sdb5   8:21   0   466M  0 part [SWAP]
sr0     11:0    1   222M  0 rom  
sdc      8:32   0   2,6T  0 disk 
└─sdc1   8:33   0     2T  0 part /iscsi
root@flatbertrescue:/#

apt-get install gdisk

sgdisk --load-backup=/iscsi/0.gpt_sda_btrfs_-2014.03.25.sgdisk /dev/sda

cp /iscsi/0.gpt_sda_btrfs_-2014.03.25.sgdisk /
</source>

<source lang="bash">
[root@flatbertrescue:~]# gdisk /iscsi/0.gpt_sda_btrfs_-2014.03.25.sgdisk
GPT fdisk (gdisk) version 0.8.5

NOTE: Write test failed with error number 30. It will be impossible to save
changes to this disk's partition table!

Warning! Disk size is smaller than the main header indicates! Loading
secondary header from the last sector of the disk! You should use 'v' to
verify disk integrity, and perhaps options on the experts' menu to repair
the disk.
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.

Caution! After loading partitions, the CRC doesn't check out!
Warning! Error 25 reading partition table for CRC check!
Warning! One or more CRCs don't match. You should repair the disk!

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: damaged

****************************************************************************
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
****************************************************************************
Warning! Main partition table overlaps the first partition by 33 blocks!
You will need to delete this partition or resize it in another utility.

Command (? for help): p 
Disk /iscsi/0.gpt_sda_btrfs_-2014.03.25.sgdisk: 35 sectors, 17.5 KiB
Logical sector size: 512 bytes
Disk identifier (GUID): 55EE9912-C8E7-4859-99F7-46950E99F6B1
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 3907029134
Partitions will be aligned on 1-sector boundaries
Total free space is 0 sectors (0 bytes)
------------------------------------------------------------------------------------------------------------------
Number  Start (sector)    End (sector)  Size       Code  Name
   1               1              34   17.0 KiB    FFFF  
   5              34            6143   3.0 MiB     EF02  BIOS boot partition
   6            6144        10491903   5.0 GiB     FD00  Linux RAID
   7        10491904      3907029134   1.8 TiB     8300  Linux filesystem
------------------------------------------------------------------------------------------------------------------
</source>

ab 2048 beginnend

<source lang="bash">
apt-get install gdisk

6143-34=6109
2048+6109=8157

gdisk /dev/sda

10491903-6144=10485759
8192+10485759=10493951
</source>

<source lang="bash">
[root@flatbertrescue:~]# gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.5

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p
Disk /dev/sda: 209715200 sectors, 100.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): D79C5C6B-C82A-4FC7-A49D-49972B118957
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 209715166
Partitions will be aligned on 2048-sector boundaries
Total free space is 2048 sectors (1024.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048            8157   3.0 MiB     EF02  BIOS boot partition
   2            8192        10493951   5.0 GiB     FD00  Linux RAID
   3        10493952       209715166   95.0 GiB    8300  Linux filesystem

Command (? for help): q
[root@flatbertrescue:~]#

[root@flatbertrescue:~]# lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sr0     11:0    1   222M  0 rom  
sda      8:0    0   100G  0 disk 
|-sda1   8:1    0     3M  0 part 
|-sda2   8:2    0     5G  0 part 
`-sda3   8:3    0    95G  0 part 
sdb      8:16   0    10G  0 disk 
|-sdb1   8:17   0   9.6G  0 part /
|-sdb2   8:18   0     1K  0 part 
`-sdb5   8:21   0   466M  0 part [SWAP]
sdc      8:32   0   2.6T  0 disk 
`-sdc1   8:33   0     2T  0 part /iscsi
[root@flatbertrescue:~]#
</source>

<source lang="bash">
dd if=/iscsi/0.boot-sda2-flatbert-softraid1-btrfs--2014.03.25.ddimg of=/dev/sda2 bs=100M

mkfs.ext4 /dev/sda3
mkdir /sda3_system
mount /dev/sda3 /sda3_system

/usr/bin/rsync -av --delete --exclude '.snapshots' --progress /iscsi/flatbert_snap_784/ /sda3_system/
</source>

==== recovery aus SoftRAID1 ====

<source lang="bash">
mkdir /sda2_bootraid

apt-get install mdadm

mdadm --assemble --scan

[root@flatbertrescue:~]# cat /proc/mdstat
Personalities : [raid1] 
md1 : active raid1 sda2[2]
      5242816 blocks [4/1] [__U_]
      
unused devices: <none>
[root@flatbertrescue:~]# 

mount /dev/md1 /sda3_system/boot

grub-install /dev/sda
grub-install --recheck /dev/sda

mkdir /sda2_bootraid
mount -o ro /dev/md1 /sda2_bootraid

/usr/bin/rsync -av --delete --exclude '.snapshots' --progress /sda2_bootraid/ /sda3_system/boot/

umount -a
</source>

==== zfs storagepool für vserver ====

<source lang="bash">
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool zroot/vserver/flatbert/rpool

sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk1 zroot/vserver/flatbert/rpool/disk1
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk2 zroot/vserver/flatbert/rpool/disk2
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk3 zroot/vserver/flatbert/rpool/disk3
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk4 zroot/vserver/flatbert/rpool/disk4
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk5 zroot/vserver/flatbert/rpool/disk5
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk6 zroot/vserver/flatbert/rpool/disk6
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk7 zroot/vserver/flatbert/rpool/disk7
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk8 zroot/vserver/flatbert/rpool/disk8
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk9 zroot/vserver/flatbert/rpool/disk9
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk10 zroot/vserver/flatbert/rpool/disk10
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk11 zroot/vserver/flatbert/rpool/disk11
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk12 zroot/vserver/flatbert/rpool/disk12
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk13 zroot/vserver/flatbert/rpool/disk13
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk14 zroot/vserver/flatbert/rpool/disk14
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk15 zroot/vserver/flatbert/rpool/disk15
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk16 zroot/vserver/flatbert/rpool/disk16
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk17 zroot/vserver/flatbert/rpool/disk17
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk18 zroot/vserver/flatbert/rpool/disk18
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk19 zroot/vserver/flatbert/rpool/disk19
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk20 zroot/vserver/flatbert/rpool/disk20
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk21 zroot/vserver/flatbert/rpool/disk21
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk22 zroot/vserver/flatbert/rpool/disk22
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk23 zroot/vserver/flatbert/rpool/disk23
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk24 zroot/vserver/flatbert/rpool/disk24
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk25 zroot/vserver/flatbert/rpool/disk25
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk26 zroot/vserver/flatbert/rpool/disk26
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk27 zroot/vserver/flatbert/rpool/disk27
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk28 zroot/vserver/flatbert/rpool/disk28
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk29 zroot/vserver/flatbert/rpool/disk29
sudo zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert/rpool/disk30 zroot/vserver/flatbert/rpool/disk30

sudo chown -R rewt:rewt /vserver

VBoxManage createhd --filename /vserver/flatbert/rpool/disk1/storage1.vdi --size 51200

VBoxManage createhd --filename /vserver/flatbert/rpool/disk2/storage2.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk3/storage3.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk4/storage4.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk5/storage5.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk6/storage6.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk7/storage7.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk8/storage8.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk9/storage9.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk10/storage10.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk11/storage11.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk12/storage12.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk13/storage13.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk14/storage14.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk15/storage15.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk16/storage16.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk17/storage17.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk18/storage18.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk19/storage19.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk20/storage20.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk21/storage21.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk22/storage22.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk23/storage23.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk24/storage24.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk25/storage25.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk26/storage26.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk27/storage27.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk28/storage28.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk29/storage29.vdi --size 51200
VBoxManage createhd --filename /vserver/flatbert/rpool/disk30/storage30.vdi --size 51200

VBoxManage storagectl flatbert --name "SATA rpool Controller" --add sata \
     --controller IntelAhci --portcount 30

VBoxManage showvminfo "flatbert"

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 0 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk1/storage1.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 1 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk2/storage2.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 2 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk3/storage3.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 3 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk4/storage4.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 4 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk5/storage5.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 5 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk6/storage6.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 6 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk7/storage7.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 7 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk8/storage8.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 8 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk9/storage9.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 9 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk10/storage10.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 10 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk11/storage11.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 11 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk12/storage12.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 12 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk13/storage13.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 13 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk14/storage14.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 14 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk15/storage15.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 15 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk16/storage16.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 16 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk17/storage17.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 17 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk18/storage18.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 18 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk19/storage19.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 19 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk20/storage20.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 20 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk21/storage21.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 21 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk22/storage22.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 22 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk23/storage23.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 23 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk24/storage24.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 24 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk25/storage25.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 25 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk26/storage26.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 26 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk27/storage27.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 27 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk28/storage28.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 28 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk29/storage29.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA rpool Controller" \
     --port 29 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk30/storage30.vdi
</source>

==== btrfs backup speicherverbrauch ====

<source lang="bash">
[root@cider:/iscsi]# du -sh /iscsi/*              
5.1G    /iscsi/0.boot-sda2-flatbert-softraid1-btrfs--2014.03.25.ddimg
5.1G    /iscsi/0.boot-sdb2-flatbert-softraid1-btrfs--2014.03.25.ddimg
5.1G    /iscsi/0.boot-sdc2-flatbert-softraid1-btrfs--2014.03.25.ddimg
5.1G    /iscsi/0.boot-sdd2-flatbert-softraid1-btrfs--2014.03.25.ddimg
20K     /iscsi/0.gpt_sda_btrfs_-2014.03.25.sgdisk
20K     /iscsi/0.gpt_sdb_btrfs_-2014.03.25.sgdisk
20K     /iscsi/0.gpt_sdc_btrfs_-2014.03.25.sgdisk
20K     /iscsi/0.gpt_sdd_btrfs_-2014.03.25.sgdisk
3.8G    /iscsi/0.nulli_usbstick
38G     /iscsi/astrom_snap_784
3.6G    /iscsi/astron_snap_784
4.0K    /iscsi/backup_list_snap_784
4.0K    /iscsi/backup_snap_784
4.0K    /iscsi/backups_snap_784
324M    /iscsi/blackhole_snap_784
32K     /iscsi/btrfs-admin_snap_784
2.0G    /iscsi/cloudybay_snap_784
271M    /iscsi/debcache_snap_784
479M    /iscsi/dhcp_snap_784
826M    /iscsi/dn42_snap_784
799M    /iscsi/drucker_snap_784
3.1G    /iscsi/feile_snap_1501
3.1G    /iscsi/feile_snap_784
1.8G    /iscsi/fernandopoo_snap_784
1.2G    /iscsi/flatbert-extra-backups_snap_784
9.8G    /iscsi/flatbert_snap_784
8.0G    /iscsi/git_snap_784
721M    /iscsi/global_snap_784
1.3G    /iscsi/jabber1_snap_784
882M    /iscsi/jabber2_snap_784
287M    /iscsi/knot_snap_784
716M    /iscsi/leviathan_snap_784
16K     /iscsi/lost+found
485M    /iscsi/lxc-cache_snap_
4.0K    /iscsi/lxc-cache_snap_784
1.9G    /iscsi/matemat_snap_
4.0K    /iscsi/matemat_snap_784
4.0K    /iscsi/new_state_snap_784
4.0K    /iscsi/old_state_snap_784
4.0K    /iscsi/old-vms_snap_784
4.0K    /iscsi/Release.key_snap_784
578M    /iscsi/semanta_snap_784
1.8G    /iscsi/sharing_snap_784
1.3T    /iscsi/space_snap_1501
240M    /iscsi/thron2_snap_
4.0K    /iscsi/thron2_snap_784
932M    /iscsi/thron_snap_
4.0K    /iscsi/thron_snap_784
736M    /iscsi/wiefelspuetz_snap_784
3.9G    /iscsi/wolke7_snap_784
469M    /iscsi/wormhole_snap_784
858M    /iscsi/www1_snap_784
42M     /iscsi/x.btrfsck.log
12K     /iscsi/x.ISCSI_SYNC.log
8.0K    /iscsi/x.ISCSI_SYNC.sh
12K     /iscsi/x.ISCSI_SYNC_v2.sh
12K     /iscsi/x.ISCSI_SYNC_v3.sh
[root@cider:/iscsi]#
</source>

==== VirtualBox Storage Controller umstellen ====

<source lang="bash">
VBoxManage storagectl flatbert --remove --name "SATA rpool Controller"
VBoxManage storagectl flatbert --remove --name "SATA Controller"
VBoxManage storagectl flatbert --remove --name "IDE Controller"

VBoxManage storagectl flatbert --name "IDE Controller" --add ide --controller PIIX4

VBoxManage storagectl flatbert --name "SCSI Controller" --add scsi \
     --controller LSILogic

VBoxManage storagectl flatbert --name "SATA Controller" --add sata \
     --controller IntelAhci --portcount 30

VBoxManage storageattach flatbert --storagectl "IDE Controller" \
     --port 0 --device 0 --type dvddrive --medium /vserver/flatbert/debian-7.4.0-amd64-netinst.iso

VBoxManage storageattach "flatbert" --storagectl "SCSI Controller" \
     --port 0 --device 0 --type hdd --medium /vserver/flatbert/system.vdi

VBoxManage storageattach "flatbert" --storagectl "SCSI Controller" \
     --port 1 --device 0 --type hdd --medium /vserver/flatbert/os_migration.vdi


VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 0 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk1/storage1.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 1 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk2/storage2.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 2 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk3/storage3.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 3 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk4/storage4.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 4 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk5/storage5.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 5 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk6/storage6.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 6 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk7/storage7.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 7 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk8/storage8.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 8 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk9/storage9.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 9 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk10/storage10.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 10 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk11/storage11.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 11 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk12/storage12.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 12 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk13/storage13.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 13 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk14/storage14.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 14 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk15/storage15.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 15 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk16/storage16.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 16 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk17/storage17.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 17 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk18/storage18.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 18 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk19/storage19.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 19 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk20/storage20.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 20 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk21/storage21.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 21 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk22/storage22.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 22 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk23/storage23.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 23 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk24/storage24.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 24 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk25/storage25.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 25 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk26/storage26.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 26 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk27/storage27.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 27 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk28/storage28.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 28 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk29/storage29.vdi

VBoxManage storageattach "flatbert" --storagectl "SATA Controller" \
     --port 29 --device 0 --type hdd --medium /vserver/flatbert/rpool/disk30/storage30.vdi

gdisk /dev/sdX

mkfs.ext4 /dev/sdd1
mkfs.ext4 /dev/sde1
mkfs.ext4 /dev/sdf1
mkfs.ext4 /dev/sdh1
mkfs.ext4 /dev/sdg1
mkfs.ext4 /dev/sdj1
mkfs.ext4 /dev/sdk1
mkfs.ext4 /dev/sdr1
mkfs.ext4 /dev/sdm1
mkfs.ext4 /dev/sdn1
mkfs.ext4 /dev/sdq1
mkfs.ext4 /dev/sdo1
mkfs.ext4 /dev/sdp1
mkfs.ext4 /dev/sdv1
mkfs.ext4 /dev/sdac1
mkfs.ext4 /dev/sdt1
mkfs.ext4 /dev/sdaf1
mkfs.ext4 /dev/sdu1
mkfs.ext4 /dev/sdz1
mkfs.ext4 /dev/sdx1
mkfs.ext4 /dev/sdw1
mkfs.ext4 /dev/sdad1
mkfs.ext4 /dev/sdab1
mkfs.ext4 /dev/sdae1
mkfs.ext4 /dev/sds1
mkfs.ext4 /dev/sdaa1
mkfs.ext4 /dev/sdy1
mkfs.ext4 /dev/sdl1
mkfs.ext4 /dev/sdi1
</source>

==== flatbert system hdd recovery ====

<source lang="bash">
iscsiadm -m discovery -t st -p 172.22.99.12

iscsiadm -m node

iscsiadm -m node --targetname "iqn.2014-02.de.c3d2.hq:target0" --portal "172.22.99.12:3260" --login

mkdir /iscsir
mount -o ro /dev/sdag1 /iscsir

cp 0.boot-sda2-flatbert-softraid1-btrfs--2014.03.25.ddimg /

[root@flatbertrescue:/iscsir]# lsblk | grep 100
sdb       8:16   0   100G  0 disk 
[root@flatbertrescue:/iscsir]# gdisk /dev/sdb

gdisk /dev/sda


Number  Start (sector)    End (sector)  Size       Code  Name
   1               1              34   17.0 KiB    FFFF  
   5              34            6143   3.0 MiB     EF02  BIOS boot partition
   6            6144        10491903   5.0 GiB     FD00  Linux RAID
   7        10491904      3907029134   1.8 TiB     8300  Linux filesystem

n
8157
EF02
10493951
FD00
n

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048            8157   3.0 MiB     EF02  BIOS boot partition
   2            8192        10493951   5.0 GiB     FD00  Linux RAID
   3        10493952       209715166   95.0 GiB    8300  Linux filesystem

dd if=/iscsi/0.boot-sda2-flatbert-softraid1-btrfs--2014.03.25.ddimg of=/dev/sda2 bs=500M


mkfs.ext4 /dev/sda3
mkdir /sda3_system
mount /dev/sda3 /sda3_system

/usr/bin/rsync -av --delete --exclude '.snapshots' --progress /iscsi/flatbert_snap_784/ /sda3_system/
</source>

==== recovery /boot ====

<source lang="bash">
mkdir /sda2_bootraid

apt-get install mdadm

mdadm --assemble --scan

[root@flatbertrescue:~]# cat /proc/mdstat
Personalities : [raid1] 
md1 : active raid1 sda2[2]
      5242816 blocks [4/1] [__U_]
      
unused devices: <none>
[root@flatbertrescue:~]# 

mv /sda3_system/boot /sda3_system/boot_OLD
mkdir /sda3_system/boot

mkdir /sda2_bootraid
mount -o ro /dev/md1 /sda2_bootraid

/usr/bin/rsync -av --delete --exclude '.snapshots' --progress /sda2_bootraid/ /sda3_system/boot/

grub-install /dev/sda
grub-install --recheck /dev/sda
</source>

==== flatbert vm boot optionen ====

<source lang="bash">
vi /sda3_system/etc/fstab

### ### ### C3D2 ### ### ###

# root
/dev/sdae3              /                      ext4            errors=remount-ro   0   1
#
none                    /cgroup                cgroup          defaults            0   0
# swap
#/dev/sda2              none                   swap            sw                  0   0

### ### ### C3D2 ### ### ###
# EOF

/boot/grub/grub.cfg anpassen


</source>

==== VirtualBox - flatbert anpassungen ====

<source lang="bash">
VBoxManage storagectl flatbert --name "SATA Controller" --bootable off

VBoxManage showvminfo "flatbert"

VBoxManage storageattach "flatbert" --storagectl "SCSI Controller" \
     --port 0 --device 0 --type hdd --medium none

VBoxManage storageattach "flatbert" --storagectl "SCSI Controller" \
     --port 1 --device 0 --type hdd --medium none

VBoxManage storageattach "flatbert" --storagectl "IDE Controller" \
     --port 0 --device 1 --type hdd --medium /vserver/flatbert/system.vdi

VBoxManage storageattach "flatbert" --storagectl "SCSI Controller" \
     --port 0 --device 0 --type hdd --medium /vserver/flatbert/os_migration.vdi

VBoxManage modifyvm flatbert --macaddress1 0023420CCCDD
</source>

==== alte Netzwerkkarten (MAC Adresse) Verknüpfung löschen ====

<source lang="bash">
echo "" > /etc/udev/rules.d/70-persistent-net.rules
</source>

==== grub anpassen ====

<source lang="bash">
vi /etc/default/grub

GRUB_DISABLE_LINUX_UUID=true

update-grub

grub-mkconfig

update-grub
</source>

<source lang="bash">
VBoxManage storageattach flatbert --storagectl "IDE Controller" \
     --port 0 --device 0 --type dvddrive --medium none
</source>

==== iscsi rsync vbox recovery ====

<source lang="bash">
# iscsi rsync vbox recovery
38G     /iscsi/astrom_snap_784
/usr/bin/rsync -av --delete --exclude '.snapshots' --progress /iscsi/astrom_snap_784/ /rpool/disk1/
###
3.6G    /iscsi/astron_snap_784
/usr/bin/rsync -av --delete --exclude '.snapshots' --progress /iscsi/astron_snap_784/ /rpool/disk2/
###
### 4.0K    /iscsi/backup_list_snap_784
### 4.0K    /iscsi/backup_snap_784
### 4.0K    /iscsi/backups_snap_784
###
324M    /iscsi/blackhole_snap_784
/usr/bin/rsync -av --delete --exclude '.snapshots' --progress /iscsi/blackhole_snap_784/ /rpool/disk3/
###
### 32K     /iscsi/btrfs-admin_snap_784
###
2.0G    /iscsi/cloudybay_snap_784
/usr/bin/rsync -av --delete --exclude '.snapshots' --progress /iscsi/cloudybay_snap_784/ /rpool/disk4/
###
271M    /iscsi/debcache_snap_784
/usr/bin/rsync -av --delete --exclude '.snapshots' --progress /iscsi/debcache_snap_784/ /rpool/disk5/
###
826M    /iscsi/dn42_snap_784
/usr/bin/rsync -av --delete --exclude '.snapshots' --progress /iscsi/dn42_snap_784/ /rpool/disk6/
###
479M    /iscsi/dhcp_snap_784
/usr/bin/rsync -av --delete --exclude '.snapshots' --progress /iscsi/dhcp_snap_784/ /rpool/disk7/
###
799M    /iscsi/drucker_snap_784
/usr/bin/rsync -av --delete --exclude '.snapshots' --progress /iscsi/drucker_snap_784/ /rpool/disk8/
###
3.1G    /iscsi/feile_snap_1501
3.1G    /iscsi/feile_snap_784
/usr/bin/rsync -av --delete --exclude '.snapshots' --progress /iscsi/feile_snap_1501/ /rpool/disk9/
###
1.8G    /iscsi/fernandopoo_snap_784
/usr/bin/rsync -av --delete --exclude '.snapshots' --progress /iscsi/fernandopoo_snap_784/ /rpool/disk10/
###
1.2G    /iscsi/flatbert-extra-backups_snap_784
/usr/bin/rsync -av --delete --exclude '.snapshots' --progress /iscsi/flatbert-extra-backups_snap_784/ /rpool/disk11/
###
### 9.8G    /iscsi/flatbert_snap_784 ###
###
8.0G    /iscsi/git_snap_784
/usr/bin/rsync -av --delete --exclude '.snapshots' --progress /iscsi/git_snap_784/ /rpool/disk12/
###
721M    /iscsi/global_snap_784
/usr/bin/rsync -av --delete --exclude '.snapshots' --progress /iscsi/global_snap_784/ /rpool/disk13/
###
1.3G    /iscsi/jabber1_snap_784
/usr/bin/rsync -av --checksum --delete --exclude '.snapshots' --progress /iscsi/jabber1_snap_784/ /rpool/disk14/
###
882M    /iscsi/jabber2_snap_784
/usr/bin/rsync -av --checksum --delete --exclude '.snapshots' --progress /iscsi/jabber2_snap_784/ /rpool/disk15/
###
287M    /iscsi/knot_snap_784
/usr/bin/rsync -av --checksum --delete --exclude '.snapshots' --progress /iscsi/knot_snap_784/ /rpool/disk16/
###
716M    /iscsi/leviathan_snap_784
/usr/bin/rsync -av --checksum --delete --exclude '.snapshots' --progress /iscsi/leviathan_snap_784/ /rpool/disk17/
###
### 16K     /iscsi/lost+found
###
485M    /iscsi/lxc-cache_snap_
4.0K    /iscsi/lxc-cache_snap_784
/usr/bin/rsync -av --checksum --delete --exclude '.snapshots' --progress /iscsi/lxc-cache_snap_/ /rpool/disk18/
###
1.9G    /iscsi/matemat_snap_
/usr/bin/rsync -av --checksum --delete --exclude '.snapshots' --progress /iscsi/matemat_snap_/ /rpool/disk19/
###
### 4.0K    /iscsi/matemat_snap_784
### 4.0K    /iscsi/new_state_snap_784
### 4.0K    /iscsi/old_state_snap_784
### 4.0K    /iscsi/old-vms_snap_784
### 4.0K    /iscsi/Release.key_snap_784
###
578M    /iscsi/semanta_snap_784
/usr/bin/rsync -av --checksum --delete --exclude '.snapshots' --progress /iscsi/semanta_snap_784/ /rpool/disk20/
###
1.8G    /iscsi/sharing_snap_784
/usr/bin/rsync -av --checksum --delete --exclude '.snapshots' --progress /iscsi/sharing_snap_784/ /rpool/disk21/
###
### 1.3T    /iscsi/space_snap_1501
###
240M    /iscsi/thron2_snap_
4.0K    /iscsi/thron2_snap_784
/usr/bin/rsync -av --checksum --delete --exclude '.snapshots' --progress /iscsi/thron2_snap_/ /rpool/disk22/
###
932M    /iscsi/thron_snap_
4.0K    /iscsi/thron_snap_784
/usr/bin/rsync -av --checksum --delete --exclude '.snapshots' --progress /iscsi/thron_snap_/ /rpool/disk23/
###
736M    /iscsi/wiefelspuetz_snap_784
/usr/bin/rsync -av --checksum --delete --exclude '.snapshots' --progress /iscsi/wiefelspuetz_snap_784/ /rpool/disk24/
###
3.9G    /iscsi/wolke7_snap_784
/usr/bin/rsync -av --checksum --delete --exclude '.snapshots' --progress /iscsi/wolke7_snap_784/ /rpool/disk25/
###
469M    /iscsi/wormhole_snap_784
/usr/bin/rsync -av --checksum --delete --exclude '.snapshots' --progress /iscsi/wormhole_snap_784/ /rpool/disk26/
###
858M    /iscsi/www1_snap_784
/usr/bin/rsync -av --checksum --delete --exclude '.snapshots' --progress /iscsi/www1_snap_784/ /rpool/disk27/
###
### 42M     /iscsi/x.btrfsck.log
###
### 12K     /iscsi/x.ISCSI_SYNC.log
### 8.0K    /iscsi/x.ISCSI_SYNC.sh
### 12K     /iscsi/x.ISCSI_SYNC_v2.sh
### 12K     /iscsi/x.ISCSI_SYNC_v3.sh
###
# EOF
</source>

==== iscsi target - remove ====

<source lang="bash">
iscsiadm -m node --targetname "iqn.2014-03.de.c3d2.hq:target0" -u
iscsiadm -m node --targetname "iqn.2014-03.de.c3d2.hq:target0" -o delete
</source>

==== vserver symlinks ====

<source lang="bash">

ln -s /rpool/disk1 astrom
ln -s /rpool/disk2 astron
ln -s /rpool/disk3 blackhole
ln -s /rpool/disk4 cloudybay
ln -s /rpool/disk5 debcache
ln -s /rpool/disk6 dn42
ln -s /rpool/disk7 dhcp
ln -s /rpool/disk8 drucker
ln -s /rpool/disk9 feile
ln -s /rpool/disk10 fernandopoo
ln -s /rpool/disk11 flatbert-extra-backups
ln -s /rpool/disk12 git
ln -s /rpool/disk13 global
ln -s /rpool/disk14 jabber1
ln -s /rpool/disk15 jabber2
ln -s /rpool/disk16 knot
ln -s /rpool/disk17 leviathan
ln -s /rpool/disk18 lxc-cache
ln -s /rpool/disk19 matemat
ln -s /rpool/disk20 semanta
ln -s /rpool/disk21 sharing
ln -s /rpool/disk22 thron2
ln -s /rpool/disk23 thron
ln -s /rpool/disk24 wiefelspuetz
ln -s /rpool/disk25 wolke7
ln -s /rpool/disk26 wormhole
ln -s /rpool/disk27 www1
</source>

==== VirtualBox Stabilisierung / USB Support ====

<source lang="bash">

VBoxManage showvminfo "flatbert"

VBoxManage modifyvm flatbert --nicpromisc 1 allow-all

VBoxManage list usbhost

VBoxManage list usbfilters

UUID:               931dfdfd-e30b-42ff-9088-4e1923da908a
VendorId:           0x04e8 (04E8)
ProductId:          0x341b (341B)
Revision:           0.0 (0000)
Port:               0
USB version/speed:  0/2
Manufacturer:       Samsung
Product:            SCX-4200 Series
SerialNumber:       6123BABS703372N.
Address:            /dev/ugen4.2
Current State:      Busy

VBoxManage usbfilter del 1 --target flatbert --name Samsung-SCX-4200 --vendorid 0x04e8 --productid 0x341b

VBoxManage modifyvm flatbert --cpus 1
VBoxManage modifyvm flatbert --cpuexecutioncap 100

VBoxManage modifyvm flatbert --memory 4096

VBoxManage storagectl flatbert --name "SATA Controller" --hostiocache on
</source>

sonst:

<source lang="bash">
[  105.833836] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action
0x6 frozen
[  105.840347] ata3.00: failed command: FLUSH CACHE
[  105.844336] ata3.00: cmd e7/00:00:00:00:00/00:00:00:00:00/a0 tag 0
[  105.844336]          res 40/00:00:00:00:00/00:00:00:00:00/40 Emask
0x4 (timeout)
[  105.878414] ata3.00: status: { DRDY }
[  105.881768] ata3: hard resetting link
[  106.333308] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  106.333661] ata3.00: configured for UDMA/133
[  106.333666] ata3.00: device reported invalid CHS sector 0
[  106.333687] ata3: EH complete
[  136.827644] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action
0x6 frozen
[  136.833630] ata3.00: failed command: FLUSH CACHE
[  136.848982] ata3.00: cmd e7/00:00:00:00:00/00:00:00:00:00/a0 tag 0
[  136.848992]          res 40/00:00:00:00:00/00:00:00:00:00/40 Emask
0x4 (timeout)
[  136.870933] ata3.00: status: { DRDY }
[  136.874853] ata3: hard resetting link
[  137.292097] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[  137.292326] ata3.00: configured for UDMA/133
[  137.292331] ata3.00: device reported invalid CHS sector 0
[  137.292341] end_request: I/O error, dev sda, sector 38023176
[  137.297701] ata3: EH complete
[  137.304267] Aborting journal on device sda1-8.
[  137.334066] EXT4-fs error (device sda1) in
ext4_reserve_inode_write: Journal has aborted
[  137.341489] EXT4-fs (sda1): Remounting filesystem read-only
[  156.709682] journal commit I/O error
</source>

==== VirtualBox HOSTIO Cache ====

<source lang="bash">
VBoxManage modifyvm flatbert --bioslogodisplaytime 20000

VBoxManage storagectl flatbert --name "IDE Controller" --hostiocache on
VBoxManage storagectl flatbert --name "SCSI Controller" --hostiocache on
VBoxManage storagectl flatbert --name "SATA Controller" --hostiocache on
</source>

==== lxc-restart-all.sh ====

<source lang="bash">
#!/bin/sh
### ### ### C3D2 ### ### ###

### lxc - stop // ###
(
sleep 5
cd /etc/lxc/auto
for f in *.conf
do
        #h=`echo $f|sed -e 's/\([0-9]*-\)\?\(.*\).conf/\2/'`
        h=$(basename $(dirname `readlink $f`))
        echo "[LXC] Stopping $h"
        lxc-stop -n $h
        sleep 35
done
)
### // lxc - stop ###

echo ""
sleep 10

### lxc - start // ###
(
sleep 5
cd /etc/lxc/auto
for f in *.conf
do
        #h=`echo $f|sed -e 's/\([0-9]*-\)\?\(.*\).conf/\2/'`
        h=$(basename $(dirname `readlink $f`))
        echo "[LXC] Booting $h"
        #screen -d -m -S $h  -- lxc-start -n $h -f /etc/lxc/auto/$f
        ### tmux // ###
        #
         tmux new -s lxc -d 2>/dev/null
        sleep 1
        (tmux has -t lxc 2>/dev/null && tmux new-window -t lxc -n $h "lxc-start -n $h -f /var/lib/lxc/$h/config")
        #
        ### // tmux ###
        sleep 35
done
)
### // lxc - start ###

exit 0

### ### ### C3D2 ### ### ###
# EOF
</source>

==== restore über lokales iscsi und ext4fuse

<source lang="bash">
zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/storage/c3d2 zroot/storage/c3d2

service iscsid onestart

iscsictl -A -p 127.0.0.1 -t iqn.2014-03.de.c3d2.hq:target0

dmesg
------------------------------------------------------------------------------------------------------------------
cfiscsi_ioctl_handoff: new connection from iqn.1994-09.org.freebsd:spielbert.hq.c3d2.de (127.0.0.1) to iqn.2014-02.de.c3d2.hq:target0
da0 at iscsi1 bus 0 scbus7 target 0 lun 0
da0: <FREEBSD CTLDISK 0001> Fixed Direct Access SCSI-5 device 
da0: Serial Number MYSERIAL   0
da0: 2662400MB (5452595200 512 byte sectors: 255H 63S/T 339408C)
------------------------------------------------------------------------------------------------------------------

kldload /boot/kernel/fuse.ko
ext4fuse /dev/da0s1 /iscsi-mount 

rsync -av --delete --exclude '.snapshots' --progress /iscsi-mount/space_snap_1501/ /storage/c3d2/
</source>

==== flatbert - /etc/rc.local ====

<source lang="bash">
vi /etc/rc.local

#!/bin/sh
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

### ### ### C3D2 ### ### ###

(

TMUX=''

sleep 5
cd /etc/lxc/auto
for f in *.conf
do
        #h=`echo $f|sed -e 's/\([0-9]*-\)\?\(.*\).conf/\2/'`
        h=$(basename $(dirname `readlink $f`))
        echo "[LXC] Booting $h"
        #screen -d -m -S $h  -- lxc-start -n $h -f /etc/lxc/auto/$f
        ### tmux // ###
        ###
        ### tmux new -s lxc -d 2>/dev/null
        ### sleep 1
        ### (tmux has -t lxc 2>/dev/null && tmux new-window -t lxc -n $h "lxc-start -n $h -f /var/lib/lxc/$h/config")
        ###
        tmux new -s $h -d "lxc-start -n $h -f /var/lib/lxc/$h/config"
        ###
        ### // tmux ###
        sleep 35
done

### ### ### C3D2 ### ### ###
/usr/bin/mail -s "Flatbert Server - Systemboot" admin-c3d2@plitc.eu < /var/log/dmesg
### ### ### C3D2 ### ### ###

) & disown

exit 0

### ### ### C3D2 ### ### ###
# EOF
</source>

...

== ezjail ==

...

== ZFS Management ==

==== default zfs snapshots ====

<source lang=bash>
zfs snapshot zroot@_0000_default
zfs snapshot zroot/ROOT@_0000_default
zfs snapshot zroot/ROOT/default@_0000_default
zfs snapshot zroot/iscsi@_0000_default
zfs snapshot zroot/vserver@_0000_default
zfs snapshot zroot/tmp@_0000_default
zfs snapshot zroot/usr@_0000_default
zfs snapshot zroot/usr/home@_0000_default
zfs snapshot zroot/usr/ports@_0000_default
zfs snapshot zroot/usr/src@_0000_default
zfs snapshot zroot/var@_0000_default
zfs snapshot zroot/var/crash@_0000_default
zfs snapshot zroot/var/log@_0000_default
zfs snapshot zroot/var/mail@_0000_default
zfs snapshot zroot/var/tmp@_0000_default
zfs snapshot zroot/vserver/flatbert@_0000_default
zfs snapshot zroot/vserver/flatbert-clone@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk1@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk2@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk3@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk4@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk5@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk6@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk7@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk8@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk9@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk10@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk11@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk12@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk13@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk14@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk15@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk16@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk17@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk18@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk19@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk20@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk21@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk22@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk23@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk24@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk25@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk26@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk27@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk28@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk29@_0000_default
zfs snapshot zroot/vserver/flatbert/rpool/disk30@_0000_default
</source>

==== vserver / flatbert zfs clone ====

<source lang=bash>
zfs clone zroot/vserver/flatbert@_0000_default zroot/vserver/flatbert-clone/01.04.2014

cd "/home/rewt/VirtualBox VMs"

ln -s /vserver/flatbert-clone/01.04.2014 flatbert

cd "/home/rewt/VirtualBox VMs/flatbert"

ln -s /vserver/flatbert/rpool rpool
</source>

zfs clone für rpool - 06.04.2014

<source lang=bash>
zfs create -o checksum=fletcher4 -o compression=lz4 -o mountpoint=/vserver/flatbert-rpool-clone/06.04.2014 zroot/vserver/flatbert-rpool-clone/06.04.2014


zfs clone zroot/vserver/flatbert/rpool/disk1@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk1
zfs clone zroot/vserver/flatbert/rpool/disk2@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk2
zfs clone zroot/vserver/flatbert/rpool/disk3@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk3
zfs clone zroot/vserver/flatbert/rpool/disk4@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk4
zfs clone zroot/vserver/flatbert/rpool/disk5@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk5
zfs clone zroot/vserver/flatbert/rpool/disk6@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk6
zfs clone zroot/vserver/flatbert/rpool/disk7@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk7
zfs clone zroot/vserver/flatbert/rpool/disk8@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk8
zfs clone zroot/vserver/flatbert/rpool/disk9@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk9
zfs clone zroot/vserver/flatbert/rpool/disk10@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk10
zfs clone zroot/vserver/flatbert/rpool/disk11@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk11
zfs clone zroot/vserver/flatbert/rpool/disk12@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk12
zfs clone zroot/vserver/flatbert/rpool/disk13@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk13
zfs clone zroot/vserver/flatbert/rpool/disk14@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk14
zfs clone zroot/vserver/flatbert/rpool/disk15@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk15
zfs clone zroot/vserver/flatbert/rpool/disk16@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk16
zfs clone zroot/vserver/flatbert/rpool/disk17@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk17
zfs clone zroot/vserver/flatbert/rpool/disk18@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk18
zfs clone zroot/vserver/flatbert/rpool/disk19@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk19
zfs clone zroot/vserver/flatbert/rpool/disk20@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk20
zfs clone zroot/vserver/flatbert/rpool/disk21@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk21
zfs clone zroot/vserver/flatbert/rpool/disk22@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk22
zfs clone zroot/vserver/flatbert/rpool/disk23@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk23
zfs clone zroot/vserver/flatbert/rpool/disk24@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk24
zfs clone zroot/vserver/flatbert/rpool/disk25@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk25
zfs clone zroot/vserver/flatbert/rpool/disk26@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk26
zfs clone zroot/vserver/flatbert/rpool/disk27@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk27
zfs clone zroot/vserver/flatbert/rpool/disk28@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk28
zfs clone zroot/vserver/flatbert/rpool/disk29@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk29
zfs clone zroot/vserver/flatbert/rpool/disk30@_0000_default zroot/vserver/flatbert-rpool-clone/06.04.2014/disk30

ln -s /vserver/flatbert-rpool-clone/06.04.2014 /home/rewt/VirtualBox\ VMs/rpool
</source>

== komplexe Bridge Zones ==

<source lang="bash">
cat /etc/rc.conf

### ### ### C3D2 ### ### ###
#

hostname="freebert.hq.c3d2.de"
sshd_enable="YES"
sendmail_enable="NO"
zfs_enable="YES"
ntpd_enable="NO"
ntpdate_enable="YES"
openntpd_enable="YES"

collectd_enable="YES"
collectdmon_enable="NO"

### LACP // ###
#ifconfig_em0="ether 00:30:48:97:A6:C4 polling up"
#ifconfig_em1="ether 00:30:48:97:A6:C4 polling up"
ifconfig_em0="ether DE:AD:BA:BE:00:0E polling up"
ifconfig_em1="ether DE:AD:BA:BE:00:0E polling up"
ifconfig_lagg0="laggproto lacp laggport em0 laggport em1 lagghash l3"
### // LACP ###

### VIMAGE // ###
#
cloned_interfaces="lagg0 bridge0 bridge1 bridge2 bridge3 bridge4 bridge5 bridge6 bridge7 bridge8 bridge9 bridge10 bridge11 bridge12 bridge13 bridge14 bridge15 bridge16 bridge17 bridge18 bridge19 bridge20 bridge21 bridge22 bridge23 bridge24 bridge25 bridge26 bridge27 bridge28 bridge29 bridge30 bridge31 bridge32 bridge33 bridge34 bridge35 bridge36 bridge37 bridge38 bridge39 bridge40 bridge41 bridge42 bridge43 bridge44 bridge45 bridge46 tap0 tap1 tap2 tap3 tap4 tap5 tap6 tap7 tap8 tap9 tap10 tap11 tap12 tap13 tap14 tap15 tap16 tap17 tap18 tap19 tap20 tap21 tap22 tap23 tap24 tap25 tun0 tun1 tun2 tun3 tun4 tun5 tun6 tun7 tun8 tun9 tun10 tun11 tun12 tun13 tun14 tun15 tun16 tun17 tun18 tun19 tun20 tun21 tun22 tun23 tun24 tun25 gif0 gif1 gif2 gif3 gif4 gif5 gif6 gif7 gif8 gif9 gif10 gif11 gif12 gif13 gif14 gif15 gif16 gif17 gif18 gif19 gif20 gif21 gif22 gif23 gif24 gif25 epair0 epair1 epair2 epair3 epair4 epair5 epair6 epair7 epair8 epair9 epair10 epair11 epair12 epair13 epair14 epair15 epair16 epair17 epair18 epair19 epair20 epair21 epair22 epair23 epair24 epair25 epair26 epair27 epair28 epair29 epair30 epair31 epair32 epair33 epair34 epair35 epair36 epair37 epair38 epair39 epair40 epair41 epair42 epair43 epair44 epair45 epair46 epair47 epair48 epair49 epair50 epair51 epair52 epair53 epair54 epair55 epair56 epair57 epair58 epair59 epair60 epair61 epair62 epair63 epair64 epair65 epair66 epair67 epair68 epair69 epair70 epair71 epair72 epair73 epair74 epair75 epair76 epair77 epair78 epair79 epair80 epair81 epair82 epair83 epair84 epair85 epair86 epair87 epair88 epair89"
#
ifconfig_tap0="ether DE:AD:BA:BA:01:00 up"
ifconfig_tap1="ether DE:AD:BA:BA:01:01 up"
ifconfig_tap2="ether DE:AD:BA:BA:01:02 up"
ifconfig_tap3="ether DE:AD:BA:BA:01:03 up"
ifconfig_tap4="ether DE:AD:BA:BA:01:04 up"
ifconfig_tap5="ether DE:AD:BA:BA:01:05 up"
ifconfig_tap6="ether DE:AD:BA:BA:01:06 up"
ifconfig_tap7="ether DE:AD:BA:BA:01:07 up"
ifconfig_tap8="ether DE:AD:BA:BA:01:08 up"
ifconfig_tap9="ether DE:AD:BA:BA:01:09 up"
ifconfig_tap10="ether DE:AD:BA:BA:01:10 up"
ifconfig_tap11="ether DE:AD:BA:BA:01:11 up"
ifconfig_tap12="ether DE:AD:BA:BA:01:12 up"
ifconfig_tap13="ether DE:AD:BA:BA:01:13 up"
ifconfig_tap14="ether DE:AD:BA:BA:01:14 up"
ifconfig_tap15="ether DE:AD:BA:BA:01:15 up"
ifconfig_tap16="ether DE:AD:BA:BA:01:16 up"
ifconfig_tap17="ether DE:AD:BA:BA:01:17 up"
ifconfig_tap18="ether DE:AD:BA:BA:01:18 up"
ifconfig_tap19="ether DE:AD:BA:BA:01:19 up"
ifconfig_tap20="ether DE:AD:BA:BA:01:20 up"
ifconfig_tap21="ether DE:AD:BA:BA:01:21 up"
ifconfig_tap22="ether DE:AD:BA:BA:01:22 up"
ifconfig_tap23="ether DE:AD:BA:BA:01:23 up"
ifconfig_tap24="ether DE:AD:BA:BA:01:24 up"
ifconfig_tap25="ether DE:AD:BA:BA:01:25 up"
#
ifconfig_tun0="up"
ifconfig_tun1="up"
ifconfig_tun2="up"
ifconfig_tun3="up"
ifconfig_tun4="up"
ifconfig_tun5="up"
ifconfig_tun6="up"
ifconfig_tun7="up"
ifconfig_tun8="up"
ifconfig_tun9="up"
ifconfig_tun10="up"
ifconfig_tun11="up"
ifconfig_tun12="up"
ifconfig_tun13="up"
ifconfig_tun14="up"
ifconfig_tun15="up"
ifconfig_tun16="up"
ifconfig_tun17="up"
ifconfig_tun18="up"
ifconfig_tun19="up"
ifconfig_tun20="up"
ifconfig_tun21="up"
ifconfig_tun22="up"
ifconfig_tun23="up"
ifconfig_tun24="up"
ifconfig_tun25="up"
#
ifconfig_gif0="up"
ifconfig_gif1="up"
ifconfig_gif2="up"
ifconfig_gif3="up"
ifconfig_gif4="up"
ifconfig_gif5="up"
ifconfig_gif6="up"
ifconfig_gif7="up"
ifconfig_gif8="up"
ifconfig_gif9="up"
ifconfig_gif10="up"
ifconfig_gif11="up"
ifconfig_gif12="up"
ifconfig_gif13="up"
ifconfig_gif14="up"
ifconfig_gif15="up"
ifconfig_gif16="up"
ifconfig_gif17="up"
ifconfig_gif18="up"
ifconfig_gif19="up"
ifconfig_gif20="up"
ifconfig_gif21="up"
ifconfig_gif22="up"
ifconfig_gif23="up"
ifconfig_gif24="up"
ifconfig_gif25="up"
#
### HOST // ###
ifconfig_epair0a="ether DE:AD:BA:BE:00:0A up"
ifconfig_epair0b="ether DE:AD:BA:BE:00:0B up"
### HOST Interface // ###
ifconfig_epair1a="ether DE:AD:BA:BE:01:0A up"
ifconfig_epair1a_alias0="inet 172.22.99.10 netmask 255.255.255.0"
ifconfig_epair1a_ipv6="inet6 auto_linklocal accept_rtadv"
ifconfig_epair1a_alias1="inet6 2001:4dd0:fb82:c3d2::10 prefixlen 64"
### // HOST Interface ###
ifconfig_epair1b="ether DE:AD:BA:BE:01:0B up"
### // HOST ###
#
### VirtualMachine // ###
ifconfig_epair2a="ether DE:AD:BA:BE:02:0A up"
ifconfig_epair2b="ether DE:AD:BA:BE:02:0B up"
### // VirtualMachine ###
#
### vswitch - Jails // ###
ifconfig_epair3a="ether DE:AD:BA:BE:03:0A up"
ifconfig_epair3b="ether DE:AD:BA:BE:03:0B up"
### // vswitch - Jails ###
#
### Jails - vswitch // ###
ifconfig_epair10a="ether DE:AD:BA:BE:10:0A up"
ifconfig_epair10b="ether DE:AD:BA:BE:10:0B up"
ifconfig_epair11a="ether DE:AD:BA:BE:11:0A up"
ifconfig_epair11b="ether DE:AD:BA:BE:11:0B up"
ifconfig_epair12a="ether DE:AD:BA:BE:12:0A up"
ifconfig_epair12b="ether DE:AD:BA:BE:12:0B up"
ifconfig_epair13a="ether DE:AD:BA:BE:13:0A up"
ifconfig_epair13b="ether DE:AD:BA:BE:13:0B up"
ifconfig_epair14a="ether DE:AD:BA:BE:14:0A up"
ifconfig_epair14b="ether DE:AD:BA:BE:14:0B up"
ifconfig_epair15a="ether DE:AD:BA:BE:15:0A up"
ifconfig_epair15b="ether DE:AD:BA:BE:15:0B up"
ifconfig_epair16a="ether DE:AD:BA:BE:16:0A up"
ifconfig_epair16b="ether DE:AD:BA:BE:16:0B up"
ifconfig_epair17a="ether DE:AD:BA:BE:17:0A up"
ifconfig_epair17b="ether DE:AD:BA:BE:17:0B up"
ifconfig_epair18a="ether DE:AD:BA:BE:18:0A up"
ifconfig_epair18b="ether DE:AD:BA:BE:18:0B up"
ifconfig_epair19a="ether DE:AD:BA:BE:19:0A up"
ifconfig_epair19b="ether DE:AD:BA:BE:19:0B up"
ifconfig_epair20a="ether DE:AD:BA:BE:20:0A up"
ifconfig_epair20b="ether DE:AD:BA:BE:20:0B up"
ifconfig_epair21a="ether DE:AD:BA:BE:21:0A up"
ifconfig_epair21b="ether DE:AD:BA:BE:21:0B up"
ifconfig_epair22a="ether DE:AD:BA:BE:22:0A up"
ifconfig_epair22b="ether DE:AD:BA:BE:22:0B up"
ifconfig_epair23a="ether DE:AD:BA:BE:23:0A up"
ifconfig_epair23b="ether DE:AD:BA:BE:23:0B up"
ifconfig_epair24a="ether DE:AD:BA:BE:24:0A up"
ifconfig_epair24b="ether DE:AD:BA:BE:24:0B up"
ifconfig_epair25a="ether DE:AD:BA:BE:25:0A up"
ifconfig_epair25b="ether DE:AD:BA:BE:25:0B up"
ifconfig_epair26a="ether DE:AD:BA:BE:26:0A up"
ifconfig_epair26b="ether DE:AD:BA:BE:26:0B up"
ifconfig_epair27a="ether DE:AD:BA:BE:27:0A up"
ifconfig_epair27b="ether DE:AD:BA:BE:27:0B up"
ifconfig_epair28a="ether DE:AD:BA:BE:28:0A up"
ifconfig_epair28b="ether DE:AD:BA:BE:28:0B up"
ifconfig_epair29a="ether DE:AD:BA:BE:29:0A up"
ifconfig_epair29b="ether DE:AD:BA:BE:29:0B up"
ifconfig_epair30a="ether DE:AD:BA:BE:30:0A up"
ifconfig_epair30b="ether DE:AD:BA:BE:30:0B up"
ifconfig_epair31a="ether DE:AD:BA:BE:31:0A up"
ifconfig_epair31b="ether DE:AD:BA:BE:31:0B up"
ifconfig_epair32a="ether DE:AD:BA:BE:32:0A up"
ifconfig_epair32b="ether DE:AD:BA:BE:32:0B up"
ifconfig_epair33a="ether DE:AD:BA:BE:33:0A up"
ifconfig_epair33b="ether DE:AD:BA:BE:33:0B up"
ifconfig_epair34a="ether DE:AD:BA:BE:34:0A up"
ifconfig_epair34b="ether DE:AD:BA:BE:34:0B up"
ifconfig_epair35a="ether DE:AD:BA:BE:35:0A up"
ifconfig_epair35b="ether DE:AD:BA:BE:35:0B up"
ifconfig_epair36a="ether DE:AD:BA:BE:36:0A up"
ifconfig_epair36b="ether DE:AD:BA:BE:36:0B up"
ifconfig_epair37a="ether DE:AD:BA:BE:37:0A up"
ifconfig_epair37b="ether DE:AD:BA:BE:37:0B up"
ifconfig_epair38a="ether DE:AD:BA:BE:38:0A up"
ifconfig_epair38b="ether DE:AD:BA:BE:38:0B up"
ifconfig_epair39a="ether DE:AD:BA:BE:39:0A up"
ifconfig_epair39b="ether DE:AD:BA:BE:39:0B up"
ifconfig_epair40a="ether DE:AD:BA:BE:40:0A up"
ifconfig_epair40b="ether DE:AD:BA:BE:40:0B up"
ifconfig_epair41a="ether DE:AD:BA:BE:41:0A up"
ifconfig_epair41b="ether DE:AD:BA:BE:41:0B up"
ifconfig_epair42a="ether DE:AD:BA:BE:42:0A up"
ifconfig_epair42b="ether DE:AD:BA:BE:42:0B up"
ifconfig_epair43a="ether DE:AD:BA:BE:43:0A up"
ifconfig_epair43b="ether DE:AD:BA:BE:43:0B up"
ifconfig_epair44a="ether DE:AD:BA:BE:44:0A up"
ifconfig_epair44b="ether DE:AD:BA:BE:44:0B up"
ifconfig_epair45a="ether DE:AD:BA:BE:45:0A up"
ifconfig_epair45b="ether DE:AD:BA:BE:45:0B up"
ifconfig_epair46a="ether DE:AD:BA:BE:46:0A up"
ifconfig_epair46b="ether DE:AD:BA:BE:46:0B up"
ifconfig_epair47a="ether DE:AD:BA:BE:47:0A up"
ifconfig_epair47b="ether DE:AD:BA:BE:47:0B up"
ifconfig_epair48a="ether DE:AD:BA:BE:48:0A up"
ifconfig_epair48b="ether DE:AD:BA:BE:48:0B up"
ifconfig_epair49a="ether DE:AD:BA:BE:49:0A up"
ifconfig_epair49b="ether DE:AD:BA:BE:49:0B up"
### // Jails - vswitch ###
#
### Jails // ###
ifconfig_epair50a="ether DE:AD:BA:BE:50:0A up"
ifconfig_epair50b="ether DE:AD:BA:BE:50:0B up"
ifconfig_epair51a="ether DE:AD:BA:BE:51:0A up"
ifconfig_epair51b="ether DE:AD:BA:BE:51:0B up"
ifconfig_epair52a="ether DE:AD:BA:BE:52:0A up"
ifconfig_epair52b="ether DE:AD:BA:BE:52:0B up"
ifconfig_epair53a="ether DE:AD:BA:BE:53:0A up"
ifconfig_epair53b="ether DE:AD:BA:BE:53:0B up"
ifconfig_epair54a="ether DE:AD:BA:BE:54:0A up"
ifconfig_epair54b="ether DE:AD:BA:BE:54:0B up"
ifconfig_epair55a="ether DE:AD:BA:BE:55:0A up"
ifconfig_epair55b="ether DE:AD:BA:BE:55:0B up"
ifconfig_epair56a="ether DE:AD:BA:BE:56:0A up"
ifconfig_epair56b="ether DE:AD:BA:BE:56:0B up"
ifconfig_epair57a="ether DE:AD:BA:BE:57:0A up"
ifconfig_epair57b="ether DE:AD:BA:BE:57:0B up"
ifconfig_epair58a="ether DE:AD:BA:BE:58:0A up"
ifconfig_epair58b="ether DE:AD:BA:BE:58:0B up"
ifconfig_epair59a="ether DE:AD:BA:BE:59:0A up"
ifconfig_epair59b="ether DE:AD:BA:BE:59:0B up"
ifconfig_epair60a="ether DE:AD:BA:BE:60:0A up"
ifconfig_epair60b="ether DE:AD:BA:BE:60:0B up"
ifconfig_epair61a="ether DE:AD:BA:BE:61:0A up"
ifconfig_epair61b="ether DE:AD:BA:BE:61:0B up"
ifconfig_epair62a="ether DE:AD:BA:BE:62:0A up"
ifconfig_epair62b="ether DE:AD:BA:BE:62:0B up"
ifconfig_epair63a="ether DE:AD:BA:BE:63:0A up"
ifconfig_epair63b="ether DE:AD:BA:BE:63:0B up"
ifconfig_epair64a="ether DE:AD:BA:BE:64:0A up"
ifconfig_epair64b="ether DE:AD:BA:BE:64:0B up"
ifconfig_epair65a="ether DE:AD:BA:BE:65:0A up"
ifconfig_epair65b="ether DE:AD:BA:BE:65:0B up"
ifconfig_epair66a="ether DE:AD:BA:BE:66:0A up"
ifconfig_epair66b="ether DE:AD:BA:BE:66:0B up"
ifconfig_epair67a="ether DE:AD:BA:BE:67:0A up"
ifconfig_epair67b="ether DE:AD:BA:BE:67:0B up"
ifconfig_epair68a="ether DE:AD:BA:BE:68:0A up"
ifconfig_epair68b="ether DE:AD:BA:BE:68:0B up"
ifconfig_epair69a="ether DE:AD:BA:BE:69:0A up"
ifconfig_epair69b="ether DE:AD:BA:BE:69:0B up"
ifconfig_epair70a="ether DE:AD:BA:BE:70:0A up"
ifconfig_epair70b="ether DE:AD:BA:BE:70:0B up"
ifconfig_epair71a="ether DE:AD:BA:BE:71:0A up"
ifconfig_epair71b="ether DE:AD:BA:BE:71:0B up"
ifconfig_epair72a="ether DE:AD:BA:BE:72:0A up"
ifconfig_epair72b="ether DE:AD:BA:BE:72:0B up"
ifconfig_epair73a="ether DE:AD:BA:BE:73:0A up"
ifconfig_epair73b="ether DE:AD:BA:BE:73:0B up"
ifconfig_epair74a="ether DE:AD:BA:BE:74:0A up"
ifconfig_epair74b="ether DE:AD:BA:BE:74:0B up"
ifconfig_epair75a="ether DE:AD:BA:BE:75:0A up"
ifconfig_epair75b="ether DE:AD:BA:BE:75:0B up"
ifconfig_epair76a="ether DE:AD:BA:BE:76:0A up"
ifconfig_epair76b="ether DE:AD:BA:BE:76:0B up"
ifconfig_epair77a="ether DE:AD:BA:BE:77:0A up"
ifconfig_epair77b="ether DE:AD:BA:BE:77:0B up"
ifconfig_epair78a="ether DE:AD:BA:BE:78:0A up"
ifconfig_epair78b="ether DE:AD:BA:BE:78:0B up"
ifconfig_epair79a="ether DE:AD:BA:BE:79:0A up"
ifconfig_epair79b="ether DE:AD:BA:BE:79:0B up"
ifconfig_epair80a="ether DE:AD:BA:BE:80:0A up"
ifconfig_epair80b="ether DE:AD:BA:BE:80:0B up"
ifconfig_epair81a="ether DE:AD:BA:BE:81:0A up"
ifconfig_epair81b="ether DE:AD:BA:BE:81:0B up"
ifconfig_epair82a="ether DE:AD:BA:BE:82:0A up"
ifconfig_epair82b="ether DE:AD:BA:BE:82:0B up"
ifconfig_epair83a="ether DE:AD:BA:BE:83:0A up"
ifconfig_epair83b="ether DE:AD:BA:BE:83:0B up"
ifconfig_epair84a="ether DE:AD:BA:BE:84:0A up"
ifconfig_epair84b="ether DE:AD:BA:BE:84:0B up"
ifconfig_epair85a="ether DE:AD:BA:BE:85:0A up"
ifconfig_epair85b="ether DE:AD:BA:BE:85:0B up"
ifconfig_epair86a="ether DE:AD:BA:BE:86:0A up"
ifconfig_epair86b="ether DE:AD:BA:BE:86:0B up"
ifconfig_epair87a="ether DE:AD:BA:BE:87:0A up"
ifconfig_epair87b="ether DE:AD:BA:BE:87:0B up"
ifconfig_epair88a="ether DE:AD:BA:BE:88:0A up"
ifconfig_epair88b="ether DE:AD:BA:BE:88:0B up"
ifconfig_epair89a="ether DE:AD:BA:BE:89:0A up"
ifconfig_epair89b="ether DE:AD:BA:BE:89:0B up"
### // Jails ###
#
### Gateway // ###
defaultrouter="172.22.99.4"
ipv6_defaultrouter="fe80::f6ec:38ff:feba:1dac%epair1a"
ip6addrctl_policy="ipv6_prefer"
### // Gateway ###
#
ifconfig_bridge0_name="vswitch0"
ifconfig_vswitch0="ether DE:AD:BA:BE:00:00 addm lagg0 stp lagg0 addm epair0a addm epair2a addm epair9a up"
#
ifconfig_bridge1_name="vswitch1"
ifconfig_vswitch1="ether DE:AD:BA:BE:00:01 addm epair0b stp epair0b addm epair1b up"
#
ifconfig_bridge2_name="vswitch2"
ifconfig_vswitch2="ether DE:AD:BA:BE:00:02 addm epair2b stp epair2b addm tap0 addm tap1 addm tap2 addm tap3 addm tap4 addm tap5 addm tap6 addm tap7 addm tap8 addm tap9 addm tap10 addm tap11 addm tap12 addm tap13 addm tap14 addm tap15 addm tap16 addm tap17 addm tap18 addm tap19 addm tap20 addm tap21 addm tap22 addm tap23 addm tap24 addm tap25 up"
#
ifconfig_bridge3_name="vswitch3"
ifconfig_vswitch3="ether DE:AD:BA:BE:00:03 addm epair3b up"
#
ifconfig_bridge4_name="vswitch4"
ifconfig_vswitch4="ether DE:AD:BA:BE:00:04 addm epair4b up"
#
ifconfig_bridge5_name="vswitch5"
ifconfig_vswitch5="ether DE:AD:BA:BE:00:05 addm epair5b up"
#
ifconfig_bridge6_name="vswitch6"
ifconfig_vswitch6="ether DE:AD:BA:BE:00:06 addm epair6b up"
#
ifconfig_bridge7_name="vswitch7"
ifconfig_vswitch7="ether DE:AD:BA:BE:00:07 addm epair7b up"
#
ifconfig_bridge8_name="vswitch8"
ifconfig_vswitch8="ether DE:AD:BA:BE:00:08 addm epair8b up"
#
ifconfig_bridge9_name="vswitch9"
ifconfig_vswitch9="ether DE:AD:BA:BE:00:09 addm epair9b stp epair9b addm epair10a addm epair11a addm epair12a addm epair13a addm epair14a addm epair15a addm epair16a addm epair17a addm epair18a addm epair19a addm epair20a addm epair21a addm epair22a addm epair23a addm epair24a addm epair25a addm epair26a addm epair27a addm epair28a addm epair29a addm epair30a addm epair31a addm epair32a addm epair33a addm epair34a addm epair35a addm epair36a addm epair37a addm epair38a addm epair39a addm epair40a addm epair41a addm epair42a addm epair43a addm epair44a addm epair45a addm epair46a addm epair47a addm epair48a addm epair49a up"
#
### Jails // ###
#
### ipredator.hq.c3d2.de
ifconfig_bridge10_name="vswitch10"
ifconfig_vswitch10="ether DE:AD:BA:BE:00:10 addm epair10b stp epair10b addm epair50b up"
#
### downpressor.hq.c3d2.de
ifconfig_bridge11_name="vswitch11"
ifconfig_vswitch11="ether DE:AD:BA:BE:00:11 addm epair11b stp epair11b addm epair51b up"
#
### dhcp.hq.c3d2.de
ifconfig_bridge12_name="vswitch12"
ifconfig_vswitch12="ether DE:AD:BA:BE:00:12 addm epair12b stp epair12b addm epair52b up"
#
### dnscache.hq.c3d2.de
ifconfig_bridge13_name="vswitch13"
ifconfig_vswitch13="ether DE:AD:BA:BE:00:13 addm epair13b stp epair13b addm epair53b up"
#
### storage.hq.c3d2.de
ifconfig_bridge14_name="vswitch14"
ifconfig_vswitch14="ether DE:AD:BA:BE:00:14 addm epair14b stp epair14b addm epair54b up"
#
### squid.hq.c3d2.de
ifconfig_bridge15_name="vswitch15"
ifconfig_vswitch15="ether DE:AD:BA:BE:00:15 addm epair15b stp epair15b addm epair55b up"
#
### watchbert.hq.c3d2.de
ifconfig_bridge16_name="vswitch16"
ifconfig_vswitch16="ether DE:AD:BA:BE:00:16 addm epair16b stp epair16b addm epair56b up"
#
### beastbert.hq.c3d2.de
ifconfig_bridge17_name="vswitch17"
ifconfig_vswitch17="ether DE:AD:BA:BE:00:17 addm epair17b stp epair17b addm epair57b up"
#
### vert.hq.c3d2.de
ifconfig_bridge18_name="vswitch18"
ifconfig_vswitch18="ether DE:AD:BA:BE:00:18 addm epair18b stp epair18b addm epair58b up"
#
### rippen.hq.c3d2.de
ifconfig_bridge19_name="vswitch19"
ifconfig_vswitch19="ether DE:AD:BA:BE:00:19 addm epair19b stp epair19b addm epair59b up"
#
### gitbert.hq.c3d2.de
ifconfig_bridge20_name="vswitch20"
ifconfig_vswitch20="ether DE:AD:BA:BE:00:20 addm epair20b stp epair20b addm epair60b up"
#
### listbert1.hq.c3d2.de
ifconfig_bridge21_name="vswitch21"
ifconfig_vswitch21="ether DE:AD:BA:BE:00:21 addm epair21b stp epair21b addm epair61b up"
#
### listbert2.hq.c3d2.de
ifconfig_bridge22_name="vswitch22"
ifconfig_vswitch22="ether DE:AD:BA:BE:00:22 addm epair22b stp epair22b addm epair62b up"
#
### saugbert.hq.c3d2.de
ifconfig_bridge23_name="vswitch23"
ifconfig_vswitch23="ether DE:AD:BA:BE:00:23 addm epair23b stp epair23b addm epair63b up"
#
### dilbert.hq.c3d2.de
ifconfig_bridge24_name="vswitch24"
ifconfig_vswitch24="ether DE:AD:BA:BE:00:24 addm epair24b stp epair24b addm epair64b up"
#
### elasticsearch.hq.c3d2.de
ifconfig_bridge25_name="vswitch25"
ifconfig_vswitch25="ether DE:AD:BA:BE:00:25 addm epair25b stp epair25b addm epair65b up"
#
### wire.hq.c3d2.de
ifconfig_bridge26_name="vswitch26"
ifconfig_vswitch26="ether DE:AD:BA:BE:00:26 addm epair26b stp epair26b addm epair66b up"
#
### distcc1.hq.c3d2.de
ifconfig_bridge27_name="vswitch27"
ifconfig_vswitch27="ether DE:AD:BA:BE:00:27 addm epair27b stp epair27b addm epair67b up"
#
### distcc2.hq.c3d2.de
ifconfig_bridge28_name="vswitch28"
ifconfig_vswitch28="ether DE:AD:BA:BE:00:28 addm epair28b stp epair28b addm epair68b up"
#
### distcc3.hq.c3d2.de
ifconfig_bridge29_name="vswitch29"
ifconfig_vswitch29="ether DE:AD:BA:BE:00:29 addm epair29b stp epair29b addm epair69b up"
#
### distcc4.hq.c3d2.de
ifconfig_bridge30_name="vswitch30"
ifconfig_vswitch30="ether DE:AD:BA:BE:00:30 addm epair30b stp epair30b addm epair70b up"
#
### dn42.hq.c3d2.de
ifconfig_bridge31_name="vswitch31"
ifconfig_vswitch31="ether DE:AD:BA:BE:00:31 addm epair31b stp epair31b addm epair71b up"
#
### public-ip.hq.c3d2.de
ifconfig_bridge32_name="vswitch32"
ifconfig_vswitch32="ether DE:AD:BA:BE:00:32 addm epair32b stp epair32b addm epair72b up"
#
### sniffer.hq.c3d2.de
ifconfig_bridge33_name="vswitch33"
ifconfig_vswitch33="ether DE:AD:BA:BE:00:33 addm epair33b stp epair33b addm epair73b up"
#
### dnstunnel.hq.c3d2.de
ifconfig_bridge34_name="vswitch34"
ifconfig_vswitch34="ether DE:AD:BA:BE:00:34 addm epair34b stp epair34b addm epair74b up"
#
### haproxy.hq.c3d2.de
ifconfig_bridge35_name="vswitch35"
ifconfig_vswitch35="ether DE:AD:BA:BE:00:35 addm epair35b stp epair35b addm epair75b up"
#
### tor.hq.c3d2.de
ifconfig_bridge36_name="vswitch36"
ifconfig_vswitch36="ether DE:AD:BA:BE:00:36 addm epair36b stp epair36b addm epair76b up"
#
### avahi.hq.c3d2.de
ifconfig_bridge37_name="vswitch37"
ifconfig_vswitch37="ether DE:AD:BA:BE:00:37 addm epair37b stp epair37b addm epair77b up"
#
### bitcoin.hq.c3d2.de
ifconfig_bridge38_name="vswitch38"
ifconfig_vswitch38="ether DE:AD:BA:BE:00:38 addm epair38b stp epair38b addm epair78b up"
#
### reverseproxy1.hq.c3d2.de / reverseproxy2.hq.c3d2.de
ifconfig_bridge39_name="vswitch39"
ifconfig_vswitch39="ether DE:AD:BA:BE:00:39 addm epair39b stp epair39b addm epair79b addm epair80b up"
#
### USELESS! reverseproxy2.hq.c3d2.de
ifconfig_bridge40_name="vswitch40"
ifconfig_vswitch40="ether DE:AD:BA:BE:00:40 addm epair40b stp epair40b up"
#
### music.hq.c3d2.de
ifconfig_bridge41_name="vswitch41"
ifconfig_vswitch41="ether DE:AD:BA:BE:00:41 addm epair41b stp epair41b addm epair81b up"
#
### privoxy.hq.c3d2.de
ifconfig_bridge42_name="vswitch42"
ifconfig_vswitch42="ether DE:AD:BA:BE:00:42 addm epair42b stp epair42b addm epair82b up"
#
### couchdb1.hq.c3d2.de
ifconfig_bridge43_name="vswitch43"
ifconfig_vswitch43="ether DE:AD:BA:BE:00:43 addm epair43b stp epair43b addm epair83b up"
#
### couchdb2.hq.c3d2.de
ifconfig_bridge44_name="vswitch44"
ifconfig_vswitch44="ether DE:AD:BA:BE:00:44 addm epair44b stp epair44b addm epair84b up"
#
### couchdb3.hq.c3d2.de
ifconfig_bridge45_name="vswitch45"
ifconfig_vswitch45="ether DE:AD:BA:BE:00:45 addm epair45b stp epair45b addm epair85b up"
#
### pentabot.hq.c3d2.de
ifconfig_bridge46_name="vswitch46"
ifconfig_vswitch46="ether DE:AD:BA:BE:00:46 addm epair46b stp epair46b addm epair86b up"
#
### // Jails ###
#
### // VIMAGE ###

### Firewall // ###
firewall_enable="YES"
#firewall_type="open"
firewall_logging="YES"
firewall_type="/etc/firewall.rules"
firewall_script="/etc/rc.firewall.local"
###
pf_enable="NO"                  # PF aktivieren (Modul, wenn noetig, aktivieren)
pf_rules="/etc/pf.conf"         # Datei mit Regeldefinitionen fuer pf
pf_flags=""                     # zusaetzliche Parameter fuer den Start von pfctl
pflog_enable="NO"               # starte pflogd(8)
pflog_logfile="/var/log/pflog"  # wo soll pflogd die Protokolldatei speichern
pflog_flags=""                  # zusaetzliche Parameter fuer den Start von pflogd
### // Firewall ###

### rsyslog // ###
### syslogd_enable="YES"
### syslogd_flags="-ss"
syslogd_enable="NO"
rsyslogd_enable="YES"
rsyslogd_pidfile="/var/run/syslog.pid"
### // rsyslog ###

font8x16="iso15-8x16"
font8x14="iso15-8x14"
font8x8="iso15-8x8"
keymap="german.iso"
### keymap="german.cp850.kbd"

### SSMTP // ###
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
### // SSMTP ###

### SMARTMONTOOLS // ###
smartd_enable="YES"
### // SMARTMONTOOLS ###

### 10.0 // ###
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
### // 10.0 ###

### <--- --- --- --- --- --- --- --- ---> ###

hald_enable="YES"
dbus_enable="YES"
### webcamd_enable="YES"

powerd_enable="YES"
powerd_flags="-a hiadaptive"

cupsd_enable="YES"
cups_browsed_enable="YES"
lpd_enable="NO"
moused_enable="NO"

mdnsresponder_enable="NO"
mdnsd_enable="NO"
avahi_daemon_enable="NO"
avahi_dnsconfd_enable="NO"

miredo_enable="NO"
### miredo-server_enable="NO"

git_daemon_enable="NO"

### Linux Layer // ###
linux_enable="NO"
### // Linux Layer ###

### vidcontrol -i mode (1024x768x16) ###
allscreens_flags="MODE_279"

### VirtualBox // ###
devfs_system_ruleset="system"
#
vboxnet_enable="YES"
vboxheadless_enable="NO"
vboxwatchdog_enable="NO"
vboxwebsrv_enable="NO"
#
### only guest options // ###               ###
### vboxguest_enable="YES"                  ###
### vboxservice_enable="YES"                ###
### vboxservice_flags="--disable-timesync"  ###
### // only guest options ###               ###
#
# VMs to start (whitespace-separated list):
vboxheadless_machines="flatbert"
#
# definition for VM with acronym "flatbert":
vboxheadless_flatbert_name="flatbert"
vboxheadless_flatbert_user="rewt"
###vboxheadless_flatbert_flags=""
vboxheadless_flatbert_stop="acpipowerbutton"
### // VirtualBox ###

### <--- --- --- --- --- --- --- --- ---> ###

### inetd_enable="NO"

### xdm_enable="NO"
### kdm_enable="NO"
### gdm_enable="NO"

### /usr/local services // ###
#
uuidd_enable="NO"
svnserve_enable="NO"
### snmptrapd_enable="NO"
### snmpd_enable="NO"
rsyncd_enable="NO"
### rrdcached_enable="NO"
### libvirtd_enable="NO"
### htcacheclean_enable="NO"
### ezjail_enable="NO"
### collectdmon_enable="NO"
### bsdstats_enable="NO"
#
tcsd_enable="NO"
mdnsresponderposix_enable="NO"
#
### // /usr/local services ###

### iSCSI Target // ###
ctld_enable="YES"
### // iSCSI Target ###

### ezjail // ###
ezjail_enable="NO"
jail_parameters="vnet=new"
### // ezjail ###

### NFS // ###
rpcbind_enable="YES"
#rpcbind_flags="-h 172.22.99.10"
nfs_server_enable="YES"
#mountd_flags="-r -h 172.22.99.10"
rpc_lockd_enable="YES"
#rpc_lockd_flags="-h 172.22.99.10"
rpc_statd_enable="YES"
#rpc_statd_flags="-h 172.22.99.10"
### // NFS ###

#
### ### ### C3D2 ### ### ###
# EOF
</source>

[[Kategorie:Infrastruktur]]
[[Kategorie:HQ]]
