Bug 1985912 - The lstatns function has a memory leak. (python3)
Summary: The lstatns function has a memory leak. (python3)
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-26 08:37 UTC by 朱丹
Modified: 2021-07-27 11:24 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-07-27 08:04:54 UTC
Embargoed:


Attachments (Terms of Use)
simple-reproducer.py (327 bytes, text/plain)
2021-07-27 07:24 UTC, Richard W.M. Jones
no flags Details

Description 朱丹 2021-07-26 08:37:29 UTC
Description of problem:
The lstatns function has a memory leak

In my project, We use the libguestfs to access virtual machine (VM) disk images.  When I call lstatns, There was a memory leak.
We use the Python language. We used Memory_profiler to analyze memory usage in Python.
The results are as follows:

Line #    Mem usage    Increment  Occurences   Line Contents
============================================================
     5    103.1 MiB    103.1 MiB           1   @profile
     6                                         def bb():
     7    103.5 MiB      0.4 MiB           1       guestfs = GuestImage(["dataenableengine-proxy-0.dataenableengine-proxy:10850"], "")
     8    103.5 MiB      0.0 MiB           1       logger.info(f'guestfs init')
     9    104.4 MiB      0.9 MiB           1       guestfs.mount_device()
    10    104.4 MiB      0.0 MiB           1       guestfs.g.dmesg()
    11    111.3 MiB      6.9 MiB           1       nodeset = guestfs.g.find("/")
    12    120.8 MiB      0.1 MiB       30413       for file in nodeset:
    13    120.8 MiB      0.0 MiB       30412           file_path = "/" + file
    14    120.8 MiB      9.4 MiB       30412           aa = guestfs.g.lstatns(file_path)
    15                                         
    16    120.8 MiB      0.0 MiB           1       print("==========end==========")


We don't know how to free memory.
Looking forward to your reply!


Version-Release number of selected component (if applicable):
libguestfs 1.40.2


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 朱丹 2021-07-26 08:39:16 UTC
[2021-07-26 15:58:41,153][INFO][Creating context DB connection to gaussdb...][context_db.py, get_db_instance:174][MainThread]
[2021-07-26 15:58:41,154][INFO][Creating database connection to WORKFLOW_gaussdb...][db_session.py, get_db_instance:169][MainThread]
[2021-07-26 15:58:41,154][INFO][db_encoding=utf8, echo_sql=False][db_session.py, __init__:77][MainThread]
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: set_backend "direct"
libguestfs: trace: set_backend = 0
libguestfs: create: flags = 0, handle = 0xaaaae1711350, program = python3
libguestfs: trace: set_program "demo3.py"
libguestfs: trace: set_program = 0
[2021-07-26 15:58:41,397][INFO][guestfs init][demo3.py, bb:8][MainThread]
libguestfs: trace: add_drive "" "protocol:nbd" "server:dataenableengine-proxy-0.dataenableengine-proxy:10850"
libguestfs: trace: add_drive = 0
libguestfs: trace: launch
libguestfs: trace: max_disks
libguestfs: trace: max_disks = 255
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: trace: version
libguestfs: trace: version = <struct guestfs_version = major: 1, minor: 40, release: 2, extra: libvirt, >
libguestfs: trace: get_backend
libguestfs: trace: get_backend = "direct"
libguestfs: launch: program=demo3.py
libguestfs: launch: version=1.40.2libvirt
libguestfs: launch: backend registered: unix
libguestfs: launch: backend registered: uml
libguestfs: launch: backend registered: libvirt
libguestfs: launch: backend registered: direct
libguestfs: launch: backend=direct
libguestfs: launch: tmpdir=/tmp/libguestfshOVBrE
libguestfs: launch: umask=0077
libguestfs: launch: euid=0
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: begin building supermin appliance
libguestfs: run supermin
libguestfs: command: run: /usr/bin/supermin
libguestfs: command: run: \ --build
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ --if-newer
libguestfs: command: run: \ --lock /var/tmp/.guestfs-0/lock
libguestfs: command: run: \ --copy-kernel
libguestfs: command: run: \ -f ext2
libguestfs: command: run: \ --host-cpu aarch64
libguestfs: command: run: \ /usr/lib64/guestfs/supermin.d
libguestfs: command: run: \ -o /var/tmp/.guestfs-0/appliance.d
supermin: version: 5.2.0
supermin: rpm: detected RPM version 4.15
supermin: rpm: detected RPM architecture aarch64
supermin: package handler: fedora/rpm
supermin: acquiring lock on /var/tmp/.guestfs-0/lock
supermin: if-newer: output does not need rebuilding
libguestfs: finished building supermin appliance
libguestfs: begin testing qemu features
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: checking for previously cached test results of /usr/bin/qemu-kvm, in /var/tmp/.guestfs-0
libguestfs: loading previously cached test results
libguestfs: QMP parse error: '[' or '{' expected near end of file (ignored)
libguestfs: QMP parse error: '[' or '{' expected near end of file (ignored)
libguestfs: qemu version: 4.1
libguestfs: qemu mandatory locking: yes
libguestfs: qemu KVM: enabled
libguestfs: trace: get_backend_setting "force_tcg"
libguestfs: trace: get_backend_setting = NULL (error)
libguestfs: trace: get_sockdir
libguestfs: trace: get_sockdir = "/tmp"
libguestfs: finished testing qemu features
libguestfs: trace: get_backend_setting "gdb"
libguestfs: trace: get_backend_setting = NULL (error)
/usr/bin/qemu-kvm \
    -global virtio-blk-pci.scsi=off \
    -no-user-config \
    -enable-fips \
    -nodefaults \
    -display none \
    -machine virt,gic-version=host,accel=kvm:tcg \
    -cpu host \
    -m 1024 \
    -no-reboot \
    -rtc driftfix=slew \
    -kernel /var/tmp/.guestfs-0/appliance.d/kernel \
    -initrd /var/tmp/.guestfs-0/appliance.d/initrd \
    -object rng-random,filename=/dev/urandom,id=rng0 \
    -device virtio-rng-pci,rng=rng0 \
    -device virtio-scsi-pci,id=scsi \
    -drive file=nbd:dataenableengine-proxy-0.dataenableengine-proxy:10850,cache=writeback,id=hd0,if=none \
    -device scsi-hd,drive=hd0 \
    -drive file=/var/tmp/.guestfs-0/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none,format=raw \
    -device scsi-hd,drive=appliance \
    -device virtio-serial-pci \
    -serial stdio \
    -chardev socket,path=/tmp/libguestfsibYnbb/guestfsd.sock,id=channel0 \
    -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
    -append "panic=1 console=ttyAMA0 earlyprintk=pl011,,0x9000000 ignore_loglevel efi-rtc=noprobe edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm"
