버전 비교

  • 이 줄이 추가되었습니다.
  • 이 줄이 삭제되었습니다.
  • 서식이 변경되었습니다.

...

코드 블럭
titleps auxf
linenumberstrue
collapsetrue
root@cml-controller:/var/lib/libvirt/images# ps auxf | awk '{ print substr($0, 1, 9) substr($0, 67) }'
USER      COMMAND
root      /bin/bash -c /bin/busctl monitor --system --json=short 
              --match "interface=org.fedoraproject.FirewallD1,member=Reloaded" 
              | while read -r line ; do /usr/local/bin/libvirt-iptables-checker.sh ; done
root      /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
root      /lib/systemd/systemd-logind
root      /lib/systemd/systemd-machined
root      /usr/lib/udisks2/udisksd
root      /usr/sbin/ModemManager
root      /bin/bash /usr/sbin/ksmtuned
root       \_ sleep 60
root      /usr/sbin/NetworkManager --no-daemon
root      /usr/sbin/libvirtd
root      /usr/sbin/rpc.mountd --manage-gids
root      /usr/bin/python3 -Es /usr/sbin/tuned -l -P
root      nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
www-data   \_ nginx: worker process
www-data   \_ nginx: worker process
...
libvirt+  /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf 
               --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
root      /sbin/agetty -o -p -- \u --noclear tty1 linux
root      /lib/systemd/systemd --user
root       \_ (sd-pam)
virl2     /usr/local/bin/devicemux 
              -logtostderr -stderrthreshold=WARNING 
              -config /var/local/virl2/devicemux-config.yml
root       \_ sudo -n /usr/local/bin/sysctldisableipv6
virl2     /usr/local/bin/ipsnooper  
              -logtostderr -stderrthreshold=WARNING 
              -config /var/local/virl2/ipsnooper.yml
www-data  /usr/local/bin/pcapdemux  
              -logtostderr -stderrthreshold=WARNING 
              -bindapi :8004 -controller ip6-localhost:8001 -usetls=false -verify=false -dispatcher ip6-localhost:8006
www-data  /usr/local/bin/dispatcher 
              -logtostderr -stderrthreshold=WARNING 
root      /usr/local/bin/virl2-sshd 
              -logtostderr -stderrthreshold=WARNING 
              -listen :22 -hostkey /etc/ssh/ssh_host_rsa_key -controller http://ip6-localhost:8001 -user virl2
www-data  /usr/bin/python3 -u /var/local/virl2/.local/bin/virl2-licensing --loglevel=WARNING
virl2     /usr/bin/python3 -u /var/local/virl2/.local/bin/virl2-lowlevel-driver --loglevel=WARNING
virl2     /usr/bin/python3 -u /var/local/virl2/.local/bin/virl2-core-driver
www-data  /usr/bin/python3 -u /var/local/virl2/.local/bin/virl2_webserver 
              --path /run/virl2/virl2_1.sock --bindto lo --port 8001 --loglevel=WARNING 
              --db_conn_str=sqlite:////var/local/virl2/config/controller.db
root      tmux new-session -d -s lld -n SHELL -c /var/local/virl2 -x80 -y24 /bin/bash
root       \_ /bin/bash
root       \_ bash -c ulimit -c0; 
                while /bin/true; 
                  do echo "Ctrl-\ to restart"; 
                  /usr/bin/journalctl --output=short --no-hostname --follow -u virl2-controller ;
                done
root       \_ bash -c ulimit -c0; 
                while /bin/true; 
                  do echo "Ctrl-\ to restart"; 
                  /usr/bin/journalctl --output=cat --follow -u virl2-fabric ;
                done
root       \_ bash -c ulimit -c0; 
                while /bin/true; 
                  do echo "Ctrl-\ to restart"; 
                  /usr/bin/journalctl --output=cat --follow -u virl2-devicemux ;
                done
root       \_ bash -c ulimit -c0; 
                while /bin/true; 
                  do echo "Ctrl-\ to restart"; 
                  /usr/bin/journalctl --output=cat --follow -u virl2-pcapdemux ;
                done
root       \_ bash -c ulimit -c0; 
                while /bin/true; 
                  do echo "Ctrl-\ to restart"; 
                  /usr/bin/journalctl --output=cat --follow -u virl2-ipsnooper ;
                done
root       \_ bash -c ulimit -c0; 
                while /bin/true; 
                  do echo "Ctrl-\ to restart"; 
                  /usr/bin/journalctl --output=cat --follow -u virl2-dispatcher ;
                done
root       \_ bash -c ulimit -c0; 
                while /bin/true; 
                  do echo "Ctrl-\ to restart"; 
                  /usr/bin/journalctl --output=short --no-hostname --follow -u virl2-core-driver ;
                done
root       \_ bash -c ulimit -c0; 
                while /bin/true; 
                  do echo "Ctrl-\ to restart"; 
                  /usr/bin/journalctl --output=short --no-hostname --follow -u virl2-lowlevel-driver ;
                done
