21-04-22 [root@azul ~] 16:24:53 # cd /usr/local/sbin [root@azul sbin] 16:25:03 # ll total 0 [root@azul sbin] 16:25:04 # vim 00_RHEL8_Initial_Install [root@azul sbin] 16:25:44 # chmod +x 00_RHEL8_Initial_Install [root@azul sbin] 16:25:52 # ./00_RHEL8_Initial_Install running this script assumes networking is already set up Press [Enter] key to continue... Clean out old subscription-manager settings? y subscription-manager remove --all 0 subscriptions removed from this system. subscription-manager unregister This system is currently not registered. subscription-manager clean All local data removed done. Run subscription-manager register? y subscription-manager register --org=UBCITServices --activationkey=RHEL8 The system has been registered with ID: cb04da55-dbb2-4219-976b-b6d92d75c3b1 The registered system name is: azul Installed Product Current Status: Product Name: Red Hat Enterprise Linux for x86_64 Status: Subscribed subscription-manager repos --disable=satellite-tools-6.6-for-rhel-8-x86_64-rpms Error: 'satellite-tools-6.6-for-rhel-8-x86_64-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories. subscription-manager repos --enable rhel-8-server-optional-rpms Error: 'rhel-8-server-optional-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories. subscription-manager repos --list-enabled +----------------------------------------------------------+ Available Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ Repo ID: satellite-tools-6.8-for-rhel-8-x86_64-rpms Repo Name: Red Hat Satellite Tools 6.8 for RHEL 8 x86_64 (RPMs) Repo URL: https://satellite6.it.ubc.ca/pulp/repos/UBCITServices/Library/RHEL-8/content/dist/layered/rhel8/x86_64/sat-tools/6.8/os Enabled: 1 Repo ID: rhel-8-for-x86_64-baseos-rpms Repo Name: Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) Repo URL: https://satellite6.it.ubc.ca/pulp/repos/UBCITServices/Library/RHEL-8/content/dist/rhel8/$releasever/x86_64/baseos/os Enabled: 1 Repo ID: rhel-8-for-x86_64-appstream-rpms Repo Name: Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) Repo URL: https://satellite6.it.ubc.ca/pulp/repos/UBCITServices/Library/RHEL-8/content/dist/rhel8/$releasever/x86_64/appstream/os Enabled: 1 Will now update, Press any key to continue... Updating Subscription Management repositories. Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 42 MB/s | 26 MB 00:00 Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 42 MB/s | 29 MB 00:00 Red Hat Satellite Tools 6.8 for RHEL 8 x86_64 (RPMs) 19 kB/s | 2.1 kB 00:00 Dependencies resolved. ==================================================================================================================================================== Package Architecture Version Repository Size ==================================================================================================================================================== Upgrading: gnutls x86_64 3.6.14-8.el8_3 rhel-8-for-x86_64-baseos-rpms 1.0 M libldb x86_64 2.1.3-3.el8_3 rhel-8-for-x86_64-baseos-rpms 179 k nettle x86_64 3.4.1-4.el8_3 rhel-8-for-x86_64-baseos-rpms 301 k Installed products updated. Upgraded: gnutls-3.6.14-8.el8_3.x86_64 libldb-2.1.3-3.el8_3.x86_64 nettle-3.4.1-4.el8_3.x86_64 Will now install epel for RHEL8, Press any key to continue... Updating Subscription Management repositories. Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 26 kB/s | 2.8 kB 00:00 Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 24 kB/s | 2.4 kB 00:00 Red Hat Satellite Tools 6.8 for RHEL 8 x86_64 (RPMs) 20 kB/s | 2.1 kB 00:00 epel-release-latest-8.noarch.rpm 37 kB/s | 22 kB 00:00 Dependencies resolved. ==================================================================================================================================================== Package Architecture Version Repository Size ==================================================================================================================================================== Installing: epel-release noarch 8-10.el8 @commandline 22 k Installed: epel-release-8-10.el8.noarch Will now update, Press any key to resume ... Updating Subscription Management repositories. Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 23 kB/s | 2.8 kB 00:00 Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 22 kB/s | 2.4 kB 00:00 Red Hat Satellite Tools 6.8 for RHEL 8 x86_64 (RPMs) 19 kB/s | 2.1 kB 00:00 Dependencies resolved. ==================================================================================================================================================== Package Architecture Version Repository Size ==================================================================================================================================================== Upgrading: python3-qpid-proton x86_64 0.33.0-1.el8 epel 404 k qpid-proton-c x86_64 0.33.0-1.el8 epel 216 k ---------------------------------------------------------------------------------------------------------------------------------------------------- Total 993 kB/s | 621 kB 00:00 warning: /var/cache/dnf/epel-fafd94c310c51e1e/packages/python3-qpid-proton-0.33.0-1.el8.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 2f86d6a1: NOKEY Extra Packages for Enterprise Linux 8 - x86_64 1.6 MB/s | 1.6 kB 00:00 Importing GPG key 0x2F86D6A1: Userid : "Fedora EPEL (8) " Fingerprint: 94E2 79EB 8D8F 25B2 1810 ADF1 21EA 45AB 2F86 D6A1 From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 Key imported successfully Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Upgrading : qpid-proton-c-0.33.0-1.el8.x86_64 1/4 Running scriptlet: qpid-proton-c-0.33.0-1.el8.x86_64 1/4 Upgrading : python3-qpid-proton-0.33.0-1.el8.x86_64 2/4 Cleanup : python3-qpid-proton-0.28.0-3.el8.x86_64 3/4 Cleanup : qpid-proton-c-0.28.0-3.el8.x86_64 4/4 Running scriptlet: qpid-proton-c-0.28.0-3.el8.x86_64 4/4 Verifying : python3-qpid-proton-0.33.0-1.el8.x86_64 1/4 Verifying : python3-qpid-proton-0.28.0-3.el8.x86_64 2/4 Verifying : qpid-proton-c-0.33.0-1.el8.x86_64 3/4 Verifying : qpid-proton-c-0.28.0-3.el8.x86_64 4/4 Installed products updated. Upgraded: python3-qpid-proton-0.33.0-1.el8.x86_64 qpid-proton-c-0.33.0-1.el8.x86_64 which vim... /usr/bin/vim Install vim? n edit /root/.vimrc to not show line numbers by default diff /root/.vimrc /root/.vimrc.orig #1,2c1 #< " set number #< " set nonumber Press any key to resume ... diff /root/.vimrc /root/.vimrc.orig 1c1 < set nonumber --- > set number setup firewalld? y firewall-cmd --state running firewall-cmd --get-default-zone public firewall-cmd --get-active-zones public interfaces: ens192 firewall-cmd --list-all public (active) target: default icmp-block-inversion: no interfaces: ens192 sources: services: ssh ports: protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: Warning: ALREADY_ENABLED: ssh success Find and list the actual LogDenied settings firewall-cmd --get-log-denied off Change the actual LogDenie settings firewall-cmd --set-log-denied=all success Verify it: firewall-cmd --get-log-denied all firewall-cmd reload.. usage: see firewall-cmd man page firewall-cmd: error: unrecognized arguments: reload install rsync and rsync-daemon? y Installed: rsync-3.1.3-9.el8.x86_64 rsync-daemon-3.1.3-9.el8.noarch append to /tmp/rsyncd.conf file, Press any key to resume ... Done, check /etc/rsyncd.conf file, Press any key to resume ... # /etc/rsyncd: configuration file for rsync daemon mode # See rsyncd.conf man page for more options. # configuration example: # uid = nobody # gid = nobody # use chroot = yes # max connections = 4 # pid file = /var/run/rsyncd.pid # exclude = lost+found/ # transfer logging = yes # timeout = 900 # ignore nonreadable = yes # dont compress = *.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2 # [ftp] # path = /home/ftp # comment = ftp export area # /etc/rsyncd: configuration file for rsync daemon mode uid = root max connections = 5 syslog facility = local5 pid file = /var/run/rsyncd.pid [root] path=/ read only = yes # allow phas-fs, zbox, borg hosts allow = 142.103.82.4 142.103.236.6 142.103.236.30 systemctl status rsync-daemon Unit rsync-daemon.service could not be found. Set up firewald rules for rsyncd allow 142.103.82.4 142.103.236.6 142.103.236.30 success success success firewall-cmd reload... firewall-cmd --list-all public (active) target: default icmp-block-inversion: no interfaces: ens192 sources: services: ssh ports: protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: install httpd mod_ssl? n install mariadb? n install rkhunter? y Installed: binutils-2.30-79.el8.x86_64 lsof-4.93.2-1.el8.x86_64 mailx-12.5-29.el8.x86_64 rkhunter-1.4.6-6.el8.noarch wget-1.19.5-10.el8.x86_64 vim /etc/rkhunter.conf, check for ALLOW_SSH_ROOT_USER=without-password #ALLOW_SSH_ROOT_USER=no ALLOW_SSH_ROOT_USER=yes edit /etc/rkhunter.conf, Press any key to continue ... rkhunter --propupd [ Rootkit Hunter version 1.4.6 ] File created: searched for 177 files, found 127 install postfix? y postfix-2:3.3.1-12.el8_3.1.x86_64 SET inet_protocols = ipv4 edit /etc/postfix/main.cf, Press any key to continue ... systemctl enable postfix Created symlink /etc/systemd/system/multi-user.target.wants/postfix.service → /usr/lib/systemd/system/postfix.service. systemctl start postfix setup selinux permissive status? n setup logwatch? y yum -y install logwatch Installed: logwatch-7.4.3-9.el8.noarch perl-Date-Manip-6.60-2.el8.noarch perl-Sys-CPU-0.61-14.el8.x86_64 perl-Sys-MemInfo-0.99-6.el8.x86_64 setup bind-utils? y yum install bind-utils Installed: bind-libs-32:9.11.20-5.el8_3.1.x86_64 bind-libs-lite-32:9.11.20-5.el8_3.1.x86_64 bind-license-32:9.11.20-5.el8_3.1.noarch bind-utils-32:9.11.20-5.el8_3.1.x86_64 python3-bind-32:9.11.20-5.el8_3.1.noarch python3-ply-3.9-8.el8.noarch install snapd (nneded for certbot)? n setup automatic updates? y https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/managing-software-packages_configuring-basic-system-settings#automating-software-updates_updating-software-packages man dnf-automatic for more info yum install dnf-automatic Installed: dnf-automatic-4.2.23-4.el8.noarch Verify successful installation of dnf-automatic... Name : dnf-automatic Version : 4.2.23 Release : 4.el8 Architecture: noarch Install Date: Thu 22 Apr 2021 04:32:29 PM PDT Group : Unspecified Size : 47701 License : GPLv2+ and GPLv2 and GPL Signature : RSA/SHA256, Wed 29 Jul 2020 09:21:19 AM PDT, Key ID 199e2f91fd431d51 Source RPM : dnf-4.2.23-4.el8.src.rpm Build Date : Wed 29 Jul 2020 05:23:18 AM PDT Build Host : ppc-044.build.eng.bos.redhat.com Relocations : (not relocatable) Packager : Red Hat, Inc. Vendor : Red Hat, Inc. URL : https://github.com/rpm-software-management/dnf Summary : Package manager - automated upgrades Description : Systemd units that can periodically download package upgrades and apply them. DNF Automatic uses /etc/dnf/automatic.conf as its configuration file systemctl enable dnf-automatic.timer Created symlink /etc/systemd/system/timers.target.wants/dnf-automatic.timer → /usr/lib/systemd/system/dnf-automatic.timer. systemctl start dnf-automatic.timer check status... ● dnf-automatic.timer - dnf-automatic timer Loaded: loaded (/usr/lib/systemd/system/dnf-automatic.timer; enabled; vendor preset: disabled) Active: active (waiting) since Thu 2021-04-22 16:33:40 PDT; 88ms ago Trigger: Fri 2021-04-23 06:33:47 PDT; 14h left Apr 22 16:33:40 azul systemd[1]: Started dnf-automatic timer. done. Press [Enter] key to continue... [root@azul sbin] 16:33:44 # uptime 16:33:48 up 2 days, 1:57, 2 users, load average: 0.51, 0.91, 0.49 [root@azul sbin] 16:33:48 # w 16:33:49 up 2 days, 1:57, 2 users, load average: 0.51, 0.91, 0.49 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 - 16:22 9:57 0.02s 0.02s -bash root pts/0 142.103.235.80 16:24 5.00s 0.06s 0.05s w [root@azul sbin] 16:33:49 ======================================================================================================= 21-05-28 # yum install rsnapshot Installed: perl-Lchown-1.01-14.el8.x86_64 rsnapshot-1.4.3-1.el8.noarch ======================================================================================================= 21-05-31 # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1G 0 disk └─sda1 8:1 0 1023M 0 part /boot sdb 8:16 0 3T 0 disk └─VGut01-LVut01 253:8 0 5.5T 0 lvm /ut01 sdc 8:32 0 32G 0 disk ├─VGroot-LVroot 253:0 0 6G 0 lvm / ├─VGroot-LVswap 253:1 0 4G 0 lvm [SWAP] ├─VGroot-LVvar 253:2 0 4G 0 lvm /var ├─VGroot-LVvartmp 253:3 0 3G 0 lvm /var/tmp ├─VGroot-LVvarlog 253:4 0 4G 0 lvm /var/log ├─VGroot-LVvarlogaudit 253:5 0 1G 0 lvm /var/log/audit ├─VGroot-LVtmp 253:6 0 3G 0 lvm └─VGroot-LVhome 253:7 0 7G 0 lvm /home sdd 8:48 0 2.5T 0 disk └─VGut01-LVut01 253:8 0 5.5T 0 lvm /ut01 sr0 11:0 1 1024M 0 rom ======================================================================================================= 21-05-31 [root@azul log] 14:25:12 # firewall-cmd --list-all public (active) target: default icmp-block-inversion: no interfaces: ens192 sources: services: ssh ports: protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: rule family="ipv4" source address="142.103.82.4" port port="873" protocol="tcp" accept rule family="ipv4" source address="142.103.236.6" port port="873" protocol="tcp" accept rule family="ipv4" source address="142.103.236.30" port port="873" protocol="tcp" accept # yum -y install iptables-services Upgraded: iptables-1.8.4-17.el8.x86_64 iptables-ebtables-1.8.4-17.el8.x86_64 iptables-libs-1.8.4-17.el8.x86_64 Installed: iptables-services-1.8.4-17.el8.x86_64 # systemctl enable iptables Created symlink /etc/systemd/system/multi-user.target.wants/iptables.service → /usr/lib/systemd/system/iptables.service. # systemctl stop firewalld # systemctl mask firewalld Created symlink /etc/systemd/system/firewalld.service → /dev/null. # ss -tulpn Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port udp UNCONN 0 0 127.0.0.1:323 0.0.0.0:* users:(("chronyd",pid=1066,fd=6)) udp UNCONN 0 0 0.0.0.0:514 0.0.0.0:* users:(("rsyslogd",pid=2220679,fd=4)) tcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=1166,fd=5)) tcp LISTEN 0 100 127.0.0.1:25 0.0.0.0:* users:(("master",pid=1552,fd=16)) # diff /etc/rsyslog.conf /etc/rsyslog.conf.orig 19,20c19,20 < module(load="imudp") # needs to be done just once < input(type="imudp" port="514") --- > #module(load="imudp") # needs to be done just once > #input(type="imudp" port="514") 46c46 < *.info;mail.none;authpriv.none;cron.none;local4.none /var/log/messages --- > *.info;mail.none;authpriv.none;cron.none /var/log/messages 64,66d63 < # Save fwsm messages to local4 < local4.* /var/log/fwsmlog < 86,89d82 < < # Save iptables firewall messages to iptables.log < kern.warning /var/log/iptables.log < # cat /etc/rsyslog.d/iptables.conf :msg, startswith, "FWALL: " -/var/log/iptables.log & ~ ======================================================================================================= 21-06-07 document installation of cfg2html # wget https://www.cfg2html.com/cfg2html-6.41.1.21.ga7a6c5f-1.git202101031210.noarch.rpm -P /usr/local/src/ # yum -y localinstall /usr/local/src/cfg2html-6.41.1.21.ga7a6c5f-1.git202101031210.noarch.rpm # echo "2 0 * * 3 root /usr/sbin/cfg2html -2\%Y-\%m-\%d -o /etc/cfg2html/output > /dev/null 2>&1 # 2 1 * * 3 rsync /etc/cfg2html/output/* root@otrs.phas.ubc.ca::cfg2html" >> /etc/cron.d/cfg2html # /usr/sbin/cfg2html -2\%Y-\%m-\%d -o /etc/cfg2html/output # rsync /etc/cfg2html/output/* root@otrs.phas.ubc.ca::cfg2html ======================================================================================================= 21-06-10 # fdisk -l | grep sd Disk /dev/sda: 1 GiB, 1073741824 bytes, 2097152 sectors /dev/sda1 * 2048 2097151 2095104 1023M 83 Linux Disk /dev/sdb: 3 TiB, 3298534883328 bytes, 6442450944 sectors Disk /dev/sdd: 2.5 TiB, 2748779069440 bytes, 5368709120 sectors Disk /dev/sdc: 32 GiB, 34359738368 bytes, 67108864 sectors Add 32GB disk in VMware console disk - needed for /var/log/fwsmlog # fdisk -l | grep sd Disk /dev/sda: 1 GiB, 1073741824 bytes, 2097152 sectors /dev/sda1 * 2048 2097151 2095104 1023M 83 Linux Disk /dev/sdb: 3 TiB, 3298534883328 bytes, 6442450944 sectors Disk /dev/sdd: 2.5 TiB, 2748779069440 bytes, 5368709120 sectors Disk /dev/sdc: 32 GiB, 34359738368 bytes, 67108864 sectors Disk /dev/sde: 32 GiB, 34359738368 bytes, 67108864 sectors # pvcreate /dev/sde1 Physical volume "/dev/sde1" successfully created. # pvscan PV /dev/sdc VG VGroot lvm2 [<32.00 GiB / 0 free] PV /dev/sdb VG VGut01 lvm2 [<3.00 TiB / 0 free] PV /dev/sdd VG VGut01 lvm2 [<2.50 TiB / 0 free] PV /dev/sde1 lvm2 [<32.00 GiB] Total: 4 [5.56 TiB] / in use: 3 [5.53 TiB] / in no VG: 1 [<32.00 GiB] # vgcreate VGvarlog /dev/sde1 Volume group "VGvarlog" successfully created # lvcreate --name LVvarlog -l 100%FREE VGvarlog Logical volume "LVvarlog" created. # lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert LVhome VGroot -wi-ao---- <7.00g LVroot VGroot -wi-ao---- 6.00g LVswap VGroot -wi-ao---- 4.00g LVtmp VGroot -wi-a----- 3.00g LVvar VGroot -wi-ao---- 4.00g LVvarlog VGroot -wi-ao---- 4.00g LVvarlogaudit VGroot -wi-ao---- 1.00g LVvartmp VGroot -wi-ao---- 3.00g LVut01 VGut01 -wi-ao---- <5.50t LVvarlog VGvarlog -wi-a----- <32.00g [root@azul-EduCld-RH8 ~] 10:20:32 # lvscan ACTIVE '/dev/VGvarlog/LVvarlog' [<32.00 GiB] inherit ACTIVE '/dev/VGroot/LVroot' [6.00 GiB] inherit ACTIVE '/dev/VGroot/LVswap' [4.00 GiB] inherit ACTIVE '/dev/VGroot/LVvar' [4.00 GiB] inherit ACTIVE '/dev/VGroot/LVvartmp' [3.00 GiB] inherit ACTIVE '/dev/VGroot/LVvarlog' [4.00 GiB] inherit ACTIVE '/dev/VGroot/LVvarlogaudit' [1.00 GiB] inherit ACTIVE '/dev/VGroot/LVtmp' [3.00 GiB] inherit ACTIVE '/dev/VGroot/LVhome' [<7.00 GiB] inherit ACTIVE '/dev/VGut01/LVut01' [<5.50 TiB] inherit [root@azul-EduCld-RH8 ~] 10:20:49 # lvdisplay --- Logical volume --- LV Path /dev/VGvarlog/LVvarlog LV Name LVvarlog VG Name VGvarlog LV UUID Zz6c7n-ztYY-FWLx-jmpU-axA5-5a3H-pZrAlI LV Write Access read/write LV Creation host, time azul.phas.ubc.ca, 2021-06-10 10:20:24 -0700 LV Status available # open 0 LV Size <32.00 GiB Current LE 8191 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 8192 Block device 253:9 --- Logical volume --- LV Path /dev/VGroot/LVroot LV Name LVroot VG Name VGroot LV UUID 4VB372-39jy-DN7e-FFIK-HszT-0ny1-E1WVMr LV Write Access read/write LV Creation host, time img-rhel8.localdomain, 2019-05-07 11:08:50 -0700 LV Status available # open 1 LV Size 6.00 GiB Current LE 1536 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 8192 Block device 253:0 --- Logical volume --- LV Path /dev/VGroot/LVswap LV Name LVswap VG Name VGroot LV UUID 27kCi2-FGQJ-EH6d-Vh1i-BWen-0I4A-pYF1o2 LV Write Access read/write LV Creation host, time img-rhel8.localdomain, 2019-05-07 11:08:51 -0700 LV Status available # open 2 LV Size 4.00 GiB Current LE 1024 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 8192 Block device 253:1 --- Logical volume --- LV Path /dev/VGroot/LVvar LV Name LVvar VG Name VGroot LV UUID huBfho-y1gq-1SPH-A4tE-qv7L-omGj-NazMFK LV Write Access read/write LV Creation host, time img-rhel8.localdomain, 2019-05-07 11:08:51 -0700 LV Status available # open 1 LV Size 4.00 GiB Current LE 1024 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 8192 Block device 253:2 --- Logical volume --- LV Path /dev/VGroot/LVvartmp LV Name LVvartmp VG Name VGroot LV UUID e8z3bD-WpF1-42tp-vqe2-JUi3-hr4w-lxq4gg LV Write Access read/write LV Creation host, time img-rhel8.localdomain, 2019-05-07 11:08:52 -0700 LV Status available # open 1 LV Size 3.00 GiB Current LE 768 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 8192 Block device 253:3 --- Logical volume --- LV Path /dev/VGroot/LVvarlog LV Name LVvarlog VG Name VGroot LV UUID ixJecN-whOU-yWp5-4MAT-n0Bx-kgiw-3QjgZS LV Write Access read/write LV Creation host, time img-rhel8.localdomain, 2019-05-07 11:08:52 -0700 LV Status available # open 1 LV Size 4.00 GiB Current LE 1024 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 8192 Block device 253:4 --- Logical volume --- LV Path /dev/VGroot/LVvarlogaudit LV Name LVvarlogaudit VG Name VGroot LV UUID GpHg3w-pDoU-TCtb-ANfl-GbT9-A1k2-7TFqdO LV Write Access read/write LV Creation host, time img-rhel8.localdomain, 2019-05-07 11:08:53 -0700 LV Status available # open 1 LV Size 1.00 GiB Current LE 256 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 8192 Block device 253:5 --- Logical volume --- LV Path /dev/VGroot/LVtmp LV Name LVtmp VG Name VGroot LV UUID sPYBjy-IFa8-81fM-oteG-XOjx-4eBx-2SxfL7 LV Write Access read/write LV Creation host, time img-rhel8.localdomain, 2019-05-07 11:08:53 -0700 LV Status available # open 0 LV Size 3.00 GiB Current LE 768 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 8192 Block device 253:6 --- Logical volume --- LV Path /dev/VGroot/LVhome LV Name LVhome VG Name VGroot LV UUID HPtxy5-WC5E-kYEB-AzSZ-UubT-5oRh-vb1sXA LV Write Access read/write LV Creation host, time img-rhel8.localdomain, 2019-05-07 11:08:54 -0700 LV Status available # open 1 LV Size <7.00 GiB Current LE 1791 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 8192 Block device 253:7 --- Logical volume --- LV Path /dev/VGut01/LVut01 LV Name LVut01 VG Name VGut01 LV UUID pzF9IA-qvfZ-rgiP-csxE-O30d-HzXi-URur4C LV Write Access read/write LV Creation host, time phas-fs.phas.ubc.ca, 2013-12-09 11:27:05 -0800 LV Status available # open 1 LV Size <5.50 TiB Current LE 1441790 Segments 2 Allocation inherit Read ahead sectors auto - currently set to 8192 Block device 253:8 # ls -l /dev/VGvarlog/LVvarlog lrwxrwxrwx. 1 root root 7 Jun 10 10:20 /dev/VGvarlog/LVvarlog -> ../dm-9 # mkfs.xfs /dev/VGvarlog/LVvarlog meta-data=/dev/VGvarlog/LVvarlog isize=512 agcount=4, agsize=2096896 blks = sectsz=512 attr=2, projid32bit=1 = crc=1 finobt=1, sparse=1, rmapbt=0 = reflink=1 data = bsize=4096 blocks=8387584, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0, ftype=1 log =internal log bsize=4096 blocks=4095, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 [root@azul-EduCld-RH8 ~] 10:22:03 # df -h Filesystem Type Size Used Avail Use% Mounted on devtmpfs devtmpfs 376M 0 376M 0% /dev tmpfs tmpfs 392M 0 392M 0% /dev/shm tmpfs tmpfs 392M 676K 391M 1% /run tmpfs tmpfs 392M 0 392M 0% /sys/fs/cgroup /dev/mapper/VGroot-LVroot xfs 6.0G 1.8G 4.2G 31% / tmpfs tmpfs 392M 4.0K 392M 1% /tmp /dev/sda1 xfs 1017M 295M 723M 29% /boot /dev/mapper/VGroot-LVvar xfs 4.0G 576M 3.5G 15% /var /dev/mapper/VGroot-LVvartmp xfs 3.0G 54M 3.0G 2% /var/tmp /dev/mapper/VGroot-LVvarlog xfs 4.0G 4.0G 15M 100% /var/log /dev/mapper/VGroot-LVhome xfs 7.0G 83M 7.0G 2% /home /dev/mapper/VGroot-LVvarlogaudit xfs 1014M 51M 964M 5% /var/log/audit /dev/mapper/VGut01-LVut01 ext4 5.5T 4.0T 1.3T 77% /ut01 tmpfs tmpfs 79M 0 79M 0% /run/user/0 ======================================================================================================= 21-07-19 /var/log/fwsm was not getting data from rsyslogd due to selinux # ausearch -m AVC,USER_AVC -ts recent ---- time->Mon Jul 19 13:13:49 2021 type=PROCTITLE msg=audit(1626725629.003:15070): proctitle=2F7573722F7362696E2F727379736C6F6764002D6E type=PATH msg=audit(1626725629.003:15070): item=0 name="/var/log/fwsm/fwsmlog" inode=131 dev=fd:02 mode=0100600 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:unlabeled_t:s0 nametype=NORMAL cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0 type=CWD msg=audit(1626725629.003:15070): cwd="/" type=SYSCALL msg=audit(1626725629.003:15070): arch=c000003e syscall=4 success=yes exit=0 a0=7f3bb001b5d0 a1=7f3bb7ffe7b0 a2=7f3bb7ffe7b0 a3=1a0 items=1 ppid=1 pid=379781 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=72733A6D61696E20513A526567 exe="/usr/sbin/rsyslogd" subj=system_u:system_r:syslogd_t:s0 key=(null) type=AVC msg=audit(1626725629.003:15070): avc: denied { getattr } for pid=379781 comm=72733A6D61696E20513A526567 path="/var/log/fwsm/fwsmlog" dev="dm-2" ino=131 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file permissive=1 # journalctl -t setroubleshoot --since=12:00 -- Logs begin at Mon 2021-07-12 13:09:01 PDT, end at Mon 2021-07-19 13:19:21 PDT. -- -- No entries -- # dnf install setroubleshoot-server Installed: cairo-1.15.12-3.el8.x86_64 cairo-gobject-1.15.12-3.el8.x86_64 checkpolicy-2.9-1.el8.x86_64 dejavu-fonts-common-2.35-7.el8.noarch dejavu-sans-fonts-2.35-7.el8.noarch fontconfig-2.13.1-3.el8.x86_64 fontpackages-filesystem-1.44-22.el8.noarch libX11-1.6.8-4.el8.x86_64 libX11-common-1.6.8-4.el8.noarch libXau-1.0.9-3.el8.x86_64 libXext-1.3.4-1.el8.x86_64 libXrender-0.9.10-7.el8.x86_64 libxcb-1.13.1-1.el8.x86_64 pixman-0.38.4-1.el8.x86_64 policycoreutils-python-utils-2.9-14.el8.noarch python3-audit-3.0-0.17.20191104git1c2f876.el8.x86_64 python3-cairo-1.16.3-6.el8.x86_64 python3-gobject-3.28.3-2.el8.x86_64 python3-libsemanage-2.9-6.el8.x86_64 python3-policycoreutils-2.9-14.el8.noarch python3-pydbus-0.6.0-5.el8.noarch python3-setools-4.3.0-2.el8.x86_64 python3-systemd-234-8.el8.x86_64 setroubleshoot-plugins-3.3.13-1.el8.noarch setroubleshoot-server-3.3.24-3.el8.x86_64 ======================================================================================================= 21-07-20 computer stopped unexpectedly. Saw some error about CPU so I tried to power it down to restart it. Took a long time to power down. WHen it did, I added 1 cpu and 1GB memory. Got a call from Dylan Bartussek (UBC-IT) saying it had stopped when migrating to a different host. Backup (at their end) failed. He will restart backup. ======================================================================================================= 23-05-18 # du -hcs ./* 4.0K ./00_Diskuse 4.0K ./00_Diskuse_200224 4.0K ./00_Diskuse_200721 4.0K ./00_Diskuse_210218 4.0K ./00_Diskuse_230518 4.0K ./00_Diskuse_Readme 101M ./adminfs 2.1G ./borg 629M ./cups 1.3G ./dns 453M ./dnsmaster 2.9G ./foggy 14G ./gamma 58G ./intranet 16G ./ipa 709M ./kratos 4.0T ./mail 1.7G ./mail2 284M ./mail3 172M ./mirgserver 372M ./mysql2 15G ./omega 51M ./phas-fs 8.2G ./qmi 83G ./romulan 27G ./tau 17G ./web01 153G ./zbox 64G ./zorok 4.4T total ===================================================================================================== # shutdown -r 23:30 "Maintenance reboot at 11:30pm 23-06-28" Shutdown scheduled for Wed 2023-06-28 23:30:00 PDT, use 'shutdown -c' to cancel. ===================================================================================================== [root@azul-EduCld-RH8 ~] 14:01:30 # shutdown -r 23:49 "Maintenance reboot at 11:49pm 23-08-14 ===================================================================================================== 24-05-13 add disk to ut01 Before doing anything: # fdisk -l | grep sd Disk /dev/sda: 1 GiB, 1073741824 bytes, 2097152 sectors /dev/sda1 * 2048 2097151 2095104 1023M 83 Linux Disk /dev/sdb: 3 TiB, 3298534883328 bytes, 6442450944 sectors Disk /dev/sdc: 32 GiB, 34359738368 bytes, 67108864 sectors Disk /dev/sdd: 2.5 TiB, 2748779069440 bytes, 5368709120 sectors Disk /dev/sde: 32 GiB, 34359738368 bytes, 67108864 sectors /dev/sde1 2048 67108863 67106816 32G 8e Linux LVM # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1G 0 disk └─sda1 8:1 0 1023M 0 part /boot sdb 8:16 0 3T 0 disk └─VGut01-LVut01 253:8 0 5.5T 0 lvm /ut01 sdc 8:32 0 32G 0 disk ├─VGroot-LVroot 253:0 0 6G 0 lvm / ├─VGroot-LVswap 253:1 0 4G 0 lvm [SWAP] ├─VGroot-LVvar 253:2 0 4G 0 lvm /var ├─VGroot-LVvartmp 253:4 0 3G 0 lvm /var/tmp ├─VGroot-LVvarlog 253:5 0 4G 0 lvm /var/log ├─VGroot-LVvarlogaudit 253:6 0 1G 0 lvm /var/log/audit ├─VGroot-LVtmp 253:7 0 3G 0 lvm └─VGroot-LVhome 253:9 0 7G 0 lvm /home sdd 8:48 0 2.5T 0 disk └─VGut01-LVut01 253:8 0 5.5T 0 lvm /ut01 sde 8:64 0 32G 0 disk └─sde1 8:65 0 32G 0 part └─VGvarlog-LVvarlog 253:3 0 32G 0 lvm /var/log/fwsm sr0 11:0 1 1024M 0 rom # pvs PV VG Fmt Attr PSize PFree /dev/sdb VGut01 lvm2 a-- <3.00t 0 /dev/sdc VGroot lvm2 a-- <32.00g 0 /dev/sdd VGut01 lvm2 a-- <2.50t 0 /dev/sde1 VGvarlog lvm2 a-- <32.00g 0 # vgs VG #PV #LV #SN Attr VSize VFree VGroot 1 8 0 wz--n- <32.00g 0 VGut01 2 1 0 wz--n- <5.50t 0 VGvarlog 1 1 0 wz--n- <32.00g 0 # lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert LVhome VGroot -wi-ao---- <7.00g LVroot VGroot -wi-ao---- 6.00g LVswap VGroot -wi-ao---- 4.00g LVtmp VGroot -wi-a----- 3.00g LVvar VGroot -wi-ao---- 4.00g LVvarlog VGroot -wi-ao---- 4.00g LVvarlogaudit VGroot -wi-ao---- 1.00g LVvartmp VGroot -wi-ao---- 3.00g LVut01 VGut01 -wi-ao---- <5.50t LVvarlog VGvarlog -wi-ao---- <32.00g Now add 500GB disk in VM console. # fdisk -l | grep sd Disk /dev/sda: 1 GiB, 1073741824 bytes, 2097152 sectors /dev/sda1 * 2048 2097151 2095104 1023M 83 Linux Disk /dev/sdb: 3 TiB, 3298534883328 bytes, 6442450944 sectors Disk /dev/sdc: 32 GiB, 34359738368 bytes, 67108864 sectors Disk /dev/sdd: 2.5 TiB, 2748779069440 bytes, 5368709120 sectors Disk /dev/sde: 32 GiB, 34359738368 bytes, 67108864 sectors /dev/sde1 2048 67108863 67106816 32G 8e Linux LVM Disk /dev/sdf: 500 GiB, 536870912000 bytes, 1048576000 sectors # fdisk /dev/sdf Welcome to fdisk (util-linux 2.32.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0x50affd8c. Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): First sector (2048-1048575999, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-1048575999, default 1048575999): Created a new partition 1 of type 'Linux' and of size 500 GiB. Command (m for help): p Disk /dev/sdf: 500 GiB, 536870912000 bytes, 1048576000 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x50affd8c Device Boot Start End Sectors Size Id Type /dev/sdf1 2048 1048575999 1048573952 500G 83 Linux Command (m for help): t Selected partition 1 Hex code (type L to list all codes): 8e Changed type of partition 'Linux' to 'Linux LVM'. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. [root@azul-EduCld-RH8 ~] 08:45:04 # fdisk -l | grep sd Disk /dev/sda: 1 GiB, 1073741824 bytes, 2097152 sectors /dev/sda1 * 2048 2097151 2095104 1023M 83 Linux Disk /dev/sdb: 3 TiB, 3298534883328 bytes, 6442450944 sectors Disk /dev/sdc: 32 GiB, 34359738368 bytes, 67108864 sectors Disk /dev/sdd: 2.5 TiB, 2748779069440 bytes, 5368709120 sectors Disk /dev/sde: 32 GiB, 34359738368 bytes, 67108864 sectors /dev/sde1 2048 67108863 67106816 32G 8e Linux LVM Disk /dev/sdf: 500 GiB, 536870912000 bytes, 1048576000 sectors /dev/sdf1 2048 1048575999 1048573952 500G 8e Linux LVM ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 11:49pm 23-08-20" Shutdown scheduled for Tue 2024-08-20 23:49:00 PDT, use 'shutdown -c' to cancel. ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 11:49pm 23-08-30" Shutdown scheduled for Fri 2024-08-30 23:49:00 PDT, use 'shutdown -c' to cancel. ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 11:49pm 24-11-06" Shutdown scheduled for Wed 2024-11-06 23:49:00 PST, use 'shutdown -c' to cancel. ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 11:49pm 24-12-02" Shutdown scheduled for Mon 2024-12-02 23:49:00 PST, use 'shutdown -c' to cancel. ===================================================================================================== 24-12-09 add disk space to /ut01 # df -h Filesystem Type Size Used Avail Use% Mounted on devtmpfs devtmpfs 856M 0 856M 0% /dev tmpfs tmpfs 874M 0 874M 0% /dev/shm tmpfs tmpfs 874M 760K 873M 1% /run tmpfs tmpfs 874M 0 874M 0% /sys/fs/cgroup /dev/mapper/VGroot-LVroot xfs 6.0G 3.9G 2.2G 65% / tmpfs tmpfs 874M 4.0K 874M 1% /tmp /dev/sda1 xfs 1017M 323M 695M 32% /boot /dev/mapper/VGroot-LVvar xfs 4.0G 865M 3.2G 22% /var /dev/mapper/VGroot-LVvartmp xfs 3.0G 54M 3.0G 2% /var/tmp /dev/mapper/VGut01-LVut01 ext4 5.9T 5.6T 52G 100% /ut01 /dev/mapper/VGroot-LVhome xfs 7.0G 83M 7.0G 2% /home /dev/mapper/VGroot-LVvarlog xfs 4.0G 488M 3.6G 12% /var/log /dev/mapper/VGroot-LVvarlogaudit xfs 1014M 78M 937M 8% /var/log/audit /dev/mapper/VGvarlog-LVvarlog xfs 32G 2.8G 30G 9% /var/log/fwsm files.phas.ubc.ca:/opt/sysadmin/common nfs4 6.0G 2.5G 3.6G 41% /opt/sysadmin/common tmpfs tmpfs 175M 0 175M 0% /run/user/0 # df -h Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/VGut01-LVut01 ext4 5.9T 5.6T 52G 100% /ut01 # fdisk -l | grep sd Disk /dev/sda: 1 GiB, 1073741824 bytes, 2097152 sectors /dev/sda1 * 2048 2097151 2095104 1023M 83 Linux Disk /dev/sdb: 3 TiB, 3298534883328 bytes, 6442450944 sectors Disk /dev/sdc: 32 GiB, 34359738368 bytes, 67108864 sectors Disk /dev/sdd: 2.5 TiB, 2748779069440 bytes, 5368709120 sectors Disk /dev/sde: 32 GiB, 34359738368 bytes, 67108864 sectors /dev/sde1 2048 67108863 67106816 32G 8e Linux LVM Disk /dev/sdf: 500 GiB, 536870912000 bytes, 1048576000 sectors /dev/sdf1 2048 1048575999 1048573952 500G 8e Linux LVM < added 500GB disk in VMware Cloud Director > # fdisk -l | grep sd Disk /dev/sda: 1 GiB, 1073741824 bytes, 2097152 sectors /dev/sda1 * 2048 2097151 2095104 1023M 83 Linux Disk /dev/sdb: 3 TiB, 3298534883328 bytes, 6442450944 sectors Disk /dev/sdc: 32 GiB, 34359738368 bytes, 67108864 sectors Disk /dev/sdd: 2.5 TiB, 2748779069440 bytes, 5368709120 sectors Disk /dev/sde: 32 GiB, 34359738368 bytes, 67108864 sectors /dev/sde1 2048 67108863 67106816 32G 8e Linux LVM Disk /dev/sdf: 500 GiB, 536870912000 bytes, 1048576000 sectors /dev/sdf1 2048 1048575999 1048573952 500G 8e Linux LVM Disk /dev/sdg: 500 GiB, 536870912000 bytes, 1048576000 sectors # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1G 0 disk └─sda1 8:1 0 1023M 0 part /boot sdb 8:16 0 3T 0 disk └─VGut01-LVut01 253:3 0 6T 0 lvm /ut01 sdc 8:32 0 32G 0 disk ├─VGroot-LVroot 253:0 0 6G 0 lvm / ├─VGroot-LVswap 253:1 0 4G 0 lvm [SWAP] ├─VGroot-LVvar 253:2 0 4G 0 lvm /var ├─VGroot-LVvartmp 253:4 0 3G 0 lvm /var/tmp ├─VGroot-LVvarlog 253:6 0 4G 0 lvm /var/log ├─VGroot-LVvarlogaudit 253:7 0 1G 0 lvm /var/log/audit ├─VGroot-LVtmp 253:8 0 3G 0 lvm └─VGroot-LVhome 253:9 0 7G 0 lvm /home sdd 8:48 0 2.5T 0 disk └─VGut01-LVut01 253:3 0 6T 0 lvm /ut01 sde 8:64 0 32G 0 disk └─sde1 8:65 0 32G 0 part └─VGvarlog-LVvarlog 253:5 0 32G 0 lvm /var/log/fwsm sdf 8:80 0 500G 0 disk └─sdf1 8:81 0 500G 0 part └─VGut01-LVut01 253:3 0 6T 0 lvm /ut01 sdg 8:96 0 500G 0 disk sr0 11:0 1 1024M 0 rom # pvs PV VG Fmt Attr PSize PFree /dev/sdb VGut01 lvm2 a-- <3.00t 0 /dev/sdc VGroot lvm2 a-- <32.00g 0 /dev/sdd VGut01 lvm2 a-- <2.50t 0 /dev/sde1 VGvarlog lvm2 a-- <32.00g 0 /dev/sdf1 VGut01 lvm2 a-- <500.00g 0 # vgs VG #PV #LV #SN Attr VSize VFree VGroot 1 8 0 wz--n- <32.00g 0 VGut01 3 1 0 wz--n- <5.99t 0 VGvarlog 1 1 0 wz--n- <32.00g 0 # lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert LVhome VGroot -wi-ao---- <7.00g LVroot VGroot -wi-ao---- 6.00g LVswap VGroot -wi-ao---- 4.00g LVtmp VGroot -wi-a----- 3.00g LVvar VGroot -wi-ao---- 4.00g LVvarlog VGroot -wi-ao---- 4.00g LVvarlogaudit VGroot -wi-ao---- 1.00g LVvartmp VGroot -wi-ao---- 3.00g LVut01 VGut01 -wi-ao---- <5.99t LVvarlog VGvarlog -wi-ao---- <32.00g # fdisk /dev/sdg Welcome to fdisk (util-linux 2.32.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0xe05ac7e6. Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): First sector (2048-1048575999, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-1048575999, default 1048575999): Created a new partition 1 of type 'Linux' and of size 500 GiB. Command (m for help): t Selected partition 1 Hex code (type L to list all codes): 8e Changed type of partition 'Linux' to 'Linux LVM'. Command (m for help): p Disk /dev/sdg: 500 GiB, 536870912000 bytes, 1048576000 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xe05ac7e6 Device Boot Start End Sectors Size Id Type /dev/sdg1 2048 1048575999 1048573952 500G 8e Linux LVM Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. fdisk -l | grep sd Disk /dev/sda: 1 GiB, 1073741824 bytes, 2097152 sectors /dev/sda1 * 2048 2097151 2095104 1023M 83 Linux Disk /dev/sdb: 3 TiB, 3298534883328 bytes, 6442450944 sectors Disk /dev/sdc: 32 GiB, 34359738368 bytes, 67108864 sectors Disk /dev/sdd: 2.5 TiB, 2748779069440 bytes, 5368709120 sectors Disk /dev/sde: 32 GiB, 34359738368 bytes, 67108864 sectors /dev/sde1 2048 67108863 67106816 32G 8e Linux LVM Disk /dev/sdf: 500 GiB, 536870912000 bytes, 1048576000 sectors /dev/sdf1 2048 1048575999 1048573952 500G 8e Linux LVM Disk /dev/sdg: 500 GiB, 536870912000 bytes, 1048576000 sectors /dev/sdg1 2048 1048575999 1048573952 500G 8e Linux LVM # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1G 0 disk └─sda1 8:1 0 1023M 0 part /boot sdb 8:16 0 3T 0 disk └─VGut01-LVut01 253:3 0 6T 0 lvm /ut01 sdc 8:32 0 32G 0 disk ├─VGroot-LVroot 253:0 0 6G 0 lvm / ├─VGroot-LVswap 253:1 0 4G 0 lvm [SWAP] ├─VGroot-LVvar 253:2 0 4G 0 lvm /var ├─VGroot-LVvartmp 253:4 0 3G 0 lvm /var/tmp ├─VGroot-LVvarlog 253:6 0 4G 0 lvm /var/log ├─VGroot-LVvarlogaudit 253:7 0 1G 0 lvm /var/log/audit ├─VGroot-LVtmp 253:8 0 3G 0 lvm └─VGroot-LVhome 253:9 0 7G 0 lvm /home sdd 8:48 0 2.5T 0 disk └─VGut01-LVut01 253:3 0 6T 0 lvm /ut01 sde 8:64 0 32G 0 disk └─sde1 8:65 0 32G 0 part └─VGvarlog-LVvarlog 253:5 0 32G 0 lvm /var/log/fwsm sdf 8:80 0 500G 0 disk └─sdf1 8:81 0 500G 0 part └─VGut01-LVut01 253:3 0 6T 0 lvm /ut01 sdg 8:96 0 500G 0 disk └─sdg1 8:97 0 500G 0 part sr0 11:0 1 1024M 0 rom # pvcreate /dev/sdg1 Physical volume "/dev/sdg1" successfully created. # pvs PV VG Fmt Attr PSize PFree /dev/sdb VGut01 lvm2 a-- <3.00t 0 /dev/sdc VGroot lvm2 a-- <32.00g 0 /dev/sdd VGut01 lvm2 a-- <2.50t 0 /dev/sde1 VGvarlog lvm2 a-- <32.00g 0 /dev/sdf1 VGut01 lvm2 a-- <500.00g 0 /dev/sdg1 lvm2 --- <500.00g <500.00g # pvscan PV /dev/sde1 VG VGvarlog lvm2 [<32.00 GiB / 0 free] PV /dev/sdc VG VGroot lvm2 [<32.00 GiB / 0 free] PV /dev/sdb VG VGut01 lvm2 [<3.00 TiB / 0 free] PV /dev/sdd VG VGut01 lvm2 [<2.50 TiB / 0 free] PV /dev/sdf1 VG VGut01 lvm2 [<500.00 GiB / 0 free] PV /dev/sdg1 lvm2 [<500.00 GiB] Total: 6 [<6.54 TiB] / in use: 5 [6.05 TiB] / in no VG: 1 [<500.00 GiB] # vgs VG #PV #LV #SN Attr VSize VFree VGroot 1 8 0 wz--n- <32.00g 0 VGut01 3 1 0 wz--n- <5.99t 0 VGvarlog 1 1 0 wz--n- <32.00g 0 # vgextend VGwww /dev/sdg1 Volume group "VGwww" not found Cannot process volume group VGwww # vgextend VGut01 /dev/sdg1 Volume group "VGut01" successfully extended # pvscan PV /dev/sde1 VG VGvarlog lvm2 [<32.00 GiB / 0 free] PV /dev/sdc VG VGroot lvm2 [<32.00 GiB / 0 free] PV /dev/sdb VG VGut01 lvm2 [<3.00 TiB / 0 free] PV /dev/sdd VG VGut01 lvm2 [<2.50 TiB / 0 free] PV /dev/sdf1 VG VGut01 lvm2 [<500.00 GiB / 0 free] PV /dev/sdg1 VG VGut01 lvm2 [<500.00 GiB / <500.00 GiB free] Total: 6 [<6.54 TiB] / in use: 6 [<6.54 TiB] / in no VG: 0 [0 ] # lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert LVhome VGroot -wi-ao---- <7.00g LVroot VGroot -wi-ao---- 6.00g LVswap VGroot -wi-ao---- 4.00g LVtmp VGroot -wi-a----- 3.00g LVvar VGroot -wi-ao---- 4.00g LVvarlog VGroot -wi-ao---- 4.00g LVvarlogaudit VGroot -wi-ao---- 1.00g LVvartmp VGroot -wi-ao---- 3.00g LVut01 VGut01 -wi-ao---- <5.99t LVvarlog VGvarlog -wi-ao---- <32.00g # lvextend /dev/VGut01/LVut01 /dev/sdg1 Size of logical volume VGut01/LVut01 changed from <5.99 TiB (1569789 extents) to <6.48 TiB (1697788 extents). Logical volume VGut01/LVut01 successfully resized. # lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert LVhome VGroot -wi-ao---- <7.00g LVroot VGroot -wi-ao---- 6.00g LVswap VGroot -wi-ao---- 4.00g LVtmp VGroot -wi-a----- 3.00g LVvar VGroot -wi-ao---- 4.00g LVvarlog VGroot -wi-ao---- 4.00g LVvarlogaudit VGroot -wi-ao---- 1.00g LVvartmp VGroot -wi-ao---- 3.00g LVut01 VGut01 -wi-ao---- <6.48t LVvarlog VGvarlog -wi-ao---- <32.00g # df -hT Filesystem Type Size Used Avail Use% Mounted on devtmpfs devtmpfs 856M 0 856M 0% /dev tmpfs tmpfs 874M 0 874M 0% /dev/shm tmpfs tmpfs 874M 772K 873M 1% /run tmpfs tmpfs 874M 0 874M 0% /sys/fs/cgroup /dev/mapper/VGroot-LVroot xfs 6.0G 3.9G 2.2G 65% / tmpfs tmpfs 874M 4.0K 874M 1% /tmp /dev/sda1 xfs 1017M 323M 695M 32% /boot /dev/mapper/VGroot-LVvar xfs 4.0G 865M 3.2G 22% /var /dev/mapper/VGroot-LVvartmp xfs 3.0G 54M 3.0G 2% /var/tmp /dev/mapper/VGut01-LVut01 ext4 5.9T 5.6T 52G 100% /ut01 /dev/mapper/VGroot-LVhome xfs 7.0G 83M 7.0G 2% /home /dev/mapper/VGroot-LVvarlog xfs 4.0G 488M 3.6G 12% /var/log /dev/mapper/VGroot-LVvarlogaudit xfs 1014M 78M 937M 8% /var/log/audit /dev/mapper/VGvarlog-LVvarlog xfs 32G 3.8G 29G 12% /var/log/fwsm files.phas.ubc.ca:/opt/sysadmin/common nfs4 6.0G 2.5G 3.6G 41% /opt/sysadmin/common tmpfs tmpfs 175M 0 175M 0% /run/user/0 # resize2fs /dev/VGut01/LVut01 resize2fs 1.45.6 (20-Mar-2020) Filesystem at /dev/VGut01/LVut01 is mounted on /ut01; on-line resizing required old_desc_blocks = 384, new_desc_blocks = 415 The filesystem on /dev/VGut01/LVut01 is now 1738534912 (4k) blocks long. # df -hT Filesystem Type Size Used Avail Use% Mounted on devtmpfs devtmpfs 856M 0 856M 0% /dev tmpfs tmpfs 874M 0 874M 0% /dev/shm tmpfs tmpfs 874M 772K 873M 1% /run tmpfs tmpfs 874M 0 874M 0% /sys/fs/cgroup /dev/mapper/VGroot-LVroot xfs 6.0G 3.9G 2.2G 65% / tmpfs tmpfs 874M 4.0K 874M 1% /tmp /dev/sda1 xfs 1017M 323M 695M 32% /boot /dev/mapper/VGroot-LVvar xfs 4.0G 865M 3.2G 22% /var /dev/mapper/VGroot-LVvartmp xfs 3.0G 54M 3.0G 2% /var/tmp /dev/mapper/VGut01-LVut01 ext4 6.4T 5.6T 524G 92% /ut01 /dev/mapper/VGroot-LVhome xfs 7.0G 83M 7.0G 2% /home /dev/mapper/VGroot-LVvarlog xfs 4.0G 488M 3.6G 12% /var/log /dev/mapper/VGroot-LVvarlogaudit xfs 1014M 78M 937M 8% /var/log/audit /dev/mapper/VGvarlog-LVvarlog xfs 32G 3.8G 29G 12% /var/log/fwsm files.phas.ubc.ca:/opt/sysadmin/common nfs4 6.0G 2.5G 3.6G 41% /opt/sysadmin/common tmpfs tmpfs 175M 0 175M 0% /run/user/0 ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 11:49pm 25-01-03" Shutdown scheduled for Fri 2025-01-03 23:49:00 PST, use 'shutdown -c' to cancel. ===================================================================================================== # cd /usr/local/src # wget https://www.cfg2html.com/cfg2html-7.1.2.1.g131b595-1.git202409272159.noarch.rpm # ll total 160 -rw-r--r--. 1 root root 76180 Jan 10 2021 cfg2html-6.41.1.21.ga7a6c5f-1.git202101031210.noarch.rpm -rw-r--r--. 1 root root 83792 Sep 28 05:44 cfg2html-7.1.2.1.g131b595-1.git202409272159.noarch.rpm # yum install ./cfg2html-7.1.2.1.g131b595-1.git202409272159.noarch.rpm Upgraded: cfg2html-7.1.2.1.g131b595-1.git202409272159.noarch ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 11:49pm 25-01-09" Shutdown scheduled for Thu 2025-01-09 23:49:00 PST, use 'shutdown -c' to cancel. ===================================================================================================== ===================================================================================================== ================================================================ ================================================================ shutdown -r 23:49 "Maintenance reboot at 11:49pm 2025-02-06" USEC=1738914540000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 11:49pm 2025-02-06 date -d @USEC ================================================================ ===================================================================================================== shutdown -r 23:49 "Maintenance reboot at 11:49pm 2025-02-06" USEC=1738914540000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 11:49pm 2025-02-06 date -d @USEC ===================================================================================================== ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 23:49pm 2025-02-24" USEC=1740469740000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 23:49pm 2025-02-24 date -d @USEC ===================================================================================================== ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 23:49pm 2025-03-17" USEC=1742280540000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 23:49pm 2025-03-17 date -d @USEC ===================================================================================================== ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 23:49pm 2025-03-20" USEC=1742539740000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 23:49pm 2025-03-20 date -d @USEC ===================================================================================================== ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 23:49pm 2025-03-31" USEC=1743490140000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 23:49pm 2025-03-31 date -d @USEC ===================================================================================================== ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 23:49pm 2025-04-08" USEC=1744181340000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 23:49pm 2025-04-08 date -d @USEC ===================================================================================================== ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 23:49pm 2025-04-23" USEC=1745477340000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 23:49pm 2025-04-23 date -d @USEC ===================================================================================================== ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 23:49pm 2025-05-05" USEC=1746514140000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 23:49pm 2025-05-05 date -d @USEC ===================================================================================================== ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 23:49pm 2025-05-20" USEC=1747810140000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 23:49pm 2025-05-20 date -d @USEC ===================================================================================================== ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 23:49pm 2025-07-15" USEC=1752648540000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 23:49pm 2025-07-15 date -d @USEC ===================================================================================================== ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 23:49pm 2025-07-18" USEC=1752907740000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 23:49pm 2025-07-18 date -d @USEC ===================================================================================================== ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 23:49pm 2025-07-29" USEC=1753858140000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 23:49pm 2025-07-29 date -d @USEC ===================================================================================================== ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 23:49pm 2025-08-11" USEC=1754981340000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 23:49pm 2025-08-11 date -d @USEC ===================================================================================================== ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 23:49pm 2025-08-12" USEC=1755067740000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 23:49pm 2025-08-12 date -d @USEC ===================================================================================================== ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 23:49pm 2025-08-21" USEC=1755845340000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 23:49pm 2025-08-21 date -d @USEC ===================================================================================================== ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 23:49pm 2025-08-27" USEC=1756363740000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 23:49pm 2025-08-27 date -d @USEC ===================================================================================================== ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 23:49pm 2025-09-08" USEC=1757400540000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 23:49pm 2025-09-08 date -d @USEC ===================================================================================================== 25-09-10 trying to rsync /var/log/cfg2html from ctl.phas.ubc.ca [root@ctl-ocs-EduCld-RH9 azul] 15:30:53 # rsync -av root@azul.phas.ubc.ca::root/var/log/cfg2html/azul.phas.ubc.ca_20250907.err /www/sysadmin/Computers/00_Servers/cfg2html/azul/ receiving incremental file list rsync: send_files failed to open "/var/log/cfg2html/azul.phas.ubc.ca_20250907.err" (in root): Permission denied (13) solution: # semanage fcontext -a -t rsync_data_t "/var/log/cfg2html(/.*)?" # restorecon -Rv "/var/log/cfg2html/" ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 23:49pm 2025-09-15" USEC=1758005340000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 23:49pm 2025-09-15 date -d @USEC ===================================================================================================== ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 23:49pm 2025-10-14" USEC=1760510940000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 23:49pm 2025-10-14 date -d @USEC ===================================================================================================== ===================================================================================================== # shutdown -r 23:49 "Maintenance reboot at 23:49pm 2025-10-24" USEC=1761374940000000 WARN_WALL=1 MODE=reboot WALL_MESSAGE=Maintenance reboot at 23:49pm 2025-10-24 date -d @USEC =====================================================================================================