2021-07-26T15:58:41.490739+08:00|info|qemu[9188]|[9188]|main[3167]|: qemu pid is 9188, options parsing start
2021-07-26T15:58:41.490886+08:00|info|qemu[9188]|[9188]|main[3382]|: memory options parse start
2021-07-26T15:58:41.492374+08:00|info|qemu[9188]|[9188]|configure_memory_map[3023]|: [disable] allocate memory with MAP_NORESERVE flag
2021-07-26T15:58:41.492879+08:00|info|qemu[9188]|[9188]|drive_new[1023]|: blockdev init(nbd:dataenableengine-proxy-0.dataenableengine-proxy:10850).
WARNING: Image format was not specified for 'nbd://dataenableengine-proxy-0.dataenableengine-proxy:10850' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
2021-07-26T15:58:41.597375+08:00|info|qemu[9188]|[9188]|drive_new[1023]|: blockdev init(/var/tmp/.guestfs-0/appliance.d/root).
2021-07-26T15:58:41.612781+08:00|info|qemu[9188]|[9188]|configure_blockdev[1299]|: Finish drive init.
2021-07-26T15:58:41.612838+08:00|info|qemu[9188]|[9188]|main[4428]|: configure accelerator virt-4.1 start
2021-07-26T15:58:41.616352+08:00|info|qemu[9188]|[9188]|kvm_init[2130]|: kvm rtc irq reinjection not supported.
2021-07-26T15:58:41.616787+08:00|info|qemu[9188]|[9188]|main[4599]|: machine init start
2021-07-26T15:58:41.617788+08:00|info|qemu[9188]|[9188]|machvirt_init[1832]|: cpu init start
2021-07-26T15:58:41.620888+08:00|info|qemu[9188]|[9188]|hot_replace_mmap[541]|: mach-virt.ram alloc ptr=0x4fff38a00000 size=1073741824 OK.
2021-07-26T15:58:41.629814+08:00|info|qemu[9188]|[9188]|arm_load_kernel[1288]|: load the kernel
2021-07-26T15:58:41.763503+08:00|info|qemu[9188]|[9188]|realtime_init[1357]|: create mlock thread
2021-07-26T15:58:41.763925+08:00|info|qemu[9188]|[9188]|main[4637]|: device init start
2021-07-26T15:58:41.764926+08:00|info|qemu[9188]|[9188]|qdev_device_add[644]|: add qdev virtio-rng-pci:none success
2021-07-26T15:58:41.765139+08:00|info|qemu[9188]|[9188]|virtio_scsi_pci_realize[54]|: virtio scsi HBA scsi begin to initialize.
2021-07-26T15:58:41.766038+08:00|info|qemu[9188]|[9188]|qdev_device_add[644]|: add qdev virtio-scsi-pci:scsi success
2021-07-26T15:58:41.766972+08:00|info|qemu[9188]|[9188]|qdev_device_add[644]|: add qdev scsi-hd:none success
2021-07-26T15:58:41.767202+08:00|info|qemu[9188]|[9188]|qdev_device_add[644]|: add qdev scsi-hd:none success
2021-07-26T15:58:41.768260+08:00|info|qemu[9188]|[9188]|qdev_device_add[644]|: add qdev virtio-serial-pci:none success
2021-07-26T15:58:41.768343+08:00|info|qemu[9188]|[9188]|send_control_event[261]|: virtio serial port 1 send control message event = 6, value = 1
2021-07-26T15:58:41.768374+08:00|info|qemu[9188]|[9188]|send_control_event[261]|: virtio serial port 1 send control message event = 1, value = 1
2021-07-26T15:58:41.768398+08:00|info|qemu[9188]|[9188]|qdev_device_add[644]|: add qdev virtserialport:none success
2021-07-26T15:58:41.774286+08:00|info|qemu[9188]|[9188]|vnc_set_try_times[138]|: You have 3 chances to input the vnc passwd in 30 seconds
2021-07-26T15:58:41.774330+08:00|info|qemu[9188]|[9188]|vnc_set_time_wait[150]|: If the vnc locked, you should wait 300 seconds
2021-07-26T15:58:41.774368+08:00|info|qemu[9188]|[9188]|kvm_set_dirty_log_protect_cap[1742]|: Enable KVM_CAP_MANUAL_DIRTY_LOG_PROTECT2 capbility 3 success.
2021-07-26T15:58:41.774401+08:00|info|qemu[9188]|[9188]|migration_configure[423]|: migration configure prior, reload configure file.
2021-07-26T15:58:41.774438+08:00|info|qemu[9188]|[9188]|migration_set_socket_timeout[52]|: set the send/receive socket timeout to 1000
2021-07-26T15:58:41.775537+08:00|info|qemu[9188]|[9188]|qemu_devices_reset[68]|: reset all devices
qemu-kvm: warning: global mc146818rtc.lost_tick_policy has invalid class name
2021-07-26T15:58:41.838458+08:00|info|qemu[9188]|[9188]|vm_prepare_start[2230]|: vm_state-notify:0ms
2021-07-26T15:58:41.838547+08:00|info|qemu[9188]|[9188]|main[4750]|: qemu enter main_loop
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x481fd010]
[    0.000000] Linux version 4.19.90-vhulk2103.1.0.h462.eulerosv2r9.aarch64 (abuild@szxrtosci10000) (gcc version 7.3.0 (GCC)) #1 SMP Thu Apr 22 04:55:25 UTC 2021
[    0.000000] Machine model: linux,dummy-virt
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] parse cmdline param err, kbox reserve memory max size = 0x8000000, cur size = 0x0
[    0.000000] cma: Reserved 64 MiB at 0x000000007c000000
[    0.000000] memory reserve information:
[    0.000000]   reserved type: 7
[    0.000000]   enable       : no
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x7bfe82c0-0x7bfe9bff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] On node 0 totalpages: 262144
[    0.000000]   DMA32 zone: 4096 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 262144 pages, LIFO batch:63
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.1
[    0.000000] random: get_random_bytes called from start_kernel+0xa8/0x504 with crng_init=0
[    0.000000] percpu: Embedded 25 pages/cpu s64664 r8192 d29544 u102400
[    0.000000] pcpu-alloc: s64664 r8192 d29544 u102400 alloc=25*4096
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for Mismatched cache type
[    0.000000] CPU features: enabling workaround for Hisi 1620 Cache Readunique Disable
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: Hardware dirty bit management
[    0.000000] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258048
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: panic=1 console=ttyAMA0 earlyprintk=pl011,,0x9000000 ignore_loglevel efi-rtc=noprobe edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm
[    0.000000] Memory: 939276K/1048576K available (10364K kernel code, 1448K rwdata, 3612K rodata, 4416K init, 2375K bss, 43764K reserved, 65536K cma-reserved)
[    0.000000] E820: [mem 0x0000000040000000-0x000000007fffffff] usable
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 35361 entries in 139 pages
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: \tRCU restricting CPUs from NR_CPUS=1024 to nr_cpu_ids=1.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] GICv3: no VLPI support, no direct LPI support
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000080a0000
[    0.000000] ITS [mem 0x08080000-0x0809ffff]
[    0.000000] ITS@0x0000000008080000: allocated 8192 Devices @7a930000 (indirect, esz 8, psz 64K, shr 1)
[    0.000000] ITS@0x0000000008080000: allocated 8192 Interrupt Collections @7a940000 (flat, esz 8, psz 64K, shr 1)
[    0.000000] GICv3: using LPI property table @0x000000007a950000
[    0.000000] Dummy vpend table: 0x7a970000
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x000000007a960000
[    0.000000] rcu: \tOffload RCU callbacks from CPUs: (none).
[    0.000000] arch_timer: cp15 timer(s) running at 100.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x171024e7e0, max_idle_ns: 440795205315 ns
[    0.000002] sched_clock: 56 bits at 100MHz, resolution 10ns, wraps every 4398046511100ns
[    0.000242] Console: colour dummy device 80x25
[    0.000310] Calibrating delay loop (skipped), value calculated using timer frequency.. 200.00 BogoMIPS (lpj=400000)
[    0.000314] pid_max: default: 32768 minimum: 301
[    0.000416] Security Framework initialized
[    0.000429] Yama: becoming mindful.
[    0.000436] SELinux:  Disabled at boot.
[    0.001356] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.001763] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.001806] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.001822] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.003182] Disabling memory control group subsystem
[    0.004456] ASID allocator initialised with 32768 entries
[    0.004525] rcu: Hierarchical SRCU implementation.
[    0.005581] Platform MSI: its@8080000 domain created
[    0.005615] PCI/MSI: /intc@8000000/its@8080000 domain created
[    0.005667] EFI services will not be available.
[    0.005726] smp: Bringing up secondary CPUs ...
[    0.005728] smp: Brought up 1 node, 1 CPU
[    0.005731] SMP: Total of 1 processors activated.
[    0.005734] CPU features: detected: Privileged Access Never
[    0.005736] CPU features: detected: LSE atomic instructions
[    0.005737] CPU features: detected: User Access Override
[    0.005740] CPU features: detected: Data cache clean to Point of Persistence
[    0.005741] CPU features: detected: RAS Extension Support
[    0.005742] CPU features: detected: ARM64 MPAM Extension Support
[    0.005743] CPU features: detected: CRC32 instructions
[    0.007472] CPU: All CPU(s) started at EL1
[    0.007478] alternatives: patching kernel code
[    0.011766] devtmpfs: initialized
[    0.012880] Registered cp15_barrier emulation handler
[    0.012886] Registered setend emulation handler
[    0.012958] genirq: IRQ affinity hint notify enabled
[    0.012962] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.012968] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.014049] pinctrl core: initialized pinctrl subsystem
[    0.014226] DMI not present or invalid.
[    0.014623] NET: Registered protocol family 16
[    0.014835] audit: initializing netlink subsys (disabled)
[    0.015304] cpuidle: using governor menu
[    0.015371] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.015504] audit: type=2000 audit(0.008:1): state=initialized audit_enabled=0 res=1
[    0.016076] DMA: preallocated 256 KiB pool for atomic allocations
[    0.016164] Serial: AMBA PL011 UART driver
[    0.017916] 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 39, base_baud = 0) is a PL011 rev1
[    0.065343] console [ttyAMA0] enabled
[    0.067876] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.068951] ACPI: Interpreter disabled.
[    0.069373] vgaarb: loaded
[    0.069817] SCSI subsystem initialized
[    0.070134] usbcore: USB support disabled
[    0.070469] pps_core: LinuxPPS API ver. 1 registered
[    0.070935] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti>
[    0.071637] PTP clock support registered
[    0.072041] EDAC MC: Ver: 3.0.0
[    0.072928] NetLabel: Initializing
[    0.073201] NetLabel:  domain hash size = 128
[    0.073536] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.074042] NetLabel:  unlabeled traffic allowed by default
[    0.074637] clocksource: Switched to clocksource arch_sys_counter
[    0.093253] VFS: Disk quotas dquot_6.6.0
[    0.093616] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.094316] pnp: PnP ACPI: disabled
[    0.096313] NET: Registered protocol family 2
[    0.097219] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes)
[    0.097810] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.098455] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[    0.099216] TCP: Hash tables configured (established 8192 bind 8192)
[    0.099916] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.100407] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.101073] NET: Registered protocol family 1
[    0.101420] PCI: CLS 0 bytes, default 64
[    0.101901] Unpacking initramfs...
[    0.111550] Freeing initrd memory: 3796K
[    0.112333] hw perfevents: enabled with armv8_pmuv3 PMU driver, 13 counters available
[    0.112973] kvm [1]: HYP mode not available
[    0.113422] alg: self-tests disabled
[    0.114251] Initialise system trusted keyrings
[    0.114890] workingset: timestamp_bits=43 max_order=18 bucket_order=0
[    0.115389] [memstat]starting init memstat for modules
[    0.132101] zbud: loaded
[    0.134030] NET: Registered protocol family 38
[    0.134410] Key type asymmetric registered
[    0.134816] Asymmetric key parser 'x509' registered
[    0.135231] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.135860] io scheduler noop registered
[    0.136196] io scheduler deadline registered (default)
[    0.136684] io scheduler cfq registered
[    0.136968] io scheduler mq-deadline registered (default)
[    0.137357] io scheduler kyber registered
[    0.137701] io scheduler bfq registered
[    0.138092] atomic64_test: passed
[    0.138912] pl061_gpio 9030000.pl061: PL061 GPIO chip @0x0000000009030000 registered
[    0.139629] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[    0.140213] pci-host-generic 4010000000.pcie: host bridge /pcie@eff0000 ranges:
[    0.140753] pci-host-generic 4010000000.pcie:    IO 0x3dfe0000..0x3dffffff -> 0x00000000
[    0.141348] pci-host-generic 4010000000.pcie:   MEM 0x0eff0000..0x3dfdffff -> 0x0eff0000
[    0.141922] pci-host-generic 4010000000.pcie:   MEM 0x8000000000..0xffffffffff -> 0x8000000000
[    0.142579] pci-host-generic 4010000000.pcie: ECAM at [mem 0x4010000000-0x401fffffff] for [bus 00-ff]
[    0.143582] pci-host-generic 4010000000.pcie: PCI host bridge to bus 0000:00
[    0.144132] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.144567] pci_bus 0000:00: root bus resource [io  0x0000-0x1ffff]
[    0.145075] pci_bus 0000:00: root bus resource [mem 0x0eff0000-0x3dfdffff]
[    0.145601] pci_bus 0000:00: root bus resource [mem 0x8000000000-0xffffffffff]
[    0.146224] pci 0000:00:00.0: [1b36:0008] type 00 class 0x060000
[    0.147121] pci 0000:00:01.0: [1af4:1005] type 00 class 0x00ff00
[    0.147642] pci 0000:00:01.0: reg 0x10: [io  0x0000-0x001f]
[    0.148110] pci 0000:00:01.0: reg 0x20: [mem 0x00000000-0x00003fff 64bit pref]
[    0.148896] pci 0000:00:02.0: [1af4:1004] type 00 class 0x010000
[    0.149382] pci 0000:00:02.0: reg 0x10: [io  0x0000-0x003f]
[    0.149807] pci 0000:00:02.0: reg 0x14: [mem 0x00000000-0x00000fff]
[    0.150293] pci 0000:00:02.0: reg 0x20: [mem 0x00000000-0x00003fff 64bit pref]
[    0.151138] pci 0000:00:03.0: [1af4:1003] type 00 class 0x078000
[    0.151770] pci 0000:00:03.0: reg 0x10: [io  0x0000-0x003f]
[    0.152235] pci 0000:00:03.0: reg 0x14: [mem 0x00000000-0x00000fff]
[    0.152777] pci 0000:00:03.0: reg 0x20: [mem 0x00000000-0x00003fff 64bit pref]
[    0.153734] pci 0000:00:01.0: BAR 4: assigned [mem 0x8000000000-0x8000003fff 64bit pref]
[    0.154372] pci 0000:00:02.0: BAR 4: assigned [mem 0x8000004000-0x8000007fff 64bit pref]
[    0.155040] pci 0000:00:03.0: BAR 4: assigned [mem 0x8000008000-0x800000bfff 64bit pref]
[    0.155696] pci 0000:00:02.0: BAR 1: assigned [mem 0x0eff0000-0x0eff0fff]
[    0.156222] pci 0000:00:03.0: BAR 1: assigned [mem 0x0eff1000-0x0eff1fff]
[    0.156698] pci 0000:00:02.0: BAR 0: assigned [io  0x1000-0x103f]
[    0.157138] pci 0000:00:03.0: BAR 0: assigned [io  0x1040-0x107f]
[    0.157585] pci 0000:00:01.0: BAR 0: assigned [io  0x1080-0x109f]
[    0.158463] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.159879] rdac: device handler registered
[    0.160293] hp_sw: device handler registered
[    0.160619] emc: device handler registered
[    0.160959] alua: device handler registered
[    0.161464] libphy: Fixed MDIO Bus: probed
[    0.162033] mousedev: PS/2 mouse device common for all mice
[    0.162799] rtc-pl031 9010000.pl031: rtc core: registered pl031 as rtc0
[    0.164624] hidraw: raw HID events driver (C) Jiri Kosina
[    0.165354] Initializing XFRM netlink socket
[    0.165864] NET: Registered protocol family 10
[    0.166967] Segment Routing with IPv6
[    0.167305] NET: Registered protocol family 17
[    0.167895] registered taskstats version 1
[    0.168240] Loading compiled-in X.509 certificates
[    0.169598] Loaded X.509 cert
[    0.169901] zswap: loaded using pool lzo/zbud
[    0.170761] Key type big_key registered
[    0.171188] Key type encrypted registered
[    0.171635] rtc-pl031 9010000.pl031: setting system clock to 2021-07-26 07:58:42 UTC (1627286322)
[    0.172315] [PLE] Not support PLE, skip PLE init
[    0.175667] RAS: RAS CPU correctable errors collector initialized.
[    0.176227] SDEI NMI watchdog: Bind interrupt failed. Firmware may not support SDEI !
[    0.176795] watchdog: sample period is: 4000000000
[    0.177335] uart-pl011 9000000.pl011: no DMA platform data
[    0.180442] Freeing unused kernel memory: 4416K
[    0.182764] Run /init as init process
supermin: mounting /proc
supermin: ext2 mini initrd starting up: 5.2.0 glibc
supermin: cmdline: panic=1 console=ttyAMA0 earlyprintk=pl011,,0x9000000 ignore_loglevel efi-rtc=noprobe edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm
supermin: uptime: 18446744064486179579.66 0.00
supermin: mounting /sys
supermin: internal insmod crct10dif-ce.ko
supermin: internal insmod crc32_generic.ko
supermin: internal insmod libata.ko
[    0.201411] libata version 3.00 loaded.
supermin: internal insmod ata_piix.ko
supermin: internal insmod virtio.ko
supermin: internal insmod virtio_ring.ko
supermin: internal insmod virtio_blk.ko
supermin: internal insmod virtio-rng.ko
supermin: internal insmod virtio_console.ko
supermin: internal insmod crypto_engine.ko
supermin: internal insmod virtio_crypto.ko
supermin: internal insmod failover.ko
supermin: internal insmod net_failover.ko
supermin: internal insmod virtio_net.ko
supermin: internal insmod libnvdimm.ko
supermin: internal insmod nd_btt.ko
supermin: internal insmod nd_pmem.ko
supermin: internal insmod sd_mod.ko
supermin: internal insmod virtio_scsi.ko
supermin: internal insmod virtio_balloon.ko
supermin: internal insmod virtio_input.ko
supermin: internal insmod virtio_mmio.ko
supermin: internal insmod virtio_pci.ko
[    0.246329] virtio-pci 0000:00:01.0: enabling device (0000 -> 0003)
2021-07-26T15:58:42.279387+08:00|info|qemu[9188]|[9193]|virtio_pci_common_write[1252]|: device virtio-rng((null)) reset
2021-07-26T15:58:42.280061+08:00|info|qemu[9188]|[9193]|virtio_set_status[1183]|: virtio-rng((null)) status is 1 that means DEVICE ACKNOWLEDGE
2021-07-26T15:58:42.280137+08:00|info|qemu[9188]|[9193]|virtio_set_status[1183]|: virtio-rng((null)) status is 3 that means DRIVER FOUND
2021-07-26T15:58:42.280205+08:00|info|qemu[9188]|[9193]|virtio_set_status[1183]|: virtio-rng((null)) status is 11 that means FEATURES OK
2021-07-26T15:58:42.280383+08:00|info|qemu[9188]|[9193]|virtio_set_status[1183]|: virtio-rng((null)) status is 15 that means DRIVER OK
[    0.249113] virtio-pci 0000:00:02.0: enabling device (0000 -> 0003)
2021-07-26T15:58:42.282161+08:00|info|qemu[9188]|[9193]|virtio_pci_common_write[1252]|: device virtio-scsi(scsi) reset
2021-07-26T15:58:42.282817+08:00|info|qemu[9188]|[9193]|virtio_set_status[1183]|: virtio-scsi(scsi) status is 1 that means DEVICE ACKNOWLEDGE
2021-07-26T15:58:42.282999+08:00|info|qemu[9188]|[9193]|virtio_set_status[1183]|: virtio-scsi(scsi) status is 3 that means DRIVER FOUND
2021-07-26T15:58:42.283061+08:00|info|qemu[9188]|[9193]|virtio_set_status[1183]|: virtio-scsi(scsi) status is 11 that means FEATURES OK
[    0.251547] random: fast init done
[    0.251935] random: crng init done
[    0.252872] scsi host0: Virtio SCSI HBA
2021-07-26T15:58:42.285469+08:00|info|qemu[9188]|[9193]|virtio_set_status[1183]|: virtio-scsi(scsi) status is 15 that means DRIVER OK
2021-07-26T15:58:42.285506+08:00|info|qemu[9188]|[9193]|virtio_pci_set_guest_notifiers[975]|: virtio-scsi(scsi) with_irqfd is True
2021-07-26T15:58:42.286510+08:00|info|qemu[9188]|[9193]|virtio_pci_set_guest_notifiers[1025]|: guest notifier with irqfd set ok
[    0.256970] scsi 0:0:0:0: Direct-Access     QEMU     QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[    0.258864] virtio-pci 0000:00:03.0: enabling device (0000 -> 0003)
2021-07-26T15:58:42.292096+08:00|info|qemu[9188]|[9193]|virtio_pci_common_write[1252]|: device virtio-serial((null)) reset
2021-07-26T15:58:42.292739+08:00|info|qemu[9188]|[9193]|virtio_set_status[1183]|: virtio-serial((null)) status is 1 that means DEVICE ACKNOWLEDGE
2021-07-26T15:58:42.292829+08:00|info|qemu[9188]|[9193]|virtio_set_status[1183]|: virtio-serial((null)) status is 3 that means DRIVER FOUND
2021-07-26T15:58:42.292933+08:00|info|qemu[9188]|[9193]|virtio_set_status[1183]|: virtio-serial((null)) status is 11 that means FEATURES OK
[    0.262691] scsi 0:0:1:0: Direct-Access     QEMU     QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
2021-07-26T15:58:42.300231+08:00|info|qemu[9188]|[9193]|virtio_set_status[1183]|: virtio-serial((null)) status is 15 that means DRIVER OK
2021-07-26T15:58:42.399440+08:00|info|qemu[9188]|[9188]|handle_control_message[372]|: virtio serial port '4294967295' handle control message event = 0, value = 1
2021-07-26T15:58:42.399512+08:00|info|qemu[9188]|[9188]|send_control_event[261]|: virtio serial port 1 send control message event = 1, value = 1
2021-07-26T15:58:42.400412+08:00|info|qemu[9188]|[9188]|handle_control_message[372]|: virtio serial port '1' handle control message event = 3, value = 1
2021-07-26T15:58:42.400451+08:00|info|qemu[9188]|[9188]|send_control_event[261]|: virtio serial port 1 send control message event = 6, value = 1
[    0.418875] sd 0:0:0:0: Power-on or device reset occurred
[    0.419396] sd 0:0:1:0: Power-on or device reset occurred
[    0.420253] sd 0:0:1:0: [sdb] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB)
[    0.420821] sd 0:0:0:0: [sda] 33554432 512-byte logical blocks: (17.2 GB/16.0 GiB)
[    0.421514] sd 0:0:1:0: [sdb] Write Protect is off
[    0.421863] sd 0:0:1:0: [sdb] Mode Sense: 63 00 00 08
[    0.422322] sd 0:0:0:0: [sda] Write Protect is off
[    0.422813] sd 0:0:0:0: [sda] Mode Sense: 63 00 00 08
[    0.423189] sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    0.424217] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    0.426837] sd 0:0:1:0: [sdb] Attached SCSI disk
[    0.427334]  sda: sda1 sda2
[    0.428280] sd 0:0:0:0: [sda] Attached SCSI disk
supermin: internal insmod jbd2.ko
supermin: internal insmod mbcache.ko
supermin: internal insmod ext4.ko
supermin: internal insmod crc-itu-t.ko
supermin: internal insmod crc7.ko
supermin: internal insmod crc8.ko
supermin: internal insmod libcrc32c.ko
supermin: picked /sys/block/sdb/dev (8:16) as root device
supermin: creating /dev/root as block special 8:16
supermin: mounting new root on /root
[    0.470708] EXT4-fs (sdb): mounting ext2 file system using the ext4 subsystem
[    0.475750] EXT4-fs (sdb): mounted filesystem without journal. Opts: 
supermin: deleting initramfs files
supermin: chroot
Starting /init script ...
+ [[ panic=1 console=ttyAMA0 earlyprintk=pl011,,0x9000000 ignore_loglevel efi-rtc=noprobe edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm == *guestfs_network=1* ]]
+ [[ panic=1 console=ttyAMA0 earlyprintk=pl011,,0x9000000 ignore_loglevel efi-rtc=noprobe edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm == *guestfs_rescue=1* ]]
+ [[ panic=1 console=ttyAMA0 earlyprintk=pl011,,0x9000000 ignore_loglevel efi-rtc=noprobe edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm == *guestfs_noreboot=1* ]]
+ [[ panic=1 console=ttyAMA0 earlyprintk=pl011,,0x9000000 ignore_loglevel efi-rtc=noprobe edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm == *guestfs_boot_analysis=1* ]]
+ '[' '!' -d /sys ']'
+ mkdir -p /sys
+ mount -t sysfs /sys /sys
+ mkdir -p /run
+ mount -t tmpfs -o nosuid,size=20%,mode=0755 tmpfs /run
+ mkdir -p /run/lock
+ ln -s ../run/lock /var/lock
+ test -e /etc/mtab
+ ln -s /proc/mounts /etc/mtab
+ mount -t devtmpfs /dev /dev
+ mkdir -p /dev/pts
+ mount -t devpts /dev/pts /dev/pts
+ mkdir -p /dev/shm
+ mount -t tmpfs -o mode=1777 shmfs /dev/shm
+ [[ panic=1 console=ttyAMA0 earlyprintk=pl011,,0x9000000 ignore_loglevel efi-rtc=noprobe edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm == *selinux=1* ]]
+ mkdir -p /run/tmpfiles.d
+ kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf
++ od -x -A n
++ dd if=/dev/urandom bs=16 count=1 status=none
+ machine_id=' 0d7d f1ec f4db bb05 583a 7ff0 e201 9378'
+ echo 0d7df1ecf4dbbb05583a7ff0e2019378
+ systemd-tmpfiles --prefix=/dev --prefix=/run --prefix=/var/run --create --boot
[/usr/lib/tmpfiles.d/static-nodes-permissions.conf:17] Unknown group 'kvm'.
[/usr/lib/tmpfiles.d/systemd.conf:11] Unknown group 'utmp'.
[/usr/lib/tmpfiles.d/systemd.conf:19] Unknown user 'systemd-network'.
[/usr/lib/tmpfiles.d/systemd.conf:20] Unknown user 'systemd-network'.
[/usr/lib/tmpfiles.d/systemd.conf:21] Unknown user 'systemd-network'.
[/usr/lib/tmpfiles.d/systemd.conf:25] Unknown group 'systemd-journal'.
[/usr/lib/tmpfiles.d/systemd.conf:26] Unknown group 'systemd-journal'.
+ for f in /lib/systemd/systemd-udevd /usr/lib/systemd/systemd-udevd /sbin/udevd /lib/udev/udevd /usr/lib/udev/udevd
+ '[' -x /lib/systemd/systemd-udevd ']'
+ UDEVD=/lib/systemd/systemd-udevd
+ break
+ '[' -z /lib/systemd/systemd-udevd ']'
+ /lib/systemd/systemd-udevd --daemon
Starting version v243-18.h80.eulerosv2r9
+ udevadm trigger
+ udevadm settle --timeout=600
[    0.772578] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    0.776676] sd 0:0:1:0: Attached scsi generic sg1 type 0
+ shopt -s nullglob
+ for f in /sys/block/sd*/device/timeout
+ echo 300
+ for f in /sys/block/sd*/device/timeout
+ echo 300
+ for f in /sys/block/{h,s,ub,v}d*/queue/scheduler
+ echo noop
/init: line 116: echo: write error: Invalid argument
+ for f in /sys/block/{h,s,ub,v}d*/queue/scheduler
+ echo noop
/init: line 116: echo: write error: Invalid argument
+ shopt -u nullglob
+ ip addr add 127.0.0.1/8 brd + dev lo scope host
+ ip link set dev lo up
+ test '' = 1
+ mdadm -As --auto=yes --no-degraded
mdadm: No arrays found in config file or automatically
+ mkdir -p /tmp/lvm
+ touch /tmp/lvm/lvm.conf
+ LVM_SYSTEM_DIR=/tmp/lvm
+ export LVM_SYSTEM_DIR
+ lvmetad
+ modprobe dm_mod
[    0.936879] device-mapper: uevent: version 1.0.3
[    0.938117] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel
+ lvm pvscan --cache --activate ay
  pvscan[157] activating all complete VGs (no args)
  pvscan[157] VG centos run autoactivation.
  2 logical volume(s) in volume group "centos" now active
