18-05-10 installing some programs needed by backuppc: root@zbox:~# apt install apache2 apache2-utils libapache2-mod-perl2 par2 perl smbclient rsync tar gcc zlib1g zlib1g-dev libapache2-mod-scgi rrdtool git make perl-doc libarchive-zip-perl libfile-listing-perl libxml-rss-perl libcgi-session-perl Suggested packages: www-browser apache2-doc apache2-suexec-pristine | apache2-suexec-custom libdigest-hmac-perl libgssapi-perl libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl libcrypt-ssleay-perl libscalar-number-perl libtest-fatal-perl libauthen-ntlm-perl root@zbox:~# root@zbox:~# apt install libdigest-hmac-perl libgssapi-perl libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl libcrypt-ssleay-perl libtest-fatal-perl libauthen-ntlm-perl Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libbytes-random-secure-perl libcrypt-random-seed-perl libmath-base-convert-perl libmath-random-isaac-perl libmath-random-isaac-xs-perl libtext-soundex-perl The following NEW packages will be installed: libauthen-ntlm-perl libbytes-random-secure-perl libclone-perl libcrypt-random-seed-perl libcrypt-ssleay-perl libdigest-hmac-perl libgssapi-perl libmath-base-convert-perl libmath-random-isaac-perl libmath-random-isaac-xs-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl libtest-fatal-perl libtext-soundex-perl 0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded. Need to get 474 kB of archives. After this operation, 1,681 kB of additional disk space will be used. Do you want to continue? [Y/n] n Abort. ---------------------------------- cd /etc/ufw vim ufw.conf ufw allow 22/tcp ufw enable ufw status verbose ls -ltr vim user.rules ufw allow from 142.103.236.0/24 to any port 22 proto tcp ufw status verbose ufw logging on ufw allow from 142.103.235.1 to any port 22 proto tcp ufw allow from 142.103.235.80 to any port 22 proto tcp vim user.rules ufw reload ufw status verbose ufw allow from 142.103.235.80 to any port 80 proto tcp ufw allow from 142.103.235.1 to any port 80 proto tcp ufw allow from 142.103.236.0/24 to any port 80 proto tcp ufw allow from 142.103.236.0/24 to any port 443 proto tcp ufw allow from 142.103.235.0/24 to any port 80 proto tcp ufw allow from 142.103.235.0/24 to any port 443 proto tcp ufw status verbose sudo ufw app list sudo ufw app info "Apache Full" sudo ufw allow in "Apache Full" ---------------------------------------------- timedatectl timedatectl list-timezones | grep -i vancou timedatectl --help timedatectl set-timezone America/Vancouver timedatectl -------------------------------------------- cd /etc/network cat interfaces cd /etc/netplan/ ip a dmesg | grep -i eth cat 50-cloud-init.yaml vim /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg systemctl list-unit-files | grep -i clou mv 50-cloud-init.yaml 50-cloud-init.yaml.notused vim 01-netcfg.yaml vim /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg mv 01-netcfg.yaml 50-cloud-init.yaml vim 50-cloud-init.yaml netplan try ls /root mv 50-cloud-init.yaml.notused /root ll /root netplan try vim 50-cloud-init.yaml netplan try ip a networkctl networkctl status vim 50-cloud-init.yaml ip a vim 50-cloud-init.yaml systemd-analyze blame root@zbox:/etc/netplan# lshw -class network *-network:0 DISABLED description: Ethernet interface product: Ethernet Connection X552/X557-AT 10GBASE-T vendor: Intel Corporation physical id: 0 bus info: pci@0000:03:00.0 logical name: rename16 version: 00 serial: 0c:c4:7a:7d:3a:36 capacity: 10Gbit/s width: 64 bits clock: 33MHz capabilities: pm msi msix pciexpress vpd bus_master cap_list rom ethernet physical tp 1000bt-fd 10000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=ixgbe driverversion=5.1.0-k firmware=0x800001cf latency=0 link=no multicast=yes port=twisted pair resources: irq:25 memory:fbc00000-fbdfffff memory:fbe04000-fbe07fff memory:90100000-9017ffff memory:90200000-902fffff memory:90300000-903fffff *-network:1 DISABLED description: Ethernet interface product: Ethernet Connection X552/X557-AT 10GBASE-T vendor: Intel Corporation physical id: 0.1 bus info: pci@0000:03:00.1 logical name: rename14 version: 00 serial: 0c:c4:7a:7d:3a:37 capacity: 10Gbit/s width: 64 bits clock: 33MHz capabilities: pm msi msix pciexpress vpd bus_master cap_list rom ethernet physical tp 1000bt-fd 10000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=ixgbe driverversion=5.1.0-k firmware=0x800001cf latency=0 link=no multicast=yes port=twisted pair resources: irq:81 memory:fba00000-fbbfffff memory:fbe00000-fbe03fff memory:90180000-901fffff memory:90400000-904fffff memory:90500000-905fffff *-network:0 DISABLED description: Ethernet interface product: I350 Gigabit Network Connection vendor: Intel Corporation physical id: 0 bus info: pci@0000:05:00.0 logical name: eno1 version: 01 serial: 0c:c4:7a:7d:38:82 size: 1Gbit/s capacity: 1Gbit/s width: 32 bits clock: 33MHz capabilities: pm msi msix pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=igb driverversion=5.4.0-k duplex=full firmware=1.63, 0x800009fa latency=0 link=no multicast=yes port=twisted pair speed=1Gbit/s resources: irq:16 memory:fb320000-fb33ffff ioport:d020(size=32) memory:fb344000-fb347fff memory:90000000-9001ffff memory:90020000-9003ffff *-network:1 description: Ethernet interface product: I350 Gigabit Network Connection vendor: Intel Corporation physical id: 0.1 bus info: pci@0000:05:00.1 logical name: eno2 version: 01 serial: 0c:c4:7a:7d:38:83 size: 1Gbit/s capacity: 1Gbit/s width: 32 bits clock: 33MHz capabilities: pm msi msix pciexpress bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=igb driverversion=5.4.0-k duplex=full firmware=1.63, 0x800009fa ip=142.103.236.6 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s resources: irq:17 memory:fb300000-fb31ffff ioport:d000(size=32) memory:fb340000-fb343fff memory:90040000-9005ffff memory:90060000-9007ffff root@zbox:/etc/netplan# ifconfig -a | grep eth ether 0c:c4:7a:7d:38:82 txqueuelen 1000 (Ethernet) ether 0c:c4:7a:7d:38:83 txqueuelen 1000 (Ethernet) ether 0c:c4:7a:7d:3a:37 txqueuelen 1000 (Ethernet) ether 0c:c4:7a:7d:3a:36 txqueuelen 1000 (Ethernet) -------------------------- disable cloud-init https://nucco.org/2018/05/ubuntu-18-04-chronicles-removing-cloud-init.html root@zbox:/etc/systemd/network# systemctl show -p WantedBy network-online.target WantedBy=cloud-final.service nmbd.service open-iscsi.service iscsid.service postfix@-.service cloud-config.servic root@zbox:/etc/systemd/network# cd /etc/netplan/ root@zbox:/etc/netplan# ll total 12 drwxr-xr-x 2 root root 4096 May 18 14:25 ./ drwxr-xr-x 103 root root 4096 May 18 10:38 ../ -rw-r--r-- 1 root root 351 May 18 14:25 50-cloud-init.yaml root@zbox:/etc/netplan# systemctl list-unit-files | grep -i net netplan-wpa@.service static networkd-dispatcher.service enabled systemd-networkd-wait-online.service enabled systemd-networkd.service enabled systemd-networkd.socket enabled network-online.target static network-pre.target static network.target static root@zbox:/etc/netplan# pwd /etc/netplan root@zbox:/etc/netplan# man dpkg root@zbox:/etc/netplan# man dpkg root@zbox:/etc/netplan# systemctl list-unit-files | grep -i iscsi iscsi.service enabled iscsid.service enabled open-iscsi.service enabled root@zbox:/etc/netplan# systemctl stop iscsi.service root@zbox:/etc/netplan# systemctl stop iscsid.service root@zbox:/etc/netplan# systemctl stop open-iscsi.service root@zbox:/etc/netplan# systemctl disable iscsi.service Removed /etc/systemd/system/sysinit.target.wants/open-iscsi.service. Removed /etc/systemd/system/iscsi.service. root@zbox:/etc/netplan# systemctl disable iscsid.service Synchronizing state of iscsid.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install disable iscsid root@zbox:/etc/netplan# systemctl disable open-iscsi.service Synchronizing state of open-iscsi.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install disable open-iscsi root@zbox:/etc/netplan# systemctl list-unit-files | grep -i iscsi iscsid.service disabled open-iscsi.service disabled root@zbox:/etc/netplan# dpkg-reconfigure cloud-init selected last option only (None) ==================================================== root@zbox:~# networkctl status ● State: routable Address: 142.103.236.6 on eno2 fe80::ec4:7aff:fe7d:3883 on eno2 Gateway: 142.103.236.254 (Cisco Systems, Inc) on eno2 DNS: 142.103.1.42 137.82.1.2 142.103.51.51 Search Domains: phas.ubc.ca root@zbox:~# networkctl list IDX LINK TYPE OPERATIONAL SETUP 1 lo loopback carrier unmanaged 3 eno2 ether routable configured 14 rename14 ether off unmanaged 15 eno1 ether off unmanaged 16 rename16 ether off unmanaged 5 links listed. ================================================= netplan Ubuntu introduced netplan utlity to configure network on ubuntu 18.04 LTS. It uses YAML file format to read network configuration from /etc/netplan/ directory. https://www.krizna.com/ubuntu/setup-network-ubuntu-18-04/ https://netplan.io/examples ====================================================== nextcloud install apt install mysql-server mysql_secure_installation apt install php libapache2-mod-php php-mysql cd /etc/apache2/mods-enabled/ vim dir.conf (put index.php first) systemctl restart apache2 systemctl status apache2 systemctl status apache2@bpc apt search php- | less apt search php- apt install php-cli cd /var/www/html mv phpinfo.php phpinfo.php.hold apt list --installed | grep -i php root@zbox:/var/www/html# apt list --installed | grep -i php WARNING: apt does not have a stable CLI interface. Use with caution in scripts. libapache2-mod-php/bionic,now 1:7.2+60ubuntu1 all [installed] libapache2-mod-php7.2/bionic-updates,bionic-security,now 7.2.5-0ubuntu0.18.04.1 amd64 [installed,automatic] php/bionic,now 1:7.2+60ubuntu1 all [installed] php-cli/bionic,now 1:7.2+60ubuntu1 all [installed] php-common/bionic,now 1:60ubuntu1 all [installed,automatic] php-mysql/bionic,now 1:7.2+60ubuntu1 all [installed] php7.2/bionic-updates,bionic-security,now 7.2.5-0ubuntu0.18.04.1 all [installed,automatic] php7.2-cli/bionic-updates,bionic-security,now 7.2.5-0ubuntu0.18.04.1 amd64 [installed,automatic] php7.2-common/bionic-updates,bionic-security,now 7.2.5-0ubuntu0.18.04.1 amd64 [installed,automatic] php7.2-json/bionic-updates,bionic-security,now 7.2.5-0ubuntu0.18.04.1 amd64 [installed,automatic] php7.2-mysql/bionic-updates,bionic-security,now 7.2.5-0ubuntu0.18.04.1 amd64 [installed,automatic] php7.2-opcache/bionic-updates,bionic-security,now 7.2.5-0ubuntu0.18.04.1 amd64 [installed,automatic] php7.2-readline/bionic-updates,bionic-security,now 7.2.5-0ubuntu0.18.04.1 amd64 [installed,automatic] apt install php-mbstring root@zbox:/var/www/html# apt install php-soap php-apcu php-smbclient php-ldap php-gd php-xml php-intl php-json php-imagick php-mysql php-ldap php-zip php-curl php-mysql is already the newest version (1:7.2+60ubuntu1). The following additional packages will be installed: fonts-droid-fallback fonts-noto-mono ghostscript gsfonts imagemagick-6-common libcupsfilters1 libcupsimage2 libfftw3-double3 libgd3 libgs9 libgs9-common libijs-0.35 libjbig0 libjbig2dec0 libjpeg-turbo8 libjpeg8 liblcms2-2 liblqr-1-0 libmagickcore-6.q16-3 libmagickwand-6.q16-3 libpaper-utils libpaper1 libtiff5 libwebp6 libxpm4 libzip4 php-apcu-bc php7.2-curl php7.2-gd php7.2-intl php7.2-ldap php7.2-soap php7.2-xml php7.2-zip poppler-data ttf-dejavu-core Suggested packages: fonts-noto ghostscript-x libfftw3-bin libfftw3-dev libgd-tools liblcms2-utils libmagickcore-6.q16-3-extra poppler-utils fonts-japanese-mincho | fonts-ipafont-mincho fonts-japanese-gothic | fonts-ipafont-gothic fonts-arphic-ukai fonts-arphic-uming fonts-nanum The following NEW packages will be installed: fonts-droid-fallback fonts-noto-mono ghostscript gsfonts imagemagick-6-common libcupsfilters1 libcupsimage2 libfftw3-double3 libgd3 libgs9 libgs9-common libijs-0.35 libjbig0 libjbig2dec0 libjpeg-turbo8 libjpeg8 liblcms2-2 liblqr-1-0 libmagickcore-6.q16-3 libmagickwand-6.q16-3 libpaper-utils libpaper1 libtiff5 libwebp6 libxpm4 libzip4 php-apcu php-apcu-bc php-curl php-gd php-imagick php-intl php-json php-ldap php-smbclient php-soap php-xml php-zip php7.2-curl php7.2-gd php7.2-intl php7.2-ldap php7.2-soap php7.2-xml php7.2-zip poppler-data ttf-dejavu-core 0 upgraded, 47 newly installed, 0 to remove and 7 not upgraded. Need to get 18.3 MB of archives. After this operation, 65.7 MB of additional disk space will be used. Do you want to continue? [Y/n] y Creating config file /etc/papersize with new version Setting up imagemagick-6-common (8:6.9.7.4+dfsg-16ubuntu6) ... Setting up php-apcu (5.1.9+4.0.11-1build1) ... Setting up php7.2-xml (7.2.5-0ubuntu0.18.04.1) ... Creating config file /etc/php/7.2/mods-available/dom.ini with new version Creating config file /etc/php/7.2/mods-available/simplexml.ini with new version Creating config file /etc/php/7.2/mods-available/wddx.ini with new version Creating config file /etc/php/7.2/mods-available/xml.ini with new version Creating config file /etc/php/7.2/mods-available/xmlreader.ini with new version Creating config file /etc/php/7.2/mods-available/xmlwriter.ini with new version Creating config file /etc/php/7.2/mods-available/xsl.ini with new version Setting up fonts-droid-fallback (1:6.0.1r16-1.1) ... Setting up libpaper-utils (1.1.24+nmu5ubuntu1) ... Setting up php7.2-ldap (7.2.5-0ubuntu0.18.04.1) ... Creating config file /etc/php/7.2/mods-available/ldap.ini with new version Setting up gsfonts (1:8.11+urwcyr1.0.7~pre44-4.4) ... Setting up ttf-dejavu-core (2.37-1) ... Setting up liblcms2-2:amd64 (2.9-1) ... Setting up libjbig0:amd64 (2.1-3.1build1) ... Setting up poppler-data (0.4.8-2) ... Setting up php7.2-curl (7.2.5-0ubuntu0.18.04.1) ... Creating config file /etc/php/7.2/mods-available/curl.ini with new version Setting up php-curl (1:7.2+60ubuntu1) ... Setting up libjpeg-turbo8:amd64 (1.5.2-0ubuntu5) ... Setting up libfftw3-double3:amd64 (3.3.7-1) ... Setting up php-xml (1:7.2+60ubuntu1) ... Setting up php7.2-soap (7.2.5-0ubuntu0.18.04.1) ... Creating config file /etc/php/7.2/mods-available/soap.ini with new version Setting up fonts-noto-mono (20171026-2) ... Setting up php-smbclient (0.8.0-3build2) ... Setting up libzip4:amd64 (1.1.2-1.1) ... Setting up libcupsimage2:amd64 (2.2.7-1ubuntu2) ... Setting up liblqr-1-0:amd64 (0.4.2-2.1) ... Setting up libjbig2dec0:amd64 (0.13-6) ... Setting up php-ldap (1:7.2+60ubuntu1) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... Setting up php-json (1:7.2+60ubuntu1) ... Setting up libijs-0.35:amd64 (0.35-13) ... Setting up libxpm4:amd64 (1:3.5.12-1) ... Processing triggers for man-db (2.8.3-2) ... Setting up php7.2-intl (7.2.5-0ubuntu0.18.04.1) ... Creating config file /etc/php/7.2/mods-available/intl.ini with new version Setting up php-apcu-bc (1.0.3-2ubuntu2) ... Processing triggers for libapache2-mod-php7.2 (7.2.5-0ubuntu0.18.04.1) ... Setting up php-intl (1:7.2+60ubuntu1) ... Processing triggers for fontconfig (2.12.6-0ubuntu2) ... Setting up libwebp6:amd64 (0.6.1-2) ... Setting up libjpeg8:amd64 (8c-2ubuntu8) ... Setting up php7.2-zip (7.2.5-0ubuntu0.18.04.1) ... Creating config file /etc/php/7.2/mods-available/zip.ini with new version Setting up php-soap (1:7.2+60ubuntu1) ... Setting up libtiff5:amd64 (4.0.9-5) ... Setting up php-zip (1:7.2+60ubuntu1) ... Setting up libcupsfilters1:amd64 (1.20.2-0ubuntu3) ... Setting up libgs9:amd64 (9.22~dfsg+1-0ubuntu1.1) ... Setting up libmagickcore-6.q16-3:amd64 (8:6.9.7.4+dfsg-16ubuntu6) ... Setting up libgd3:amd64 (2.2.5-4) ... Setting up ghostscript (9.22~dfsg+1-0ubuntu1.1) ... Setting up libmagickwand-6.q16-3:amd64 (8:6.9.7.4+dfsg-16ubuntu6) ... Setting up php7.2-gd (7.2.5-0ubuntu0.18.04.1) ... Creating config file /etc/php/7.2/mods-available/gd.ini with new version Setting up php-imagick (3.4.3~rc2-2ubuntu4) ... Setting up php-gd (1:7.2+60ubuntu1) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... Processing triggers for libapache2-mod-php7.2 (7.2.5-0ubuntu0.18.04.1) ... =============================================================== 18-06-07 Ub18-zbox:~# ufw status Status: active To Action From -- ------ ---- 22/tcp ALLOW Anywhere 22/tcp ALLOW 142.103.236.0/24 22/tcp ALLOW 142.103.235.1 22/tcp ALLOW 142.103.235.80 80/tcp ALLOW 142.103.235.80 80/tcp ALLOW 142.103.235.1 80/tcp ALLOW 142.103.236.0/24 443/tcp ALLOW 142.103.236.0/24 80/tcp ALLOW 142.103.235.0/24 443/tcp ALLOW 142.103.235.0/24 8443/tcp ALLOW 142.103.235.1 8443/tcp ALLOW 142.103.235.80 8080/tcp ALLOW 142.103.235.1 8080/tcp ALLOW 142.103.235.80 8080/tcp ALLOW 142.103.235.0/24 8443/tcp ALLOW 142.103.235.0/24 8443/tcp ALLOW 142.103.237.0/24 8443/tcp ALLOW 142.103.239.0/24 22/tcp (v6) ALLOW Anywhere (v6) ufw commands: 1233 ufw status 1237 ufw allow from 142.103.235.1 to any port 8443 proto tcp 1278 history | grep ufw 1280 cd /etc/ufw 1284 systemctl restart ufw 1285 ufw status verbose 1289 sudo ufw app list 1291 vim applications.d/apache2-utils.ufw.profile 1304 systemctl restart ufw 1308 ufw delete "Apache Full" 1309 ufw status verbose 1311 ufw status verbose numbered 1312 ufw status numbered 1313 ufw delete 11 1316 ufw delete 16 1317 ufw status numbered 1326 ufw allow proto tcp from 142.103.235.0/24 to any port 8443 1401 ufw stop 1402 ufw disable 1403 cd /etc/ufw/ 1406 ufw enable 1415 ufw status verbose 1426 tail ufw.log 1701 systemctl status ufw 1704 ufw status numbered 1948 ufw status | grep 142.103.237 1949 ufw status | grep 142.103.235 1956 ufw reload 1990 ufw status ================================================================================= 18-06-07 mariadb installation Ub18-zbox:/var/lib/mysql# apt install mariadb-server mariadb-client mariadb-server-core-10.1 The following additional packages will be installed: galera-3 libconfig-inifiles-perl libdbd-mysql-perl libjemalloc1 libterm-readkey-perl mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common mariadb-server-10.1 socat Suggested packages: tinyca The following packages will be REMOVED: mysql-client-5.7 mysql-client-core-5.7 mysql-server mysql-server-5.7 mysql-server-core-5.7 The following NEW packages will be installed: galera-3 libconfig-inifiles-perl libdbd-mysql-perl libjemalloc1 libterm-readkey-perl mariadb-client mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common mariadb-server mariadb-server-10.1 mariadb-server-core-10.1 socat 0 upgraded, 13 newly installed, 5 to remove and 0 not upgraded. Need to get 21.9 MB of archives. After this operation, 16.1 MB of additional disk space will be used. Do you want to continue? [Y/n] y Jun 07 14:27:03 zbox systemd[1]: Starting MariaDB database server... Jun 07 14:27:04 zbox mysqld[5918]: 2018-06-07 14:27:04 140649310858368 [Note] /usr/sbin/mysqld (mysqld 10.1.29-MariaDB-6) starting Jun 07 14:28:33 zbox systemd[1]: mariadb.service: Start operation timed out. Terminating. Jun 07 14:28:36 zbox systemd[1]: mariadb.service: Failed with result 'timeout'. Jun 07 14:28:36 zbox systemd[1]: Failed to start MariaDB database server. Ub18-zbox:/var/lib/mysql# journalctl -xe -- -- Unit mariadb.service has begun starting up. Jun 07 14:27:04 zbox mysqld[5918]: 2018-06-07 14:27:04 140649310858368 [Note] /usr/sbin/mysqld (mysqld 10.1.29-MariaDB-6) starting Jun 07 14:27:04 zbox audit[5918]: AVC apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-1 Jun 07 14:27:04 zbox kernel: audit: type=1400 audit(1528406824.317:27): apparmor="DENIED" operation="sendmsg" info="Failed name lo Jun 07 14:28:33 zbox systemd[1]: mariadb.service: Start operation timed out. Terminating. Jun 07 14:28:33 zbox kernel: audit: type=1400 audit(1528406913.889:28): apparmor="DENIED" operation="sendmsg" info="Failed name lo Jun 07 14:28:33 zbox audit[5918]: AVC apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-1 Jun 07 14:28:36 zbox audit[5918]: AVC apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-1 Jun 07 14:28:36 zbox audit[5918]: AVC apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-1 Jun 07 14:28:36 zbox kernel: audit: type=1400 audit(1528406916.021:29): apparmor="DENIED" operation="sendmsg" info="Failed name lo Jun 07 14:28:36 zbox kernel: audit: type=1400 audit(1528406916.021:30): apparmor="DENIED" operation="sendmsg" info="Failed name lo Jun 07 14:28:36 zbox systemd[1]: mariadb.service: Failed with result 'timeout'. Jun 07 14:28:36 zbox systemd[1]: Failed to start MariaDB database server. -- Subject: Unit mariadb.service has failed -- Defined-By: systemd -- Support: http://www.ubuntu.com/support -- -- Unit mariadb.service has failed. -- -- The result is RESULT. see https://askubuntu.com/questions/750604/why-does-mariadb-keep-dying-how-do-i-stop-it?rq=1 https://www.cyberciti.biz/faq/ubuntu-linux-howto-disable-apparmor-commands/ ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/ then tried systemctl restart apparmor (didn't work) so... rebooted system and all was fine. Ub18-zbox:~# mysql_secure_installation Ub18-zbox:~# vim /etc/mysql/mariadb.conf.d/50-server.cnf (no chgs made at this time). Ub18-zbox:~# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 50 Server version: 10.1.29-MariaDB-6 Ubuntu 18.04 Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> CREATE DATABASE nextcloud; Query OK, 1 row affected (0.00 sec) MariaDB [(none)]> CREATE USER 'ncadmin'@'localhost' IDENTIFIED BY 'aa94878e0244549e677c6821317d8790'; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> GRANT ALL ON nextcloud.* TO 'ncadmin'@'localhost' IDENTIFIED BY 'aa94878e0244549e677c6821317d8790' WITH GRANT OPTION; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> quit Bye =========================================================== Ub18-zbox:/opt# cd /etc/apache2/sites-available/ Ub18-zbox:/etc/apache2/sites-available# vim nextcloud.conf Ub18-zbox:/etc/apache2/sites-available# ll total 28 drwxr-xr-x 2 root root 4096 Jun 7 15:33 ./ drwxr-xr-x 8 root root 4096 Jun 6 15:00 ../ -rw-r--r-- 1 root root 2305 May 22 14:22 000-default.conf -rw-r--r-- 1 root root 6832 May 22 12:11 default-ssl.conf -rw-r--r-- 1 root root 1212 Jan 2 2017 default-tls.conf -rw-r--r-- 1 root root 621 Jun 7 15:33 nextcloud.conf Ub18-zbox:/etc/apache2/sites-available# a2ensite nextcloud.conf Enabling site nextcloud. To activate the new configuration, you need to run: systemctl reload apache2 Ub18-zbox:/etc/apache2/sites-available# a2enmod rewrite Module rewrite already enabled Ub18-zbox:/etc/apache2/sites-available# a2enmod headers Enabling module headers. To activate the new configuration, you need to run: systemctl restart apache2 Ub18-zbox:/etc/apache2/sites-available# a2enmod env Module env already enabled Ub18-zbox:/etc/apache2/sites-available# a2enmod dir Module dir already enabled Ub18-zbox:/etc/apache2/sites-available# a2enmod mime Module mime already enabled Ub18-zbox:/etc/apache2/sites-available# systemctl restart apache2.service =================================================================== Ub18-zbox:/var/log# arp -a | grep 150 ? (192.168.1.150) at on eno1 Ub18-zbox:/var/log# ping 192.168.1.150 PING 192.168.1.150 (192.168.1.150) 56(84) bytes of data. ^C --- 192.168.1.150 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1024ms Ub18-zbox:/var/log# arp -d 192.168.1.150 Ub18-zbox:/var/log# arp -a | grep 150 Ub18-zbox:/var/log# ping 192.168.1.150 PING 192.168.1.150 (192.168.1.150) 56(84) bytes of data. ^C --- 192.168.1.150 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2030ms Ub18-zbox:/var/log# arp -a | grep 150 ? (192.168.1.150) at on eno1 Ub18-zbox:/var/log# ping 192.168.1.150 PING 192.168.1.150 (192.168.1.150) 56(84) bytes of data. ^C --- 192.168.1.150 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1017ms Ub18-zbox:/var/log# arp -s 192.168.1.150 5c:f3:fc:39:ec:3c Ub18-zbox:/var/log# arp -a | grep 150 ? (192.168.1.150) at 5c:f3:fc:39:ec:3c [ether] PERM on eno1 Ub18-zbox:/var/log# ping 192.168.1.150 PING 192.168.1.150 (192.168.1.150) 56(84) bytes of data. 64 bytes from 192.168.1.150: icmp_seq=1 ttl=64 time=0.242 ms 64 bytes from 192.168.1.150: icmp_seq=2 ttl=64 time=0.298 ms 64 bytes from 192.168.1.150: icmp_seq=3 ttl=64 time=0.270 ms ^C --- 192.168.1.150 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2036ms =================================================================== Ub18-zbox:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 87M 1 loop /snap/core/5145 loop1 7:1 0 86.9M 1 loop /snap/core/4830 loop2 7:2 0 86.9M 1 loop /snap/core/4917 sda 8:0 0 111.8G 0 disk ├─sda1 8:1 0 1M 0 part └─sda2 8:2 0 111.8G 0 part / sdb 8:16 0 3.7T 0 disk ├─sdb1 8:17 0 2G 0 part └─sdb2 8:18 0 3.7T 0 part sdc 8:32 0 3.7T 0 disk ├─sdc1 8:33 0 2G 0 part └─sdc2 8:34 0 3.7T 0 part sdd 8:48 0 3.7T 0 disk ├─sdd1 8:49 0 2G 0 part └─sdd2 8:50 0 3.7T 0 part sde 8:64 0 3.7T 0 disk ├─sde1 8:65 0 2G 0 part └─sde2 8:66 0 3.7T 0 part sdf 8:80 0 3.7T 0 disk ├─sdf1 8:81 0 2G 0 part └─sdf2 8:82 0 3.7T 0 part sdg 8:96 0 3.7T 0 disk ├─sdg1 8:97 0 2G 0 part └─sdg2 8:98 0 3.7T 0 part sdh 8:112 0 3.7T 0 disk ├─sdh1 8:113 0 2G 0 part └─sdh2 8:114 0 3.7T 0 part sdi 8:128 0 3.7T 0 disk ├─sdi1 8:129 0 2G 0 part └─sdi2 8:130 0 3.7T 0 part =================================================================== after reboot no pools available Last login: Wed Oct 17 10:39:27 2018 from 142.103.235.80 Ub18-zbox:~# zpool status no pools available # use zpool import commmand to list available pools Ub18-zbox:~# zpool import pool: tank1 id: 12067240702607040808 state: ONLINE action: The pool can be imported using its name or numeric identifier. config: tank1 ONLINE mirror-0 ONLINE sdf ONLINE sdg ONLINE mirror-1 ONLINE sdh ONLINE sda ONLINE mirror-2 ONLINE sdb ONLINE sdc ONLINE mirror-3 ONLINE sdd ONLINE sde ONLINE Ub18-zbox:~# zpool status no pools available Ub18-zbox:~# zpool import tank1 Ub18-zbox:~# zpool status pool: tank1 state: ONLINE scan: scrub repaired 0B in 14h46m with 0 errors on Sun Oct 14 15:10:05 2018 config: NAME STATE READ WRITE CKSUM tank1 ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 sdf ONLINE 0 0 0 sdg ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 sdh ONLINE 0 0 0 sda ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 sdb ONLINE 0 0 0 sdc ONLINE 0 0 0 mirror-3 ONLINE 0 0 0 sdd ONLINE 0 0 0 sde ONLINE 0 0 0 errors: No known data errors ========================================================================================================================= 18-11-26 upgrade backuppc to v4.3.0 Ub18-zbox:/opt# wget https://github.com/backuppc/backuppc/releases/download/4.3.0/BackupPC-4.3.0.tar.gz 2018-11-26 12:09:19 (1.60 MB/s) - ‘BackupPC-4.3.0.tar.gz’ saved [637725/637725] Ub18-zbox:/opt# ll total 2340 drwxr-xr-x 7 root root 4096 Nov 26 12:09 ./ drwxr-xr-x 25 root root 4096 Nov 14 06:21 ../ drwxr-xr-x 5 backuppc backuppc 4096 May 10 2018 BackupPC/ drwxr-xr-x 10 root root 4096 May 7 2018 BackupPC-4.2.1/ -rw-r--r-- 1 root root 633216 May 7 2018 BackupPC-4.2.1.tar.gz -rw-r--r-- 1 root root 637725 Nov 25 14:17 BackupPC-4.3.0.tar.gz drwxr-xr-x 7 root root 4096 May 9 2018 BackupPC-XS-0.57/ -rw-r--r-- 1 root root 287664 Dec 3 2017 BackupPC-XS-0.57.tar.gz drwxr-xr-x 14 www-data root 4096 Jun 27 12:20 nextcloud/ drwxrwxr-x 11 root root 4096 May 9 2018 rsync-bpc-3.0.9.12/ -rw-r--r-- 1 root root 786021 Jan 27 2018 rsync-bpc-3.0.9.12.tar.gz Ub18-zbox:/opt# tar zxf BackupPC-4.3.0.tar.gz Ub18-zbox:/opt# ll total 2344 drwxr-xr-x 8 root root 4096 Nov 26 12:11 ./ drwxr-xr-x 25 root root 4096 Nov 14 06:21 ../ drwxr-xr-x 5 backuppc backuppc 4096 May 10 2018 BackupPC/ drwxr-xr-x 10 root root 4096 May 7 2018 BackupPC-4.2.1/ -rw-r--r-- 1 root root 633216 May 7 2018 BackupPC-4.2.1.tar.gz drwxr-xr-x 10 317 317 4096 Nov 25 13:56 BackupPC-4.3.0/ -rw-r--r-- 1 root root 637725 Nov 25 14:17 BackupPC-4.3.0.tar.gz drwxr-xr-x 7 root root 4096 May 9 2018 BackupPC-XS-0.57/ -rw-r--r-- 1 root root 287664 Dec 3 2017 BackupPC-XS-0.57.tar.gz drwxr-xr-x 14 www-data root 4096 Jun 27 12:20 nextcloud/ drwxrwxr-x 11 root root 4096 May 9 2018 rsync-bpc-3.0.9.12/ -rw-r--r-- 1 root root 786021 Jan 27 2018 rsync-bpc-3.0.9.12.tar.gz Ub18-zbox:/opt# chown -R backuppc:backuppc BackupPC-4.3.0 Ub18-zbox:/opt# mkdir BackupPC.hold Ub18-zbox:/opt# cd BackupPC.hold/ Ub18-zbox:/opt/BackupPC.hold# cp -arv ../BackupPC/* . Ub18-zbox:/opt/BackupPC-4.3.0# systemctl stop backuppc.service Ub18-zbox:/opt/BackupPC-4.3.0# perl configure.pl Found /etc/BackupPC/config.pl, so this is an upgrade of an existing BackupPC installation. We will verify some existing information, but you will probably not need to make any changes - just hit ENTER to each question. I found the following locations for these programs: bzip2 => /bin/bzip2 cat => /bin/cat df => /bin/df gtar/tar => /bin/tar gzip => /bin/gzip hostname => /bin/hostname nmblookup => /usr/bin/nmblookup par2 => /usr/bin/par2 perl => /usr/bin/perl ping => /bin/ping ping6 => /bin/ping6 rrdtool => /usr/bin/rrdtool rsync => /usr/bin/rsync rsync_bpc => /usr/local/bin/rsync_bpc sendmail => /usr/sbin/sendmail smbclient => /usr/bin/smbclient split => /usr/bin/split ssh/ssh2 => /usr/bin/ssh --> Are these paths correct? [y]? Please tell me the hostname of the machine that BackupPC will run on. --> BackupPC will run on host [zbox]? BackupPC should run as a dedicated user with limited privileges. You need to create a user. This user will need read/write permission on the main data directory and read/execute permission on the install directory (these directories will be setup shortly). The primary group for this user should also be chosen carefully. The data directories and files will have group read permission, so group members can access backup files. --> BackupPC should run as user [backuppc]? Please specify an install directory for BackupPC. This is where the BackupPC scripts, library and documentation will be installed. --> Install directory (full path) [/opt/BackupPC]? Please specify a data directory for BackupPC. This is where all the PC backup data is stored. This file system needs to be big enough to accommodate all the PCs you expect to backup (eg: at least several GB per machine). --> Data directory (full path) [/tank1/BackupPC]? BackupPC has SCGI and CGI perl interfaces that run under Apache. You need to pick which one to run. For SCGI, Apache uses the scgi_mod module to communicate with BackupPC_Admin_SCGI, which handles the requests. This allows Apache to run as a different user as backuppc. To use SCGI you need to set SCGIServerPort to any spare non-privileged TCP port number. A negative value disables SCGI. Important security warning!! The SCGIServerPort must not be accessible by anyone untrusted. That means you can't allow untrusted users access to the BackupPC server, and you should block the SCGIServerPort TCP port from network access. The traditional alternative is to use CGI. In this case, an executable needs to be installed Apache's cgi-bin directory. This executable needs to run as set-uid backuppc, or it can be run under mod_perl with Apache running as user backuppc. --> SCGI port (-1 to disable) [-1]? --> CGI bin directory (full path, or empty for no CGI) [/usr/lib/cgi-bin]? BackupPC's CGI and SCGI script need to display various PNG/GIF images that should be stored where Apache can serve them. They should be placed somewhere under Apache's DocumentRoot. BackupPC also needs to know the URL to access these images. Example: Apache image directory: /var/www/htdocs/BackupPC URL for image directory: /BackupPC The URL for the image directory should start with a slash. --> Apache image directory (full path, or empty for no S/CGI) [/www/sites/BackupPC/html/images]? --> URL for image directory (omit http://host; starts with '/', or empty for no S/CGI) [/images]? Ok, we're about to: - install the binaries, lib and docs in /opt/BackupPC - create the data directory /tank1/BackupPC - optionally install the cgi-bin interface - create/update the config.pl file /etc/BackupPC/config.pl --> Do you want to continue? [y]? Created /tank1/BackupPC Created /tank1/BackupPC/pool Created /tank1/BackupPC/cpool Created /tank1/BackupPC/pc Created /etc/BackupPC Created /var/log/BackupPC Created /var/run/BackupPC Installing binaries in /opt/BackupPC/bin Installing library in /opt/BackupPC/lib Installing images in /www/sites/BackupPC/html/images Making systemd and init.d scripts Making Apache configuration file for suid-perl Installing docs in /opt/BackupPC/share/doc/BackupPC Installing cgi script BackupPC_Admin in /usr/lib/cgi-bin Installing config.pl and hosts in /etc/BackupPC Making backup copy of /etc/BackupPC/config.pl -> /etc/BackupPC/config.pl.pre-4.3.0 Ok, it looks like we are finished. There are several more things you will need to do: - Browse through the config file, /etc/BackupPC/config.pl, and make sure all the settings are correct. In particular, you will need to set $Conf{CgiAdminUsers} so you have administration privileges in the CGI interface. - Edit the list of hosts to backup in /etc/BackupPC/hosts. - Read the documentation in /opt/BackupPC/doc/BackupPC.html. Please pay special attention to the security section. - Verify that the CGI script BackupPC_Admin runs correctly. You might need to change the permissions or group ownership of BackupPC_Admin. If this is an upgrade and you are using mod_perl, you will need to restart Apache. Otherwise it will have stale code. - BackupPC should be ready to start. Don't forget to run it as user backuppc! The installation also contains a systemd/backuppc.service script that can be installed so that BackupPC can auto-start on boot. This will also enable administrative users to start the server from the CGI interface. See systemd/README. Enjoy! Ub18-zbox:/opt/BackupPC-4.3.0# systemctl start backuppc.service ========================================================================================================================= Ub18-zbox:~# date Tue Jan 22 10:57:27 PST 2019 Ub18-zbox:~# zpool status pool: tank1 state: ONLINE scan: scrub repaired 0B in 39h51m with 0 errors on Mon Jan 14 16:15:32 2019 config: NAME STATE READ WRITE CKSUM tank1 ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 sdg ONLINE 0 0 0 sdh ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 sdi ONLINE 0 0 0 sdb ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 sdc ONLINE 0 0 0 sdd ONLINE 0 0 0 mirror-3 ONLINE 0 0 0 sde ONLINE 0 0 0 sdf ONLINE 0 0 0 errors: No known data errors ========================================================================================================================= 19-02-19 upgrade Ubuntu from version 18.04.01 to 18.04.02 (https://www.cyberciti.biz/linux-news/ubuntu-18-04-lts-released-and-here-is-how-to-upgrade-it/) Ub18-zbox:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic Ub18-zbox:~# uname -mrs Linux 4.15.0-44-generic x86_64 Ub18-zbox:~# uname -a Linux zbox 4.15.0-44-generic #47-Ubuntu SMP Mon Jan 14 11:26:59 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux Ub18-zbox:~# reboot rap@spyder:~$ zbox Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-45-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Tue Feb 19 10:11:16 PST 2019 System load: 0.0 Processes: 396 Usage of /: 11.0% of 109.53GB Users logged in: 0 Memory usage: 2% IP address for eno1: 192.168.1.6 Swap usage: 0% IP address for eno2: 142.103.236.6 * MicroK8s is Kubernetes in a snap. Made by devs for devs. One quick install on a workstation, VM, or appliance. - https://bit.ly/microk8s * Full K8s GPU support is now available! - https://blog.ubuntu.com/2018/12/10/using-gpgpus-with-kubernetes * Canonical Livepatch is available for installation. - Reduce system reboots and improve kernel security. Activate at: https://ubuntu.com/livepatch 31 packages can be updated. 0 updates are security updates. Last login: Tue Feb 19 09:37:38 2019 from 142.103.235.1 Ub18-zbox:~# zpool status pool: tank1 state: ONLINE scan: scrub repaired 0B in 14h48m with 0 errors on Sun Feb 10 15:12:54 2019 config: NAME STATE READ WRITE CKSUM tank1 ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 sdf ONLINE 0 0 0 sdg ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 sdh ONLINE 0 0 0 sda ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 sdb ONLINE 0 0 0 sdc ONLINE 0 0 0 mirror-3 ONLINE 0 0 0 sdd ONLINE 0 0 0 sde ONLINE 0 0 0 errors: No known data errors Ub18-zbox:~# apt update 33 packages can be upgraded. Run 'apt list --upgradable' to see them. Ub18-zbox:~# apt dist-upgrade Setting up python3-distupgrade (1:18.04.30) ... Setting up python3-update-manager (1:18.04.11.9) ... Setting up ubuntu-release-upgrader-core (1:18.04.30) ... Installing new version of config file /etc/update-manager/release-upgrades ... Setting up update-manager-core (1:18.04.11.9) ... Setting up update-notifier-common (3.192.1.5) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... reboot Ub18-zbox:~# uname -mrs Linux 4.15.0-45-generic x86_64 Ub18-zbox:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.2 LTS Release: 18.04 Codename: bionic Ub18-zbox:~# dmesg | egrep -i 'err|warn|critical' [ 0.000000] ACPI: IRQ0 used by override. [ 0.000000] ACPI: IRQ9 used by override. [ 0.000000] DMAR-IR: Use 'intremap=no_x2apic_optout' to override the BIOS setting. [ 0.166074] ACPI: Using IOAPIC for interrupt routing [ 0.265853] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 10 *11 12) [ 0.266003] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 *10 11 12) [ 0.266151] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 *5 6 10 11 12) [ 0.266298] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 10 *11 12) [ 0.266444] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 10 11 12) *0, disabled. [ 0.266613] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 10 11 12) *0, disabled. [ 0.266782] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 10 11 12) *0, disabled. [ 0.266951] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 10 11 12) *0, disabled. [ 1.345663] ERST: Error Record Serialization Table (ERST) support is initialized. [ 1.454960] RAS: Correctable Errors collector initialized. [ 2.054127] i801_smbus 0000:00:1f.3: SMBus using PCI interrupt [ 2.072571] ACPI Warning: \_SB.PCI0.BR2C._PRT: Return Package has no elements (empty) (20170831/nsprepkg-130) [ 2.072849] pmd_set_huge: Cannot satisfy [mem 0xfbc00000-0xfbe00000] with a huge-page mapping due to MTRR override. [ 2.184505] igb 0000:05:00.0: Using MSI-X interrupts. 8 rx queue(s), 8 tx queue(s) [ 2.330527] igb 0000:05:00.1: Using MSI-X interrupts. 8 rx queue(s), 8 tx queue(s) [ 3.374377] random: 7 urandom warning(s) missed due to ratelimiting [ 3.647647] ACPI Warning: \_SB.PCI0.BR2C._PRT: Return Package has no elements (empty) (20170831/nsprepkg-130) [ 99.645145] ACPI Warning: SystemIO range 0x0000000000000428-0x000000000000042F conflicts with OpRegion 0x0000000000000428-0x000000000000042F (\GPE0) (20170831/utaddress-247) [ 99.645158] ACPI Warning: SystemIO range 0x0000000000000500-0x000000000000052F conflicts with OpRegion 0x000000000000052C-0x000000000000052D (\GPIV) (20170831/utaddress-247) [ 100.112923] EDAC MC0: Giving out device to module sb_edac controller Broadwell SrcID#0_Ha#0: DEV 0000:ff:12.0 (INTERRUPT) Ub18-zbox:~# ========================================================================================================================= 19-05-29 rdp Ub18-zbox# apt list --upgradable cloud-init/bionic-updates 19.1-1-gbaa47854-0ubuntu1~18.04.1 all [upgradable from: 18.5-45-g3554ffe8-0ubuntu1~18.04.1] initramfs-tools/bionic-updates 0.130ubuntu3.8 all [upgradable from: 0.130ubuntu3.7] initramfs-tools-bin/bionic-updates 0.130ubuntu3.8 amd64 [upgradable from: 0.130ubuntu3.7] initramfs-tools-core/bionic-updates 0.130ubuntu3.8 all [upgradable from: 0.130ubuntu3.7] Ub18-zbox# apt upgrade The following packages will be upgraded: cloud-init initramfs-tools initramfs-tools-bin initramfs-tools-core update-initramfs: Generating /boot/initrd.img-4.15.0-50-generic W: Possible missing firmware /lib/firmware/ast_dp501_fw.bin for module ast ========================================================================================================================= 19-09-11 Ub18-zbox:~# zfs set atime=off tank1 Ub18-zbox:~# zfs get all | grep atime tank1 atime off local tank1 relatime off default tank1/Archives atime off inherited from tank1 tank1/Archives relatime off default tank1/BackupPC atime off inherited from tank1 tank1/BackupPC relatime off default tank1/VMs atime off inherited from tank1 tank1/VMs relatime off default tank1/borg atime off inherited from tank1 tank1/borg relatime off default tank1/ncdata atime off inherited from tank1 tank1/ncdata relatime off default tank1/ncdataBU atime off inherited from tank1 tank1/ncdataBU relatime off default ========================================================================================================================= 19-11-19 Ub18-zbox:~# zpool events TIME CLASS Nov 15 2019 14:51:12.356270941 sysevent.fs.zfs.history_event Nov 15 2019 14:51:12.724270961 sysevent.fs.zfs.config_sync Nov 15 2019 14:51:12.724270961 sysevent.fs.zfs.pool_import Nov 15 2019 14:51:12.868270969 sysevent.fs.zfs.history_event Nov 15 2019 14:51:13.188270987 sysevent.fs.zfs.config_sync Ub18-zbox:~# zpool events -v TIME CLASS Nov 15 2019 14:51:12.356270941 sysevent.fs.zfs.history_event version = 0x0 class = "sysevent.fs.zfs.history_event" pool = "tank1" pool_guid = 0xa777737bea072128 pool_state = 0x0 pool_context = 0x0 history_hostname = "zbox" history_internal_str = "pool version 5000; software version 5000/5; uts zbox 5.0.0-36-generic #39~18.04.1-Ubuntu SMP Tue Nov 12 11:09:50 UTC 2019 x86_64" history_internal_name = "open" history_txg = 0x139b8b5 history_time = 0x5dcf2be0 time = 0x5dcf2be0 0x153c435d eid = 0x1 Nov 15 2019 14:51:12.724270961 sysevent.fs.zfs.config_sync version = 0x0 class = "sysevent.fs.zfs.config_sync" pool = "tank1" pool_guid = 0xa777737bea072128 pool_state = 0x0 pool_context = 0x0 time = 0x5dcf2be0 0x2b2b7f71 eid = 0x2 Nov 15 2019 14:51:12.724270961 sysevent.fs.zfs.pool_import version = 0x0 class = "sysevent.fs.zfs.pool_import" pool = "tank1" pool_guid = 0xa777737bea072128 pool_state = 0x0 pool_context = 0x0 time = 0x5dcf2be0 0x2b2b7f71 eid = 0x3 Nov 15 2019 14:51:12.868270969 sysevent.fs.zfs.history_event version = 0x0 class = "sysevent.fs.zfs.history_event" pool = "tank1" pool_guid = 0xa777737bea072128 pool_state = 0x0 pool_context = 0x0 history_hostname = "zbox" history_internal_str = "pool version 5000; software version 5000/5; uts zbox 5.0.0-36-generic #39~18.04.1-Ubuntu SMP Tue Nov 12 11:09:50 UTC 2019 x86_64" history_internal_name = "import" history_txg = 0x139b8b7 history_time = 0x5dcf2be0 time = 0x5dcf2be0 0x33c0c379 eid = 0x4 Nov 15 2019 14:51:13.188270987 sysevent.fs.zfs.config_sync version = 0x0 class = "sysevent.fs.zfs.config_sync" pool = "tank1" pool_guid = 0xa777737bea072128 pool_state = 0x0 pool_context = 0x0 time = 0x5dcf2be1 0xb38c98b eid = 0x5 ========================================================================================================================= 2020-06-11 # apt-get install rkhunter # rkhunter --propupd ========================================================================================================================= 2020-06-23 Ub18-zbox:~# for i in /etc/update-motd.d/*; do $i 2>/dev/null; done Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 5.3.0-53-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Tue Jun 23 11:09:16 PDT 2020 System load: 0.33 Processes: 434 Usage of /: 12.0% of 109.53GB Users logged in: 1 Memory usage: 94% IP address for eno1: 192.168.1.6 Swap usage: 0% IP address for eno2: 142.103.236.6 18 packages can be updated. 0 updates are security updates. Your Hardware Enablement Stack (HWE) is supported until April 2023. *** System restart required *** Ub18-zbox:~# apt-get update The following package was automatically installed and is no longer required: libegl1-mesa Use 'apt autoremove' to remove it. The following packages will be upgraded: libcephfs2 libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libnetplan0 librados2 netplan.io nplan python3-update-manager update-manager-core xserver-xorg-core-hwe-18.04 xserver-xorg-legacy-hwe-18.04 xserver-xorg-video-amdgpu-hwe-18.04 xserver-xorg-video-ati-hwe-18.04 xserver-xorg-video-radeon-hwe-18.04 18 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ========================================================================================================================= 2020-06-25 Ub18-zbox:/dev/disk/by-uuid# dmesg | grep sdi [ 2.924078] sd 1:0:0:0: [sdi] 234441648 512-byte logical blocks: (120 GB/112 GiB) [ 2.925647] sd 1:0:0:0: [sdi] Write Protect is off [ 2.926421] sd 1:0:0:0: [sdi] Mode Sense: 00 3a 00 00 [ 2.926436] sd 1:0:0:0: [sdi] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 2.932893] sdi: sdi1 sdi2 [ 2.934058] sd 1:0:0:0: [sdi] Attached SCSI disk [ 96.935189] EXT4-fs (sdi2): mounted filesystem with ordered data mode. Opts: (null) [ 97.837106] EXT4-fs (sdi2): re-mounted. Opts: (null) Ub18-zbox:/dev/disk/by-uuid# dmesg | grep "sd 1:0:0:0" [ 2.924013] sd 1:0:0:0: Attached scsi generic sg8 type 0 [ 2.924078] sd 1:0:0:0: [sdi] 234441648 512-byte logical blocks: (120 GB/112 GiB) [ 2.925647] sd 1:0:0:0: [sdi] Write Protect is off [ 2.926421] sd 1:0:0:0: [sdi] Mode Sense: 00 3a 00 00 [ 2.926436] sd 1:0:0:0: [sdi] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 2.934058] sd 1:0:0:0: [sdi] Attached SCSI disk Ub18-zbox:/dev/disk/by-uuid# hdparm -I /dev/sdi /dev/sdi: ATA device, with non-removable media Model Number: INTEL SSDSCKKW120H6 Serial Number: CVLY614000ZQ120H Firmware Revision: LSBG100 Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0 Standards: Used: unknown (minor revision code 0xffff) Supported: 10 9 8 7 6 5 Likely used: 10 Configuration: Logical max current cylinders 16383 16383 heads 16 16 sectors/track 63 63 -- CHS current addressable sectors: 16514064 LBA user addressable sectors: 234441648 LBA48 user addressable sectors: 234441648 Logical Sector size: 512 bytes Physical Sector size: 512 bytes Logical Sector-0 offset: 0 bytes device size with M = 1024*1024: 114473 MBytes device size with M = 1000*1000: 120034 MBytes (120 GB) cache/buffer size = unknown Form Factor: unknown (0x0007] Nominal Media Rotation Rate: Solid State Device Capabilities: LBA, IORDY(can be disabled) Queue depth: 32 Standby timer values: spec'd by Standard, no device specific minimum R/W multiple sector transfer: Max = 16 Current = 16 Advanced power management level: 254 DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 Cycle time: min=120ns recommended=120ns PIO: pio0 pio1 pio2 pio3 pio4 Cycle time: no flow control=120ns IORDY flow control=120ns Commands/features: Enabled Supported: * SMART feature set Security Mode feature set * Power Management feature set * Write cache * Look-ahead * Host Protected Area feature set * WRITE_BUFFER command * READ_BUFFER command * NOP cmd * DOWNLOAD_MICROCODE * Advanced Power Management feature set * 48-bit Address feature set * Mandatory FLUSH_CACHE * FLUSH_CACHE_EXT * SMART error logging * SMART self-test * General Purpose Logging feature set * WRITE_{DMA|MULTIPLE}_FUA_EXT * 64-bit World wide name * IDLE_IMMEDIATE with UNLOAD * WRITE_UNCORRECTABLE_EXT command * {READ,WRITE}_DMA_EXT_GPL commands * Segmented DOWNLOAD_MICROCODE * Gen1 signaling speed (1.5Gb/s) * Gen2 signaling speed (3.0Gb/s) * Gen3 signaling speed (6.0Gb/s) * Native Command Queueing (NCQ) * Host-initiated interface power management * Phy event counters * DMA Setup Auto-Activate optimization Device-initiated interface power management * Software settings preservation Device Sleep (DEVSLP) * SMART Command Transport (SCT) feature set * SCT Error Recovery Control (AC3) * SCT Features Control (AC4) * SCT Data Tables (AC5) * SANITIZE feature set * CRYPTO_SCRAMBLE_EXT command * BLOCK_ERASE_EXT command * reserved 69[4] * DOWNLOAD MICROCODE DMA command * WRITE BUFFER DMA command * READ BUFFER DMA command * Data Set Management TRIM supported (limit 8 blocks) * Deterministic read data after TRIM Security: Master password revision code = 65534 supported not enabled not locked not frozen not expired: security count supported: enhanced erase 4min for SECURITY ERASE UNIT. 2min for ENHANCED SECURITY ERASE UNIT. Logical Unit WWN Device Identifier: 55cd2e414cb79cd7 NAA : 5 IEEE OUI : 5cd2e4 Unique ID : 14cb79cd7 Device Sleep: DEVSLP Exit Timeout (DETO): 20 ms (drive) Minimum DEVSLP Assertion Time (MDAT): 31 ms (drive) Checksum: correct Ub18-zbox:/dev/disk/by-uuid# lshw -class disk -class storage *-storage description: Serial Attached SCSI controller product: SAS2308 PCI-Express Fusion-MPT SAS-2 vendor: LSI Logic / Symbios Logic physical id: 0 bus info: pci@0000:04:00.0 logical name: scsi0 version: 05 width: 64 bits clock: 33MHz capabilities: storage pm pciexpress vpd msi msix bus_master cap_list rom configuration: driver=mpt3sas latency=0 resources: irq:29 ioport:e000(size=256) memory:fb240000-fb24ffff memory:fb200000-fb23ffff memory:fb100000-fb1fffff *-disk:0 description: ATA Disk product: HGST HDN724040AL physical id: 0.0.0 bus info: scsi@0:0.0.0 logical name: /dev/sda version: A5E0 serial: PK1334PEJGUT6S size: 3726GiB (4TB) capacity: 3726GiB (4TB) capabilities: 15000rpm gpt-1.00 partitioned partitioned:gpt configuration: ansiversion=6 guid=49a50da3-43d8-11e6-a78b-0cc47a7d3a36 logicalsectorsize=512 sectorsize=4096 *-disk:1 description: ATA Disk product: HGST HDN724040AL physical id: 0.1.0 bus info: scsi@0:0.1.0 logical name: /dev/sdb version: A5E0 serial: PK1334PCJTGPPS size: 3726GiB (4TB) capacity: 3726GiB (4TB) capabilities: 15000rpm gpt-1.00 partitioned partitioned:gpt configuration: ansiversion=6 guid=4c40afdc-43d8-11e6-a78b-0cc47a7d3a36 logicalsectorsize=512 sectorsize=4096 *-disk:2 description: ATA Disk product: HGST HDN724040AL physical id: 0.2.0 bus info: scsi@0:0.2.0 logical name: /dev/sdc version: A5E0 serial: PK1334PCJS3AYS size: 3726GiB (4TB) capacity: 3726GiB (4TB) capabilities: 15000rpm gpt-1.00 partitioned partitioned:gpt configuration: ansiversion=6 guid=4ee57839-43d8-11e6-a78b-0cc47a7d3a36 logicalsectorsize=512 sectorsize=4096 *-disk:3 description: ATA Disk product: HGST HDN724040AL physical id: 0.3.0 bus info: scsi@0:0.3.0 logical name: /dev/sdd version: A5E0 serial: PK1334PEJJ1RHS size: 3726GiB (4TB) capacity: 3726GiB (4TB) capabilities: 15000rpm gpt-1.00 partitioned partitioned:gpt configuration: ansiversion=6 guid=51858d83-43d8-11e6-a78b-0cc47a7d3a36 logicalsectorsize=512 sectorsize=4096 *-disk:4 description: ATA Disk product: HGST HDN724040AL physical id: 0.4.0 bus info: scsi@0:0.4.0 logical name: /dev/sde version: A5E0 serial: PK1334PEJG7DLS size: 3726GiB (4TB) capacity: 3726GiB (4TB) capabilities: 15000rpm gpt-1.00 partitioned partitioned:gpt configuration: ansiversion=6 guid=54197230-43d8-11e6-a78b-0cc47a7d3a36 logicalsectorsize=512 sectorsize=4096 *-disk:5 description: ATA Disk product: HGST HDN724040AL physical id: 0.5.0 bus info: scsi@0:0.5.0 logical name: /dev/sdf version: A5E0 serial: PK1334PEJGLZMS size: 3726GiB (4TB) capacity: 3726GiB (4TB) capabilities: 15000rpm gpt-1.00 partitioned partitioned:gpt configuration: ansiversion=6 guid=41fca7c1-43d8-11e6-a78b-0cc47a7d3a36 logicalsectorsize=512 sectorsize=4096 *-disk:6 description: ATA Disk product: HGST HDN724040AL physical id: 0.6.0 bus info: scsi@0:0.6.0 logical name: /dev/sdg version: A5E0 serial: PK1334PEJGET0S size: 3726GiB (4TB) capacity: 3726GiB (4TB) capabilities: 15000rpm gpt-1.00 partitioned partitioned:gpt configuration: ansiversion=6 guid=449225cf-43d8-11e6-a78b-0cc47a7d3a36 logicalsectorsize=512 sectorsize=4096 *-disk:7 description: ATA Disk product: HGST HDN724040AL physical id: 0.7.0 bus info: scsi@0:0.7.0 logical name: /dev/sdh version: A5E0 serial: PK1334PEJGX75S size: 3726GiB (4TB) capacity: 3726GiB (4TB) capabilities: 15000rpm gpt-1.00 partitioned partitioned:gpt configuration: ansiversion=6 guid=470bcde4-43d8-11e6-a78b-0cc47a7d3a36 logicalsectorsize=512 sectorsize=4096 *-storage description: SATA controller product: 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] vendor: Intel Corporation physical id: 1f.2 bus info: pci@0000:00:1f.2 version: 05 width: 32 bits clock: 66MHz capabilities: storage msi pm ahci_1.0 bus_master cap_list configuration: driver=ahci latency=0 resources: irq:34 ioport:f070(size=8) ioport:f060(size=4) ioport:f050(size=8) ioport:f040(size=4) ioport:f020(size=32) memory:fb612000-fb6127ff *-scsi physical id: 1 logical name: scsi1 capabilities: emulated *-disk description: ATA Disk product: INTEL SSDSCKKW12 physical id: 0.0.0 bus info: scsi@1:0.0.0 logical name: /dev/sdi version: G100 serial: CVLY614000ZQ120H size: 111GiB (120GB) capabilities: gpt-1.00 partitioned partitioned:gpt configuration: ansiversion=5 guid=e3297966-0446-474f-bf7a-886cf0582761 logicalsectorsize=512 sectorsize=512 ========================================================================================================================= 2020-07-13 firewall: cd /etc/ufw/ firewall: systemctl status ufw firewall: tail ufw.log firewall: ufw allow proto tcp from 142.103.235.0/24 to any port 8443 firewall: ufw app list firewall: ufw delete 11 firewall: ufw delete 16 firewall: ufw disable firewall: ufw enable firewall: ufw reload firewall: ufw status firewall: ufw status numbered firewall: ufw status verbose firewall: ufw status | grep 142.103.235 firewall: ufw status | grep 142.103.237 firewall: ufw stop ========================================================================================================================= 2020-08-11 #apt-get update #apt-get upgrade Ub18-zbox:~# do-release-upgrade -c Checking for a new Ubuntu release There is no development version of an LTS available. To upgrade to the latest non-LTS develoment release set Prompt=normal in /etc/update-manager/release-upgrades. Ub18-zbox:~# do-release-upgrade -d upon restart, apache failed to start Ub18-zbox:/etc/apache2/mods-enabled# systemctl status apache2 ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2020-08-10 14:52:50 PDT; 8min ago Docs: https://httpd.apache.org/docs/2.4/ Process: 3993 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE) Aug 10 14:52:50 zbox systemd[1]: Starting The Apache HTTP Server... Aug 10 14:52:50 zbox apachectl[4005]: AH00526: Syntax error on line 6 of /etc/apache2/mods-enabled/gnutls.conf: Aug 10 14:52:50 zbox apachectl[4005]: Could not find socache provider 'dbm', please make sure that the provider name is valid and the ap> Aug 10 14:52:50 zbox apachectl[3993]: Action 'start' failed. Aug 10 14:52:50 zbox apachectl[3993]: The Apache error log may have more information. Aug 10 14:52:50 zbox systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE Aug 10 14:52:50 zbox systemd[1]: apache2.service: Failed with result 'exit-code'. Aug 10 14:52:50 zbox systemd[1]: Failed to start The Apache HTTP Server. ...skipping... ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2020-08-10 14:52:50 PDT; 8min ago Docs: https://httpd.apache.org/docs/2.4/ Process: 3993 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE) Aug 10 14:52:50 zbox systemd[1]: Starting The Apache HTTP Server... Aug 10 14:52:50 zbox apachectl[4005]: AH00526: Syntax error on line 6 of /etc/apache2/mods-enabled/gnutls.conf: Aug 10 14:52:50 zbox apachectl[4005]: Could not find socache provider 'dbm', please make sure that the provider name is valid and the ap> Aug 10 14:52:50 zbox apachectl[3993]: Action 'start' failed. Aug 10 14:52:50 zbox apachectl[3993]: The Apache error log may have more information. Aug 10 14:52:50 zbox systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE Aug 10 14:52:50 zbox systemd[1]: apache2.service: Failed with result 'exit-code'. Aug 10 14:52:50 zbox systemd[1]: Failed to start The Apache HTTP Server. Ub18-zbox:/etc/apache2/mods-enabled# systemctl start apache2@bpc Job for apache2@bpc.service failed because the control process exited with error code. See "systemctl status apache2@bpc.service" and "journalctl -xe" for details. Ub18-zbox:/etc/apache2/mods-enabled# systemctl status apache2@bpc.service ● apache2@bpc.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2@.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2020-08-10 15:05:37 PDT; 9s ago Docs: https://httpd.apache.org/docs/2.4/ Process: 4388 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE) Aug 10 15:05:37 zbox systemd[1]: Starting The Apache HTTP Server... Aug 10 15:05:37 zbox apachectl[4396]: AH00526: Syntax error on line 6 of /etc/apache2-bpc/mods-enabled/gnutls.conf: Aug 10 15:05:37 zbox apachectl[4396]: Could not find socache provider 'dbm', please make sure that the provider name is valid and the ap> Aug 10 15:05:37 zbox apachectl[4388]: Action 'start' failed. Aug 10 15:05:37 zbox apachectl[4388]: The Apache error log may have more information. Aug 10 15:05:37 zbox systemd[1]: apache2@bpc.service: Control process exited, code=exited, status=1/FAILURE Aug 10 15:05:37 zbox systemd[1]: apache2@bpc.service: Failed with result 'exit-code'. Aug 10 15:05:37 zbox systemd[1]: Failed to start The Apache HTTP Server. Ub18-zbox:/etc/apache2/mods-enabled# vim /etc/apache2-bpc/mods-enabled/gnutls.conf Ub18-zbox:/etc/apache2/mods-enabled# systemctl start apache2@bpc Error: Unable to connect to BackupPC server This CGI script (/backup) is unable to connect to the BackupPC server on zbox port -1. The error was: unix connect: No such file or directory. Perhaps the BackupPC server is not running or there is a configuration error. Please report this to your Sys Admin. fixed by: # systemctl start backuppc ========================================================================================================================= 2020-08-11 Ub18-zbox:~# zpool status pool: tank1 state: ONLINE status: Some supported features are not enabled on the pool. The pool can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not support the features. See zpool-features(5) for details. scan: scrub repaired 0B in 0 days 11:12:27 with 0 errors on Sun Aug 9 11:36:28 2020 config: NAME STATE READ WRITE CKSUM tank1 ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 sdg ONLINE 0 0 0 sdh ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 sdi ONLINE 0 0 0 sdb ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 sdc ONLINE 0 0 0 sdd ONLINE 0 0 0 mirror-3 ONLINE 0 0 0 sde ONLINE 0 0 0 sdf ONLINE 0 0 0 errors: No known data errors Ub18-zbox:~# zpool upgrade tank1 This system supports ZFS pool feature flags. Enabled the following features on 'tank1': encryption project_quota device_removal obsolete_counts zpool_checkpoint spacemap_v2 allocation_classes resilver_defer bookmark_v2 Ub18-zbox:~# zpool status pool: tank1 state: ONLINE scan: scrub repaired 0B in 0 days 11:12:27 with 0 errors on Sun Aug 9 11:36:28 2020 config: NAME STATE READ WRITE CKSUM tank1 ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 sdg ONLINE 0 0 0 sdh ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 sdi ONLINE 0 0 0 sdb ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 sdc ONLINE 0 0 0 sdd ONLINE 0 0 0 mirror-3 ONLINE 0 0 0 sde ONLINE 0 0 0 sdf ONLINE 0 0 0 errors: No known data errors ========================================================================================================================= 2020-08-18 Ub18-zbox:~# apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required: augeas-lenses certbot libaugeas0 python3-acme python3-augeas python3-certbot python3-certbot-apache python3-configargparse python3-future python3-icu python3-josepy python3-mock python3-parsedatetime python3-pbr python3-requests-toolbelt python3-rfc3339 python3-tz python3-zope.component python3-zope.event python3-zope.hookable Use 'apt autoremove' to remove them. The following packages will be upgraded: bcache-tools libnvpair1linux libuutil1linux libzfs2linux libzpool2linux python3-distupgrade ubuntu-release-upgrader-core zfs-zed zfsutils-linux 9 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Ub18-zbox:~# apt-get install unattended-upgrades -y unattended-upgrades is already the newest version (2.3ubuntu0.1). Ub18-zbox:~# apt-get install update-notifier-common -y update-notifier-common is already the newest version (3.192.30). Ub18-zbox:~# vim /etc/apt/apt.conf.d/50unattended-upgrades ========================================================================================================================= 2020-08-19 Aug 19 06:06:12 zbox systemd[1]: Starting Daily apt upgrade and clean activities... Aug 19 06:06:43 zbox systemd-networkd-wait-online[1553034]: Event loop failed: Connection timed out Aug 19 06:06:43 zbox apt-helper[1553025]: E: Sub-process /lib/systemd/systemd-networkd-wait-online returned an error code (1) Aug 19 06:06:43 zbox unattended-upgrade: Enabled logging to syslog via daemon facility Aug 19 06:06:43 zbox unattended-upgrade: Starting unattended upgrades script Aug 19 06:06:43 zbox unattended-upgrade: Allowed origins are: o=Ubuntu,a=focal, o=Ubuntu,a=focal-security, o=UbuntuESMApps,a=focal-apps-security, o=UbuntuESM,a=focal-infra-security Aug 19 06:06:43 zbox unattended-upgrade: Initial blacklist: Aug 19 06:06:43 zbox unattended-upgrade: Initial whitelist (not strict): Aug 19 06:06:44 zbox unattended-upgrade: No packages found that can be upgraded unattended and no pending auto-removals Aug 19 06:06:45 zbox postfix/pickup[1553020]: 3A0392200A3: uid=0 from= Aug 19 06:06:45 zbox postfix/cleanup[1553088]: 3A0392200A3: message-id=<20200819130645.3A0392200A3@zbox.phas.ubc.ca> Aug 19 06:06:45 zbox postfix/qmgr[134944]: 3A0392200A3: from=, size=1009, nrcpt=1 (queue active) Aug 19 06:06:45 zbox postfix/cleanup[1553088]: 438B1220087: message-id=<20200819130645.3A0392200A3@zbox.phas.ubc.ca> Aug 19 06:06:45 zbox postfix/local[1553094]: 3A0392200A3: to=, orig_to=, relay=local, delay=0.06, delays=0.04/0.02/0/0, dsn=2.0.0, status=sent (forwarded as 438B1220087) Aug 19 06:06:45 zbox postfix/qmgr[134944]: 438B1220087: from=, size=1143, nrcpt=1 (queue active) Aug 19 06:06:45 zbox postfix/qmgr[134944]: 3A0392200A3: removed Aug 19 06:06:45 zbox systemd[1]: apt-daily-upgrade.service: Succeeded. Aug 19 06:06:45 zbox systemd[1]: Finished Daily apt upgrade and clean activities. Aug 19 06:06:45 zbox postfix/smtp[1553098]: 438B1220087: to=, orig_to=, relay=mail.phas.ubc.ca[142.103.236.13]:25, delay=0.12, delays=0/0.02/0.01/0.08, dsn=2.0.0, status=sent (250 2.0.0 07JD6jjh017879 Message accepted for delivery) Aug 19 06:06:45 zbox postfix/qmgr[134944]: 438B1220087: removed ========================================================================================================================= 2020-09-01 ran manual update. ========================================================================================================================= 2020-09-03 Unattended upgrade result: All upgrades installed ========================================================================================================================= 21-05-31 Ub20-zbox:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 99.2M 1 loop /snap/core/10958 loop1 7:1 0 99M 1 loop /snap/core/11081 loop2 7:2 0 67.6M 1 loop /snap/lxd/20326 loop3 7:3 0 55.5M 1 loop /snap/core18/1997 loop4 7:4 0 70.4M 1 loop /snap/lxd/19647 loop5 7:5 0 55.4M 1 loop /snap/core18/2066 sda 8:0 0 111.8G 0 disk ├─sda1 8:1 0 1M 0 part └─sda2 8:2 0 111.8G 0 part / sdb 8:16 0 3.7T 0 disk ├─sdb1 8:17 0 2G 0 part └─sdb2 8:18 0 3.7T 0 part sdc 8:32 0 3.7T 0 disk ├─sdc1 8:33 0 2G 0 part └─sdc2 8:34 0 3.7T 0 part sdd 8:48 0 3.7T 0 disk ├─sdd1 8:49 0 2G 0 part └─sdd2 8:50 0 3.7T 0 part sde 8:64 0 3.7T 0 disk ├─sde1 8:65 0 2G 0 part └─sde2 8:66 0 3.7T 0 part sdf 8:80 0 3.7T 0 disk ├─sdf1 8:81 0 2G 0 part └─sdf2 8:82 0 3.7T 0 part sdg 8:96 0 3.7T 0 disk ├─sdg1 8:97 0 2G 0 part └─sdg2 8:98 0 3.7T 0 part sdh 8:112 0 3.7T 0 disk ├─sdh1 8:113 0 2G 0 part └─sdh2 8:114 0 3.7T 0 part sdi 8:128 0 3.7T 0 disk ├─sdi1 8:129 0 2G 0 part └─sdi2 8:130 0 3.7T 0 part ========================================================================================================================= 21-07-15 Ub20-zbox:~# apt-get install inxi Ub20-zbox:~# inxi CPU: 8-Core Intel Xeon D-1540 (-MT MCP-) speed/min/max: 801/800/2600 MHz Kernel: 5.4.0-77-generic x86_64 Up: 7d 5h 55m Mem: 27295.5/32013.0 MiB (85.3%) Storage: 29.22 TiB (35.1% used) Procs: 398 Shell: bash 5.0.17 inxi: 3.0.38 Ub20-zbox:~# inxi -d Drives: Local Storage: total: 29.22 TiB used: 10.27 TiB (35.1%) ID-1: /dev/sda vendor: Intel model: SSDSCKKW120H6 size: 111.79 GiB ID-2: /dev/sdb vendor: HGST (Hitachi) model: HDN724040AL size: 3.64 TiB ID-3: /dev/sdc vendor: HGST (Hitachi) model: HDN724040AL size: 3.64 TiB ID-4: /dev/sdd vendor: HGST (Hitachi) model: HDN724040AL size: 3.64 TiB ID-5: /dev/sde vendor: HGST (Hitachi) model: HDN724040AL size: 3.64 TiB ID-6: /dev/sdf vendor: HGST (Hitachi) model: HDN724040AL size: 3.64 TiB ID-7: /dev/sdg vendor: HGST (Hitachi) model: HDN724040AL size: 3.64 TiB ID-8: /dev/sdh vendor: HGST (Hitachi) model: HDN724040AL size: 3.64 TiB ID-9: /dev/sdi vendor: HGST (Hitachi) model: HDN724040AL size: 3.64 TiB Message: No Optical or Floppy data was found. Ub20-zbox:~# inxi -a CPU: 8-Core Intel Xeon D-1540 (-MT MCP-) speed/min/max: 801/800/2600 MHz Kernel: 5.4.0-77-generic x86_64 Up: 7d 5h 55m Mem: 27292.3/32013.0 MiB (85.3%) Storage: 29.22 TiB (35.1% used) Procs: 387 Shell: bash 5.0.17 inxi: 3.0.38 Ub20-zbox:~# inxi -b System: Host: zbox Kernel: 5.4.0-77-generic x86_64 bits: 64 Console: tty 0 Distro: Ubuntu 20.04.2 LTS (Focal Fossa) Machine: Type: Server System: Supermicro product: Super Server v: 0123456789 serial: 0123456789 Mobo: Supermicro model: X10SDV-8C-TLN4F v: 1.02 serial: ZM15BS016317 UEFI [Legacy]: American Megatrends v: 1.0b date: 09/09/2015 CPU: 8-Core: Intel Xeon D-1540 type: MT MCP speed: 801 MHz min/max: 800/2600 MHz Graphics: Device-1: ASPEED Graphics Family driver: ast v: kernel Display: server: No display server data found. Headless machine? tty: 119x62 Message: Advanced graphics data unavailable in console for root. Network: Device-1: Intel Ethernet X552/X557-AT 10GBASE-T driver: ixgbe Device-2: Intel Ethernet X552/X557-AT 10GBASE-T driver: ixgbe Device-3: Intel I350 Gigabit Network driver: igb Device-4: Intel I350 Gigabit Network driver: igb Drives: Local Storage: total: 29.22 TiB used: 10.27 TiB (35.1%) Info: Processes: 391 Uptime: 7d 5h 56m Memory: 31.26 GiB used: 26.65 GiB (85.3%) Init: systemd runlevel: 5 Shell: bash inxi: 3.0.38 Ub20-zbox:~# inxi -m Memory: RAM: total: 31.26 GiB used: 26.65 GiB (85.3%) Array-1: capacity: 128 GiB slots: 4 EC: Multi-bit ECC Device-1: DIMMA1 size: 16 GiB speed: 2133 MT/s Device-2: DIMMA2 size: No Module Installed Device-3: DIMMB1 size: 16 GiB speed: 2133 MT/s Device-4: DIMMB2 size: No Module Installed ========================================================================================================================= 21-08-06 replace failed disk NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT tank1 14.5T 10.3T 4.23T - - 32% 70% 1.00x ONLINE - pool: tank1 state: ONLINE status: One or more devices has experienced an unrecoverable error. An attempt was made to correct the error. Applications are unaffected. action: Determine if the device needs to be replaced, and clear the errors using 'zpool clear' or replace the device with 'zpool replace'. see: http://zfsonlinux.org/msg/ZFS-8000-9P scan: scrub repaired 0B in 0 days 10:10:56 with 0 errors on Sun Aug 1 14:10:58 2021 config: NAME STATE READ WRITE CKSUM tank1 ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 sdg ONLINE 0 0 0 sdh ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 sdi ONLINE 0 0 5 sdb ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 sdc ONLINE 0 0 0 sdd ONLINE 0 0 0 mirror-3 ONLINE 0 0 0 sde ONLINE 0 0 0 sdf ONLINE 0 0 0 errors: No known data errors Ub20-zbox:~# shutdown -h now rap@ada:~$ zbox Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-80-generic x86_64) System information as of Fri 06 Aug 2021 01:40:06 PM PDT System load: 0.09 Temperature: 66.0 C Usage of /: 19.9% of 109.53GB Processes: 451 Memory usage: 2% Users logged in: 0 Swap usage: 0% IPv4 address for eno2: 142.103.236.6 => There is 1 zombie process. Ub20-zbox:~# zpool status pool: tank1 state: DEGRADED status: One or more devices could not be used because the label is missing or invalid. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Replace the device using 'zpool replace'. see: http://zfsonlinux.org/msg/ZFS-8000-4J scan: scrub repaired 0B in 0 days 10:10:56 with 0 errors on Sun Aug 1 14:10:58 2021 config: NAME STATE READ WRITE CKSUM tank1 DEGRADED 0 0 0 mirror-0 ONLINE 0 0 0 sdg ONLINE 0 0 0 sdh ONLINE 0 0 0 mirror-1 DEGRADED 0 0 0 1989930319912953288 UNAVAIL 0 0 0 was /dev/sdi2 sdb ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 sdc ONLINE 0 0 0 sdd ONLINE 0 0 0 mirror-3 ONLINE 0 0 0 sde ONLINE 0 0 0 sdf ONLINE 0 0 0 errors: No known data errors Ub20-zbox:~# zpool replace tank1 sdi invalid vdev specification use '-f' to override the following errors: /dev/sdi contains a corrupt primary EFI label. Ub20-zbox:~# zpool replace -f tank1 sdi cannot replace sdi with sdi: no such device in pool Ub20-zbox:~# cd /dev/disk Ub20-zbox:/dev/disk# ls -lR | grep sdi lrwxrwxrwx 1 root root 9 Aug 6 13:35 scsi-35000cca269cda511 -> ../../sdi lrwxrwxrwx 1 root root 9 Aug 6 13:35 scsi-SATA_HGST_HDN726040AL_K7GZ0HZL -> ../../sdi lrwxrwxrwx 1 root root 9 Aug 6 13:35 wwn-0x5000cca269cda511 -> ../../sdi lrwxrwxrwx 1 root root 9 Aug 6 13:35 pci-0000:04:00.0-sas-phy6-lun-0 -> ../../sdi Ub20-zbox:~# fdisk /dev/sdi Welcome to fdisk (util-linux 2.34). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p Disk /dev/sdi: 3.65 TiB, 4000787030016 bytes, 7814037168 sectors Disk model: HGST HDN726040AL Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: CE82ED7A-D7A0-B645-9DD2-4B2C1C78AC28 Device Start End Sectors Size Type /dev/sdi1 2048 7814019071 7814017024 3.7T Solaris /usr & Apple ZFS /dev/sdi9 7814019072 7814035455 16384 8M Solaris reserved 1 Command (m for help): m Help: GPT M enter protective/hybrid MBR Generic d delete a partition F list free unpartitioned space l list known partition types n add a new partition p print the partition table t change a partition type v verify the partition table i print information about a partition Misc m print this menu x extra functionality (experts only) Script I load disk layout from sfdisk script file O dump disk layout to sfdisk script file Save & Exit w write table to disk and exit q quit without saving changes Create a new label g create a new empty GPT partition table G create a new empty SGI (IRIX) partition table o create a new empty DOS partition table s create a new empty Sun partition table Command (m for help): d Partition number (1,9, default 9): Partition 9 has been deleted. Command (m for help): d Selected partition 1 Partition 1 has been deleted. Command (m for help): p Disk /dev/sdi: 3.65 TiB, 4000787030016 bytes, 7814037168 sectors Disk model: HGST HDN726040AL Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: CE82ED7A-D7A0-B645-9DD2-4B2C1C78AC28 Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. Ub20-zbox:~# udevadm trigger Ub20-zbox:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 67.6M 1 loop /snap/lxd/20326 loop1 7:1 0 99.4M 1 loop /snap/core/11316 loop2 7:2 0 99.4M 1 loop /snap/core/11420 loop3 7:3 0 55.4M 1 loop /snap/core18/2066 loop4 7:4 0 70.3M 1 loop /snap/lxd/21029 loop5 7:5 0 55.5M 1 loop /snap/core18/2074 sda 8:0 0 111.8G 0 disk ├─sda1 8:1 0 1M 0 part └─sda2 8:2 0 111.8G 0 part / sdb 8:16 0 3.7T 0 disk ├─sdb1 8:17 0 2G 0 part └─sdb2 8:18 0 3.7T 0 part sdc 8:32 0 3.7T 0 disk ├─sdc1 8:33 0 2G 0 part └─sdc2 8:34 0 3.7T 0 part sdd 8:48 0 3.7T 0 disk ├─sdd1 8:49 0 2G 0 part └─sdd2 8:50 0 3.7T 0 part sde 8:64 0 3.7T 0 disk ├─sde1 8:65 0 2G 0 part └─sde2 8:66 0 3.7T 0 part sdf 8:80 0 3.7T 0 disk ├─sdf1 8:81 0 2G 0 part └─sdf2 8:82 0 3.7T 0 part sdg 8:96 0 3.7T 0 disk ├─sdg1 8:97 0 2G 0 part └─sdg2 8:98 0 3.7T 0 part sdh 8:112 0 3.7T 0 disk ├─sdh1 8:113 0 2G 0 part └─sdh2 8:114 0 3.7T 0 part sdi 8:128 0 3.7T 0 disk Ub20-zbox:~# zpool status pool: tank1 state: DEGRADED status: One or more devices could not be used because the label is missing or invalid. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Replace the device using 'zpool replace'. see: http://zfsonlinux.org/msg/ZFS-8000-4J scan: scrub repaired 0B in 0 days 10:10:56 with 0 errors on Sun Aug 1 14:10:58 2021 config: NAME STATE READ WRITE CKSUM tank1 DEGRADED 0 0 0 mirror-0 ONLINE 0 0 0 sdg ONLINE 0 0 0 sdh ONLINE 0 0 0 mirror-1 DEGRADED 0 0 0 1989930319912953288 UNAVAIL 0 0 0 was /dev/sdi2 sdb ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 sdc ONLINE 0 0 0 sdd ONLINE 0 0 0 mirror-3 ONLINE 0 0 0 sde ONLINE 0 0 0 sdf ONLINE 0 0 0 errors: No known data errors Ub20-zbox:~# zpool replace -f tank1 sdi cannot replace sdi with sdi: no such device in pool Ub20-zbox:~# fdisk /dev/sdb Welcome to fdisk (util-linux 2.34). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p Disk /dev/sdb: 3.65 TiB, 4000787030016 bytes, 7814037168 sectors Disk model: HGST HDN724040AL Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: 49A50DA3-43D8-11E6-A78B-0CC47A7D3A36 Device Start End Sectors Size Type /dev/sdb1 128 4194431 4194304 2G FreeBSD swap /dev/sdb2 4194432 7814037127 7809842696 3.7T FreeBSD ZFS Command (m for help): quit Ub20-zbox:~# fdisk /dev/sdi Welcome to fdisk (util-linux 2.34). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p Disk /dev/sdi: 3.65 TiB, 4000787030016 bytes, 7814037168 sectors Disk model: HGST HDN726040AL Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: 7E489C14-A7A8-4741-9C8F-DFBAF02BFC4D Device Start End Sectors Size Type /dev/sdi1 2048 7814019071 7814017024 3.7T Solaris /usr & Apple ZFS /dev/sdi9 7814019072 7814035455 16384 8M Solaris reserved 1 Command (m for help): d Partition number (1,9, default 9): Partition 9 has been deleted. Command (m for help): p Disk /dev/sdi: 3.65 TiB, 4000787030016 bytes, 7814037168 sectors Disk model: HGST HDN726040AL Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: 7E489C14-A7A8-4741-9C8F-DFBAF02BFC4D Device Start End Sectors Size Type /dev/sdi1 2048 7814019071 7814017024 3.7T Solaris /usr & Apple ZFS Command (m for help): d Selected partition 1 Partition 1 has been deleted. Command (m for help): p Disk /dev/sdi: 3.65 TiB, 4000787030016 bytes, 7814037168 sectors Disk model: HGST HDN726040AL Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: 7E489C14-A7A8-4741-9C8F-DFBAF02BFC4D Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. Ub20-zbox:~# fdisk /dev/sdi Welcome to fdisk (util-linux 2.34). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p Disk /dev/sdi: 3.65 TiB, 4000787030016 bytes, 7814037168 sectors Disk model: HGST HDN726040AL Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: 7E489C14-A7A8-4741-9C8F-DFBAF02BFC4D Command (m for help): quit Ub20-zbox:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 67.6M 1 loop /snap/lxd/20326 loop1 7:1 0 99.4M 1 loop /snap/core/11316 loop2 7:2 0 99.4M 1 loop /snap/core/11420 loop3 7:3 0 55.4M 1 loop /snap/core18/2066 loop4 7:4 0 70.3M 1 loop /snap/lxd/21029 loop5 7:5 0 55.5M 1 loop /snap/core18/2074 sda 8:0 0 111.8G 0 disk ├─sda1 8:1 0 1M 0 part └─sda2 8:2 0 111.8G 0 part / sdb 8:16 0 3.7T 0 disk ├─sdb1 8:17 0 2G 0 part └─sdb2 8:18 0 3.7T 0 part sdc 8:32 0 3.7T 0 disk ├─sdc1 8:33 0 2G 0 part └─sdc2 8:34 0 3.7T 0 part sdd 8:48 0 3.7T 0 disk ├─sdd1 8:49 0 2G 0 part └─sdd2 8:50 0 3.7T 0 part sde 8:64 0 3.7T 0 disk ├─sde1 8:65 0 2G 0 part └─sde2 8:66 0 3.7T 0 part sdf 8:80 0 3.7T 0 disk ├─sdf1 8:81 0 2G 0 part └─sdf2 8:82 0 3.7T 0 part sdg 8:96 0 3.7T 0 disk ├─sdg1 8:97 0 2G 0 part └─sdg2 8:98 0 3.7T 0 part sdh 8:112 0 3.7T 0 disk ├─sdh1 8:113 0 2G 0 part └─sdh2 8:114 0 3.7T 0 part sdi 8:128 0 3.7T 0 disk Ub20-zbox:~# zpool status pool: tank1 state: DEGRADED status: One or more devices could not be used because the label is missing or invalid. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Replace the device using 'zpool replace'. see: http://zfsonlinux.org/msg/ZFS-8000-4J scan: scrub repaired 0B in 0 days 10:10:56 with 0 errors on Sun Aug 1 14:10:58 2021 config: NAME STATE READ WRITE CKSUM tank1 DEGRADED 0 0 0 mirror-0 ONLINE 0 0 0 sdg ONLINE 0 0 0 sdh ONLINE 0 0 0 mirror-1 DEGRADED 0 0 0 1989930319912953288 UNAVAIL 0 0 0 was /dev/sdi2 sdb ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 sdc ONLINE 0 0 0 sdd ONLINE 0 0 0 mirror-3 ONLINE 0 0 0 sde ONLINE 0 0 0 sdf ONLINE 0 0 0 errors: No known data errors Ub20-zbox:~# zpool replace -f tank1 sdi cannot replace sdi with sdi: no such device in pool Ub20-zbox:~# fdisk /dev/sdi Welcome to fdisk (util-linux 2.34). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p Disk /dev/sdi: 3.65 TiB, 4000787030016 bytes, 7814037168 sectors Disk model: HGST HDN726040AL Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: B5B45A2C-A1D4-E945-A3EB-A91B1361A694 Device Start End Sectors Size Type /dev/sdi1 2048 7814019071 7814017024 3.7T Solaris /usr & Apple ZFS /dev/sdi9 7814019072 7814035455 16384 8M Solaris reserved 1 Command (m for help): d Partition number (1,9, default 9): Partition 9 has been deleted. Command (m for help): d Selected partition 1 Partition 1 has been deleted. Command (m for help): p Disk /dev/sdi: 3.65 TiB, 4000787030016 bytes, 7814037168 sectors Disk model: HGST HDN726040AL Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: B5B45A2C-A1D4-E945-A3EB-A91B1361A694 Command (m for help): m Help: GPT M enter protective/hybrid MBR Generic d delete a partition F list free unpartitioned space l list known partition types n add a new partition p print the partition table t change a partition type v verify the partition table i print information about a partition Misc m print this menu x extra functionality (experts only) Script I load disk layout from sfdisk script file O dump disk layout to sfdisk script file Save & Exit w write table to disk and exit q quit without saving changes Create a new label g create a new empty GPT partition table G create a new empty SGI (IRIX) partition table o create a new empty DOS partition table s create a new empty Sun partition table Command (m for help): n Partition number (1-128, default 1): First sector (34-7814037134, default 2048): 128 Last sector, +/-sectors or +/-size{K,M,G,T,P} (128-7814037134, default 7814037134): +4194304 Created a new partition 1 of type 'Linux filesystem' and of size 2 GiB. Command (m for help): p Disk /dev/sdi: 3.65 TiB, 4000787030016 bytes, 7814037168 sectors Disk model: HGST HDN726040AL Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: B5B45A2C-A1D4-E945-A3EB-A91B1361A694 Device Start End Sectors Size Type /dev/sdi1 128 4194432 4194305 2G Linux filesystem Command (m for help): t Selected partition 1 Partition type (type L to list all types): 34 Changed type of partition 'Linux filesystem' to 'FreeBSD swap'. Command (m for help): n Partition number (2-128, default 2): First sector (4194433-7814037134, default 4196352): Last sector, +/-sectors or +/-size{K,M,G,T,P} (4196352-7814037134, default 7814037134): Created a new partition 2 of type 'Linux filesystem' and of size 3.7 TiB. Command (m for help): t Partition number (1,2, default 2): 2 Partition type (type L to list all types): 36 Changed type of partition 'Linux filesystem' to 'FreeBSD ZFS'. Command (m for help): p Disk /dev/sdi: 3.65 TiB, 4000787030016 bytes, 7814037168 sectors Disk model: HGST HDN726040AL Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: B5B45A2C-A1D4-E945-A3EB-A91B1361A694 Device Start End Sectors Size Type /dev/sdi1 128 4194432 4194305 2G FreeBSD swap /dev/sdi2 4196352 7814037134 7809840783 3.7T FreeBSD ZFS Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. Ub20-zbox:~# fdisk /dev/sdb Command (m for help): p Disk /dev/sdb: 3.65 TiB, 4000787030016 bytes, 7814037168 sectors Disk model: HGST HDN724040AL Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: 49A50DA3-43D8-11E6-A78B-0CC47A7D3A36 Device Start End Sectors Size Type /dev/sdb1 128 4194431 4194304 2G FreeBSD swap /dev/sdb2 4194432 7814037127 7809842696 3.7T FreeBSD ZFS Ub20-zbox:~# fdisk /dev/sdi Command (m for help): p Disk /dev/sdi: 3.65 TiB, 4000787030016 bytes, 7814037168 sectors Disk model: HGST HDN726040AL Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: B5B45A2C-A1D4-E945-A3EB-A91B1361A694 Device Start End Sectors Size Type /dev/sdi1 128 4194432 4194305 2G FreeBSD swap /dev/sdi2 4196352 7814037134 7809840783 3.7T FreeBSD ZFS Command (m for help): quit ---------------- upon reboot, disk had reverted to Solaris partitions (!?!) ------------- Ub20-zbox:~# zpool replace tank1 sdi2 cannot open 'sdi2': no such device in /dev must be a full path or shorthand device name Ub20-zbox:~# fdisk /dev/sdi Command (m for help): p Disk /dev/sdi: 3.65 TiB, 4000787030016 bytes, 7814037168 sectors Disk model: HGST HDN726040AL Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: A26FFD9C-56FC-284D-B38F-A1C86EBF3B81 Device Start End Sectors Size Type /dev/sdi1 2048 7814019071 7814017024 3.7T Solaris /usr & Apple ZFS /dev/sdi9 7814019072 7814035455 16384 8M Solaris reserved 1 Command (m for help): d Partition number (1,9, default 9): Partition 9 has been deleted. Command (m for help): d Selected partition 1 Partition 1 has been deleted. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. Ub20-zbox:~# fdisk /dev/sdi Command (m for help): p Disk /dev/sdi: 3.65 TiB, 4000787030016 bytes, 7814037168 sectors Disk model: HGST HDN726040AL Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: A26FFD9C-56FC-284D-B38F-A1C86EBF3B81 Ub20-zbox:~# udevadm trigger Ub20-zbox:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT ... ├─sdh1 8:113 0 2G 0 part └─sdh2 8:114 0 3.7T 0 part sdi 8:128 0 3.7T 0 disk Ub20-zbox:~# zpool status pool: tank1 state: DEGRADED status: One or more devices could not be used because the label is missing or invalid. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Replace the device using 'zpool replace'. see: http://zfsonlinux.org/msg/ZFS-8000-4J scan: scrub in progress since Fri Aug 6 13:57:40 2021 853G scanned at 1.78G/s, 70.9G issued at 152M/s, 10.3T total 0B repaired, 0.67% done, 0 days 19:34:04 to go config: NAME STATE READ WRITE CKSUM tank1 DEGRADED 0 0 0 mirror-0 ONLINE 0 0 0 sdg ONLINE 0 0 0 sdh ONLINE 0 0 0 mirror-1 DEGRADED 0 0 0 1989930319912953288 UNAVAIL 0 0 6.92K was /dev/sdi2 sdb ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 sdc ONLINE 0 0 0 sdd ONLINE 0 0 0 mirror-3 ONLINE 0 0 0 sde ONLINE 0 0 0 sdf ONLINE 0 0 0 errors: No known data errors Ub20-zbox:~# zpool replace tank1 sdi cannot replace sdi with sdi: no such device in pool Ub20-zbox:~# zpool replace tank1 /dev/sdi2 /dev/sdi Ub20-zbox:~# zpool status pool: tank1 state: DEGRADED status: One or more devices is currently being resilvered. The pool will continue to function, possibly in a degraded state. action: Wait for the resilver to complete. scan: resilver in progress since Fri Aug 6 14:14:29 2021 1.43T scanned at 8.22G/s, 1.07T issued at 6.13G/s, 10.3T total 0B resilvered, 10.38% done, 0 days 00:25:36 to go config: NAME STATE READ WRITE CKSUM tank1 DEGRADED 0 0 0 mirror-0 ONLINE 0 0 0 sdg ONLINE 0 0 0 sdh ONLINE 0 0 0 mirror-1 DEGRADED 0 0 0 replacing-0 DEGRADED 0 0 0 1989930319912953288 UNAVAIL 0 0 7.54K was /dev/sdi2 sdi ONLINE 0 0 2.05K sdb ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 sdc ONLINE 0 0 0 sdd ONLINE 0 0 0 mirror-3 ONLINE 0 0 0 sde ONLINE 0 0 0 sdf ONLINE 0 0 0 errors: No known data errors ========================================================================================================================= 21-08-09 Ub20-zbox:~# zpool status pool: tank1 state: ONLINE status: One or more devices has experienced an unrecoverable error. An attempt was made to correct the error. Applications are unaffected. action: Determine if the device needs to be replaced, and clear the errors using 'zpool clear' or replace the device with 'zpool replace'. see: http://zfsonlinux.org/msg/ZFS-8000-9P scan: scrub repaired 0B in 0 days 10:48:20 with 0 errors on Sun Aug 8 11:12:22 2021 config: NAME STATE READ WRITE CKSUM tank1 ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 sdg ONLINE 0 0 0 sdh ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 sdi ONLINE 0 0 2.05K sdb ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 sdc ONLINE 0 0 0 sdd ONLINE 0 0 0 mirror-3 ONLINE 0 0 0 sde ONLINE 0 0 0 sdf ONLINE 0 0 0 errors: No known data errors Ub20-zbox:~# zpool clear missing pool name usage: clear [-nF] [device] Ub20-zbox:~# zpool clear tank1 Ub20-zbox:~# zpool status pool: tank1 state: ONLINE scan: scrub repaired 0B in 0 days 10:48:20 with 0 errors on Sun Aug 8 11:12:22 2021 config: NAME STATE READ WRITE CKSUM tank1 ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 sdg ONLINE 0 0 0 sdh ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 sdi ONLINE 0 0 0 sdb ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 sdc ONLINE 0 0 0 sdd ONLINE 0 0 0 mirror-3 ONLINE 0 0 0 sde ONLINE 0 0 0 sdf ONLINE 0 0 0 errors: No known data errors ========================================================================================================================= 21-08-31 Ub20-zbox:/etc/apache2-bpc# systemctl restart apache2@bpc Ub20-zbox:/etc/apache2-bpc# systemctl status apache2@bpc ● apache2@bpc.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2@.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2021-08-31 10:55:57 PDT; 2s ago Docs: https://httpd.apache.org/docs/2.4/ Process: 3233921 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS) Main PID: 3233940 (/usr/sbin/apach) Tasks: 56 (limit: 38309) Memory: 15.0M CGroup: /system.slice/system-apache2.slice/apache2@bpc.service ├─3233940 /usr/sbin/apache2 -d /etc/apache2-bpc -k start ├─3233941 /usr/sbin/apache2 -d /etc/apache2-bpc -k start ├─3233942 /usr/sbin/apache2 -d /etc/apache2-bpc -k start └─3233943 /usr/sbin/apache2 -d /etc/apache2-bpc -k start Aug 31 10:55:57 zbox systemd[1]: Starting The Apache HTTP Server... Aug 31 10:55:57 zbox systemd[1]: Started The Apache HTTP Server. ========================================================================================================================= 21-09-01 iptables config https://help.ubuntu.com/community/IptablesHowTo ========================================================================================================================= 22-04-05 https://www.techrepublic.com/article/how-to-tune-apache-in-seconds-with-apache2buddy-pl/ curl -sL https://raw.githubusercontent.com/richardforth/apache2buddy/master/apache2buddy.pl | perl Ub20-zbox:/usr/local/sbin# ./apache2buddy.pl ########################################################### apache2buddy.pl report for zbox.phas.ubc.ca (142.103.236.6) ########################################################### [ OK ] This script is being run as root. [ OK ] The utility 'pmap' exists and is available for use: /usr/bin/pmap [ OK ] The utility 'netstat' exists and is available for use: /bin/netstat [ OK ] 'php' exists and is available for use: /usr/bin/php [ OK ] The utility 'apachectl' exists and is available for use: /usr/sbin/apachectl [ OK ] The port (port 80) is a valid port. [ -- ] We are attempting to discover the operating system type and version number ... [ OK ] The 'python' binary exists and is available for use: /usr/bin/python [ -- ] Distro: Ubuntu [ -- ] Version: 20.04 [ -- ] Codename: focal [ OK ] This distro is supported by apache2buddy.pl. [ OK ] This distro version is supported by apache2buddy.pl. [ -- ] Hostname: zbox.phas.ubc.ca [ -- ] Primary IP: 142.103.236.6 [ -- ] We are checking the service running on port 80... [ -- ] The process listening on port 80 is /usr/sbin/apache2 [ -- ] The process running on port 80 is Apache/2.4.41 (Ubuntu). [ -- ] The full path to the Apache config file is: /etc/apache2/apache2.conf [ -- ] Apache is using prefork model. [ >> ] Running user (backuppc www-data) does NOT match config (www-data). [ -- ] pidfile setting is /var/run/apache2$SUFFIX/apache2.pid. [ -- ] Actual pidfile is /var/run/apache2/apache2.pid. [ -- ] Parent PID: 2511599. [ OK ] Memory usage of parent PID is less than 50MB: 10036 Kilobytes. [ -- ] Apache has been running 0d 15h 25m 07s. [ !! ] *** LOW UPTIME ***. [ @@ ] The following recommendations may be misleading - apache has been restarted within the last 24 hours. [ -- ] Your server has 32008 MB of PHYSICAL memory. [ >> ] ServerLimit directive not found, assuming default values. [ -- ] Your ServerLimit setting is 256. [ -- ] Your MaxRequestWorkers setting is 150. [ OK ] Current Apache Process Count is 11, including the parent PID. [ -- ] Number of vhosts detected: 0. [ OK ] Current Apache vHost Count is less than maxrequestworkers. [ @@ ] vHost Count works only when we have NameVirtualHosting enabled, check config manually, they may only have the default vhost. [ >> ] MaxRequestsPerChild directive not found. [ -- ] Your MaxConnectionsPerChild setting is 0. [ -- ] This server is NOT running Plesk. [ -- ] This server is NOT running cPanel. [ -- ] This server is NOT running Virtualmin. Use of uninitialized value $apache_proc_php in concatenation (.) or string at ./apache2buddy.pl line 2524 (#1) (W uninitialized) An undefined value was used as if it were already defined. It was interpreted as a "" or a 0, but maybe it was a mistake. To suppress this warning assign a defined value to your variables. To help you figure out what was undefined, perl will try to tell you the name of the variable (if any) that was undefined. In some cases it cannot do this, so it also tells you what operation you used the undefined value in. Note, however, that perl optimizes your program and the operation displayed in the warning may not necessarily appear literally in your program. For example, "that $foo" is usually optimized into "that " . $foo, and the warning will refer to the concatenation (.) operator, even though there is no . in your program. [ -- ] Your PHP Memory Limit (Per-Process) is . Use of uninitialized value $apache_proc_php in string eq at ./apache2buddy.pl line 2525 (#1) [ -- ] MySQL Detected => Using 84.10 MB of memory. [ OK ] No large log files were found in /var/log/apache2. [ OK ] MaxClients has not been hit recently. [ >> ] Apache only logs maxclients/maxrequestworkers hits once in a lifetime, if no restart has happened this event may have been rotated away. [ >> ] As a backup check, please compare number of running apache processes (minus 1 for parent) against maxclients/maxrequestworkers. [ >> ] For more information see https://github.com/apache/httpd/blob/0b61edca6cdda2737aa1d84a4526c5f9d2e23a8c/server/mpm/prefork/prefork.c#L809 [ OK ] No PHP Fatal Errors were found. [ OK ] No package updates found. [ !! ] Error getting a list of PIDs DEBUG -> Process Name: /usr/sbin/apache2 DEBUG -> Apache_user: backupp+ DEBUG -> Search Type: high ========================================================================================================================= 22-09-26 Ub20-zbox:/etc# apt list | grep -i backuppc WARNING: apt does not have a stable CLI interface. Use with caution in scripts. backuppc-rsync/jammy 3.1.3.0-3build1 amd64 backuppc/jammy 4.4.0-5ubuntu2 amd64 libbackuppc-xs-perl/jammy 0.62-2build1 amd64 Ub20-zbox:/etc# apt install backuppc The following additional packages will be installed: backuppc-rsync libbackuppc-xs-perl libio-dirent-perl libtime-parsedate-perl Suggested packages: certbot | acme-tiny | acmetool | dehydrated | lacme | lecm | lego libscgi-perl w3m | www-browser The following NEW packages will be installed: backuppc backuppc-rsync libbackuppc-xs-perl libio-dirent-perl libtime-parsedate-perl 0 upgraded, 5 newly installed, 0 to remove and 34 not upgraded. Need to get 909 kB of archives. After this operation, 4,114 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 backuppc-rsync amd64 3.1.3.0-3build1 [257 kB] Get:2 http://archive.ubuntu.com/ubuntu jammy/main amd64 libbackuppc-xs-perl amd64 0.62-2build1 [69.1 kB] Get:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 libtime-parsedate-perl all 2015.103-3 [29.7 kB] Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 backuppc amd64 4.4.0-5ubuntu2 [543 kB] Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 libio-dirent-perl amd64 0.05-1.1build1 [10.2 kB] Fetched 909 kB in 2s (565 kB/s) Preconfiguring packages ... Selecting previously unselected package backuppc-rsync. (Reading database ... 136173 files and directories currently installed.) Preparing to unpack .../backuppc-rsync_3.1.3.0-3build1_amd64.deb ... Unpacking backuppc-rsync (3.1.3.0-3build1) ... Selecting previously unselected package libbackuppc-xs-perl:amd64. Preparing to unpack .../libbackuppc-xs-perl_0.62-2build1_amd64.deb ... Unpacking libbackuppc-xs-perl:amd64 (0.62-2build1) ... Selecting previously unselected package libtime-parsedate-perl. Preparing to unpack .../libtime-parsedate-perl_2015.103-3_all.deb ... Unpacking libtime-parsedate-perl (2015.103-3) ... Selecting previously unselected package backuppc. Preparing to unpack .../backuppc_4.4.0-5ubuntu2_amd64.deb ... Unpacking backuppc (4.4.0-5ubuntu2) ... Selecting previously unselected package libio-dirent-perl. Preparing to unpack .../libio-dirent-perl_0.05-1.1build1_amd64.deb ... Unpacking libio-dirent-perl (0.05-1.1build1) ... Setting up libio-dirent-perl (0.05-1.1build1) ... Setting up backuppc-rsync (3.1.3.0-3build1) ... Setting up libtime-parsedate-perl (2015.103-3) ... Setting up libbackuppc-xs-perl:amd64 (0.62-2build1) ... Setting up backuppc (4.4.0-5ubuntu2) ... apache2_invoke: Enable configuration backuppc.conf apache2_reload: Your configuration is broken. Not reloading Apache 2 apache2_reload: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load: Cannot load /usr/lib/apache2/modules/libphp7.4.so into server: /usr/lib/apache2/modules/libphp7.4.so: cannot open shared object file: No such file or directory Adding password for user backuppc Considering dependency authn_core for auth_basic: Module authn_core already enabled Module auth_basic already enabled Considering dependency authz_core for authz_groupfile: Module authz_core already enabled Module authz_groupfile already enabled Module authn_file already enabled Considering dependency authz_core for authz_user: Module authz_core already enabled Module authz_user already enabled apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load: Cannot load /usr/lib/apache2/modules/libphp7.4.so into server: /usr/lib/apache2/modules/libphp7.4.so: cannot open shared object file: No such file or directory Enabling module cgi. To activate the new configuration, you need to run: systemctl restart apache2 Creating config file /etc/backuppc/config.pl with new version Processing triggers for man-db (2.10.2-1) ... Scanning processes... Scanning candidates... Scanning processor microcode... Scanning linux images... Running kernel seems to be up-to-date. The processor microcode seems to be up-to-date. Restarting services... /etc/needrestart/restart.d/systemd-manager systemctl restart accounts-daemon.service atd.service cron.service mariadb.service multipathd.service packagekit.service polkit.service ssh.service systemd-journald.service systemd-networkd.service systemd-resolved.service systemd-udevd.service udisks2.service Service restarts being deferred: systemctl restart ModemManager.service /etc/needrestart/restart.d/dbus.service systemctl restart networkd-dispatcher.service systemctl restart systemd-logind.service systemctl restart unattended-upgrades.service systemctl restart user@0.service No containers need to be restarted. No user sessions are running outdated binaries. No VM guests are running outdated hypervisor (qemu) binaries on this host. Web administration default user created │ │ │ │ BackupPC can be managed through its web interface: │ │ http://zbox.phas.ubc.ca/backuppc/ │ │ │ │ │ │ For that purpose, a web user named 'backuppc' with 'vfzDiijW' as password has been created. You can change this password by running 'htpasswd │ │ /etc/backuppc/htpasswd backuppc'. ------------------------------------------------------------------- Ub20-zbox:/etc# cd /etc/apache2/mods-enabled/ Ub20-zbox:/etc/apache2/mods-enabled# ll total 0 lrwxrwxrwx 1 root root 36 May 10 2018 access_compat.load -> ../mods-available/access_compat.load lrwxrwxrwx 1 root root 28 May 10 2018 alias.conf -> ../mods-available/alias.conf lrwxrwxrwx 1 root root 28 May 10 2018 alias.load -> ../mods-available/alias.load lrwxrwxrwx 1 root root 33 May 10 2018 auth_basic.load -> ../mods-available/auth_basic.load lrwxrwxrwx 1 root root 33 May 10 2018 authn_core.load -> ../mods-available/authn_core.load lrwxrwxrwx 1 root root 33 May 10 2018 authn_file.load -> ../mods-available/authn_file.load lrwxrwxrwx 1 root root 33 May 10 2018 authz_core.load -> ../mods-available/authz_core.load lrwxrwxrwx 1 root root 38 May 15 2018 authz_groupfile.load -> ../mods-available/authz_groupfile.load lrwxrwxrwx 1 root root 33 May 10 2018 authz_host.load -> ../mods-available/authz_host.load lrwxrwxrwx 1 root root 33 May 10 2018 authz_user.load -> ../mods-available/authz_user.load lrwxrwxrwx 1 root root 32 May 10 2018 autoindex.conf -> ../mods-available/autoindex.conf lrwxrwxrwx 1 root root 32 May 10 2018 autoindex.load -> ../mods-available/autoindex.load lrwxrwxrwx 1 root root 27 May 15 2018 cgid.conf -> ../mods-available/cgid.conf lrwxrwxrwx 1 root root 27 May 15 2018 cgid.load -> ../mods-available/cgid.load lrwxrwxrwx 1 root root 26 Sep 26 15:03 cgi.load -> ../mods-available/cgi.load lrwxrwxrwx 1 root root 30 May 10 2018 deflate.conf -> ../mods-available/deflate.conf lrwxrwxrwx 1 root root 30 May 10 2018 deflate.load -> ../mods-available/deflate.load lrwxrwxrwx 1 root root 26 May 10 2018 dir.conf -> ../mods-available/dir.conf lrwxrwxrwx 1 root root 26 May 10 2018 dir.load -> ../mods-available/dir.load lrwxrwxrwx 1 root root 26 May 10 2018 env.load -> ../mods-available/env.load lrwxrwxrwx 1 root root 29 May 10 2018 filter.load -> ../mods-available/filter.load lrwxrwxrwx 1 root root 29 May 15 2018 gnutls.conf -> ../mods-available/gnutls.conf lrwxrwxrwx 1 root root 29 May 15 2018 gnutls.load -> ../mods-available/gnutls.load lrwxrwxrwx 1 root root 30 Jun 7 2018 headers.load -> ../mods-available/headers.load lrwxrwxrwx 1 root root 27 May 10 2018 mime.conf -> ../mods-available/mime.conf lrwxrwxrwx 1 root root 27 May 10 2018 mime.load -> ../mods-available/mime.load lrwxrwxrwx 1 root root 34 May 22 2018 mpm_prefork.conf -> ../mods-available/mpm_prefork.conf lrwxrwxrwx 1 root root 34 May 22 2018 mpm_prefork.load -> ../mods-available/mpm_prefork.load lrwxrwxrwx 1 root root 34 May 10 2018 negotiation.conf -> ../mods-available/negotiation.conf lrwxrwxrwx 1 root root 34 May 10 2018 negotiation.load -> ../mods-available/negotiation.load lrwxrwxrwx 1 root root 27 May 10 2018 perl.load -> ../mods-available/perl.load lrwxrwxrwx 1 root root 29 Aug 10 2020 php7.4.conf -> ../mods-available/php7.4.conf lrwxrwxrwx 1 root root 29 Aug 10 2020 php7.4.load -> ../mods-available/php7.4.load lrwxrwxrwx 1 root root 33 May 10 2018 reqtimeout.conf -> ../mods-available/reqtimeout.conf lrwxrwxrwx 1 root root 33 May 10 2018 reqtimeout.load -> ../mods-available/reqtimeout.load lrwxrwxrwx 1 root root 30 May 15 2018 rewrite.load -> ../mods-available/rewrite.load lrwxrwxrwx 1 root root 31 May 10 2018 setenvif.conf -> ../mods-available/setenvif.conf lrwxrwxrwx 1 root root 31 May 10 2018 setenvif.load -> ../mods-available/setenvif.load lrwxrwxrwx 1 root root 36 May 15 2018 socache_shmcb.load -> ../mods-available/socache_shmcb.load lrwxrwxrwx 1 root root 26 May 15 2018 ssl.conf -> ../mods-available/ssl.conf lrwxrwxrwx 1 root root 26 May 15 2018 ssl.load -> ../mods-available/ssl.load lrwxrwxrwx 1 root root 29 May 10 2018 status.conf -> ../mods-available/status.conf lrwxrwxrwx 1 root root 29 May 10 2018 status.load -> ../mods-available/status.load Ub20-zbox:/etc/apache2/mods-enabled# php -v PHP 8.1.2 (cli) (built: Aug 17 2022 13:08:39) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.2, Copyright (c) Zend Technologies with Zend OPcache v8.1.2, Copyright (c), by Zend Technologies Ub20-zbox:/etc/apache2/mods-enabled# rm php7.4.* rm: remove symbolic link 'php7.4.conf'? y rm: remove symbolic link 'php7.4.load'? y Ub20-zbox:/etc/apache2/mods-enabled# systemctl restart apache2 Ub20-zbox:/etc/apache2/mods-enabled# ------------------------------------------------------------------- # dpkg-query -L libbackuppc-xs-perl /. /usr /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/perl5 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/lib/x86_64-linux-gnu/perl5/5.34/BackupPC /usr/lib/x86_64-linux-gnu/perl5/5.34/BackupPC/XS.pm /usr/lib/x86_64-linux-gnu/perl5/5.34/auto /usr/lib/x86_64-linux-gnu/perl5/5.34/auto/BackupPC /usr/lib/x86_64-linux-gnu/perl5/5.34/auto/BackupPC/XS /usr/lib/x86_64-linux-gnu/perl5/5.34/auto/BackupPC/XS/XS.so /usr/share /usr/share/doc /usr/share/doc/libbackuppc-xs-perl /usr/share/doc/libbackuppc-xs-perl/README /usr/share/doc/libbackuppc-xs-perl/changelog.Debian.gz /usr/share/doc/libbackuppc-xs-perl/copyright /usr/share/man /usr/share/man/man3 /usr/share/man/man3/BackupPC::XS.3pm.gz # dpkg-query -L libio-dirent-perl /. /usr /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/perl5 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/lib/x86_64-linux-gnu/perl5/5.34/IO /usr/lib/x86_64-linux-gnu/perl5/5.34/IO/Dirent.pm /usr/lib/x86_64-linux-gnu/perl5/5.34/auto /usr/lib/x86_64-linux-gnu/perl5/5.34/auto/IO /usr/lib/x86_64-linux-gnu/perl5/5.34/auto/IO/Dirent /usr/lib/x86_64-linux-gnu/perl5/5.34/auto/IO/Dirent/Dirent.so /usr/share /usr/share/doc /usr/share/doc/libio-dirent-perl /usr/share/doc/libio-dirent-perl/README /usr/share/doc/libio-dirent-perl/changelog.Debian.gz /usr/share/doc/libio-dirent-perl/copyright /usr/share/man /usr/share/man/man3 /usr/share/man/man3/IO::Dirent.3pm.gz # dpkg-query -L backuppc-rsync /. /usr /usr/libexec /usr/libexec/backuppc-rsync /usr/libexec/backuppc-rsync/rsync_bpc /usr/share /usr/share/doc /usr/share/doc/backuppc-rsync /usr/share/doc/backuppc-rsync/changelog.Debian.gz /usr/share/doc/backuppc-rsync/copyright # dpkg-query -L backuppc /. /etc /etc/backuppc /etc/backuppc/apache.conf /etc/backuppc/config.pl.sample /etc/backuppc/hosts /etc/backuppc/hosts.sample /etc/backuppc/localhost.pl /etc/default /etc/default/backuppc /etc/init.d /etc/init.d/backuppc /lib /lib/systemd /lib/systemd/system /lib/systemd/system/backuppc.service /usr /usr/lib /usr/lib/backuppc /usr/lib/backuppc/cgi-bin /usr/lib/backuppc/cgi-bin/index.cgi /usr/share /usr/share/backuppc /usr/share/backuppc/bin /usr/share/backuppc/bin/BackupPC /usr/share/backuppc/bin/BackupPC_Admin_SCGI /usr/share/backuppc/bin/BackupPC_archive /usr/share/backuppc/bin/BackupPC_archiveHost /usr/share/backuppc/bin/BackupPC_archiveStart /usr/share/backuppc/bin/BackupPC_attribPrint /usr/share/backuppc/bin/BackupPC_backupDelete /usr/share/backuppc/bin/BackupPC_backupDuplicate /usr/share/backuppc/bin/BackupPC_deleteFile /usr/share/backuppc/bin/BackupPC_dump /usr/share/backuppc/bin/BackupPC_fixupBackupSummary /usr/share/backuppc/bin/BackupPC_fsck /usr/share/backuppc/bin/BackupPC_ls /usr/share/backuppc/bin/BackupPC_migrateV3toV4 /usr/share/backuppc/bin/BackupPC_nightly /usr/share/backuppc/bin/BackupPC_poolCntPrint /usr/share/backuppc/bin/BackupPC_refCountUpdate /usr/share/backuppc/bin/BackupPC_restore /usr/share/backuppc/bin/BackupPC_rrdUpdate /usr/share/backuppc/bin/BackupPC_sendEmail /usr/share/backuppc/bin/BackupPC_serverMesg /usr/share/backuppc/bin/BackupPC_tarCreate /usr/share/backuppc/bin/BackupPC_tarExtract /usr/share/backuppc/bin/BackupPC_zcat /usr/share/backuppc/bin/BackupPC_zipCreate /usr/share/backuppc/cgi-bin /usr/share/backuppc/conf /usr/share/backuppc/conf/config.pl /usr/share/backuppc/image /usr/share/backuppc/image/0000000.gif /usr/share/backuppc/image/0000011.gif /usr/share/backuppc/image/0001000.gif /usr/share/backuppc/image/0010000.gif /usr/share/backuppc/image/0010001.gif /usr/share/backuppc/image/0011000.gif /usr/share/backuppc/image/0011001.gif /usr/share/backuppc/image/1000000.gif /usr/share/backuppc/image/1000100.gif /usr/share/backuppc/image/1001000.gif /usr/share/backuppc/image/1001100.gif /usr/share/backuppc/image/1010000.gif /usr/share/backuppc/image/1010001.gif /usr/share/backuppc/image/1011000.gif /usr/share/backuppc/image/1100000.gif /usr/share/backuppc/image/1100100.gif /usr/share/backuppc/image/1100101.gif /usr/share/backuppc/image/1100110.gif /usr/share/backuppc/image/1100111.gif /usr/share/backuppc/image/1101000.gif /usr/share/backuppc/image/1101100.gif /usr/share/backuppc/image/1101101.gif /usr/share/backuppc/image/1101110.gif /usr/share/backuppc/image/1101111.gif /usr/share/backuppc/image/1110000.gif /usr/share/backuppc/image/1110001.gif /usr/share/backuppc/image/1110100.gif /usr/share/backuppc/image/1110101.gif /usr/share/backuppc/image/1110110.gif /usr/share/backuppc/image/1110111.gif /usr/share/backuppc/image/1111000.gif /usr/share/backuppc/image/1111001.gif /usr/share/backuppc/image/1111100.gif /usr/share/backuppc/image/1111101.gif /usr/share/backuppc/image/1111110.gif /usr/share/backuppc/image/1111111.gif /usr/share/backuppc/image/BackupPC_retro_v2.css /usr/share/backuppc/image/BackupPC_retro_v3.css /usr/share/backuppc/image/BackupPC_stnd.css /usr/share/backuppc/image/apple-touch-icon.png /usr/share/backuppc/image/favicon-16x16.png /usr/share/backuppc/image/favicon-32x32.png /usr/share/backuppc/image/favicon.ico /usr/share/backuppc/image/icon-dir.png /usr/share/backuppc/image/icon-file.png /usr/share/backuppc/image/icon-hardlink.png /usr/share/backuppc/image/icon-symlink.png /usr/share/backuppc/image/logo320.png /usr/share/backuppc/image/safari-pinned-tab.svg /usr/share/backuppc/image/sorttable.js /usr/share/backuppc/lib /usr/share/backuppc/lib/BackupPC /usr/share/backuppc/lib/BackupPC/CGI /usr/share/backuppc/lib/BackupPC/CGI/AdminOptions.pm /usr/share/backuppc/lib/BackupPC/CGI/Archive.pm /usr/share/backuppc/lib/BackupPC/CGI/ArchiveInfo.pm /usr/share/backuppc/lib/BackupPC/CGI/Browse.pm /usr/share/backuppc/lib/BackupPC/CGI/DeleteBackup.pm /usr/share/backuppc/lib/BackupPC/CGI/DirHistory.pm /usr/share/backuppc/lib/BackupPC/CGI/EditConfig.pm /usr/share/backuppc/lib/BackupPC/CGI/EmailSummary.pm /usr/share/backuppc/lib/BackupPC/CGI/GeneralInfo.pm /usr/share/backuppc/lib/BackupPC/CGI/HostInfo.pm /usr/share/backuppc/lib/BackupPC/CGI/LOGlist.pm /usr/share/backuppc/lib/BackupPC/CGI/Lib.pm /usr/share/backuppc/lib/BackupPC/CGI/Metrics.pm /usr/share/backuppc/lib/BackupPC/CGI/Queue.pm /usr/share/backuppc/lib/BackupPC/CGI/ReloadServer.pm /usr/share/backuppc/lib/BackupPC/CGI/Restore.pm /usr/share/backuppc/lib/BackupPC/CGI/RestoreFile.pm /usr/share/backuppc/lib/BackupPC/CGI/RestoreInfo.pm /usr/share/backuppc/lib/BackupPC/CGI/StartServer.pm /usr/share/backuppc/lib/BackupPC/CGI/StartStopBackup.pm /usr/share/backuppc/lib/BackupPC/CGI/StopServer.pm /usr/share/backuppc/lib/BackupPC/CGI/Summary.pm /usr/share/backuppc/lib/BackupPC/CGI/View.pm /usr/share/backuppc/lib/BackupPC/Config /usr/share/backuppc/lib/BackupPC/Config/Meta.pm /usr/share/backuppc/lib/BackupPC/DirOps.pm /usr/share/backuppc/lib/BackupPC/Lang /usr/share/backuppc/lib/BackupPC/Lang/cz.pm /usr/share/backuppc/lib/BackupPC/Lang/de.pm /usr/share/backuppc/lib/BackupPC/Lang/en.pm /usr/share/backuppc/lib/BackupPC/Lang/es.pm /usr/share/backuppc/lib/BackupPC/Lang/fr.pm /usr/share/backuppc/lib/BackupPC/Lang/it.pm /usr/share/backuppc/lib/BackupPC/Lang/ja.pm /usr/share/backuppc/lib/BackupPC/Lang/nl.pm /usr/share/backuppc/lib/BackupPC/Lang/pl.pm /usr/share/backuppc/lib/BackupPC/Lang/pt_br.pm /usr/share/backuppc/lib/BackupPC/Lang/ru.pm /usr/share/backuppc/lib/BackupPC/Lang/uk.pm /usr/share/backuppc/lib/BackupPC/Lang/zh_CN.pm /usr/share/backuppc/lib/BackupPC/Lib.pm /usr/share/backuppc/lib/BackupPC/Storage /usr/share/backuppc/lib/BackupPC/Storage/Text.pm /usr/share/backuppc/lib/BackupPC/Storage.pm /usr/share/backuppc/lib/BackupPC/View.pm /usr/share/backuppc/lib/BackupPC/Xfer /usr/share/backuppc/lib/BackupPC/Xfer/Archive.pm /usr/share/backuppc/lib/BackupPC/Xfer/Ftp.pm /usr/share/backuppc/lib/BackupPC/Xfer/Protocol.pm /usr/share/backuppc/lib/BackupPC/Xfer/Rsync.pm /usr/share/backuppc/lib/BackupPC/Xfer/Smb.pm /usr/share/backuppc/lib/BackupPC/Xfer/Tar.pm /usr/share/backuppc/lib/BackupPC/Xfer.pm /usr/share/backuppc/lib/BackupPC/Zip /usr/share/backuppc/lib/BackupPC/Zip/FileMember.pm /usr/share/backuppc/lib/BackupPC/jLib.pm /usr/share/backuppc/lib/Net /usr/share/backuppc/lib/Net/FTP /usr/share/backuppc/lib/Net/FTP/AutoReconnect.pm /usr/share/backuppc/lib/Net/FTP/RetrHandle.pm /usr/share/backuppc/lib/realindex.cgi /usr/share/backuppc/share /usr/share/backuppc/share/doc /usr/share/backuppc/share/doc/BackupPC /usr/share/backuppc/share/doc/BackupPC/BackupPC.html /usr/share/backuppc/share/doc/BackupPC/BackupPC.pod /usr/share/doc /usr/share/doc/backuppc /usr/share/doc/backuppc/BackupPC.html /usr/share/doc/backuppc/BackupPC.pod.gz /usr/share/doc/backuppc/NEWS.Debian.gz /usr/share/doc/backuppc/README.Debian /usr/share/doc/backuppc/README.md.gz /usr/share/doc/backuppc/TODO.Debian /usr/share/doc/backuppc/UPGRADING /usr/share/doc/backuppc/changelog.Debian.gz /usr/share/doc/backuppc/copyright /usr/share/doc/backuppc/examples /usr/share/doc/backuppc/examples/localhost.pl /usr/share/doc/backuppc/examples/mysql.pl /usr/share/doc/backuppc/examples/rsyncd.pl /usr/share/doc/backuppc/examples/rsyncssh.pl /usr/share/doc/backuppc/examples/smb.pl /usr/share/doc/backuppc/examples/tarssh-sudo.pl /usr/share/doc/backuppc/examples/tarssh.pl /usr/share/doc-base /usr/share/doc-base/backuppc.backuppc /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/backuppc /usr/share/man /usr/share/man/man8 /usr/share/man/man8/backuppc.8.gz /var /var/lib /var/lib/backuppc /var/lib/backuppc/cpool /var/lib/backuppc/log /var/lib/backuppc/pc /var/lib/backuppc/pool /usr/share/backuppc/cgi-bin/image /usr/share/backuppc/cgi-bin/index.cgi -rw-r--r-- 1 root root 310 May 10 2018 /etc/systemd/system/backuppc.service lrwxrwxrwx 1 root root 36 May 10 2018 /etc/systemd/system/multi-user.target.wants/backuppc.service -> /etc/systemd/system/backuppc.service -rw-r--r-- 1 _chrony _chrony 311 May 15 2018 /opt/BackupPC-4.2.1.delete/systemd/backuppc.service -r--r--r-- 1 root root 321 May 7 2018 /opt/BackupPC-4.2.1.delete/systemd/src/backuppc.service -rw-r--r-- 1 backuppc backuppc 346 Nov 26 2018 /opt/BackupPC-4.3.0/systemd/backuppc.service -r--r--r-- 1 backuppc backuppc 356 Nov 25 2018 /opt/BackupPC-4.3.0/systemd/src/backuppc.service -rw-r--r-- 1 root root 334 Mar 7 2022 /usr/lib/systemd/system/backuppc.service -rw-r--r-- 1 root root 61 Sep 26 15:03 /var/lib/systemd/deb-systemd-helper-enabled/backuppc.service.dsh-also -rw-r--r-- 1 root root 0 Sep 26 15:03 /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/backuppc.service Ub20-zbox:/opt# ll /lib/systemd/system/backuppc.service -rw-r--r-- 1 root root 334 Mar 7 2022 /lib/systemd/system/backuppc.service Ub20-zbox:/opt# mv /etc/systemd/system/backuppc.service /etc/systemd/system/backuppc.service.180510 Ub20-zbox:/opt# ll /etc/systemd/system/multi-user.target.wants/backuppc.service lrwxrwxrwx 1 root root 36 May 10 2018 /etc/systemd/system/multi-user.target.wants/backuppc.service -> /etc/systemd/system/backuppc.service Ub20-zbox:/opt# cd /etc/systemd/system/multi-user.target.wants Ub20-zbox:/etc/systemd/system/multi-user.target.wants# ll backuppc.service lrwxrwxrwx 1 root root 36 May 10 2018 backuppc.service -> /etc/systemd/system/backuppc.service Ub20-zbox:/etc/systemd/system/multi-user.target.wants# rm backuppc.service rm: remove symbolic link 'backuppc.service'? y Ub20-zbox:/etc/systemd/system/multi-user.target.wants# ln -s /usr/lib/systemd/system/backuppc.service backuppc.service Ub20-zbox:/etc/systemd/system/multi-user.target.wants# ll backuppc.service lrwxrwxrwx 1 root root 40 Sep 27 12:16 backuppc.service -> /usr/lib/systemd/system/backuppc.service ---------------------------------------------------------------------------------------- try re-installing from scratch... Ub20-zbox:~# cd /opt Ub20-zbox:/opt# wget https://github.com/backuppc/backuppc/releases/download/4.4.0/BackupPC-4.4.0.tar.gz 2022-09-27 14:12:03 (27.5 MB/s) - ‘BackupPC-4.4.0.tar.gz’ saved [657309/657309] Ub20-zbox:/opt# ll total 2376 drwxr-xr-x 5 backuppc backuppc 4096 May 10 2018 BackupPC drwxr-xr-x 10 root root 4096 May 7 2018 BackupPC-4.2.1.delete drwxr-xr-x 10 backuppc backuppc 4096 Nov 25 2018 BackupPC-4.3.0 -rw-r--r-- 1 root root 637725 Nov 25 2018 BackupPC-4.3.0.tar.gz -rw-r--r-- 1 root root 657309 Dec 8 2021 BackupPC-4.4.0.tar.gz drwxr-xr-x 5 root root 4096 Nov 26 2018 BackupPC.hold drwxr-xr-x 7 root root 4096 Aug 10 2020 BackupPC-XS-0.57 -rw-r--r-- 1 root root 287664 Dec 3 2017 BackupPC-XS-0.57.tar.gz drwxr-x--- 5 root root 12288 Sep 27 09:21 CrowdStrike drwxr-xr-x 2 root root 4096 Jun 30 21:53 CSFFC drwxr-xr-x 14 www-data root 4096 Jun 27 2018 nextcloud drwxrwxr-x 11 root root 4096 May 9 2018 rsync-bpc-3.0.9.12 -rw-r--r-- 1 root root 786021 Jan 27 2018 rsync-bpc-3.0.9.12.tar.gz Ub20-zbox:/opt# tar ztvf BackupPC-4.4.0.tar.gz Ub20-zbox:/opt# tar zxf BackupPC-4.4.0.tar.gz Ub20-zbox:/opt# ll total 2380 drwxr-xr-x 5 backuppc backuppc 4096 May 10 2018 BackupPC drwxr-xr-x 10 root root 4096 May 7 2018 BackupPC-4.2.1.delete drwxr-xr-x 10 backuppc backuppc 4096 Nov 25 2018 BackupPC-4.3.0 -rw-r--r-- 1 root root 637725 Nov 25 2018 BackupPC-4.3.0.tar.gz drwxr-xr-x 10 317 317 4096 Jun 20 2020 BackupPC-4.4.0 -rw-r--r-- 1 root root 657309 Dec 8 2021 BackupPC-4.4.0.tar.gz drwxr-xr-x 5 root root 4096 Nov 26 2018 BackupPC.hold drwxr-xr-x 7 root root 4096 Aug 10 2020 BackupPC-XS-0.57 -rw-r--r-- 1 root root 287664 Dec 3 2017 BackupPC-XS-0.57.tar.gz drwxr-x--- 5 root root 12288 Sep 27 09:21 CrowdStrike drwxr-xr-x 2 root root 4096 Jun 30 21:53 CSFFC drwxr-xr-x 14 www-data root 4096 Jun 27 2018 nextcloud drwxrwxr-x 11 root root 4096 May 9 2018 rsync-bpc-3.0.9.12 -rw-r--r-- 1 root root 786021 Jan 27 2018 rsync-bpc-3.0.9.12.tar.gz Ub20-zbox:/opt# ls -l BackupPC total 12 drwxr-xr-x 2 backuppc backuppc 4096 Nov 26 2018 bin drwxr-xr-x 4 backuppc backuppc 4096 May 10 2018 lib drwxr-xr-x 3 backuppc backuppc 4096 May 10 2018 share Ub20-zbox:/opt# ls -l BackupPC-4.3.0 total 224 drwxr-xr-x 2 backuppc backuppc 4096 Nov 25 2018 bin drwxr-xr-x 2 backuppc backuppc 4096 Nov 25 2018 cgi-bin -r--r--r-- 1 backuppc backuppc 97482 Nov 25 2018 ChangeLog drwxr-xr-x 2 backuppc backuppc 4096 Nov 25 2018 conf -r-xr-xr-x 1 backuppc backuppc 50786 Nov 25 2018 configure.pl drwxr-xr-x 2 backuppc backuppc 4096 Nov 25 2018 doc drwxr-xr-x 3 backuppc backuppc 4096 Nov 26 2018 httpd drwxr-xr-x 2 backuppc backuppc 4096 Nov 25 2018 images drwxr-xr-x 4 backuppc backuppc 4096 Nov 25 2018 lib -r--r--r-- 1 backuppc backuppc 35147 Nov 25 2018 LICENSE -r--r--r-- 1 backuppc backuppc 6364 Nov 25 2018 README.md drwxr-xr-x 4 backuppc backuppc 4096 Nov 26 2018 systemd Ub20-zbox:/opt# chown -R backuppc:backuppc BackupPC-4.4.0 Ub20-zbox:/opt# mv BackupPC.hold BackupPC.old Ub20-zbox:/opt# mkdir BackupPC.hold Ub20-zbox:/opt# cd BackupPC.hold Ub20-zbox:/opt/BackupPC.hold# cp -arv ../BackupPC/* . Ub20-zbox:/opt/BackupPC.hold# cd .. Ub20-zbox:/opt# du -hcs BackupPC* 2.3M BackupPC 2.9M BackupPC-4.2.1.delete 3.0M BackupPC-4.3.0 628K BackupPC-4.3.0.tar.gz 3.0M BackupPC-4.4.0 644K BackupPC-4.4.0.tar.gz 2.3M BackupPC.hold 2.3M BackupPC.old 4.5M BackupPC-XS-0.57 288K BackupPC-XS-0.57.tar.gz 22M total Ub20-zbox:/opt# cd BackupPC-4.4.0/ Ub20-zbox:/opt/BackupPC-4.4.0# systemctl stop backuppc Ub20-zbox:/opt/BackupPC-4.4.0# perl configure.pl BackupPC_XS.c: loadable library and perl binaries are mismatched (got handshake key 0xde00080, needed 0xeb00080) Ub20-zbox:/opt/BackupPC-4.4.0# cd .. Ub20-zbox:/opt# wget https://github.com/backuppc/backuppc-xs/releases/download/0.62/BackupPC-XS-0.62.tar.gz 2022-09-27 14:23:16 (11.7 MB/s) - ‘BackupPC-XS-0.62.tar.gz’ saved [289549/289549] Ub20-zbox:/opt# tar ztvf BackupPC-XS-0.62.tar.gz Ub20-zbox:/opt# tar zxf BackupPC-XS-0.62.tar.gz Ub20-zbox:/opt# wget https://github.com/backuppc/rsync-bpc/releases/download/3.1.3.0/rsync-bpc-3.1.3.0.tar.gz 2022-09-27 14:24:03 (24.5 MB/s) - ‘rsync-bpc-3.1.3.0.tar.gz’ saved [883808/883808] Ub20-zbox:/opt# tar ztvf rsync-bpc-3.1.3.0.tar.gz Ub20-zbox:/opt# tar zxf rsync-bpc-3.1.3.0.tar.gz Ub20-zbox:/opt# ll total 3540 drwxr-xr-x 5 backuppc backuppc 4096 May 10 2018 BackupPC drwxr-xr-x 10 root root 4096 May 7 2018 BackupPC-4.2.1.delete drwxr-xr-x 10 backuppc backuppc 4096 Nov 25 2018 BackupPC-4.3.0 -rw-r--r-- 1 root root 637725 Nov 25 2018 BackupPC-4.3.0.tar.gz drwxr-xr-x 10 backuppc backuppc 4096 Jun 20 2020 BackupPC-4.4.0 -rw-r--r-- 1 root root 657309 Dec 8 2021 BackupPC-4.4.0.tar.gz drwxr-xr-x 5 root root 4096 Sep 27 14:21 BackupPC.hold drwxr-xr-x 5 root root 4096 Nov 26 2018 BackupPC.old drwxr-xr-x 7 root root 4096 Aug 10 2020 BackupPC-XS-0.57 -rw-r--r-- 1 root root 287664 Dec 3 2017 BackupPC-XS-0.57.tar.gz drwxr-xr-x 6 317 317 4096 Jun 20 2020 BackupPC-XS-0.62 -rw-r--r-- 1 root root 289549 Dec 7 2021 BackupPC-XS-0.62.tar.gz drwxr-x--- 5 root root 12288 Sep 27 09:21 CrowdStrike drwxr-xr-x 2 root root 4096 Jun 30 21:53 CSFFC drwxr-xr-x 14 www-data root 4096 Jun 27 2018 nextcloud drwxrwxr-x 11 root root 4096 May 9 2018 rsync-bpc-3.0.9.12 -rw-r--r-- 1 root root 786021 Jan 27 2018 rsync-bpc-3.0.9.12.tar.gz drwxrwxr-x 11 317 317 4096 Oct 8 2020 rsync-bpc-3.1.3.0 -rw-r--r-- 1 root root 883808 Dec 7 2021 rsync-bpc-3.1.3.0.tar.gz Ub20-zbox:/opt# cd rsync-bpc-3.1.3.0 Ub20-zbox:/opt/rsync-bpc-3.1.3.0# ls Ub20-zbox:/opt/rsync-bpc-3.1.3.0# ./configure configure.sh: Configuring rsync_bpc 3.1.3.0 checking build system type... x86_64-unknown-linux-gnu checking for _acl... no checking for __acl... no checking for _facl... no checking for __facl... no checking whether to support ACLs... running tests: checking for acl_get_file in -lacl... no checking for ACL support... no checking ACL test results... No ACL support found checking whether to support extended attributes... Using Linux xattrs checking for getxattr in -lattr... no configure.sh: creating ./config.status config.status: creating Makefile config.status: creating lib/dummy config.status: creating zlib/dummy config.status: creating popt/dummy config.status: creating shconfig config.status: creating config.h rsync_bpc 3.1.3.0 configuration successful Ub20-zbox:/opt/rsync-bpc-3.1.3.0# make from main.c:23: /usr/include/malloc.h:114:24: note: declared here 114 | extern struct mallinfo mallinfo (void) __THROW __MALLOC_DEPRECATED; | ^~~~~~~~ gcc -I. -I. -I./popt -g -O2 -DHAVE_CONFIG_H -Wall -W -c lib/md5.c -o lib/md5.o lib/md5.c:210:21: warning: argument 1 of type ‘unsigned char *’ declared as a pointer [-Warray-parameter=] 210 | void get_md5(uchar *out, const uchar *input, int n) In file included from lib/../rsync.h:1016, from lib/md5.c:20: lib/../lib/mdigest.h:26:20: note: previously declared as an array ‘unsigned char[16]’ 26 | void get_md5(uchar digest[MD5_DIGEST_LEN], const uchar *input, int n); gcc -I. -I. -I./popt -g -O2 -DHAVE_CONFIG_H -Wall -W -c lib/permstring.c -o lib/permstring.o gcc -I. -I. -I./popt -g -O2 -DHAVE_CONFIG_H -Wall -W -c lib/pool_alloc.c -o lib/pool_alloc.o gcc -I. -I. -I./popt -g -O2 -DHAVE_CONFIG_H -Wall -W -c lib/sysacls.c -o lib/sysacls.o lib/sysacls.c:2761:2: error: #error No ACL functions defined for this platform! 2761 | #error No ACL functions defined for this platform! | ^~~~~ make: *** [Makefile:65: lib/sysacls.o] Error 1 ========================================================================================================================= 22-10-14 Ub22-zbox:/var/log/apache2-bpc# apt remove backuppc The following packages were automatically installed and are no longer required: backuppc-rsync libbackuppc-xs-perl libio-dirent-perl libtime-parsedate-perl Use 'apt autoremove' to remove them. The following packages will be REMOVED: backuppc (Reading database ... 135643 files and directories currently installed.) Removing backuppc (4.4.0-5ubuntu2) ... Processing triggers for man-db (2.10.2-1) ... Ub22-zbox:/opt/temp/BackupPC-4.4.0# pwd /opt/temp/BackupPC-4.4.0 ########################################################################## DO NOT RUN configure.pl from same directory as you wish to install in !! ########################################################################## Ub22-zbox:/opt/temp/BackupPC-4.4.0# ./configure.pl Found /etc/BackupPC/config.pl, so this is an upgrade of an existing BackupPC installation. We will verify some existing information, but you will probably not need to make any changes - just hit ENTER to each question. BackupPC is running on zbox. You need to stop BackupPC before you can upgrade the code. Depending upon your installation, you could run "systemctl stop backuppc.service" if you use systemd, or "/etc/init.d/backuppc stop" if you use init.d. Ub22-zbox:/opt/temp/BackupPC-4.4.0# ./configure.pl Found /etc/BackupPC/config.pl, so this is an upgrade of an existing BackupPC installation. We will verify some existing information, but you will probably not need to make any changes - just hit ENTER to each question. I found the following locations for these programs: bzip2 => /bin/bzip2 cat => /bin/cat df => /bin/df gtar/tar => /bin/tar gzip => /bin/gzip hostname => /usr/bin/hostname nmblookup => /usr/bin/nmblookup par2 => /usr/bin/par2 perl => /usr/bin/perl ping => /bin/ping ping6 => /bin/ping6 rrdtool => /usr/bin/rrdtool rsync => /usr/bin/rsync rsync_bpc => /usr/local/bin/rsync_bpc sendmail => /usr/sbin/sendmail smbclient => /usr/bin/smbclient split => /usr/bin/split ssh/ssh2 => /usr/bin/ssh --> Are these paths correct? [y]? Please tell me the hostname of the machine that BackupPC will run on. --> BackupPC will run on host [zbox]? BackupPC should run as a dedicated user with limited privileges. You need to create a user. This user will need read/write permission on the main data directory and read/execute permission on the install directory (these directories will be setup shortly). The primary group for this user should also be chosen carefully. The data directories and files will have group read permission, so group members can access backup files. --> BackupPC should run as user [backuppc]? Please specify an install directory for BackupPC. This is where the BackupPC scripts, library and documentation will be installed. --> Install directory (full path) [/opt/BackupPC-4.4.0]? Please specify a data directory for BackupPC. This is where all the PC backup data is stored. This file system needs to be big enough to accommodate all the PCs you expect to backup (eg: at least several GB per machine). --> Data directory (full path) [/tank1/BackupPC]? BackupPC has SCGI and CGI perl interfaces that run under Apache. You need to pick which one to run. For SCGI, Apache uses the scgi_mod module to communicate with BackupPC_Admin_SCGI, which handles the requests. This allows Apache to run as a different user as backuppc. To use SCGI you need to set SCGIServerPort to any spare non-privileged TCP port number. A negative value disables SCGI. ** Important security warning!! The SCGIServerPort must not be accessible by ** anyone untrusted. That means you can't allow untrusted users access to the ** BackupPC server, and you should block the SCGIServerPort TCP port from ** network access. The traditional alternative is to use CGI. In this case, an executable needs to be installed Apache's cgi-bin directory. This executable needs to run as set-uid backuppc, or it can be run under mod_perl with Apache running as user backuppc. --> SCGI port (-1 to disable) [-1]? --> CGI bin directory (full path, or empty for no CGI) [/opt/BackupPC-4.4.0/cgi-bin]? BackupPC's CGI and SCGI script need to display various PNG/GIF images that should be stored where Apache can serve them. They should be placed somewhere under Apache's DocumentRoot. BackupPC also needs to know the URL to access these images. Example: Apache image directory: /var/www/htdocs/BackupPC URL for image directory: /BackupPC The URL for the image directory should start with a slash. --> Apache image directory (full path, or empty for no S/CGI) [/www/sites/BackupPC/html/images]? --> URL for image directory (omit http://host; starts with '/', or empty for no S/CGI) [/images]? Ok, we're about to: - install the binaries, lib and docs in /opt/BackupPC-4.4.0 - create the data directory /tank1/BackupPC - optionally install the cgi-bin interface - create/update the config.pl file /etc/BackupPC/config.pl --> Do you want to continue? [y]? Created /tank1/BackupPC Created /tank1/BackupPC/pool Created /tank1/BackupPC/cpool Created /tank1/BackupPC/pc Created /etc/BackupPC Created /var/log/BackupPC Created /var/run/BackupPC Installing binaries in /opt/BackupPC-4.4.0/bin Installing library in /opt/BackupPC-4.4.0/lib Installing images in /www/sites/BackupPC/html/images Making systemd and init.d scripts Making Apache configuration file for suid-perl Installing docs in /opt/BackupPC-4.4.0/share/doc/BackupPC Installing cgi script BackupPC_Admin in /opt/BackupPC-4.4.0/cgi-bin Installing config.pl and hosts in /etc/BackupPC Ok, it looks like we are finished. There are several more things you will need to do: - Browse through the config file, /etc/BackupPC/config.pl, and make sure all the settings are correct. In particular, you will need to set $Conf{CgiAdminUsers} so you have administration privileges in the CGI interface. - Edit the list of hosts to backup in /etc/BackupPC/hosts. - Read the documentation in /opt/BackupPC-4.4.0/doc/BackupPC.html. Please pay special attention to the security section. - Verify that the CGI script BackupPC_Admin runs correctly. You might need to change the permissions or group ownership of BackupPC_Admin. If this is an upgrade and you are using mod_perl, you will need to restart Apache. Otherwise it will have stale code. - BackupPC should be ready to start. Don't forget to run it as user backuppc! The installation also contains a systemd/backuppc.service script that can be installed so that BackupPC can auto-start on boot. This will also enable administrative users to start the server from the CGI interface. See systemd/README. Enjoy! ========================================================================================================================= 22-11-22 Ub22-zbox:~# apt-get changelog openssl > /tmp/openssl_log Ub22-zbox:~# head -17 /tmp/openssl_log Get:1 https://changelogs.ubuntu.com openssl 3.0.2-0ubuntu1.7 Changelog [117 kB] openssl (3.0.2-0ubuntu1.7) jammy-security; urgency=medium * SECURITY UPDATE: X.509 Email Address Buffer Overflow - debian/patches/CVE-2022-3602-1.patch: fix off by one in punycode decoder in crypto/punycode.c, test/build.info, test/punycode_test.c, test/recipes/04-test_punycode.t. - debian/patches/CVE-2022-3602-2.patch: ensure the result is zero terminated in crypto/punycode.c. - CVE-2022-3602 * SECURITY UPDATE: legacy custom cipher issue - debian/patches/CVE-2022-3358.patch: fix usage of custom EVP_CIPHER objects in crypto/evp/digest.c, crypto/evp/evp_enc.c. - CVE-2022-3358 -- Marc Deslauriers Thu, 27 Oct 2022 13:06:56 -0400 ========================================================================================================================= 23-03-27 Ub22-zbox:~# grep -i mailfrom /usr/share/logwatch/default.conf/logwatch.conf MailFrom = Logwatch_zbox ========================================================================================================================= 23-06-09 Ub22-zbox:/tank1/cgem/maceachern# ufw status Status: active To Action From -- ------ ---- 22/tcp ALLOW 142.103.236.0/24 22/tcp ALLOW 142.103.235.1 22/tcp ALLOW 142.103.235.80 80/tcp ALLOW 142.103.235.80 80/tcp ALLOW 142.103.235.1 80/tcp ALLOW 142.103.236.0/24 443/tcp ALLOW 142.103.236.0/24 80/tcp ALLOW 142.103.235.0/24 443/tcp ALLOW 142.103.235.0/24 8443/tcp ALLOW 142.103.235.1 8443/tcp ALLOW 142.103.235.80 8080/tcp ALLOW 142.103.235.1 8080/tcp ALLOW 142.103.235.80 8080/tcp ALLOW 142.103.235.0/24 8443/tcp ALLOW 142.103.235.0/24 8443/tcp ALLOW 142.103.237.0/24 8443/tcp ALLOW 142.103.239.0/24 8443/tcp ALLOW 128.189.122.32/27 22/tcp ALLOW 142.103.237.0/24 22/tcp ALLOW 142.103.239.0/24 443/tcp ALLOW 142.103.239.0/24 443/tcp ALLOW 142.103.211.0/24 3551/tcp ALLOW 142.103.82.9 3551/tcp ALLOW 142.103.236.0/24 Anywhere ALLOW 10.19.216.31 873 ALLOW 142.103.51.4 22/tcp ALLOW 142.103.51.4 8443/tcp ALLOW 142.103.211.1 8443/tcp ALLOW 142.103.51.4 22/tcp ALLOW 142.103.235.56 Ub22-zbox:/tank1/cgem/maceachern# ufw allow proto tcp from 142.103.235.0/24 to any port 873 Rule added Ub22-zbox:/tank1/cgem/maceachern# ufw allow proto tcp from 142.103.239.0/24 to any port 873 Rule added Ub22-zbox:/tank1/cgem/maceachern# ufw status Status: active To Action From -- ------ ---- 22/tcp ALLOW 142.103.236.0/24 22/tcp ALLOW 142.103.235.1 22/tcp ALLOW 142.103.235.80 80/tcp ALLOW 142.103.235.80 80/tcp ALLOW 142.103.235.1 80/tcp ALLOW 142.103.236.0/24 443/tcp ALLOW 142.103.236.0/24 80/tcp ALLOW 142.103.235.0/24 443/tcp ALLOW 142.103.235.0/24 8443/tcp ALLOW 142.103.235.1 8443/tcp ALLOW 142.103.235.80 8080/tcp ALLOW 142.103.235.1 8080/tcp ALLOW 142.103.235.80 8080/tcp ALLOW 142.103.235.0/24 8443/tcp ALLOW 142.103.235.0/24 8443/tcp ALLOW 142.103.237.0/24 8443/tcp ALLOW 142.103.239.0/24 8443/tcp ALLOW 128.189.122.32/27 22/tcp ALLOW 142.103.237.0/24 22/tcp ALLOW 142.103.239.0/24 443/tcp ALLOW 142.103.239.0/24 443/tcp ALLOW 142.103.211.0/24 3551/tcp ALLOW 142.103.82.9 3551/tcp ALLOW 142.103.236.0/24 Anywhere ALLOW 10.19.216.31 873 ALLOW 142.103.51.4 22/tcp ALLOW 142.103.51.4 8443/tcp ALLOW 142.103.211.1 8443/tcp ALLOW 142.103.51.4 22/tcp ALLOW 142.103.235.56 873/tcp ALLOW 142.103.235.0/24 873/tcp ALLOW 142.103.239.0/24 Ub22-zbox:/var/log# allow proto tcp from 142.103.235.0/24 to any port 443 allow: command not found Ub22-zbox:/var/log# allow proto tcp from 142.103.239.0/24 to any port 443 allow: command not found Ub22-zbox:/var/log# ufw allow proto tcp from 128.189.122.32/27 to any port 443 Rule added ========================================================================================================================= 23-06-29 Ub22-zbox:~# apt search zfs-auto-snapshot Sorting... Done Full Text Search... Done zfs-auto-snapshot/jammy 1.2.4-2 all ZFS automatic snapshot service Ub22-zbox:~# apt install zfs-auto-snapshot Ub22-zbox:~# which zfs-auto-snapshot /usr/sbin/zfs-auto-snapshot Ub22-zbox:~# dpkg-query -L zfs-auto-snapshot /. /etc /etc/cron.d /etc/cron.d/zfs-auto-snapshot /etc/cron.daily /etc/cron.daily/zfs-auto-snapshot /etc/cron.hourly /etc/cron.hourly/zfs-auto-snapshot /etc/cron.monthly /etc/cron.monthly/zfs-auto-snapshot /etc/cron.weekly /etc/cron.weekly/zfs-auto-snapshot /usr /usr/sbin /usr/sbin/zfs-auto-snapshot /usr/share /usr/share/doc /usr/share/doc/zfs-auto-snapshot /usr/share/doc/zfs-auto-snapshot/changelog.Debian.gz /usr/share/doc/zfs-auto-snapshot/copyright /usr/share/man /usr/share/man/man8 /usr/share/man/man8/zfs-auto-snapshot.8.gz Ub22-zbox:~# zpool status pool: tank1 state: ONLINE scan: scrub repaired 0B in 07:39:20 with 0 errors on Sun Jun 11 08:03:22 2023 config: NAME STATE READ WRITE CKSUM tank1 ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 sdf ONLINE 0 0 0 sdg ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 scsi-35000cca269cda511 ONLINE 0 0 0 sda ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 sdb ONLINE 0 0 0 sdc ONLINE 0 0 0 mirror-3 ONLINE 0 0 0 sdd ONLINE 0 0 0 sde ONLINE 0 0 0 errors: No known data errors Ub22-zbox:~# zpool list NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT tank1 14.5T 8.87T 5.63T - - 39% 61% 1.00x ONLINE - Ub22-zbox:~# zfs list NAME USED AVAIL REFER MOUNTPOINT tank1 8.87T 5.44T 104K /tank1 tank1/Archives 616G 5.44T 616G /tank1/Archives tank1/BackupPC 5.52T 5.44T 5.52T /tank1/BackupPC tank1/VMs 7.15G 5.44T 7.15G /tank1/VMs tank1/borg 302G 5.44T 302G /tank1/borg tank1/cgem 2.44T 2.56T 2.44T /tank1/cgem tank1/cgem/maceachern 108K 5.44T 108K /tank1/cgem/maceachern tank1/ncdata 1.75G 5.44T 1.75G /tank1/ncdata tank1/ncdataBU 1.74G 5.44T 1.74G /tank1/ncdataBU Ub22-zbox:~# zfs get com.sun:auto-snapshot NAME PROPERTY VALUE SOURCE tank1 com.sun:auto-snapshot - - tank1@zfs-auto-snap_hourly-2023-06-29-1717 com.sun:auto-snapshot - - tank1@zfs-auto-snap_frequent-2023-06-29-1800 com.sun:auto-snapshot - - tank1@zfs-auto-snap_frequent-2023-06-29-1815 com.sun:auto-snapshot - - tank1@zfs-auto-snap_hourly-2023-06-29-1817 com.sun:auto-snapshot - - tank1@zfs-auto-snap_frequent-2023-06-29-1830 com.sun:auto-snapshot - - tank1@zfs-auto-snap_frequent-2023-06-29-1845 com.sun:auto-snapshot - - tank1/Archives com.sun:auto-snapshot - - tank1/Archives@zfs-auto-snap_hourly-2023-06-29-1717 com.sun:auto-snapshot - - tank1/Archives@zfs-auto-snap_frequent-2023-06-29-1800 com.sun:auto-snapshot - - tank1/Archives@zfs-auto-snap_frequent-2023-06-29-1815 com.sun:auto-snapshot - - tank1/Archives@zfs-auto-snap_hourly-2023-06-29-1817 com.sun:auto-snapshot - - tank1/Archives@zfs-auto-snap_frequent-2023-06-29-1830 com.sun:auto-snapshot - - tank1/Archives@zfs-auto-snap_frequent-2023-06-29-1845 com.sun:auto-snapshot - - tank1/BackupPC com.sun:auto-snapshot - - tank1/BackupPC@zfs-auto-snap_hourly-2023-06-29-1717 com.sun:auto-snapshot - - tank1/BackupPC@zfs-auto-snap_frequent-2023-06-29-1800 com.sun:auto-snapshot - - tank1/BackupPC@zfs-auto-snap_frequent-2023-06-29-1815 com.sun:auto-snapshot - - tank1/BackupPC@zfs-auto-snap_hourly-2023-06-29-1817 com.sun:auto-snapshot - - tank1/BackupPC@zfs-auto-snap_frequent-2023-06-29-1830 com.sun:auto-snapshot - - tank1/BackupPC@zfs-auto-snap_frequent-2023-06-29-1845 com.sun:auto-snapshot - - tank1/VMs com.sun:auto-snapshot - - tank1/VMs@zfs-auto-snap_hourly-2023-06-29-1717 com.sun:auto-snapshot - - tank1/VMs@zfs-auto-snap_frequent-2023-06-29-1800 com.sun:auto-snapshot - - tank1/VMs@zfs-auto-snap_frequent-2023-06-29-1815 com.sun:auto-snapshot - - tank1/VMs@zfs-auto-snap_hourly-2023-06-29-1817 com.sun:auto-snapshot - - tank1/VMs@zfs-auto-snap_frequent-2023-06-29-1830 com.sun:auto-snapshot - - tank1/VMs@zfs-auto-snap_frequent-2023-06-29-1845 com.sun:auto-snapshot - - tank1/borg com.sun:auto-snapshot - - tank1/borg@zfs-auto-snap_hourly-2023-06-29-1717 com.sun:auto-snapshot - - tank1/borg@zfs-auto-snap_frequent-2023-06-29-1800 com.sun:auto-snapshot - - tank1/borg@zfs-auto-snap_frequent-2023-06-29-1815 com.sun:auto-snapshot - - tank1/borg@zfs-auto-snap_hourly-2023-06-29-1817 com.sun:auto-snapshot - - tank1/borg@zfs-auto-snap_frequent-2023-06-29-1830 com.sun:auto-snapshot - - tank1/borg@zfs-auto-snap_frequent-2023-06-29-1845 com.sun:auto-snapshot - - tank1/cgem com.sun:auto-snapshot - - tank1/cgem@zfs-auto-snap_hourly-2023-06-29-1717 com.sun:auto-snapshot - - tank1/cgem@zfs-auto-snap_frequent-2023-06-29-1800 com.sun:auto-snapshot - - tank1/cgem@zfs-auto-snap_frequent-2023-06-29-1815 com.sun:auto-snapshot - - tank1/cgem@zfs-auto-snap_hourly-2023-06-29-1817 com.sun:auto-snapshot - - tank1/cgem@zfs-auto-snap_frequent-2023-06-29-1830 com.sun:auto-snapshot - - tank1/cgem@zfs-auto-snap_frequent-2023-06-29-1845 com.sun:auto-snapshot - - tank1/cgem/maceachern com.sun:auto-snapshot - - tank1/cgem/maceachern@zfs-auto-snap_hourly-2023-06-29-1717 com.sun:auto-snapshot - - tank1/cgem/maceachern@zfs-auto-snap_frequent-2023-06-29-1800 com.sun:auto-snapshot - - tank1/cgem/maceachern@zfs-auto-snap_frequent-2023-06-29-1815 com.sun:auto-snapshot - - tank1/cgem/maceachern@zfs-auto-snap_hourly-2023-06-29-1817 com.sun:auto-snapshot - - tank1/cgem/maceachern@zfs-auto-snap_frequent-2023-06-29-1830 com.sun:auto-snapshot - - tank1/cgem/maceachern@zfs-auto-snap_frequent-2023-06-29-1845 com.sun:auto-snapshot - - tank1/ncdata com.sun:auto-snapshot - - tank1/ncdata@zfs-auto-snap_hourly-2023-06-29-1717 com.sun:auto-snapshot - - tank1/ncdata@zfs-auto-snap_frequent-2023-06-29-1800 com.sun:auto-snapshot - - tank1/ncdata@zfs-auto-snap_frequent-2023-06-29-1815 com.sun:auto-snapshot - - tank1/ncdata@zfs-auto-snap_hourly-2023-06-29-1817 com.sun:auto-snapshot - - tank1/ncdata@zfs-auto-snap_frequent-2023-06-29-1830 com.sun:auto-snapshot - - tank1/ncdata@zfs-auto-snap_frequent-2023-06-29-1845 com.sun:auto-snapshot - - tank1/ncdataBU com.sun:auto-snapshot - - tank1/ncdataBU@zfs-auto-snap_hourly-2023-06-29-1717 com.sun:auto-snapshot - - tank1/ncdataBU@zfs-auto-snap_frequent-2023-06-29-1800 com.sun:auto-snapshot - - tank1/ncdataBU@zfs-auto-snap_frequent-2023-06-29-1815 com.sun:auto-snapshot - - tank1/ncdataBU@zfs-auto-snap_hourly-2023-06-29-1817 com.sun:auto-snapshot - - tank1/ncdataBU@zfs-auto-snap_frequent-2023-06-29-1830 com.sun:auto-snapshot - - tank1/ncdataBU@zfs-auto-snap_frequent-2023-06-29-1845 com.sun:auto-snapshot - - Ub22-zbox:~# zfs list NAME USED AVAIL REFER MOUNTPOINT tank1 8.87T 5.44T 104K /tank1 tank1/Archives 616G 5.44T 616G /tank1/Archives tank1/BackupPC 5.52T 5.44T 5.52T /tank1/BackupPC tank1/VMs 7.15G 5.44T 7.15G /tank1/VMs tank1/borg 302G 5.44T 302G /tank1/borg tank1/cgem 2.44T 2.56T 2.44T /tank1/cgem tank1/cgem/maceachern 108K 5.44T 108K /tank1/cgem/maceachern tank1/ncdata 1.75G 5.44T 1.75G /tank1/ncdata tank1/ncdataBU 1.74G 5.44T 1.74G /tank1/ncdataBU Ub22-zbox:~# zfs set com.sun:auto-snapshot=false tank1/Archives Ub22-zbox:~# zfs set com.sun:auto-snapshot=false tank1/VMs Ub22-zbox:~# zfs set com.sun:auto-snapshot=false tank1/cgem Ub22-zbox:~# zfs set com.sun:auto-snapshot=false tank1/ncdata Ub22-zbox:~# zfs set com.sun:auto-snapshot=false tank1/ncdataBU Ub22-zbox:~# zfs get com.sun:auto-snapshot NAME PROPERTY VALUE SOURCE tank1 com.sun:auto-snapshot - - tank1@zfs-auto-snap_hourly-2023-06-29-1717 com.sun:auto-snapshot - - tank1@zfs-auto-snap_frequent-2023-06-29-1800 com.sun:auto-snapshot - - tank1@zfs-auto-snap_frequent-2023-06-29-1815 com.sun:auto-snapshot - - tank1@zfs-auto-snap_hourly-2023-06-29-1817 com.sun:auto-snapshot - - tank1@zfs-auto-snap_frequent-2023-06-29-1830 com.sun:auto-snapshot - - tank1@zfs-auto-snap_frequent-2023-06-29-1845 com.sun:auto-snapshot - - tank1/Archives com.sun:auto-snapshot false local tank1/Archives@zfs-auto-snap_hourly-2023-06-29-1717 com.sun:auto-snapshot false inherited from tank1/Archives tank1/Archives@zfs-auto-snap_frequent-2023-06-29-1800 com.sun:auto-snapshot false inherited from tank1/Archives tank1/Archives@zfs-auto-snap_frequent-2023-06-29-1815 com.sun:auto-snapshot false inherited from tank1/Archives tank1/Archives@zfs-auto-snap_hourly-2023-06-29-1817 com.sun:auto-snapshot false inherited from tank1/Archives tank1/Archives@zfs-auto-snap_frequent-2023-06-29-1830 com.sun:auto-snapshot false inherited from tank1/Archives tank1/Archives@zfs-auto-snap_frequent-2023-06-29-1845 com.sun:auto-snapshot false inherited from tank1/Archives tank1/BackupPC com.sun:auto-snapshot - - tank1/BackupPC@zfs-auto-snap_hourly-2023-06-29-1717 com.sun:auto-snapshot - - tank1/BackupPC@zfs-auto-snap_frequent-2023-06-29-1800 com.sun:auto-snapshot - - tank1/BackupPC@zfs-auto-snap_frequent-2023-06-29-1815 com.sun:auto-snapshot - - tank1/BackupPC@zfs-auto-snap_hourly-2023-06-29-1817 com.sun:auto-snapshot - - tank1/BackupPC@zfs-auto-snap_frequent-2023-06-29-1830 com.sun:auto-snapshot - - tank1/BackupPC@zfs-auto-snap_frequent-2023-06-29-1845 com.sun:auto-snapshot - - tank1/VMs com.sun:auto-snapshot false local tank1/VMs@zfs-auto-snap_hourly-2023-06-29-1717 com.sun:auto-snapshot false inherited from tank1/VMs tank1/VMs@zfs-auto-snap_frequent-2023-06-29-1800 com.sun:auto-snapshot false inherited from tank1/VMs tank1/VMs@zfs-auto-snap_frequent-2023-06-29-1815 com.sun:auto-snapshot false inherited from tank1/VMs tank1/VMs@zfs-auto-snap_hourly-2023-06-29-1817 com.sun:auto-snapshot false inherited from tank1/VMs tank1/VMs@zfs-auto-snap_frequent-2023-06-29-1830 com.sun:auto-snapshot false inherited from tank1/VMs tank1/VMs@zfs-auto-snap_frequent-2023-06-29-1845 com.sun:auto-snapshot false inherited from tank1/VMs tank1/borg com.sun:auto-snapshot - - tank1/borg@zfs-auto-snap_hourly-2023-06-29-1717 com.sun:auto-snapshot - - tank1/borg@zfs-auto-snap_frequent-2023-06-29-1800 com.sun:auto-snapshot - - tank1/borg@zfs-auto-snap_frequent-2023-06-29-1815 com.sun:auto-snapshot - - tank1/borg@zfs-auto-snap_hourly-2023-06-29-1817 com.sun:auto-snapshot - - tank1/borg@zfs-auto-snap_frequent-2023-06-29-1830 com.sun:auto-snapshot - - tank1/borg@zfs-auto-snap_frequent-2023-06-29-1845 com.sun:auto-snapshot - - tank1/cgem com.sun:auto-snapshot false local tank1/cgem@zfs-auto-snap_hourly-2023-06-29-1717 com.sun:auto-snapshot false inherited from tank1/cgem tank1/cgem@zfs-auto-snap_frequent-2023-06-29-1800 com.sun:auto-snapshot false inherited from tank1/cgem tank1/cgem@zfs-auto-snap_frequent-2023-06-29-1815 com.sun:auto-snapshot false inherited from tank1/cgem tank1/cgem@zfs-auto-snap_hourly-2023-06-29-1817 com.sun:auto-snapshot false inherited from tank1/cgem tank1/cgem@zfs-auto-snap_frequent-2023-06-29-1830 com.sun:auto-snapshot false inherited from tank1/cgem tank1/cgem@zfs-auto-snap_frequent-2023-06-29-1845 com.sun:auto-snapshot false inherited from tank1/cgem tank1/cgem/maceachern com.sun:auto-snapshot false inherited from tank1/cgem tank1/cgem/maceachern@zfs-auto-snap_hourly-2023-06-29-1717 com.sun:auto-snapshot false inherited from tank1/cgem tank1/cgem/maceachern@zfs-auto-snap_frequent-2023-06-29-1800 com.sun:auto-snapshot false inherited from tank1/cgem tank1/cgem/maceachern@zfs-auto-snap_frequent-2023-06-29-1815 com.sun:auto-snapshot false inherited from tank1/cgem tank1/cgem/maceachern@zfs-auto-snap_hourly-2023-06-29-1817 com.sun:auto-snapshot false inherited from tank1/cgem tank1/cgem/maceachern@zfs-auto-snap_frequent-2023-06-29-1830 com.sun:auto-snapshot false inherited from tank1/cgem tank1/cgem/maceachern@zfs-auto-snap_frequent-2023-06-29-1845 com.sun:auto-snapshot false inherited from tank1/cgem tank1/ncdata com.sun:auto-snapshot false local tank1/ncdata@zfs-auto-snap_hourly-2023-06-29-1717 com.sun:auto-snapshot false inherited from tank1/ncdata tank1/ncdata@zfs-auto-snap_frequent-2023-06-29-1800 com.sun:auto-snapshot false inherited from tank1/ncdata tank1/ncdata@zfs-auto-snap_frequent-2023-06-29-1815 com.sun:auto-snapshot false inherited from tank1/ncdata tank1/ncdata@zfs-auto-snap_hourly-2023-06-29-1817 com.sun:auto-snapshot false inherited from tank1/ncdata tank1/ncdata@zfs-auto-snap_frequent-2023-06-29-1830 com.sun:auto-snapshot false inherited from tank1/ncdata tank1/ncdata@zfs-auto-snap_frequent-2023-06-29-1845 com.sun:auto-snapshot false inherited from tank1/ncdata tank1/ncdataBU com.sun:auto-snapshot false local tank1/ncdataBU@zfs-auto-snap_hourly-2023-06-29-1717 com.sun:auto-snapshot false inherited from tank1/ncdataBU tank1/ncdataBU@zfs-auto-snap_frequent-2023-06-29-1800 com.sun:auto-snapshot false inherited from tank1/ncdataBU tank1/ncdataBU@zfs-auto-snap_frequent-2023-06-29-1815 com.sun:auto-snapshot false inherited from tank1/ncdataBU tank1/ncdataBU@zfs-auto-snap_hourly-2023-06-29-1817 com.sun:auto-snapshot false inherited from tank1/ncdataBU tank1/ncdataBU@zfs-auto-snap_frequent-2023-06-29-1830 com.sun:auto-snapshot false inherited from tank1/ncdataBU tank1/ncdataBU@zfs-auto-snap_frequent-2023-06-29-1845 com.sun:auto-snapshot false inherited from tank1/ncdataBU https://www.ccammack.com/posts/schedule-zfs-snapshots-using-zfs-auto-snapshot/ http://www.bolthole.com/zrep/zrep.documentation.html https://github.com/bolthole/zrep https://dannyda.com/2022/03/27/how-to-have-enable-automatic-zfs-pool-snapshot-in-linux-openmediavault-omv-debian-ubuntu-etc/ zfs list -t snapshot Ub22-zbox:/tank1# pwd /tank1 Ub22-zbox:/tank1# cd .zfs Ub22-zbox:/tank1/.zfs# ll total 1 dr-xr-xr-x 2 root root 2 Jul 6 2016 shares drwxrwxrwx 2 root root 2 Jun 29 15:00 snapshot Ub22-zbox:/tank1/.zfs# ll snapshot/ total 68 drwxr-xr-x 9 root root 9 Jun 9 12:32 zfs-auto-snap_frequent-2023-06-29-2115 drwxr-xr-x 9 root root 9 Jun 9 12:32 zfs-auto-snap_frequent-2023-06-29-2130 drwxr-xr-x 9 root root 9 Jun 9 12:32 zfs-auto-snap_frequent-2023-06-29-2145 drwxr-xr-x 9 root root 9 Jun 9 12:32 zfs-auto-snap_frequent-2023-06-29-2200 drwxr-xr-x 9 root root 9 Jun 9 12:32 zfs-auto-snap_hourly-2023-06-29-1717 drwxr-xr-x 9 root root 9 Jun 9 12:32 zfs-auto-snap_hourly-2023-06-29-1817 drwxr-xr-x 9 root root 9 Jun 9 12:32 zfs-auto-snap_hourly-2023-06-29-1917 drwxr-xr-x 9 root root 9 Jun 9 12:32 zfs-auto-snap_hourly-2023-06-29-2117 ========================================================================================================================= 24-03-04 After copying over new certificate files and installing them (creating soft links) need to restart apache: Ub22-zbox:/etc/ssl/private# ll /etc/ssl/private/phas* -rw-r----- 1 root root 302 Feb 16 2023 /etc/ssl/private/phas.ubc.ca.2024-03-08.key -rw------- 1 root root 302 Mar 4 12:52 /etc/ssl/private/phas.ubc.ca.2025-03-09.key lrwxrwxrwx 1 root root 26 Mar 4 12:57 /etc/ssl/private/phas.ubc.ca.key -> phas.ubc.ca.2025-03-09.key Ub22-zbox:/etc/ssl/private# ll /etc/ssl/certs/phas* -rw-r----- 1 root root 1943 Feb 16 2023 /etc/ssl/certs/phas.ubc.ca.2024-03-08.crt -rw-r----- 1 root root 1865 Mar 4 12:56 /etc/ssl/certs/phas.ubc.ca.2025-03-09.crt lrwxrwxrwx 1 root root 26 Mar 4 12:57 /etc/ssl/certs/phas.ubc.ca.crt -> phas.ubc.ca.2025-03-09.crt Ub22-zbox:/etc/ssl/private# systemctl restart apache2 Ub22-zbox:/etc/ssl/private# systemctl restart apache2@bpc ========================================================================================================================= 24-03-19 Ub22-zbox:~# curl -I -s https://cap.phas.ubc.ca:443 | grep -i strict Strict-Transport-Security: max-age=15552000; includeSubDomains; preload Referrer-Policy: strict-origin ========================================================================================================================= 24-03-27 Ub22-zbox:~# /opt/CrowdStrike/falconctl -f -s --tags=PHAS,PHAS_SUB_ADMIN,LOC_EDUCLOUD ========================================================================================================================= 24-05-01 Ub22-zbox:~# apt install sanoid The following additional packages will be installed: libcapture-tiny-perl lzop mbuffer pv Suggested packages: doc-base The following NEW packages will be installed: libcapture-tiny-perl lzop mbuffer pv sanoid 0 upgraded, 5 newly installed, 0 to remove and 2 not upgraded. Ub22-zbox:~# dpkg -L sanoid /. /etc /etc/cron.d /etc/cron.d/sanoid /lib /lib/systemd /lib/systemd/system /lib/systemd/system/sanoid-prune.service /lib/systemd/system/sanoid.service /lib/systemd/system/sanoid.timer /usr /usr/sbin /usr/sbin/findoid /usr/sbin/sanoid /usr/sbin/syncoid /usr/share /usr/share/doc /usr/share/doc/sanoid /usr/share/doc/sanoid/README.Debian /usr/share/doc/sanoid/README.md.gz /usr/share/doc/sanoid/changelog /usr/share/doc/sanoid/changelog/CHANGELIST.gz /usr/share/doc/sanoid/changelog.Debian.gz /usr/share/doc/sanoid/copyright /usr/share/doc/sanoid/examples /usr/share/doc/sanoid/examples/sanoid.conf /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/sanoid /usr/share/man /usr/share/man/man8 /usr/share/man/man8/findoid.8.gz /usr/share/man/man8/sanoid.8.gz /usr/share/man/man8/syncoid.8.gz /usr/share/sanoid /usr/share/sanoid/sanoid.defaults.conf ========================================================================================================================= 24-05-16 Ub22-zbox:~# /opt/CrowdStrike/falconctl -f -s --tags=PHAS,PHAS_SUB_ADMIN,LOC_HENN_110A Ub22-zbox:~# /opt/CrowdStrike/falconctl -g --tags tags=PHAS,PHAS_SUB_ADMIN,LOC_HENN_110A. ========================================================================================================================= 24-06-06 Ub22-zbox:~# zfs list NAME USED AVAIL REFER MOUNTPOINT tank1 11.4T 2.94T 96K /tank1 tank1/BackupPC 7.02T 2.94T 6.37T /tank1/BackupPC tank1/borg 302G 2.94T 1.48G /tank1/borg tank1/cgem 3.85T 1.15T 3.85T /tank1/cgem tank1/cgem/maceachern 116K 2.94T 108K /tank1/cgem/maceachern tank1/rap 217G 2.94T 162G /tank1/rap Ub22-zbox:~# zfs destroy tank1/cgem/maceachern cannot destroy 'tank1/cgem/maceachern': filesystem has children use '-r' to destroy the following datasets: tank1/cgem/maceachern@zfs-auto-snap_hourly-2023-06-29-1817 tank1/cgem/maceachern@zfs-auto-snap_frequent-2023-06-29-1800 tank1/cgem/maceachern@zfs-auto-snap_frequent-2023-06-29-1845 tank1/cgem/maceachern@zfs-auto-snap_frequent-2023-06-29-1830 tank1/cgem/maceachern@zfs-auto-snap_hourly-2023-06-29-1717 tank1/cgem/maceachern@zfs-auto-snap_frequent-2023-06-29-1815 Ub22-zbox:~# zfs destroy -r tank1/cgem/maceachern Ub22-zbox:~# zfs list NAME USED AVAIL REFER MOUNTPOINT tank1 11.4T 2.94T 96K /tank1 tank1/BackupPC 7.02T 2.94T 6.37T /tank1/BackupPC tank1/borg 302G 2.94T 1.48G /tank1/borg tank1/cgem 3.85T 1.15T 3.85T /tank1/cgem tank1/rap 217G 2.94T 162G /tank1/rap Ub22-zbox:~# zfs destroy tank1/cgem cannot destroy 'tank1/cgem': filesystem has children use '-r' to destroy the following datasets: tank1/cgem@zfs-auto-snap_frequent-2023-06-29-1815 tank1/cgem@zfs-auto-snap_hourly-2023-06-29-1817 tank1/cgem@zfs-auto-snap_frequent-2023-06-29-1830 tank1/cgem@zfs-auto-snap_frequent-2023-06-29-1845 tank1/cgem@zfs-auto-snap_frequent-2023-06-29-1800 tank1/cgem@zfs-auto-snap_hourly-2023-06-29-1717 Ub22-zbox:~# zfs destroy -r tank1/cgem Ub22-zbox:~# zfs list NAME USED AVAIL REFER MOUNTPOINT tank1 10.9T 3.45T 96K /tank1 tank1/BackupPC 7.02T 3.45T 6.37T /tank1/BackupPC tank1/borg 302G 3.45T 1.48G /tank1/borg tank1/rap 217G 3.45T 162G /tank1/rap ========================================================================================================================= 24-10-24 Ub22-zbox:~# zpool status pool: tank1 state: DEGRADED status: One or more devices could not be used because the label is missing or invalid. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Replace the device using 'zpool replace'. see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-4J scan: scrub repaired 0B in 08:45:39 with 0 errors on Sun Oct 13 09:09:40 2024 config: NAME STATE READ WRITE CKSUM tank1 DEGRADED 0 0 0 mirror-0 ONLINE 0 0 0 sde ONLINE 0 0 0 sdf ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 scsi-35000cca269cda511 ONLINE 0 0 0 sda ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 sdb ONLINE 0 0 0 sdc ONLINE 0 0 0 mirror-3 DEGRADED 0 0 0 sdd ONLINE 0 0 0 9095447524952741417 UNAVAIL 0 0 0 was /dev/disk/by-id/wwn-0x5000cca250e2a801-part2 errors: No known data errors Ub22-zbox:~# ll /dev/disk/by-id/wwn-0x5000cca250e2a801-part2 ls: cannot access '/dev/disk/by-id/wwn-0x5000cca250e2a801-part2': No such file or directory Ub22-zbox:~# fdisk -l | grep sd Disk /dev/sdg: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors /dev/sdg1 2048 7814019071 7814017024 3.6T Solaris /usr & Apple ZFS /dev/sdg9 7814019072 7814035455 16384 8M Solaris reserved 1 Disk /dev/sdb: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors /dev/sdb1 128 4194431 4194304 2G FreeBSD swap /dev/sdb2 4194432 7814037127 7809842696 3.6T FreeBSD ZFS Disk /dev/sdf: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors /dev/sdf1 128 4194431 4194304 2G FreeBSD swap /dev/sdf2 4194432 7814037127 7809842696 3.6T FreeBSD ZFS Disk /dev/sdd: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors /dev/sdd1 128 4194431 4194304 2G FreeBSD swap /dev/sdd2 4194432 7814037127 7809842696 3.6T FreeBSD ZFS Disk /dev/sda: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors /dev/sda1 128 4194431 4194304 2G FreeBSD swap /dev/sda2 4194432 7814037127 7809842696 3.6T FreeBSD ZFS Disk /dev/sde: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors /dev/sde1 128 4194431 4194304 2G FreeBSD swap /dev/sde2 4194432 7814037127 7809842696 3.6T FreeBSD ZFS Disk /dev/sdc: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors /dev/sdc1 128 4194431 4194304 2G FreeBSD swap /dev/sdc2 4194432 7814037127 7809842696 3.6T FreeBSD ZFS Disk /dev/sdh: 111.79 GiB, 120034123776 bytes, 234441648 sectors /dev/sdh1 2048 4095 2048 1M BIOS boot /dev/sdh2 4096 234441614 234437519 111.8G Linux filesystem Ub22-zbox:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 104M 1 loop /snap/core/16928 ... loop7 7:7 0 91.9M 1 loop /snap/lxd/29619 sda 8:0 0 3.6T 0 disk ├─sda1 8:1 0 2G 0 part └─sda2 8:2 0 3.6T 0 part sdb 8:16 0 3.6T 0 disk ├─sdb1 8:17 0 2G 0 part └─sdb2 8:18 0 3.6T 0 part sdc 8:32 0 3.6T 0 disk ├─sdc1 8:33 0 2G 0 part └─sdc2 8:34 0 3.6T 0 part sdd 8:48 0 3.6T 0 disk ├─sdd1 8:49 0 2G 0 part └─sdd2 8:50 0 3.6T 0 part sde 8:64 0 3.6T 0 disk ├─sde1 8:65 0 2G 0 part └─sde2 8:66 0 3.6T 0 part sdf 8:80 0 3.6T 0 disk ├─sdf1 8:81 0 2G 0 part └─sdf2 8:82 0 3.6T 0 part sdg 8:96 0 3.6T 0 disk ├─sdg1 8:97 0 3.6T 0 part └─sdg9 8:105 0 8M 0 part sdh 8:112 0 111.8G 0 disk ├─sdh1 8:113 0 1M 0 part └─sdh2 8:114 0 111.8G 0 part / Ub22-zbox:~# blkid /dev/sda2 /dev/sda2: LABEL="tank1" UUID="12067240702607040808" UUID_SUB="15257085418215025463" BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="4abadb1c-43d8-11e6-a78b-0cc47a7d3a36" Ub22-zbox:~# blkid /dev/sdb2 /dev/sdb2: LABEL="tank1" UUID="12067240702607040808" UUID_SUB="9129899024905254762" BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="4d5e920c-43d8-11e6-a78b-0cc47a7d3a36" Ub22-zbox:~# blkid /dev/sdc2 /dev/sdc2: LABEL="tank1" UUID="12067240702607040808" UUID_SUB="367356655080720330" BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="4ff6f7d1-43d8-11e6-a78b-0cc47a7d3a36" Ub22-zbox:~# blkid /dev/sdd2 /dev/sdd2: LABEL="tank1" UUID="12067240702607040808" UUID_SUB="6618501606238300843" BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="52a3d4f9-43d8-11e6-a78b-0cc47a7d3a36" Ub22-zbox:~# blkid /dev/sde2 /dev/sde2: LABEL="tank1" UUID="12067240702607040808" UUID_SUB="2244737528627744761" BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="431b5214-43d8-11e6-a78b-0cc47a7d3a36" Ub22-zbox:~# blkid /dev/sdf2 /dev/sdf2: LABEL="tank1" UUID="12067240702607040808" UUID_SUB="13058904516496838429" BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="45a1fe77-43d8-11e6-a78b-0cc47a7d3a36" Ub22-zbox:~# blkid /dev/sdg2 Ub22-zbox:~# blkid /dev/sdg /dev/sdg: PTUUID="c1d40dca-3cf7-e94d-8894-23b42c7e7614" PTTYPE="gpt" Ub22-zbox:~# blkid /dev/sdg1 /dev/sdg1: LABEL="tank1" UUID="12067240702607040808" UUID_SUB="1751022483993797146" BLOCK_SIZE="4096" TYPE="zfs_member" PARTLABEL="zfs-b9c0584105475194" PARTUUID="603167cb-6a7f-5e42-a2ae-7b5a9fdf08d7" Ub22-zbox:~# blkid /dev/sdh1 /dev/sdh1: PARTUUID="6b6b21d1-68b8-4a2e-9b2d-4a654dd3c5cf" Ub22-zbox:~# blkid /dev/sdh2 /dev/sdh2: UUID="6e478426-531c-11e8-be2e-0cc47a7d3883" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="2834c5e5-9f55-492a-b902-1bcb186f5ef8" -------------------------------------------- Ub22-zbox:~# cat /etc/fstab UUID=6e478426-531c-11e8-be2e-0cc47a7d3883 / ext4 defaults 0 0 /swap.img none swap sw 0 0 Ub22-zbox:~# grep 0cc47a7d3883 /root/00_History /dev/sdh2: UUID="6e478426-531c-11e8-be2e-0cc47a7d3883" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="2834c5e5-9f55-492a-b902-1bcb186f5ef8" Ub22-zbox:~# zpool status pool: tank1 state: DEGRADED status: One or more devices could not be used because the label is missing or invalid. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Replace the device using 'zpool replace'. see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-4J scan: scrub repaired 0B in 08:45:39 with 0 errors on Sun Oct 13 09:09:40 2024 config: NAME STATE READ WRITE CKSUM tank1 DEGRADED 0 0 0 mirror-0 ONLINE 0 0 0 sde ONLINE 0 0 0 sdf ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 scsi-35000cca269cda511 ONLINE 0 0 0 sda ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 sdb ONLINE 0 0 0 sdc ONLINE 0 0 0 mirror-3 DEGRADED 0 0 0 sdd ONLINE 0 0 0 9095447524952741417 UNAVAIL 0 0 0 was /dev/disk/by-id/wwn-0x5000cca250e2a801-part2 errors: No known data errors ========================================================================================================================= 24-11-07 backuppc@zbox:/tank1/BackupPC/pc/octopus/3359$ pwd /tank1/BackupPC/pc/octopus/3359 backuppc@zbox:/tank1/BackupPC/pc/octopus/3359$ /opt/BackupPC-4.4.0/bin/BackupPC_tarCreate -h octopus -n -1 -s * -L /opt/BackupPC-4.4.0/bin/BackupPC_tarCreate: bad share or directory 'attrib_293e61fe25e6531b1a98052602af8baf/backupInfo' /opt/BackupPC-4.4.0/bin/BackupPC_tarCreate: bad share or directory 'attrib_293e61fe25e6531b1a98052602af8baf/fcDrive' /opt/BackupPC-4.4.0/bin/BackupPC_tarCreate: bad share or directory 'attrib_293e61fe25e6531b1a98052602af8baf/ffDrive' /opt/BackupPC-4.4.0/bin/BackupPC_tarCreate: bad share or directory 'attrib_293e61fe25e6531b1a98052602af8baf/refCnt' /opt/BackupPC-4.4.0/bin/BackupPC_tarCreate: bad share or directory 'attrib_293e61fe25e6531b1a98052602af8baf/-L' ========================================================================================================================= 25-01-14 Ub22-zbox:~# zpool status pool: tank1 state: ONLINE scan: scrub repaired 0B in 10:36:02 with 0 errors on Sun Jan 12 11:00:03 2025 config: NAME STATE READ WRITE CKSUM tank1 ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 sdg ONLINE 0 0 0 sdh ONLINE 0 0 0 mirror-1 ONLINE 0 0 0 scsi-35000cca269cda511 ONLINE 0 0 0 sdb ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 sdc ONLINE 0 0 0 sdd ONLINE 0 0 0 mirror-3 ONLINE 0 0 0 sde ONLINE 0 0 0 wwn-0x5000cca250e2a801 ONLINE 0 0 0 errors: No known data errors reboot ========================================================================================================================= 25-10-15 Ub22-zbox:/etc/apcupsd# apctest 2025-10-15 15:24:34 apctest 3.14.14 (31 May 2016) debian Checking configuration ... sharenet.type = Network & ShareUPS Disabled cable.type = Custom Cable Smart mode.type = APC Smart UPS (any) apctest FATAL ERROR in apctest.c at line 311 Unable to create UPS lock file. If apcupsd or apctest is already running, please stop it and run this program again. apctest error termination completed Ub22-zbox:/etc/apcupsd# systemctl stop apcupsd Ub22-zbox:/etc/apcupsd# apctest 2025-10-15 15:26:09 apctest 3.14.14 (31 May 2016) debian Checking configuration ... sharenet.type = Network & ShareUPS Disabled cable.type = Custom Cable Smart mode.type = APC Smart UPS (any) Setting up the port ... Doing prep_device() ... You are using a SMART cable type, so I'm entering SMART test mode Hello, this is the apcupsd Cable Test program. This part of apctest is for testing Smart UPSes. Please select the function you want to perform. 1) Query the UPS for all known values 2) Perform a Battery Runtime Calibration 3) Abort Battery Calibration 4) Monitor Battery Calibration progress 5) Program EEPROM 6) Enter TTY mode communicating with UPS Q) Quit Select function number: 1 I am going to run through the series of queries of the UPS that are used in initializing apcupsd. Simulating UPSlinkCheck ... Wrote: Y Got: SM Attempting to use smart_poll() ... Sent: Y Got: SM Good -- smart_poll() works!. Going to ask for valid commands... Wrote: a Got: 3.?=.�')-89>@ABCDEFGKLMNOPQRSUVWXYZabcefgjklmnopqrsuxyz~ Protocol version is: 3 Alert characters are: ?= Command characters are: ^A^N^Z')-89>@ABCDEFGKLMNOPQRSUVWXYZabcefgjklmnopqrsuxyz~ Now running through apcupsd get_UPS capabilities(). NA indicates that the feature is Not Available UPS Status: 08 Line quality: FF Reason for last transfer to batteries: S Self-Test Status: NO Line Voltage: 121.6 Line Voltage Max: 121.6 Line Voltage Min: 120.9 Output Voltage: 121.6 Batt level percent: 100.0 Batt voltage: 27.27 UPS Load: 042.2 Line freq: 60.25 Runtime left: 0012 UPS Internal temp: 028.3 Dip switch settings: NA Register 1: 00 Register 2: 00 Register 3: 00 Sensitivity: H Wakeup delay: 240 Sleep delay: 090 Low transfer voltage: 106 High transfer voltage: 127 Batt charge for return: 00 Alarm status: 0 Low battery shutdown level: 02 UPS Name: SU750 UPS Self test interval: 336 UPS manufacture date: 11/11/04 UPS serial number: QS0446243003 Date battery replaced: 08/09/14 Output voltage when on batteries: 120 Nominal battery voltage: 024 Percent humidity: NA Ambient temperature: NA Firmware revision: 651.12.D Number of external batteries installed: 000 Number of bad batteries installed: NA UPS model as defined by UPS: Smart-UPS 750 UPS EPROM capabilities string: uD43127130133136uA43108110112114uI43253257261265uM43225229233237lD43106103100097lA43092090088086lI43208204200196lM43182178174170e47200153045607590oD13120oA13100oI33230240220oM13208s431HMLq4820205081114172023p483090180270360450540630000k4310TNr483000060120180240300360420E443336168ON OFF The EPROM string is 286 characters long! Hours since last self test: NA That is all for now. 1) Query the UPS for all known values 2) Perform a Battery Runtime Calibration 3) Abort Battery Calibration 4) Monitor Battery Calibration progress 5) Program EEPROM 6) Enter TTY mode communicating with UPS Q) Quit Select function number: q 2025-10-15 15:26:32 End apctest. Ub22-zbox:/etc/apcupsd# systemctl start apcupsd Ub22-zbox:/etc/apcupsd# grep -v "#" /etc/apcupsd/apcupsd.conf | grep -v -e "^$" UPSCABLE usb UPSTYPE apcsmart DEVICE /dev/ttyUSB0 LOCKFILE /var/lock SCRIPTDIR /etc/apcupsd PWRFAILDIR /etc/apcupsd NOLOGINDIR /etc ONBATTERYDELAY 6 BATTERYLEVEL 5 MINUTES 3 TIMEOUT 0 ANNOY 300 ANNOYDELAY 60 NOLOGON disable KILLDELAY 0 NETSERVER on NISIP 0.0.0.0 NISPORT 3551 EVENTSFILE /var/log/apcupsd.events EVENTSFILEMAX 10 UPSCLASS standalone UPSMODE disable STATTIME 0 STATFILE /var/log/apcupsd.status LOGSTATS off DATATIME 0 =========================================================================================================================