root      /usr/sbin/virtlogd
libvirt+  /usr/bin/qemu-system-x86_64 -name guest=86770ca2-685f-4c57-b215-350265c973c4 ...
libvirt+  /usr/bin/qemu-system-x86_64 -name guest=50e4385b-f762-42a1-9f3f-89bca3785ff1 ...
libvirt+  /usr/bin/qemu-system-x86_64 -name guest=8b9c1cd8-254c-4bf4-86f2-c840e301bbc7 ...

tmux sessions

코드 블럭
linenumberstrue
root@cml-controller:/var/lib/libvirt/images# ps auxf | awk '{ print substr($0, 1, 9) substr($0, 67) }'
USER      COMMAND
root      tmux new-session -d -s lld -n SHELL -c /var/local/virl2 -x80 -y24 /bin/bash
root       \_ /bin/bash
root       \_ bash -c ulimit -c0; 
                while /bin/true; 
                  do echo "Ctrl-\ to restart"; 
                  /usr/bin/journalctl --output=short --no-hostname --follow -u virl2-controller ;
                done
root       \_ bash -c ulimit -c0; 
                while /bin/true; 
                  do echo "Ctrl-\ to restart"; 
                  /usr/bin/journalctl --output=cat --follow -u virl2-fabric ;
                done
root       \_ bash -c ulimit -c0; 
                while /bin/true; 
                  do echo "Ctrl-\ to restart"; 
                  /usr/bin/journalctl --output=cat --follow -u virl2-devicemux ;
                done
root       \_ bash -c ulimit -c0; 
                while /bin/true; 
                  do echo "Ctrl-\ to restart"; 
                  /usr/bin/journalctl --output=cat --follow -u virl2-pcapdemux ;
                done
root       \_ bash -c ulimit -c0; 
                while /bin/true; 
                  do echo "Ctrl-\ to restart"; 
                  /usr/bin/journalctl --output=cat --follow -u virl2-ipsnooper ;
                done
root       \_ bash -c ulimit -c0; 
                while /bin/true; 
                  do echo "Ctrl-\ to restart"; 
                  /usr/bin/journalctl --output=cat --follow -u virl2-dispatcher ;
                done
root       \_ bash -c ulimit -c0; 
                while /bin/true; 
                  do echo "Ctrl-\ to restart"; 
                  /usr/bin/journalctl --output=short --no-hostname --follow -u virl2-core-driver ;
                done
root       \_ bash -c ulimit -c0; 
                while /bin/true; 
                  do echo "Ctrl-\ to restart"; 
                  /usr/bin/journalctl --output=short --no-hostname --follow -u virl2-lowlevel-driver ;
                done

root@cml-controller:~# tmux ls
lld: 9 windows (created Wed Aug 14 09:10:13 2024)

root@cml-controller:~# tmux attach -t lld

...

코드 블럭
linenumberstrue
# ls -alh /var/local/virl2/images/9688ac22-ad37-4cf3-aa06-2efe9d8c7786/86770ca2-685f-4c57-b215-350265c973c4/node0.img \
/var/lib/libvirt/images/virl-base-images/cat8000v-17-13-01a/c8000v-universalk9_8G_serial.17.13.01a.qcow2
-r--rw-r-- 1 libvirt-qemu virl2 1.9G Jun 23 23:35 /var/lib/libvirt/images/virl-base-images/cat8000v-17-13-01a/c8000v-universalk9_8G_serial.17.13.01a.qcow2
-rw-r--r-- 1 libvirt-qemu kvm   303M Aug 19 01:16 /var/local/virl2/images/9688ac22-ad37-4cf3-aa06-2efe9d8c7786/86770ca2-685f-4c57-b215-350265c973c4/node0.img

root@cml-controller:~# qemu-img info /var/local/virl2/images/9688ac22-ad37-4cf3-aa06-2efe9d8c7786/86770ca2-685f-4c57-b215-350265c973c4/node0.img
image: /var/local/virl2/images/9688ac22-ad37-4cf3-aa06-2efe9d8c7786/86770ca2-685f-4c57-b215-350265c973c4/node0.img
file format: qcow2
virtual size: 8 GiB (8589934592 bytes)
disk size: 351 MiB
cluster_size: 65536
backing file: /var/lib/libvirt/images/virl-base-images/cat8000v-17-13-01a/c8000v-universalk9_8G_serial.17.13.01a.qcow2
backing file format: qcow2
Format specific information:
    compat: 1.1
    lazy refcounts: false
    refcount bits: 16
    corrupt: false
코드 블럭
linenumberstrue
root@cml-controller:~# virsh domblklist 86770ca2-685f-4c57-b215-350265c973c4
 Target   Source
------------------------------------------------------------------------------------------------------------------------
 vda      /var/local/virl2/images/.../86770ca2-685f-4c57-b215-350265c973c4/node0.img
 vdb      /var/local/virl2/images/.../86770ca2-685f-4c57-b215-350265c973c4/config.img

root@cml-controller:~#  virsh domblkstat 86770ca2-685f-4c57-b215-350265c973c4 vda --human
Device: vda
 number of read operations:      20923
 number of bytes read:           1582396928
 number of write operations:     1077
 number of bytes written:        608612352
 number of flush operations:     0
 total duration of reads (ns):   6638006817
 total duration of writes (ns):  238078868428
 total duration of flushes (ns): 0

...