+ mdadm -As --auto=yes --run
mdadm: No arrays found in config file or automatically
+ ldmtool create all
ldmtool: error while loading shared libraries: libjson-glib-1.0.so.0: cannot open shared object file: No such file or directory
+ test 1 = 1
+ test '' '!=' 1
+ uname -a
Linux (none) 4.19.90-vhulk2103.1.0.h462.eulerosv2r9.aarch64 #1 SMP Thu Apr 22 04:55:25 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
+ ls -lR /dev
/dev:
total 0
crw-r--r-- 1 root root  10, 235 Jul 26 07:58 autofs
drwxr-xr-x 2 root root      160 Jul 26 07:58 block
drwxr-xr-x 2 root root       80 Jul 26 07:58 bsg
drwxr-xr-x 2 root root       80 Jul 26 07:58 centos
drwxr-xr-x 2 root root     2060 Jul 26 07:58 char
crw------- 1 root root   5,   1 Jul 26 07:58 console
lrwxrwxrwx 1 root root       11 Jul 26 07:58 core -> /proc/kcore
crw------- 1 root root  10,  62 Jul 26 07:58 cpu_dma_latency
crw------- 1 root root  10, 203 Jul 26 07:58 cuse
drwxr-xr-x 6 root root      120 Jul 26 07:58 disk
brw-rw---- 1 root disk 252,   0 Jul 26 07:58 dm-0
brw-rw---- 1 root disk 252,   1 Jul 26 07:58 dm-1
lrwxrwxrwx 1 root root       13 Jul 26 07:58 fd -> /proc/self/fd
crw-rw-rw- 1 root root   1,   7 Jul 26 07:58 full
crw-rw-rw- 1 root root  10, 229 Jul 26 07:58 fuse
crw------- 1 root root 254,   0 Jul 26 07:58 gpiochip0
crw------- 1 root root  10, 183 Jul 26 07:58 hwrng
drwxr-xr-x 2 root root       60 Jan  1  1970 input
crw-r--r-- 1 root root   1,  11 Jul 26 07:58 kmsg
crw-rw---- 1 root disk  10, 237 Jul 26 07:58 loop-control
drwxr-xr-x 2 root root      100 Jul 26 07:58 mapper
crw------- 1 root root   1,   1 Jul 26 07:58 mem
crw------- 1 root root  10,  59 Jul 26 07:58 memory_bandwidth
drwxr-xr-x 2 root root       60 Jul 26 07:58 net
crw------- 1 root root  10,  61 Jul 26 07:58 network_latency
crw------- 1 root root  10,  60 Jul 26 07:58 network_throughput
crw-rw-rw- 1 root root   1,   3 Jul 26 07:58 null
crw------- 1 root root 108,   0 Jul 26 07:58 ppp
crw-rw-rw- 1 root root   5,   2 Jul 26 07:58 ptmx
drwxr-xr-x 2 root root        0 Jul 26 07:58 pts
crw-rw-rw- 1 root root   1,   8 Jul 26 07:58 random
drwxr-xr-x 2 root root       60 Jan  1  1970 raw
crw------- 1 root root  10, 242 Jul 26 07:58 rfkill
lrwxrwxrwx 1 root root        4 Jul 26 07:58 rtc -> rtc0
crw------- 1 root root 251,   0 Jul 26 07:58 rtc0
brw------- 1 root root   8,   0 Jul 26 07:58 sda
brw------- 1 root root   8,   1 Jul 26 07:58 sda1
brw------- 1 root root   8,   2 Jul 26 07:58 sda2
brw------- 1 root root   8,  16 Jul 26 07:58 sdb
crw-rw---- 1 root disk  21,   0 Jul 26 07:58 sg0
crw-rw---- 1 root disk  21,   1 Jul 26 07:58 sg1
drwxrwxrwt 2 root root       40 Jul 26 07:58 shm
crw------- 1 root root  10, 231 Jul 26 07:58 snapshot
lrwxrwxrwx 1 root root       15 Jul 26 07:58 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root       15 Jul 26 07:58 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root       15 Jul 26 07:58 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root root   5,   0 Jul 26 07:58 tty
crw------- 1 root root   4,   0 Jul 26 07:58 tty0
crw------- 1 root root   4,   1 Jul 26 07:58 tty1
crw------- 1 root root   4,  10 Jul 26 07:58 tty10
crw------- 1 root root   4,  11 Jul 26 07:58 tty11
crw------- 1 root root   4,  12 Jul 26 07:58 tty12
crw------- 1 root root   4,  13 Jul 26 07:58 tty13
crw------- 1 root root   4,  14 Jul 26 07:58 tty14
crw------- 1 root root   4,  15 Jul 26 07:58 tty15
crw------- 1 root root   4,  16 Jul 26 07:58 tty16
crw------- 1 root root   4,  17 Jul 26 07:58 tty17
crw------- 1 root root   4,  18 Jul 26 07:58 tty18
crw------- 1 root root   4,  19 Jul 26 07:58 tty19
crw------- 1 root root   4,   2 Jul 26 07:58 tty2
crw------- 1 root root   4,  20 Jul 26 07:58 tty20
crw------- 1 root root   4,  21 Jul 26 07:58 tty21
crw------- 1 root root   4,  22 Jul 26 07:58 tty22
crw------- 1 root root   4,  23 Jul 26 07:58 tty23
crw------- 1 root root   4,  24 Jul 26 07:58 tty24
crw------- 1 root root   4,  25 Jul 26 07:58 tty25
crw------- 1 root root   4,  26 Jul 26 07:58 tty26
crw------- 1 root root   4,  27 Jul 26 07:58 tty27
crw------- 1 root root   4,  28 Jul 26 07:58 tty28
crw------- 1 root root   4,  29 Jul 26 07:58 tty29
crw------- 1 root root   4,   3 Jul 26 07:58 tty3
crw------- 1 root root   4,  30 Jul 26 07:58 tty30
crw------- 1 root root   4,  31 Jul 26 07:58 tty31
crw------- 1 root root   4,  32 Jul 26 07:58 tty32
crw------- 1 root root   4,  33 Jul 26 07:58 tty33
crw------- 1 root root   4,  34 Jul 26 07:58 tty34
crw------- 1 root root   4,  35 Jul 26 07:58 tty35
crw------- 1 root root   4,  36 Jul 26 07:58 tty36
crw------- 1 root root   4,  37 Jul 26 07:58 tty37
crw------- 1 root root   4,  38 Jul 26 07:58 tty38
crw------- 1 root root   4,  39 Jul 26 07:58 tty39
crw------- 1 root root   4,   4 Jul 26 07:58 tty4
crw------- 1 root root   4,  40 Jul 26 07:58 tty40
crw------- 1 root root   4,  41 Jul 26 07:58 tty41
crw------- 1 root root   4,  42 Jul 26 07:58 tty42
crw------- 1 root root   4,  43 Jul 26 07:58 tty43
crw------- 1 root root   4,  44 Jul 26 07:58 tty44
crw------- 1 root root   4,  45 Jul 26 07:58 tty45
crw------- 1 root root   4,  46 Jul 26 07:58 tty46
crw------- 1 root root   4,  47 Jul 26 07:58 tty47
crw------- 1 root root   4,  48 Jul 26 07:58 tty48
crw------- 1 root root   4,  49 Jul 26 07:58 tty49
crw------- 1 root root   4,   5 Jul 26 07:58 tty5
crw------- 1 root root   4,  50 Jul 26 07:58 tty50
crw------- 1 root root   4,  51 Jul 26 07:58 tty51
crw------- 1 root root   4,  52 Jul 26 07:58 tty52
crw------- 1 root root   4,  53 Jul 26 07:58 tty53
crw------- 1 root root   4,  54 Jul 26 07:58 tty54
crw------- 1 root root   4,  55 Jul 26 07:58 tty55
crw------- 1 root root   4,  56 Jul 26 07:58 tty56
crw------- 1 root root   4,  57 Jul 26 07:58 tty57
crw------- 1 root root   4,  58 Jul 26 07:58 tty58
crw------- 1 root root   4,  59 Jul 26 07:58 tty59
crw------- 1 root root   4,   6 Jul 26 07:58 tty6
crw------- 1 root root   4,  60 Jul 26 07:58 tty60
crw------- 1 root root   4,  61 Jul 26 07:58 tty61
crw------- 1 root root   4,  62 Jul 26 07:58 tty62
crw------- 1 root root   4,  63 Jul 26 07:58 tty63
crw------- 1 root root   4,   7 Jul 26 07:58 tty7
crw------- 1 root root   4,   8 Jul 26 07:58 tty8
crw------- 1 root root   4,   9 Jul 26 07:58 tty9
crw------- 1 root root 204,  64 Jul 26 07:58 ttyAMA0
crw------- 1 root root   4,  64 Jul 26 07:58 ttyS0
crw------- 1 root root  10, 239 Jul 26 07:58 uhid
crw-rw-rw- 1 root root   1,   9 Jul 26 07:58 urandom
crw------- 1 root root 245,   0 Jul 26 07:58 usbmon0
crw------- 1 root root   7,   0 Jul 26 07:58 vcs
crw------- 1 root root   7,   1 Jul 26 07:58 vcs1
crw------- 1 root root   7, 128 Jul 26 07:58 vcsa
crw------- 1 root root   7, 129 Jul 26 07:58 vcsa1
crw------- 1 root root   7,  64 Jul 26 07:58 vcsu
crw------- 1 root root   7,  65 Jul 26 07:58 vcsu1
drwxr-xr-x 2 root root       60 Jul 26 07:58 vfio
crw------- 1 root root  10,  63 Jul 26 07:58 vga_arbiter
crw------- 1 root root  10, 238 Jul 26 07:58 vhost-net
crw------- 1 root root  10, 241 Jul 26 07:58 vhost-vsock
drwxr-xr-x 2 root root       60 Jul 26 07:58 virtio-ports
crw------- 1 root root 241,   1 Jul 26 07:58 vport2p1
crw-rw-rw- 1 root root   1,   5 Jul 26 07:58 zero

/dev/block:
total 0
lrwxrwxrwx 1 root root 7 Jul 26 07:58 252:0 -> ../dm-0
lrwxrwxrwx 1 root root 7 Jul 26 07:58 252:1 -> ../dm-1
lrwxrwxrwx 1 root root 6 Jul 26 07:58 8:0 -> ../sda
lrwxrwxrwx 1 root root 7 Jul 26 07:58 8:1 -> ../sda1
lrwxrwxrwx 1 root root 6 Jul 26 07:58 8:16 -> ../sdb
lrwxrwxrwx 1 root root 7 Jul 26 07:58 8:2 -> ../sda2

/dev/bsg:
total 0
crw------- 1 root root 247, 0 Jul 26 07:58 0:0:0:0
crw------- 1 root root 247, 1 Jul 26 07:58 0:0:1:0

/dev/centos:
total 0
lrwxrwxrwx 1 root root 7 Jul 26 07:58 root -> ../dm-1
lrwxrwxrwx 1 root root 7 Jul 26 07:58 swap -> ../dm-0

/dev/char:
total 0
lrwxrwxrwx 1 root root  8 Jul 26 07:58 10:183 -> ../hwrng
lrwxrwxrwx 1 root root 11 Jul 26 07:58 10:231 -> ../snapshot
lrwxrwxrwx 1 root root  9 Jul 26 07:58 10:235 -> ../autofs
lrwxrwxrwx 1 root root 17 Jul 26 07:58 10:236 -> ../mapper/control
lrwxrwxrwx 1 root root 19 Jul 26 07:58 10:59 -> ../memory_bandwidth
lrwxrwxrwx 1 root root 21 Jul 26 07:58 10:60 -> ../network_throughput
lrwxrwxrwx 1 root root 18 Jul 26 07:58 10:61 -> ../network_latency
lrwxrwxrwx 1 root root 18 Jul 26 07:58 10:62 -> ../cpu_dma_latency
lrwxrwxrwx 1 root root 14 Jul 26 07:58 10:63 -> ../vga_arbiter
lrwxrwxrwx 1 root root 13 Jul 26 07:58 13:63 -> ../input/mice
lrwxrwxrwx 1 root root 13 Jul 26 07:58 162:0 -> ../raw/rawctl
lrwxrwxrwx 1 root root  6 Jul 26 07:58 1:1 -> ../mem
lrwxrwxrwx 1 root root  7 Jul 26 07:58 1:11 -> ../kmsg
lrwxrwxrwx 1 root root  7 Jul 26 07:58 1:3 -> ../null
lrwxrwxrwx 1 root root  7 Jul 26 07:58 1:5 -> ../zero
lrwxrwxrwx 1 root root  7 Jul 26 07:58 1:7 -> ../full
lrwxrwxrwx 1 root root  9 Jul 26 07:58 1:8 -> ../random
lrwxrwxrwx 1 root root 10 Jul 26 07:58 1:9 -> ../urandom
lrwxrwxrwx 1 root root 10 Jul 26 07:58 204:64 -> ../ttyAMA0
lrwxrwxrwx 1 root root  6 Jul 26 07:58 21:0 -> ../sg0
lrwxrwxrwx 1 root root  6 Jul 26 07:58 21:1 -> ../sg1
lrwxrwxrwx 1 root root 11 Jul 26 07:58 241:1 -> ../vport2p1
lrwxrwxrwx 1 root root 10 Jul 26 07:58 245:0 -> ../usbmon0
lrwxrwxrwx 1 root root 14 Jul 26 07:58 247:0 -> ../bsg/0:0:0:0
lrwxrwxrwx 1 root root 14 Jul 26 07:58 247:1 -> ../bsg/0:0:1:0
lrwxrwxrwx 1 root root  7 Jul 26 07:58 251:0 -> ../rtc0
lrwxrwxrwx 1 root root 12 Jul 26 07:58 254:0 -> ../gpiochip0
lrwxrwxrwx 1 root root  7 Jul 26 07:58 4:0 -> ../tty0
lrwxrwxrwx 1 root root  7 Jul 26 07:58 4:1 -> ../tty1
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:10 -> ../tty10
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:11 -> ../tty11
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:12 -> ../tty12
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:13 -> ../tty13
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:14 -> ../tty14
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:15 -> ../tty15
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:16 -> ../tty16
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:17 -> ../tty17
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:18 -> ../tty18
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:19 -> ../tty19
lrwxrwxrwx 1 root root  7 Jul 26 07:58 4:2 -> ../tty2
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:20 -> ../tty20
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:21 -> ../tty21
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:22 -> ../tty22
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:23 -> ../tty23
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:24 -> ../tty24
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:25 -> ../tty25
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:26 -> ../tty26
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:27 -> ../tty27
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:28 -> ../tty28
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:29 -> ../tty29
lrwxrwxrwx 1 root root  7 Jul 26 07:58 4:3 -> ../tty3
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:30 -> ../tty30
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:31 -> ../tty31
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:32 -> ../tty32
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:33 -> ../tty33
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:34 -> ../tty34
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:35 -> ../tty35
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:36 -> ../tty36
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:37 -> ../tty37
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:38 -> ../tty38
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:39 -> ../tty39
lrwxrwxrwx 1 root root  7 Jul 26 07:58 4:4 -> ../tty4
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:40 -> ../tty40
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:41 -> ../tty41
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:42 -> ../tty42
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:43 -> ../tty43
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:44 -> ../tty44
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:45 -> ../tty45
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:46 -> ../tty46
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:47 -> ../tty47
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:48 -> ../tty48
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:49 -> ../tty49
lrwxrwxrwx 1 root root  7 Jul 26 07:58 4:5 -> ../tty5
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:50 -> ../tty50
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:51 -> ../tty51
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:52 -> ../tty52
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:53 -> ../tty53
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:54 -> ../tty54
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:55 -> ../tty55
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:56 -> ../tty56
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:57 -> ../tty57
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:58 -> ../tty58
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:59 -> ../tty59
lrwxrwxrwx 1 root root  7 Jul 26 07:58 4:6 -> ../tty6
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:60 -> ../tty60
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:61 -> ../tty61
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:62 -> ../tty62
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:63 -> ../tty63
lrwxrwxrwx 1 root root  8 Jul 26 07:58 4:64 -> ../ttyS0
lrwxrwxrwx 1 root root  7 Jul 26 07:58 4:7 -> ../tty7
lrwxrwxrwx 1 root root  7 Jul 26 07:58 4:8 -> ../tty8
lrwxrwxrwx 1 root root  7 Jul 26 07:58 4:9 -> ../tty9
lrwxrwxrwx 1 root root  6 Jul 26 07:58 5:0 -> ../tty
lrwxrwxrwx 1 root root 10 Jul 26 07:58 5:1 -> ../console
lrwxrwxrwx 1 root root  7 Jul 26 07:58 5:2 -> ../ptmx
lrwxrwxrwx 1 root root  6 Jul 26 07:58 7:0 -> ../vcs
lrwxrwxrwx 1 root root  7 Jul 26 07:58 7:1 -> ../vcs1
lrwxrwxrwx 1 root root  7 Jul 26 07:58 7:128 -> ../vcsa
lrwxrwxrwx 1 root root  8 Jul 26 07:58 7:129 -> ../vcsa1
lrwxrwxrwx 1 root root  7 Jul 26 07:58 7:64 -> ../vcsu
lrwxrwxrwx 1 root root  8 Jul 26 07:58 7:65 -> ../vcsu1

/dev/disk:
total 0
drwxr-xr-x 2 root root 220 Jul 26 07:58 by-id
drwxr-xr-x 2 root root  80 Jul 26 07:58 by-partuuid
drwxr-xr-x 2 root root 120 Jul 26 07:58 by-path
drwxr-xr-x 2 root root 120 Jul 26 07:58 by-uuid

/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root 10 Jul 26 07:58 dm-name-centos-root -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jul 26 07:58 dm-name-centos-swap -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jul 26 07:58 dm-uuid-LVM-BIwFTf7s3pv0vkxdZ4UucCxfHHv4CTQhEgZrJyTs4zcFnnAUz9V1DB09yRTM8jAX -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jul 26 07:58 dm-uuid-LVM-BIwFTf7s3pv0vkxdZ4UucCxfHHv4CTQhqRfWRsw4NTykmDin7BZipL3tpr5Gc3Li -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jul 26 07:58 lvm-pv-uuid-hGMSJF-d4WI-yIi0-HpQX-sRvt-fio8-A99OtE -> ../../sda2
lrwxrwxrwx 1 root root  9 Jul 26 07:58 scsi-0QEMU_QEMU_HARDDISK_appliance -> ../../sdb
lrwxrwxrwx 1 root root  9 Jul 26 07:58 scsi-0QEMU_QEMU_HARDDISK_hd0 -> ../../sda
lrwxrwxrwx 1 root root 10 Jul 26 07:58 scsi-0QEMU_QEMU_HARDDISK_hd0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jul 26 07:58 scsi-0QEMU_QEMU_HARDDISK_hd0-part2 -> ../../sda2

/dev/disk/by-partuuid:
total 0
lrwxrwxrwx 1 root root 10 Jul 26 07:58 000a92de-01 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jul 26 07:58 000a92de-02 -> ../../sda2

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root  9 Jul 26 07:58 platform-4010000000.pcie-pci-0000:00:02.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Jul 26 07:58 platform-4010000000.pcie-pci-0000:00:02.0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jul 26 07:58 platform-4010000000.pcie-pci-0000:00:02.0-scsi-0:0:0:0-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Jul 26 07:58 platform-4010000000.pcie-pci-0000:00:02.0-scsi-0:0:1:0 -> ../../sdb

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root  9 Jul 26 07:58 57da590a-314d-41ad-9da0-20439286c729 -> ../../sdb
lrwxrwxrwx 1 root root 10 Jul 26 07:58 6c56e543-3344-4385-9a1f-2c817b64eef4 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jul 26 07:58 e2d09889-532f-4310-81ef-3c107a1c2958 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jul 26 07:58 ff6b8c17-c852-4010-a8f9-24a5320b1a0f -> ../../sda1

/dev/input:
total 0
crw------- 1 root root 13, 63 Jul 26 07:58 mice

/dev/mapper:
total 0
lrwxrwxrwx 1 root root       7 Jul 26 07:58 centos-root -> ../dm-1
lrwxrwxrwx 1 root root       7 Jul 26 07:58 centos-swap -> ../dm-0
crw------- 1 root root 10, 236 Jul 26 07:58 control

/dev/net:
total 0
crw-rw-rw- 1 root root 10, 200 Jul 26 07:58 tun

/dev/pts:
total 0
c--------- 1 root root 5, 2 Jul 26 07:58 ptmx

/dev/raw:
total 0
crw------- 1 root root 162, 0 Jul 26 07:58 rawctl

/dev/shm:
total 0

/dev/vfio:
total 0
crw------- 1 root root 10, 196 Jul 26 07:58 vfio

/dev/virtio-ports:
total 0
lrwxrwxrwx 1 root root 11 Jul 26 07:58 org.libguestfs.channel.0 -> ../vport2p1
+ cat /proc/mounts
/dev/root / ext2 rw,noatime 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
tmpfs /run tmpfs rw,nosuid,relatime,size=202608k,mode=755 0 0
/dev /dev devtmpfs rw,relatime,size=469636k,nr_inodes=117409,mode=755 0 0
/dev/pts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0
shmfs /dev/shm tmpfs rw,relatime 0 0
+ cat /proc/mdstat
Personalities : 
unused devices: <none>
+ lvm config
+ lvm pvs
  PV         VG     Fmt  Attr PSize   PFree
  /dev/sda2  centos lvm2 a--  <15.00g    0 
+ lvm vgs
  VG     #PV #LV #SN Attr   VSize   VFree
  centos   1   2   0 wz--n- <15.00g    0 
+ lvm lvs
  LV   VG     Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root centos -wi-a----- 13.39g                                                    
  swap centos -wi-a-----  1.60g                                                    
+ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
+ ip r
+ cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory
+ lsmod
Module                  Size  Used by
dm_mod                172032  4
sg                     49152  0
libcrc32c              16384  0
crc8                   16384  0
crc7                   16384  0
crc_itu_t              16384  0
ext4                  786432  1
mbcache                16384  1 ext4
jbd2                  147456  1 ext4
virtio_pci             32768  0
virtio_mmio            20480  0
virtio_input           20480  0
virtio_balloon         20480  0
virtio_scsi            20480  2
sd_mod                 57344  3
nd_pmem                20480  0
nd_btt                 28672  1 nd_pmem
libnvdimm             176128  2 nd_btt,nd_pmem
virtio_net             57344  0
net_failover           20480  1 virtio_net
failover               16384  1 net_failover
virtio_crypto          28672  0
crypto_engine          16384  1 virtio_crypto
virtio_console         36864  0
virtio_rng             16384  0
virtio_blk             20480  0
virtio_ring            32768  10 virtio_rng,virtio_mmio,virtio_console,virtio_balloon,virtio_scsi,virtio_crypto,virtio_input,virtio_pci,virtio_blk,virtio_net
virtio                 16384  10 virtio_rng,virtio_mmio,virtio_console,virtio_balloon,virtio_scsi,virtio_crypto,virtio_input,virtio_pci,virtio_blk,virtio_net
ata_piix               36864  0
libata                303104  1 ata_piix
crc32_generic          16384  0
crct10dif_ce           16384  1

Comment 2 朱丹 2021-07-26 08:40:51 UTC
Next log:

+ date
Mon Jul 26 07:58:43 UTC 2021
+ echo -n 'clocksource: '
clocksource: + cat /sys/devices/system/clocksource/clocksource0/current_clocksource
arch_sys_counter
+ echo -n 'uptime: '
uptime: + cat /proc/uptime
1.30 0.11
+ cmd=guestfsd
++ grep -Eo 'guestfs_channel=[^[:space:]]+' /proc/cmdline
+ eval
+ test x '!=' x
+ test 1 = 1
+ cmd='guestfsd --verbose'
+ test '' = 1
+ false
+ test '' = 1
+ echo guestfsd --verbose
guestfsd --verbose
+ guestfsd --verbose
lvm_system_dir = /tmp/lvm
OCaml daemon loaded
trying to open virtio-serial channel '/dev/virtio-ports/org.libguestfs.channel.0'
2021-07-26T15:58:43.374122+08:00|info|qemu[9188]|[9188]|handle_control_message[372]|: virtio serial port '1' handle control message event = 6, value = 1
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
libguestfs: recv_from_daemon: received GUESTFS_LAUNCH_FLAG
libguestfs: appliance is up
libguestfs: trace: launch = 0
libguestfs: trace: list_filesystems
guestfsd: <= list_filesystems (0x1dc) request length 40 bytes
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/sdb
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/sda
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/sdb
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/sda
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: parted '-m' '-s' '--' '/dev/sda' 'unit' 'b' 'print'
[    1.479844] VFS: Open an exclusive opened block device for write sda2 [196 parted].
[    1.486191] VFS: Open an exclusive opened block device for write sda [196 parted].
[    1.487525] VFS: Open an exclusive opened block device for write sda2 [196 parted].
command: parted returned 0
command: parted: stdout:
BYT;
/dev/sda:17179869184B:scsi:512:512:msdos:QEMU QEMU HARDDISK:;
1:1048576B:1074790399B:1073741824B:xfs::boot;
2:1074790400B:17179869183B:16105078784B:::lvm;
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: parted '-m' '-s' '--' '/dev/sda' 'unit' 'b' 'print'
[    1.585067] VFS: Open an exclusive opened block device for write sda2 [200 parted].
[    1.590294] VFS: Open an exclusive opened block device for write sda [200 parted].
[    1.592693] VFS: Open an exclusive opened block device for write sda2 [200 parted].
command: parted returned 0
command: parted: stdout:
BYT;
/dev/sda:17179869184B:scsi:512:512:msdos:QEMU QEMU HARDDISK:;
1:1048576B:1074790399B:1073741824B:xfs::boot;
2:1074790400B:17179869183B:16105078784B:::lvm;
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: sfdisk '--help'
command: sfdisk returned 0
command: sfdisk: stdout:

Usage:
 sfdisk [options] <dev> [[-N] <part>]
 sfdisk [options] <command>

Display or manipulate a disk partition table.

Commands:
 -A, --activate <dev> [<part> ...] list or set bootable (P)MBR partitions
 -d, --dump <dev>                  dump partition table (usable for later input)
 -J, --json <dev>                  dump partition table in JSON format
 -g, --show-geometry [<dev> ...]   list geometry of all or specified devices
 -l, --list [<dev> ...]            list partitions of each device
 -F, --list-free [<dev> ...]       list unpartitioned free areas of each device
 -r, --reorder <dev>               fix partitions order (by start offset)
 -s, --show-size [<dev> ...]       list sizes of all or specified devices
 -T, --list-types                  print the recognized types (see -X)
 -V, --verify [<dev> ...]          test whether partitions seem correct
     --delete <dev> [<part> ...]   delete all or specified partitions

 --part-label <dev> <part> [<str>] print or change partition label
 --part-type <dev> <part> [<type>] print or change partition type
 --part-uuid <dev> <part> [<uuid>] print or change partition uuid
 --part-attrs <dev> <part> [<str>] print or change partition attributes

 <dev>                     device (usually disk) path
 <part>                    partition number
 <type>                    partition type, GUID for GPT, hex for MBR

Options:
 -a, --append              append partitions to existing partition table
 -b, --backup              backup partition table sectors (see -O)
     --bytes               print SIZE in bytes rather than in human readable format
     --move-data[=<typescript>] move partition data after relocation (requires -N)
     --move-use-fsync      use fsync after each write when move data
 -f, --force               disable all consistency checking
     --color[=<when>]      colorize output (auto, always or never)
                             colors are enabled by default
 -N, --partno <num>        specify partition number
 -n, --no-act              do everything except write to device
     --no-reread           do not check whether the device is in use
     --no-tell-kernel      do not tell kernel about changes
 -O, --backup-file <path>  override default backup file name
 -o, --output <list>       output columns
 -q, --quiet               suppress extra info messages
 -w, --wipe <mode>         wipe signatures (auto, always or never)
 -W, --wipe-partitions <mode>  wipe signatures from new partitions (auto, always or never)
 -X, --label <name>        specify label type (dos, gpt, ...)
 -Y, --label-nested <name> specify nested label type (dos, bsd)

 -G, --show-pt-geometry    deprecated, alias to --show-geometry
 -L, --Linux               deprecated, only for backward compatibility
 -u, --unit S              deprecated, only sector unit is supported

 -h, --help                display this help
 -v, --version             display version

Available output columns:
 gpt: Device Start End Sectors Size Type Type-UUID Attrs Name UUID
 dos: Device Start End Sectors Cylinders Size Type Id Attrs Boot End-C/H/S
      Start-C/H/S
 bsd: Slice Start End Sectors Cylinders Size Type Bsize Cpg Fsize
 sgi: Device Start End Sectors Cylinders Size Type Id Attrs
 sun: Device Start End Sectors Cylinders Size Type Id Flags

For more details see sfdisk(8).
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: sfdisk '--part-type' '/dev/sda' '1'
command: sfdisk returned 0
command: sfdisk: stdout:
83
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: fold-stdout-on-stderr sgdisk '/dev/sda' '-i' '1'
[    1.773107] VFS: Open an exclusive opened block device for write sda [208 sgdisk].
command: sgdisk returned 0
command: sgdisk: stderr:

***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. 
***************************************************************


Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
Partition GUID code: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 (Linux filesystem)
Partition unique GUID: 4326A8F0-921F-45A3-B1FD-44DF6EA017F9
First sector: 2048 (at 1024.0 KiB)
Last sector: 2099199 (at 1025.0 MiB)
Partition size: 2097152 sectors (1024.0 MiB)
Attribute flags: 0000000000000000
Partition name: 'Linux filesystem'
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: parted '-m' '-s' '--' '/dev/sda' 'unit' 'b' 'print'
[    1.852846] VFS: Open an exclusive opened block device for write sda2 [212 parted].
[    1.857730] VFS: Open an exclusive opened block device for write sda [212 parted].
[    1.859360] VFS: Open an exclusive opened block device for write sda2 [212 parted].
command: parted returned 0
command: parted: stdout:
BYT;
/dev/sda:17179869184B:scsi:512:512:msdos:QEMU QEMU HARDDISK:;
1:1048576B:1074790399B:1073741824B:xfs::boot;
2:1074790400B:17179869183B:16105078784B:::lvm;
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: parted '-m' '-s' '--' '/dev/sda' 'unit' 'b' 'print'
command: parted returned 0
command: parted: stdout:
BYT;
/dev/sda:17179869184B:scsi:512:512:msdos:QEMU QEMU HARDDISK:;
1:1048576B:1074790399B:1073741824B:xfs::boot;
2:1074790400B:17179869183B:16105078784B:::lvm;
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: sfdisk '--part-type' '/dev/sda' '2'
command: sfdisk returned 0
command: sfdisk: stdout:
8e
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: fold-stdout-on-stderr sgdisk '/dev/sda' '-i' '2'
command: sgdisk returned 0
command: sgdisk: stderr:

***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. 
***************************************************************


Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
Partition GUID code: E6D6D379-F507-44C2-A23C-238F2A3DF928 (Linux LVM)
Partition unique GUID: 332EA5D3-9BEC-4AE9-8EED-FE53EDE2F1A4
First sector: 2099200 (at 1.0 GiB)
Last sector: 33554431 (at 16.0 GiB)
Partition size: 31455232 sectors (15.0 GiB)
Attribute flags: 0000000000000000
Partition name: 'Linux LVM'
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: blkid '-c' '/dev/null' '-o' 'value' '-s' 'TYPE' '/dev/sda1'
command: blkid returned 0
command: blkid: stdout:
xfs
command: blkid '-c' '/dev/null' '-o' 'value' '-s' 'TYPE' '/dev/sda2'
command: blkid returned 0
command: blkid: stdout:
LVM2_member
command: lvm 'lvs' '--help'
command: lvm returned 0
command: lvm: stdout:
  lvs - Display information about logical volumes

  lvs
\t[ -H|--history ]
\t[ -a|--all ]
\t[ -o|--options String ]
\t[ -S|--select String ]
\t[ -O|--sort String ]
\t[    --segments ]
\t[    --aligned ]
\t[    --binary ]
\t[    --configreport log|vg|lv|pv|pvseg|seg ]
\t[    --foreign ]
\t[    --ignorelockingfailure ]
\t[    --ignoreskippedcluster ]
\t[    --logonly ]
\t[    --nameprefixes ]
\t[    --noheadings ]
\t[    --nolocking ]
\t[    --nosuffix ]
\t[    --readonly ]
\t[    --reportformat basic|json ]
\t[    --rows ]
\t[    --separator String ]
\t[    --shared ]
\t[    --trustcache ]
\t[    --unbuffered ]
\t[    --units r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E ]
\t[    --unquoted ]
\t[ COMMON_OPTIONS ]
\t[ VG|LV|Tag ... ]

  Common options for lvm:
\t[ -d|--debug ]
\t[ -h|--help ]
\t[ -q|--quiet ]
\t[ -v|--verbose ]
\t[ -y|--yes ]
\t[ -t|--test ]
\t[    --commandprofile String ]
\t[    --config String ]
\t[    --driverloaded y|n ]
\t[    --lockopt String ]
\t[    --longhelp ]
\t[    --profile String ]
\t[    --version ]

  Use --longhelp to show all options and advanced commands.
command: lvm 'lvs' '-o' 'vg_name,lv_name' '-S' 'lv_role=public && lv_skip_activation!=yes' '--noheadings' '--separator' '/'
command: lvm returned 0
command: lvm: stdout:
  centos/root
  centos/swap
command: blkid '-c' '/dev/null' '-o' 'value' '-s' 'TYPE' '/dev/centos/root'
command: blkid returned 0
command: blkid: stdout:
xfs
command: blkid '-c' '/dev/null' '-o' 'value' '-s' 'TYPE' '/dev/centos/swap'
command: blkid returned 0
command: blkid: stdout:
swap
guestfsd: => list_filesystems (0x1dc) took 0.88 secs
libguestfs: trace: list_filesystems = ["/dev/sda1", "xfs", "/dev/centos/root", "xfs", "/dev/centos/swap", "swap"]
[2021-07-26 15:58:44,287][INFO][All filesystem devices={'/dev/sda1': 'xfs', '/dev/centos/root': 'xfs', '/dev/centos/swap': 'swap'}][guest_image.py, _gain_valid_file_system_list:179][MainThread]
[2021-07-26 15:58:44,288][INFO][Remove invalid filesystem device=/dev/centos/swap.][guest_image.py, _gain_valid_file_system_list:187][MainThread]
libguestfs: trace: inspect_os
guestfsd: <= inspect_os (0x1e0) request length 40 bytes
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/sdb
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/sda
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/sdb
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/sda
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: parted '-m' '-s' '--' '/dev/sda' 'unit' 'b' 'print'
command: parted returned 0
command: parted: stdout:
BYT;
/dev/sda:17179869184B:scsi:512:512:msdos:QEMU QEMU HARDDISK:;
1:1048576B:1074790399B:1073741824B:xfs::boot;
2:1074790400B:17179869183B:16105078784B:::lvm;
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: parted '-m' '-s' '--' '/dev/sda' 'unit' 'b' 'print'
command: parted returned 0
command: parted: stdout:
BYT;
/dev/sda:17179869184B:scsi:512:512:msdos:QEMU QEMU HARDDISK:;
1:1048576B:1074790399B:1073741824B:xfs::boot;
2:1074790400B:17179869183B:16105078784B:::lvm;
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: sfdisk '--part-type' '/dev/sda' '1'
command: sfdisk returned 0
command: sfdisk: stdout:
83
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: fold-stdout-on-stderr sgdisk '/dev/sda' '-i' '1'
command: sgdisk returned 0
command: sgdisk: stderr:

***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. 
***************************************************************


Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
Partition GUID code: 0FC63DAF-8483-4772-8E79-3D69D8477DE4 (Linux filesystem)
Partition unique GUID: 48024B1D-7944-4336-86C3-27B5AC0E359D
First sector: 2048 (at 1024.0 KiB)
Last sector: 2099199 (at 1025.0 MiB)
Partition size: 2097152 sectors (1024.0 MiB)
Attribute flags: 0000000000000000
Partition name: 'Linux filesystem'
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: parted '-m' '-s' '--' '/dev/sda' 'unit' 'b' 'print'
command: parted returned 0
command: parted: stdout:
BYT;
/dev/sda:17179869184B:scsi:512:512:msdos:QEMU QEMU HARDDISK:;
1:1048576B:1074790399B:1073741824B:xfs::boot;
2:1074790400B:17179869183B:16105078784B:::lvm;
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: parted '-m' '-s' '--' '/dev/sda' 'unit' 'b' 'print'
command: parted returned 0
command: parted: stdout:
BYT;
/dev/sda:17179869184B:scsi:512:512:msdos:QEMU QEMU HARDDISK:;
1:1048576B:1074790399B:1073741824B:xfs::boot;
2:1074790400B:17179869183B:16105078784B:::lvm;
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: sfdisk '--part-type' '/dev/sda' '2'
command: sfdisk returned 0
command: sfdisk: stdout:
8e
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: fold-stdout-on-stderr sgdisk '/dev/sda' '-i' '2'
command: sgdisk returned 0
command: sgdisk: stderr:

***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. 
***************************************************************


Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
Partition GUID code: E6D6D379-F507-44C2-A23C-238F2A3DF928 (Linux LVM)
Partition unique GUID: 44ADDD68-E8FE-4D24-9BA7-A8E00EA2654A
First sector: 2099200 (at 1.0 GiB)
Last sector: 33554431 (at 16.0 GiB)
Partition size: 31455232 sectors (15.0 GiB)
Attribute flags: 0000000000000000
Partition name: 'Linux LVM'
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: blkid '-c' '/dev/null' '-o' 'value' '-s' 'TYPE' '/dev/sda1'
command: blkid returned 0
command: blkid: stdout:
xfs
command: blkid '-c' '/dev/null' '-o' 'value' '-s' 'TYPE' '/dev/sda2'
command: blkid returned 0
command: blkid: stdout:
LVM2_member
command: lvm 'lvs' '-o' 'vg_name,lv_name' '-S' 'lv_role=public && lv_skip_activation!=yes' '--noheadings' '--separator' '/'
command: lvm returned 0
command: lvm: stdout:
  centos/root
  centos/swap
command: blkid '-c' '/dev/null' '-o' 'value' '-s' 'TYPE' '/dev/centos/root'
command: blkid returned 0
command: blkid: stdout:
xfs
command: blkid '-c' '/dev/null' '-o' 'value' '-s' 'TYPE' '/dev/centos/swap'
command: blkid returned 0
command: blkid: stdout:
swap
check_for_filesystem_on: /dev/sda1 (xfs)
command: mount '-o' 'ro' '/dev/sda1' '/sysroot//'
[    3.140467] SGI XFS with ACLs, security attributes, no debug enabled
[    3.147824] XFS (sda1): Mounting V5 Filesystem
[    3.333271] XFS (sda1): Ending clean mount
command: mount returned 0
chroot: /sysroot: running 'is_file: /grub/menu.lst'
chroot: /sysroot: running 'is_file: /grub/grub.conf'
chroot: /sysroot: running 'is_file: /grub2/grub.cfg'
check_filesystem: /dev/sda1 matched Grub /boot
command: umount '/sysroot'
[    3.345353] XFS (sda1): Unmounting Filesystem
command: umount returned 0
check_for_filesystem_on: /dev/centos/root (xfs)
command: mount '-o' 'ro' '/dev/centos/root' '/sysroot//'
[    3.362779] XFS (dm-1): Mounting V5 Filesystem
[    3.444857] XFS (dm-1): Ending clean mount
command: mount returned 0
chroot: /sysroot: running 'is_file: /grub/menu.lst'
chroot: /sysroot: running 'is_file: /grub/grub.conf'
chroot: /sysroot: running 'is_file: /grub2/grub.cfg'
chroot: /sysroot: running 'is_dir: /etc'
chroot: /sysroot: running 'is_dir: /bin'
chroot: /sysroot: running 'is_dir: /etc'
chroot: /sysroot: running 'is_dir: /bin'
chroot: /sysroot: running 'is_dir: /etc'
chroot: /sysroot: running 'is_dir: /bin'
chroot: /sysroot: running 'is_file: /hurd/console'
chroot: /sysroot: running 'is_dir: /etc'
chroot: /sysroot: running 'is_dir: /bin'
chroot: /sysroot: running 'is_dir: /etc'
chroot: /sysroot: running 'is_dir: /bin'
chroot: /sysroot: running 'is_symlink: /bin'
chroot: /sysroot: running 'readlink: /bin'
chroot: /sysroot: running 'is_file: /etc/fstab'
check_filesystem: /dev/centos/root matched Linux root
check_tests: checking /etc/os-release
chroot: /sysroot: running 'is_file: /etc/os-release'
chroot: /sysroot: running 'parse_os_release'
parse_version_from_major_minor: parsing '7'
check_tests: checking /etc/lsb-release
chroot: /sysroot: running 'is_file: /etc/lsb-release'
check_tests: checking /etc/oracle-release
chroot: /sysroot: running 'is_file: /etc/oracle-release'
check_tests: checking /etc/oracle-release
chroot: /sysroot: running 'is_file: /etc/oracle-release'
check_tests: checking /etc/oracle-release
chroot: /sysroot: running 'is_file: /etc/oracle-release'
check_tests: checking /etc/centos-release
chroot: /sysroot: running 'is_file: /etc/centos-release'
chroot: /sysroot: running 'parse_generic'
parse_generic: product_name = CentOS Linux release 7.5.1804 (Core) 
check_tests: checking /etc/centos-release
chroot: /sysroot: running 'is_file: /etc/centos-release'
chroot: /sysroot: running 'parse_generic'
parse_generic: product_name = CentOS Linux release 7.5.1804 (Core) 
chroot: /sysroot: running 'is_file: /bin/bash'
chroot: /sysroot: running 'realpath: /bin/bash'
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /usr/bin/bash
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
chroot: /sysroot: running 'file: /usr/bin/bash'
command: file '-zb' '/sysroot//usr/bin/bash'
command: file returned 0
command: file: stdout:
ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=765c505bb8a234fcd64ede405fa7fcb25734f06a, stripped
chroot: /sysroot: running 'is_file: /etc/fstab'
chroot: /sysroot: running 'check_fstab_aug'
chroot: /sysroot: running 'is_file: /etc/mdadm.conf'
chroot: /sysroot: running 'is_file: /etc/mdadm/mdadm.conf'
augeas pathexpr = /augeas/load/*[ "/etc/fstab/" !~ regexp('^') + glob(incl) + regexp('/.*') ]
check_fstab_entry: augeas path: /files/etc/fstab/3
check_fstab_entry: spec=/dev/mapper/centos-swap
check_fstab_entry: mp=swap
resolve_fstab_device: /dev/mapper/centos-swap matched /dev/mapper
command: lvm 'lvs' '-o' 'vg_name,lv_name' '-S' 'lv_role=public && lv_skip_activation!=yes' '--noheadings' '--separator' '/'
command: lvm returned 0
command: lvm: stdout:
  centos/root
  centos/swap
check_fstab_entry: vfstype=swap
check_fstab_entry: augeas path: /files/etc/fstab/2
check_fstab_entry: spec=UUID=ff6b8c17-c852-4010-a8f9-24a5320b1a0f
check_fstab_entry: mp=/boot
command: findfs 'UUID=ff6b8c17-c852-4010-a8f9-24a5320b1a0f'
command: findfs returned 0
command: findfs: stdout:
/dev/sda1
check_fstab_entry: vfstype=xfs
check_fstab_entry: augeas path: /files/etc/fstab/1
check_fstab_entry: spec=/dev/mapper/centos-root
check_fstab_entry: mp=/
resolve_fstab_device: /dev/mapper/centos-root matched /dev/mapper
command: lvm 'lvs' '-o' 'vg_name,lv_name' '-S' 'lv_role=public && lv_skip_activation!=yes' '--noheadings' '--separator' '/'
command: lvm returned 0
command: lvm: stdout:
  centos/root
  centos/swap
check_fstab_entry: vfstype=xfs
chroot: /sysroot: running 'check_hostname_from_file: /etc/HOSTNAME'
chroot: /sysroot: running 'check_hostname_from_file: /etc/hostname'
command: umount '/sysroot'
[    4.379674] XFS (dm-1): Unmounting Filesystem
command: umount returned 0
check_for_filesystem_on: /dev/centos/swap (swap)
inspect_os: fses:
fs: /dev/sda1 (xfs) role: other
fs: /dev/centos/root (xfs) role: root
    type: linux
    distro: centos
    package_format: rpm
    package_management: yum
    product_name: CentOS Linux release 7.5.1804 (Core) 
    version: 7.5
    arch: x86_64
    hostname: localhost.localdomain
    fstab: [(/dev/centos/swap, swap), (/dev/sda1, /boot), (/dev/centos/root, /)]

fs: /dev/centos/swap (swap) role: swap
inspect_get_roots: roots:
/dev/centos/root (xfs):
    type: linux
    distro: centos
    package_format: rpm
    package_management: yum
    product_name: CentOS Linux release 7.5.1804 (Core) 
    version: 7.5
    arch: x86_64
    hostname: localhost.localdomain
    fstab: [(/dev/centos/swap, swap), (/dev/sda1, /boot), (/dev/centos/root, /)]
guestfsd: => inspect_os (0x1e0) took 2.13 secs
libguestfs: trace: inspect_os = ["/dev/centos/root"]
[2021-07-26 15:58:46,421][INFO][Root device: /dev/centos/root][guest_image.py, _mount_file_system_list:147][MainThread]
libguestfs: trace: inspect_get_type "/dev/centos/root"
guestfsd: <= inspect_get_type (0x1e3) request length 60 bytes
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/centos/root
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
libguestfs: trace: inspect_get_type = "linux"
libguestfs: trace: inspect_get_product_name "/dev/centos/root"
guestfsd: => inspect_get_type (0x1e3) took 0.02 secs
guestfsd: <= inspect_get_product_name (0x1e7) request length 60 bytes
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/centos/root
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
libguestfs: trace: inspect_get_product_name = "CentOS Linux release 7.5.1804 (Core) "
[2021-07-26 15:58:46,471][INFO][  Product name: CentOS Linux release 7.5.1804 (Core) ][guest_image.py, _mount_file_system_list:151][MainThread]
libguestfs: trace: inspect_get_major_version "/dev/centos/root"
guestfsd: => inspect_get_product_name (0x1e7) took 0.02 secs
guestfsd: <= inspect_get_major_version (0x1e9) request length 60 bytes
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/centos/root
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
libguestfs: trace: inspect_get_major_version = 7
libguestfs: trace: inspect_get_minor_version "/dev/centos/root"
guestfsd: => inspect_get_major_version (0x1e9) took 0.02 secs
guestfsd: <= inspect_get_minor_version (0x1ea) request length 60 bytes
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/centos/root
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
libguestfs: trace: inspect_get_minor_version = 5
[2021-07-26 15:58:46,519][INFO][  Version:      7.5][guest_image.py, _mount_file_system_list:156][MainThread]
[2021-07-26 15:58:46,519][INFO][  Type:         linux][guest_image.py, _mount_file_system_list:159][MainThread]
libguestfs: trace: inspect_get_distro "/dev/centos/root"
guestfsd: => inspect_get_minor_version (0x1ea) took 0.02 secs
guestfsd: <= inspect_get_distro (0x1e4) request length 60 bytes
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/centos/root
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
libguestfs: trace: inspect_get_distro = "centos"
[2021-07-26 15:58:46,547][INFO][  Distro:       centos][guest_image.py, _mount_file_system_list:160][MainThread]
libguestfs: trace: inspect_get_mountpoints "/dev/centos/root"
guestfsd: => inspect_get_distro (0x1e4) took 0.02 secs
guestfsd: <= inspect_get_mountpoints (0x1f4) request length 60 bytes
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/centos/root
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
libguestfs: trace: inspect_get_mountpoints = ["/boot", "/dev/sda1", "/", "/dev/centos/root"]
[2021-07-26 15:58:46,571][INFO][Mount filesystem automaticly: /dev/centos/root<===>/][guest_image.py, mount_linux_fs:75][MainThread]
libguestfs: trace: mount "/dev/centos/root" "/"
guestfsd: => inspect_get_mountpoints (0x1f4) took 0.02 secs
guestfsd: <= mount (0x1) request length 68 bytes
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/centos/root
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: mount '/dev/centos/root' '/sysroot//'
[    4.582771] XFS (dm-1): Mounting V5 Filesystem
[    4.651577] XFS (dm-1): Ending clean mount
guestfsd: => mount (0x1) took 0.11 secs
libguestfs: trace: mount = 0
[2021-07-26 15:58:46,685][INFO][Mount filesystem automaticly: /dev/sda1<===>/boot][guest_image.py, mount_linux_fs:75][MainThread]
libguestfs: trace: mount "/dev/sda1" "/boot"
guestfsd: <= mount (0x1) request length 68 bytes
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/sda1
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
command: mount returned 0
command: mount '/dev/sda1' '/sysroot//boot'
[    4.694341] XFS (sda1): Mounting V5 Filesystem
[    4.803440] XFS (sda1): Ending clean mount
guestfsd: => mount (0x1) took 0.14 secs
libguestfs: trace: mount = 0
libguestfs: trace: dmesg
guestfsd: <= dmesg (0x5b) request length 40 bytes
commandrvf: stdout=y stderr=y flags=0x0
commandrvf: dmesg
libguestfs: trace: dmesg = "[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x481fd010]\n[    0.000000] Linux version 4.19.90-vhulk2103.1.0.h462.eulerosv2r9.aarch64 (abuild@szxrtosci10000) (gcc version 7.3.0 (GCC)) #1 SMP Thu Apr 22 04:55:25 UTC 2021\n[    0.000000] Machine model: linux,dummy-virt\n[    0.000000] debug: ignoring loglevel setting.\n[    0.000000] efi: Getting EFI parameters from FDT:\n[    0.000000] efi: UEFI not found.\n[    0.000000] parse cmdline param err, kbox reserve memory max size = 0x8000000, cur size = 0x0\n[    0.000000] cma: Reserved 64 MiB at 0x000000007c000000\n[    0.000000] memory reserve information:\n[    0.000000]   reserved type: 7\n[    0.000000]   enable       : no\n[    0.000000] NUMA: No NUMA configuration found\n[    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000007fffffff]\n[    0.000000] NUMA: NODE_DATA [mem 0x7bfe82c0-0x7bfe9bff]\n[    0.000000] Zone ranges:\n[    0.000000]   DMA32    [mem 0x0000000040000000-0x000000007fffffff]\n[    0.000000]   Normal   empty\n[    0.000000] Movable zone start for each node\n[    0.000000] Early memory node ranges\n[    0.000000]   node   0: [mem 0x0000000040000000-0x000000007fffffff]\n[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]\n[    0.000000] On node 0 totalpages: 262144\n[    0.000000]   DMA32 zone: 4096 pages used for memmap\n[    0.000000]   DMA32 zone: 0 pages reserved\n[    0.000000]   DMA32 zone: 262144 pages, LIFO batch:63\n[    0.000000] psci: probing for conduit method from DT.\n[    0.000000] psci: PSCIv1.0 detected in firmware.\n[    0.000000] psci: Using standard PSCI v0.2 function IDs\n[    0.000000] psci: Trusted OS migration not required\n[    0.000000] psci: SMC Calling Convention v1.1\n[    0.000000] random: get_random_bytes called from start_kernel+0xa8/0x504 with crng_init=0\n[    0.000000] percpu: Embedded 25 pages/cpu s64664 r8192 d29544 u102400\n[    0.000000] pcpu-alloc: s64664 r8192 d29544 u102400 alloc=25*4096\n[    0.000000] pcpu-alloc: [0] 0 \n[    0.000000] Detected VIPT I-cache on CPU0\n[    0.000000] CPU features: enabling workaround for Mismatched cache type\n[    0.000000] CPU features: enabling workaround for Hisi 1620 Cache Readunique Disable\n[    0.000000] CPU features: detected: GIC system register CPU interface\n[    0.000000] CPU features: detected: Hardware dirty bit management\n[    0.000000] CPU features: detected: Speculative Store Bypassing Safe (SSBS)\n[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258048\n[    0.000000] Policy zone: DMA32\n[    0.000000] Kernel command line: panic=1 console=ttyAMA0 earlyprintk=pl011,,0x9000000 ignore_loglevel efi-rtc=noprobe edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm\n[    0.000000] Memory: 939276K/1048576K available (10364K kernel code, 1448K rwdata, 3612K rodata, 4416K init, 2375K bss, 43764K reserved, 65536K cma-reserved)\n[    0.000000] E820: [mem 0x0000000040000000-0x000000007fffffff] usable\n[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1\n[    0.000000] ftrace: allocating 35361 entries in 139 pages\n[    0.000000] rcu: Hierarchical RCU implementation.\n[    0.000000] rcu: \tRCU restricting CPUs from NR_CPUS=1024 to nr_cpu_ids=1.\n[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1\n[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0\n[    0.000000] GICv3: Distributor has no Range Selector support\n[    0.000000] GICv3: no VLPI support, no direct LPI support\n[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000080a0000\n[    0.000000] ITS [mem 0x08080000-0x0809ffff]\n[    0.000000] ITS@0x0000000008080000: allocated 8192 Devices @7a930000 (indirect, esz 8, psz 64K, shr 1)\n[    0.000000] ITS@0x0000000008080000: allocated 8192 Interrupt Collections @7a940000 (flat, esz 8, psz 64K, shr 1)\n[    0.000000] GICv3: using LPI property table @0x000000007a950000\n[    0.000000] Dummy vpend table: 0x7a970000\n[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x000000007a960000\n[    0.000000] rcu: \tOffload RCU callbacks from CPUs: (none).\n[    0.000000] arch_timer: cp15 timer(s) running at 100.00MHz (virt).\n[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x171024e7e0, max_idle_ns: 440795205315 ns\n[    0.000002] sched_clock: 56 bits at 100MHz, resolution 10ns, wraps every 4398046511100ns\n[    0.000242] Console: colour dummy device 80x25\n[    0.000310] Calibrating delay loop (skipped), value calculated using timer frequency.. 200.00 BogoMIPS (lpj=400000)\n[    0.000314] pid_max: default: 32768 minimum: 301\n[    0.000416] Security Framework initialized\n[    0.000429] Yama: becoming mindful.\n[    0.000436] SELinux:  Disabled at boot.\n[    0.001356] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)\n[    0.001763] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)\n[    0.001806] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)\n[    0.001822] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)\n[    0.003182] Disabling memory control group subsystem\n[    0.004456] ASID allocator initialised with 32768 entries\n[    0.004525] rcu: Hierarchical SRCU implementation.\n[    0.005581] Platform MSI: its@8080000 domain created\n[    0.005615] PCI/MSI: /intc@8000000/its@8080000 domain created\n[    0.005667] EFI services will not be available.\n[    0.005726] smp: Bringing up secondary CPUs ...\n[    0.005728] smp: Brought up 1 node, 1 CPU\n[    0.005731] SMP: Total of 1 processors activated.\n[    0.005734] CPU features: detected: Privileged Access Never\n[    0.005736] CPU features: detected: LSE atomic instructions\n[    0.005737] CPU features: detected: User Access Override\n[    0.005740] CPU features: detected: Data cache clean to Point of Persistence\n[    0.005741] CPU features: detected: RAS Extension Support\n[    0.005742] CPU features: detected: ARM64 MPAM Extension Support\n[    0.005743] CPU features: detected: CRC32 instructions\n[    0.007472] CPU: All CPU(s) started at EL1\n[    0.007478] alternatives: patching kernel code\n[    0.011766] devtmpfs: initialized\n[    0.012880] Registered cp15_barrier emulation handler\n[    0.012886] Registered setend emulation handler\n[    0.012958] genirq: IRQ affinity hint notify enabled\n[    0.012962] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns\n[    0.012968] futex hash table entries: 256 (order: 2, 16384 bytes)\n[    0.014049] pinctrl core: initialized pinctrl subsystem\n[    0.014226] DMI not present or invalid.\n[    0.014623] NET: Registered protocol family 16\n[    0.014835] audit: initializing netlink subsys (disabled)\n[    0.015304] cpuidle: using governor menu\n[    0.015371] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.\n[    0.015504] audit: type=2000 audit(0.008:1): state=initialized audit_enabled=0 res=1\n[    0.016076] DMA: preallocated 256 KiB pool for atomic allocations\n[    0.016164] Serial: AMBA PL011 UART driver\n[    0.017916] 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 39, base_baud = 0) is a PL011 rev1\n[    0.065343] console [ttyAMA0] enabled\n[    0.067876] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages\n[    0.068951] ACPI: Interpreter disabled.\n[    0.069373] vgaarb: loaded\n[    0.069817] SCSI subsystem initialized\n[    0.070134] usbcore: USB support disabled\n[    0.070469] pps_core: LinuxPPS API ver. 1 registered\n[    0.070935] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti>\n[    0.071637] PTP clock support registered\n[    0.072041] EDAC MC: Ver: 3.0.0\n[    0.072928] NetLabel: Initializing\n[    0.073201] NetLabel:  domain hash size = 128\n[    0.073536] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO\n[    0.074042] NetLabel:  unlabeled traffic allowed by default\n[    0.074637] clocksource: Switched to clocksource arch_sys_counter\n[    0.093253] VFS: Disk quotas dquot_6.6.0\n[    0.093616] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)\n[    0.094316] pnp: PnP ACPI: disabled\n[    0.096313] NET: Registered protocol family 2\n[    0.097219] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes)\n[    0.097810] TCP established hash table entries: 8192 (order: 4, 65536 bytes)\n[    0.098455] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)\n[    0.099216] TCP: Hash tables configured (established 8192 bind 8192)\n[    0.099916] UDP hash table entries: 512 (order: 2, 16384 bytes)\n[    0.100407] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)\n[    0.101073] NET: Registered protocol family 1\n[    0.101420] PCI: CLS 0 bytes, default 64\n[    0.101901] Unpacking initramfs...\n[    0.111550] Freeing initrd memory: 3796K\n[    0.112333] hw perfevents: enabled with armv8_pmuv3 PMU driver, 13 counters available\n[    0.112973] kvm [1]: HYP mode not available\n[    0.113422] alg: self-tests disabled\n[    0.114251] Initialise system trusted keyrings\n[    0.114890] workingset: timestamp_bits=43 max_order=18 bucket_order=0\n[    0.115389] [memstat]starting init memstat for modules\n[    0.132101] zbud: loaded\n[    0.134030] NET: Registered protocol family 38\n[    0.134410] Key type asymmetric registered\n[    0.134816] Asymmetric key parser 'x509' registered\n[    0.135231] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)\n[    0.135860] io scheduler noop registered\n[    0.136196] io scheduler deadline registered (default)\n[    0.136684] io scheduler cfq registered\n[    0.136968] io scheduler mq-deadline registered (default)\n[    0.137357] io scheduler kyber registered\n[    0.137701] io scheduler bfq registered\n[    0.138092] atomic64_test: passed\n[    0.138912] pl061_gpio 9030000.pl061: PL061 GPIO chip @0x0000000009030000 registered\n[    0.139629] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4\n[    0.140213] pci-host-generic 4010000000.pcie: host bridge /pcie@eff0000 ranges:\n[    0.140753] pci-host-generic 4010000000.pcie:    IO 0x3dfe0000..0x3dffffff -> 0x00000000\n[    0.141348] pci-host-generic 4010000000.pcie:   MEM 0x0eff0000..0x3dfdffff -> 0x0eff0000\n[    0.141922] pci-host-generic 4010000000.pcie:   MEM 0x8000000000..0xffffffffff -> 0x8000000000\n[    0.142579] pci-host-generic 4010000000.pcie: ECAM at [mem 0x4010000000-0x401fffffff] for [bus 00-ff]\n[    0.143582] pci-host-generic 4010000000.pcie: PCI host bridge to bus 0000:00\n[    0.144132] pci_bus 0000:00: root bus resource [bus 00-ff]\n[    0.144567] pci_bus 0000:00: root bus resource [io  0x0000-0x1ffff]\n[    0.145075] pci_bus 0000:00: root bus resource [mem 0x0eff0000-0x3dfdffff]\n[    0.145601] pci_bus 0000:00: root bus resource [mem 0x8000000000-0xffffffffff]\n[    0.146224] pci 0000:00:00.0: [1b36:0008] type 00 class 0x060000\n[    0.147121] pci 0000:00:01.0: [1af4:1005] type 00 class 0x00ff00\n[    0.147642] pci 0000:00:01.0: reg 0x10: [io  0x0000-0x001f]\n[    0.148110] pci 0000:00:01.0: reg 0x20: [mem 0x00000000-0x00003fff 64bit pref]\n[    0.148896] pci 0000:00:02.0: [1af4:1004] type 00 class 0x010000\n[    0.149382] pci 0000:00:02.0: reg 0x10: [io  0x0000-0x003f]\n[    0.149807] pci 0000:00:02.0: reg 0x14: [mem 0x00000000-0x00000fff]\n[    0.150293] pci 0000:00:02.0: reg 0x20: [mem 0x00000000-0x00003fff 64bit pref]\n[    0.151138] pci 0000:00:03.0: [1af4:1003] type 00 class 0x078000\n[    0.151770] pci 0000:00:03.0: reg 0x10: [io  0x0000-0x003f]\n[    0.152235] pci 0000:00:03.0: reg 0x14: [mem 0x00000000-0x00000fff]\n[    0.152777] pci 0000:00:03.0: reg 0x20: [mem 0x00000000-0x00003fff 64bit pref]\n[    0.153734] pci 0000:00:01.0: BAR 4: assigned [mem 0x8000000000-0x8000003fff 64bit pref]\n[    0.154372] pci 0000:00:02.0: BAR 4: assigned [mem 0x8000004000-0x8000007fff 64bit pref]\n[    0.155040] pci 0000:00:03.0: BAR 4: assigned [mem 0x8000008000-0x800000bfff 64bit pref]\n[    0.155696] pci 0000:00:02.0: BAR 1: assigned [mem 0x0eff0000-0x0eff0fff]\n[    0.156222] pci 0000:00:03.0: BAR 1: assigned [mem 0x0eff1000-0x0eff1fff]\n[    0.156698] pci 0000:00:02.0: BAR 0: assigned [io  0x1000-0x103f]\n[    0.157138] pci 0000:00:03.0: BAR 0: assigned [io  0x1040-0x107f]\n[    0.157585] pci 0000:00:01.0: BAR 0: assigned [io  0x1080-0x109f]\n[    0.158463] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled\n[    0.159879] rdac: device handler registered\n[    0.160293] hp_sw: device handler registered\n[    0.160619] emc: device handler registered\n[    0.160959] alua: device handler registered\n[    0.161464] libphy: Fixed MDIO Bus: probed\n[    0.162033] mousedev: PS/2 mouse device common for all mice\n[    0.162799] rtc-pl031 9010000.pl031: rtc core: registered pl031 as rtc0\n[    0.164624] hidraw: raw HID events driver (C) Jiri Kosina\n[    0.165354] Initializing XFRM netlink socket\n[    0.165864] NET: Registered protocol family 10\n[    0.166967] Segment Routing with IPv6\n[    0.167305] NET: Registered protocol family 17\n[    0.167895] registered taskstats version 1\n[    0.168240] Loading compiled-in X.509 certificates\n[    0.169598] Loaded X.509 cert\n[    0.169901] zswap: loaded using pool lzo/zbud\n[    0.170761] Key type big_key registered\n[    0.171188] Key type encrypted registered\n[    0.171635] rtc-pl031 9010000.pl031: setting system clock to 2021-07-26 07:58:42 UTC (1627286322)\n[    0.172315] [PLE] Not support PLE, skip PLE init\n[    0.175667] RAS: RAS CPU correctable errors collector initialized.\n[    0.176227] SDEI NMI watchdog: Bind interrupt failed. Firmware may not support SDEI !\n[    0.176795] watchdog: sample period is: 4000000000\n[    0.177335] uart-pl011 9000000.pl011: no DMA platform data\n[    0.180442] Freeing unused kernel memory: 4416K\n[    0.182764] Run /init as init process\n[    0.201411] libata version 3.00 loaded.\n[    0.246329] virtio-pci 0000:00:01.0: enabling device (0000 -> 0003)\n[    0.249113] virtio-pci 0000:00:02.0: enabling device (0000 -> 0003)\n[    0.251547] random: fast init done\n[    0.251935] random: crng init done\n[    0.252872] scsi host0: Virtio SCSI HBA\n[    0.256970] scsi 0:0:0:0: Direct-Access     QEMU     QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5\n[    0.258864] virtio-pci 0000:00:03.0: enabling device (0000 -> 0003)\n[    0.262691] scsi 0:0:1:0: Direct-Access     QEMU     QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5\n[    0.418875] sd 0:0:0:0: Power-on or device reset occurred\n[    0.419396] sd 0:0:1:0: Power-on or device reset occurred\n[    0.420253] sd 0:0:1:0: [sdb] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB)\n[    0.420821] sd 0:0:0:0: [sda] 33554432 512-byte logical blocks: (17.2 GB/16.0 GiB)\n[    0.421514] sd 0:0:1:0: [sdb] Write Protect is off\n[    0.421863] sd 0:0:1:0: [sdb] Mode Sense: 63 00 00 08\n[    0.422322] sd 0:0:0:0: [sda] Write Protect is off\n[    0.422813] sd 0:0:0:0: [sda] Mode Sense: 63 00 00 08\n[    0.423189] sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA\n[    0.424217] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA\n[    0.426837] sd 0:0:1:0: [sdb] Attached SCSI disk\n[    0.427334]  sda: sda1 sda2\n[    0.428280] sd 0:0:0:0: [sda] Attached SCSI disk\n[    0.470708] EXT4-fs (sdb): mounting ext2 file system using the ext4 subsystem\n[    0.475750] EXT4-fs (sdb): mounted filesystem without journal. Opts: \n[    0.772578] sd 0:0:0:0: Attached scsi generic sg0 type 0\n[    0.776676] sd 0:0:1:0: Attached scsi generic sg1 type 0\n[    0.936879] device-mapper: uevent: version 1.0.3\n[    0.938117] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel\n[    1.479844] VFS: Open an exclusive opened block device for write sda2 [196 parted].\n[    1.486191] VFS: Open an exclusive opened block device for write sda [196 parted].\n[    1.487525] VFS: Open an exclusive opened block device for write sda2 [196 parted].\n[    1.585067] VFS: Open an exclusive opened block device for write sda2 [200 parted].\n[    1.590294] VFS: Open an exclusive opened block device for write sda [200 parted].\n[    1.592693] VFS: Open an exclusive opened block device for write sda2 [200 parted].\n[    1.773107] VFS: Open an exclusive opened block device for write sda [208 sgdisk].\n[    1.852846] VFS: Open an exclusive opened block device for write sda2 [212 parted].\n[    1.857730] VFS: Open an exclusive opened block device for write sda [212 parted].\n[    1.859360] VFS: Open an exclusive opened block device for write sda2 [212 parted].\n[    3.140467] SGI XFS with ACLs, security attributes, no debug enabled\n[    3.147824] XFS (sda1): Mounting V5 Filesystem\n[    3.333271] XFS (sda1): Ending clean mount\n[    3.345353] XFS (sda1): Unmounting Filesystem\n[    3.362779] XFS (dm-1): Mounting V5 Filesystem\n[    3.444857] XFS (dm-1): Ending clean mount\n[    4.379674] XFS (dm-1): Unmounting Filesystem\n[    4.582771] XFS (dm-1): Mounting V5 Filesystem\n[    4.651577] XFS (dm-1): Ending clean mount\n[    4.694341] XFS (sda1): Mounting V5 Filesystem\n[    4.803440] XFS (sda1): Ending clean mount\n"
libguestfs: trace: find "/"
libguestfs: trace: find0 "/" "/tmp/libguestfshOVBrE/find1.txt"
guestfsd: => dmesg (0x5b) took 0.00 secs
guestfsd: <= find0 (0xc4) request length 48 bytes
find /sysroot/ -print0
guestfsd: => find0 (0xc4) took 0.91 secs
libguestfs: trace: find0 = 0
d902d928283a-systemd-hostnamed.service-LxImyH/tmp", "var/yp"]
libguestfs: trace: lstatns "/bin"
guestfsd: <= lstatns (0x1a6) request length 48 bytes
guestfsd: => lstatns (0x1a6) took 0.00 secs
libguestfs: trace: lstatns = <struct guestfs_statns = st_dev: 64513, st_ino: 36949, st_mode: 41471, st_nlink: 1, st_uid: 0, st_gid: 0, st_rdev: 0, st_size: 7, st_blksize: 4096, st_blocks: 0, st_atime_sec: 1627284874, st_atime_nsec: 428000000, st_mtime_sec: 1626943362, st_mtime_nsec: 125000332, st_ctime_sec: 1626943362, st_ctime_nsec: 125000332, st_spare1: 0, st_spare2: 0, st_spare3: 0, st_spare4: 0, st_spare5: 0, st_spare6: 0, >
libguestfs: trace: lstatns "/boot"
guestfsd: <= lstatns (0x1a6) request length 52 bytes
guestfsd: => lstatns (0x1a6) took 0.00 secs
............................
............................
guestfsd: <= lstatns (0x1a6) request length 52 bytes
guestfsd: => lstatns (0x1a6) took 0.00 secs
libguestfs: trace: lstatns = <struct guestfs_statns = st_dev: 64513, st_ino: 8404012, st_mode: 16877, st_nlink: 2, st_uid: 0, st_gid: 0, st_rdev: 0, st_size: 6, st_blksize: 4096, st_blocks: 0, st_atime_sec: 1627264744, st_atime_nsec: 348000000, st_mtime_sec: 1523422795, st_mtime_nsec: 0, st_ctime_sec: 1626943362, st_ctime_nsec: 269000334, st_spare1: 0, st_spare2: 0, st_spare3: 0, st_spare4: 0, st_spare5: 0, st_spare6: 0, >
==========end==========
libguestfs: trace: close
libguestfs: closing guestfs handle 0xaaaae1711350 (state 2)
libguestfs: trace: internal_autosync
guestfsd: <= internal_autosync (0x11a) request length 40 bytes
umount-all: /proc/mounts: fsname=/dev/root dir=/ type=ext2 opts=rw,noatime freq=0 passno=0
umount-all: /proc/mounts: fsname=/proc dir=/proc type=proc opts=rw,relatime freq=0 passno=0
umount-all: /proc/mounts: fsname=/sys dir=/sys type=sysfs opts=rw,relatime freq=0 passno=0
umount-all: /proc/mounts: fsname=tmpfs dir=/run type=tmpfs opts=rw,nosuid,relatime,size=202608k,mode=755 freq=0 passno=0
umount-all: /proc/mounts: fsname=/dev dir=/dev type=devtmpfs opts=rw,relatime,size=469636k,nr_inodes=117409,mode=755 freq=0 passno=0
umount-all: /proc/mounts: fsname=/dev/pts dir=/dev/pts type=devpts opts=rw,relatime,mode=600,ptmxmode=000 freq=0 passno=0
umount-all: /proc/mounts: fsname=shmfs dir=/dev/shm type=tmpfs opts=rw,relatime freq=0 passno=0
umount-all: /proc/mounts: fsname=/dev/mapper/centos-root dir=/sysroot type=xfs opts=rw,relatime,attr2,inode64,noquota freq=0 passno=0
umount-all: /proc/mounts: fsname=/dev/sda1 dir=/sysroot/boot type=xfs opts=rw,relatime,attr2,inode64,noquota freq=0 passno=0
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: umount /sysroot/boot
[   59.249352] XFS (sda1): Unmounting Filesystem
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: umount /sysroot
[   59.349274] XFS (dm-1): Unmounting Filesystem
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/sdb
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: udevadm --debug settle -E /dev/sda
Unknown filesystem type 62656572 mounted on /sys/fs/cgroup.
fsync /dev/sda
guestfsd: => internal_autosync (0x11a) took 0.21 secs
libguestfs: trace: internal_autosync = 0
libguestfs: sending SIGTERM to process 9188
libguestfs: qemu maxrss 287984K
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfshOVBrE
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsibYnbb
Filename: demo3.py

Line #    Mem usage    Increment  Occurences   Line Contents
============================================================
     5    103.1 MiB    103.1 MiB           1   @profile
     6                                         def bb():
     7    103.5 MiB      0.4 MiB           1       guestfs = GuestImage(["dataenableengine-proxy-0.dataenableengine-proxy:10850"], "")
     8    103.5 MiB      0.0 MiB           1       logger.info(f'guestfs init')
     9    104.4 MiB      0.9 MiB           1       guestfs.mount_device()
    10    104.4 MiB      0.0 MiB           1       guestfs.g.dmesg()
    11    111.3 MiB      6.9 MiB           1       nodeset = guestfs.g.find("/")
    12    120.8 MiB      0.1 MiB       30413       for file in nodeset:
    13    120.8 MiB      0.0 MiB       30412           file_path = "/" + file
    14    120.8 MiB      9.4 MiB       30412           aa = guestfs.g.lstatns(file_path)
    15                                         
    16    120.8 MiB      0.0 MiB           1       print("==========end==========")

Comment 3 朱丹 2021-07-26 10:17:28 UTC
In the documentation we find "The caller must call guestfs_free_statns after use." But we didn't find a function like this.

Comment 4 Richard W.M. Jones 2021-07-26 12:02:28 UTC
It's defined in <guestfs.h> as:

extern GUESTFS_DLL_PUBLIC void guestfs_free_statns (struct guestfs_statns *);

Comment 5 朱丹 2021-07-26 12:34:36 UTC
Sorry,I think I don't made myself clear. Our project is created in python. How do we use this function?

Comment 6 Richard W.M. Jones 2021-07-26 12:43:04 UTC
Oh I see.  The Python bindings should be calling guestfs_free_statns
for you, so you shouldn't have to do anything.

For example the binding of lstatns is below.  Notice that
the 'r' pointer contains the pointer to struct guestfs_statns,
and it is freed (by calling guestfs_free_statns) once the
struct fields have been copied to a Python dict
(by guestfs_int_py_put_statns).  You can find this code
in the python/ directory of the libguestfs source after you
have built libguestfs.  Note the code is generated.

It could be that this code has a bug?

If you call g.lstatns in a loop, does the memory grow unboundedly?

#ifdef GUESTFS_HAVE_LSTATNS
PyObject *
guestfs_int_py_lstatns (PyObject *self, PyObject *args)
{
  PyObject *py_g;
  guestfs_h *g;
  PyObject *py_r = NULL;
  struct guestfs_statns *r;
  const char *path;

  if (!PyArg_ParseTuple (args, (char *) "Os:guestfs_lstatns",
                         &py_g, &path))
    goto out;
  g = get_handle (py_g);

  Py_BEGIN_ALLOW_THREADS
  r = guestfs_lstatns (g, path);
  Py_END_ALLOW_THREADS

  if (r == NULL) {
    PyErr_SetString (PyExc_RuntimeError, guestfs_last_error (g));
    goto out;
  }

  py_r = guestfs_int_py_put_statns (r);
  guestfs_free_statns (r);
  if (py_r == NULL) goto out;

  PyErr_Clear ();
 out:
  return py_r;
}
#endif

#ifdef GUESTFS_HAVE_STRUCT_STATNS
PyObject *
guestfs_int_py_put_statns (struct guestfs_statns *statns)
{
  PyObject *dict, *value;

  dict = PyDict_New ();
  if (dict == NULL)
    return NULL;
  value = PyLong_FromLongLong (statns->st_dev);
  if (value == NULL)
    goto err;
  PyDict_SetItemString (dict, "st_dev", value);
  value = PyLong_FromLongLong (statns->st_ino);
  if (value == NULL)
    goto err;

 ... lots of code omitted ...

  return dict;
 err:
  Py_CLEAR (dict);
  return NULL;
};
#endif

Comment 7 Richard W.M. Jones 2021-07-26 12:44:59 UTC
Are you sure it's the C struct which is being leaked?  I
wonder if it's actually the Python dict or fields in that
dict which are leaking.  Maybe we are not setting reference
counts correctly.

Having a better understanding of what exactly is leaking would help.

Comment 8 朱丹 2021-07-27 02:55:57 UTC
The memory grow unboundedly not just in the loop.
I try to call g.lstatns 1000+ tims.I didn't assign the result to a temporary variable this time. Every 10 calls, memory will grow a little bit. 
If possible, please take a look at it. I have pasted my code at the end.Looking forward to your reply!

Memory analysis is as follows:

  2722  37.6757812500 MiB   0.0039062500 MiB           1       g.lstatns('/var/spool/postfix/private/lmtp')
  2723  37.6757812500 MiB   0.0000000000 MiB           1       g.lstatns('/var/spool/postfix/private/local')
  2724  37.6757812500 MiB   0.0000000000 MiB           1       g.lstatns('/var/spool/postfix/private/proxymap')
  2725  37.6757812500 MiB   0.0000000000 MiB           1       g.lstatns('/var/spool/postfix/private/proxywrite')
  2726  37.6757812500 MiB   0.0000000000 MiB           1       g.lstatns('/var/spool/postfix/private/relay')
  2727  37.6757812500 MiB   0.0000000000 MiB           1       g.lstatns('/var/spool/postfix/private/retry')
  2728  37.6757812500 MiB   0.0000000000 MiB           1       g.lstatns('/var/spool/postfix/private/rewrite')
  2729  37.6757812500 MiB   0.0000000000 MiB           1       g.lstatns('/var/spool/postfix/private/scache')
  2730  37.6757812500 MiB   0.0000000000 MiB           1       g.lstatns('/var/spool/postfix/private/smtp')
  2731  37.6796875000 MiB   0.0039062500 MiB           1       g.lstatns('/var/spool/postfix/private/tlsmgr')
  2732  37.6796875000 MiB   0.0000000000 MiB           1       g.lstatns('/var/spool/postfix/private/trace')
  2733  37.6796875000 MiB   0.0000000000 MiB           1       g.lstatns('/var/spool/postfix/private/verify')
  2734  37.6796875000 MiB   0.0000000000 MiB           1       g.lstatns('/var/spool/postfix/private/virtual')
  2735  37.6796875000 MiB   0.0000000000 MiB           1       g.lstatns('/var/spool/postfix/public')
  2736  37.6796875000 MiB   0.0000000000 MiB           1       g.lstatns('/var/spool/postfix/public/cleanup')
  2737  37.6796875000 MiB   0.0000000000 MiB           1       g.lstatns('/var/spool/postfix/public/flush')
  2738  37.6796875000 MiB   0.0000000000 MiB           1       g.lstatns('/var/spool/postfix/public/pickup')
  2739  37.6796875000 MiB   0.0000000000 MiB           1       g.lstatns('/var/spool/postfix/public/qmgr')
  2740  37.6796875000 MiB   0.0000000000 MiB           1       g.lstatns('/var/spool/postfix/public/showq')
  2741  37.6835937500 MiB   0.0039062500 MiB           1       g.lstatns('/var/spool/postfix/saved')
  2742  37.6835937500 MiB   0.0000000000 MiB           1       g.lstatns('/var/spool/postfix/trace')
  2743  37.6835937500 MiB   0.0000000000 MiB           1       g.lstatns('/var/tmp')

My code:

import guestfs
from memory_profiler import profile

@profile(precision=10)
def demo():
    invisible_mp = '/invisible'
    # disk_images = ['/tmp/flr/6000c294-08b6-62ae-36aa-d946fedf655c/6000c294-08b6-62ae-36aa-d946fedf655c-flat.vmdk']
    g = guestfs.GuestFS(python_return_dict=True)
    # Attach the disk image read-only to libguestfs.
    g.add_drive('', protocol='nbd', server=["dataenableengine-proxy-0.dataenableengine-proxy:10850"])
    # Run the libguestfs back-end.
    g.launch()
    # List all filesystem devices
    fss = g.list_filesystems()
    print(f'fss: {fss}')
    roots = g.inspect_os()
    print(f'roots: {roots}')
    invalid_fs_list = ['unknown', 'swap', 'BitLocker', 'ReFS']
    invalid_fss = []
    for fs in fss.keys():
        if fss[fs] in invalid_fs_list:
            invalid_fss.append(fs)
    for ifs in invalid_fss:
        print(f'Remove invalid filesystem device={ifs}.')
        del fss[ifs]
    print(f'invalid_fss: {invalid_fss}, fss:{fss}')

    # Ask libguestfs to inspect for operating systems.
    roots = g.inspect_os()
    print(f'roots: {roots}')

    root = roots[0]
    mps = g.inspect_get_mountpoints(root)
    for mp, device in sorted(mps.items(), key=lambda k: len(k[0])):
        if device in fss:
            print(f'Mount filesystem automaticly: {device}<===>{mp}')
            g.mount(device, mp)
            del fss[device]

    if len(fss) > 0:
        g.mkmountpoint(invisible_mp)
    for device in fss.keys():
        mp = device.replace('/', '_')
        mp = f'{invisible_mp}/{mp}'
        g.mkmountpoint(mp)
        g.mount_ro(device, mp)
        print(f'Mount filesystem manually: {device}<===>{mp}')

    nodeset = g.find("/")
    # for file in nodeset:
    #     file_path = "/" + file
    #     guestfs.g.lstatns(file_path)
    g.lstatns("/var/tmp/systemd-private-6789376ff641494aac5ed902d928283a-chronyd.service-syWnCH/tmp")
    g.lstatns('/var/yp')
    print("==========end==========")

demo()

Comment 9 Richard W.M. Jones 2021-07-27 07:24:44 UTC
Created attachment 1806209 [details]
simple-reproducer.py

Attached is a simpler, self-contained reproducer which does
not require any external disk image.

If you run this it will do lstatns in a loop forever.

Memory usage grows slowly over time.

Comment 10 Richard W.M. Jones 2021-07-27 08:04:54 UTC
Fixed in libguestfs 1.45.7:

https://github.com/libguestfs/libguestfs/commit/e84c63a2ca4bf2366af96eb1a1222cf494e228c9

Comment 11 朱丹 2021-07-27 09:53:40 UTC
Thank you very much for you reply!
Is this commit intended to solve this bug? 
Memory will grow also,when we call guestfs_find.
Has this bug been fixed as well in libguestfs 1.45.7?

when will the libguestfs 1.45.7 be released?
How I fixed this bug in my project?

Looking forward to your reply!

Comment 12 Richard W.M. Jones 2021-07-27 11:24:52 UTC
It fixes the bug that was reported.  If there's another bug in guestfs_find then
please file a separate issue about that.  Best to have a small self-contained
reproducer like the one that I wrote for this bug, since it makes it easier for me to
reproduce and therefore fix the problem.

libguestfs 1.45.7 will be released "shortly".  I can't say when exactly, but
not too far off.

You can also take the commit and backport it to older versions of libguestfs
like 1.40.  And/or compile libguestfs from source.

For RHEL (if you are a customer), please contact Red Hat Support, pointing them
to this bug and they'll prioritise the work.


Note You need to log in before you can comment on or make changes to this bug.