yunionio / cloudpods

A cloud-native open-source unified multi-cloud and hybrid-cloud platform. 开源、云原生的多云管理及混合云融合平台
https://www.cloudpods.org
Apache License 2.0
2.57k stars 526 forks source link

我创建的虚拟机使用的是centos7.9的镜像,给了100g硬盘但是创建完成后根分区只占了8g,没有达到100g[求助/Help] #17956

Closed Misswjy closed 1 year ago

Misswjy commented 1 year ago

[root@test ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 100G 0 disk └─sda1 8:1 0 8G 0 part / sr0 11:0 1 1024M 0 rom
[root@test ~]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 7.8G 0 7.8G 0% /dev tmpfs 7.8G 0 7.8G 0% /dev/shm tmpfs 7.8G 18M 7.8G 1% /run tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup /dev/sda1 8.0G 850M 7.2G 11% / tmpfs 1.6G 0 1.6G 0% /run/user/0 [root@test ~]# 上面这个是虚拟机 下面这个是计算节点host-deployer日志 [root@master ~]# kubectl logs default-host-deployer-59m9z -n onecloud [info 230906 10:00:29 options.ParseOptions(options.go:318)] Use configuration file: /etc/yunion/host.conf [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument bridge-driver [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument ovn-eip-bridge [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument start-host-ignore-sys-error [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument allow-router-vms [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument auto-merge-delay-seconds [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument live-migrate-cpu-throttle-max [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument ping-region-interval [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument bandwidth-limit [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument local-image-path [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument networks [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument ovn-mapped-bridge [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument host-type [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument restrict-qemu-img-convert-worker [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument tunnel-padding-bytes [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument disable-local-vpc [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument no-hpet [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument sdn-enable-tc-man [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument kubelet-run-directory [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument fetcherfs-block-size [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument set-vnc-password [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument agent-temp-limit [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument bw-download-bandwidth [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument default-write-iops-per-cpu [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument enable-monitor [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument etcd-skip-tls-verify [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument ovmf-path [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument cdrom-count [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument default-request-worker-count [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument enable-telegraf [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument floppy-count [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument auto-merge-backing-template [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument ovn-underlay-mtu [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument report-interval [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument default-live-migrate-downtime [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument min-migrate-timeout-seconds [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument host-lease-timeout [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument recycle-diskfile [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument etcd-use-tls [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument use-boot-vga [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument block-io-scheduler [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument local-backup-temp-path [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument recycle-diskfile-keep-days [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument sdn-enable-tap-man [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument ovn-south-database [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument default-read-iops-per-cpu [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument dhcp-lease-time [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument enable-qemu-debug-log [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument servers-path [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument sdn-enable-eip-man [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument snapshot-dir-suffix [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument always-recycle-diskfile [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument hugepage-size-mb [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument pcie-root-port-count [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument fetcherfs-path [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument sdn-socket-path [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument sync-storage-info-duration-second [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument disable-probe-kubelet [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument max-reserved-memory [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument sdn-allow-conntrack-invalid [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument binary-memclean-path [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument disable-kvm [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument enable-openflow-controller [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument hugepages-option [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument enable-virtio-rng-device [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument memory-snapshots-path [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument zero-clean-disk-data [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument disable-security-group [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument ethtool-enable-gso [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument host-cpu-passthrough [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument snapshot-recycle-day [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument enable-fallocate-disk [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument rack [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument linux-default-root-user [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument allow-switch-vms [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument default-write-bps-per-cpu [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument dhcp-renewal-time [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument dhcp-server-port [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument disable-set-cgroup [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument host-health-timeout [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument default-image-save-format [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument disable-gpu [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument tap-bridge-name [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument slots [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument enable-template-backing [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument image-cache-path [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument local-backup-storage-path [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument ovn-integration-bridge [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument check-system-services [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument migrate-expect-rate [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument sdn-enable-guest-man [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument disable-custom-device [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument enable-ksm [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument manage-ntp-configuration [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument sdn-pid-file [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument agent-temp-path [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument default-read-bps-per-cpu [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument default-qemu-version [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument max-hotplug-vcpu-count [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument windows-default-admin-user [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument enable-cpu-binding [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument enable-vm-uuid [warning 230906 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument disable-usb [info 230906 10:00:29 options.ParseOptions(options.go:340)] Set log level to "info" [info 2023-09-06 10:00:29 options.ParseOptions(options.go:318)] Use configuration file: /etc/yunion/common/common.conf [warning 2023-09-06 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument manage-ntp-configuration [warning 2023-09-06 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument default-qemu-version [warning 2023-09-06 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument disable-security-group [warning 2023-09-06 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument host-cpu-passthrough [warning 2023-09-06 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument floppy-count [warning 2023-09-06 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument live-migrate-cpu-throttle-max [warning 2023-09-06 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument no-hpet [warning 2023-09-06 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument cdrom-count [warning 2023-09-06 10:00:29 structarg.(ArgumentParser).parseJSONKeyValue(structarg.go:1214)] Cannot find argument disable-local-vpc [info 2023-09-06 10:00:29 options.ParseOptions(options.go:340)] Set log level to "info" [info 2023-09-06 10:00:29 deployserver.(SDeployService).InitService(deployserver.go:460)] exec socket path: /var/run/onecloud/exec.sock [info 2023-09-06 10:00:29 procutils.WaitZombieLoop(zombie_others.go:36)] My pid is not 1 and no need to wait zombies [error 2023-09-06 10:00:29 deployserver.(*SDeployService).PrepareEnv(deployserver.go:408)] rmmod error: rmmod: ERROR: Module nbd is not currently loaded

[info 2023-09-06 10:00:29 nbd.(SNBDManager).findNbdDevices(nbdman.go:63)] NBD_DEVS: map[string]bool{"/dev/nbd0":false, "/dev/nbd1":false, "/dev/nbd10":false, "/dev/nbd11":false, "/dev/nbd12":false, "/dev/nbd13":false, "/dev/nbd14":false, "/dev/nbd15":false, "/dev/nbd2":false, "/dev/nbd3":false, "/dev/nbd4":false, "/dev/nbd5":false, "/dev/nbd6":false, "/dev/nbd7":false, "/dev/nbd8":false, "/dev/nbd9":false} [info 2023-09-06 10:00:29 deployserver.(SDeployService).RunService(deployserver.go:386)] Init net listener on /var/run/onecloud/deploy.sock succ [info 2023-09-06 10:05:24 deployserver.(*DeployerServer).ResizeFs(deployserver.go:136)] Resize fs on qemuimg.SImageInfo{Path:"/opt/cloud/workspace/disks/6c7d9ce5-7334-4bb2-83a6-300ed8d38c58", Format:"", IoLevel:0, Password:"", EncryptFormat:"", EncryptAlg:"", secId:""} [info 2023-09-06 10:05:24 deployserver.(DeployerServer).ResizeFs(deployserver.go:136)] ***** Resize fs on qemuimg.SImageInfo{Path:"/opt/cloud/workspace/disks/230b0a83-a5e3-4fb6-85c0-6862ea5e6dae", Format:"", IoLevel:0, Password:"", EncryptFormat:"", EncryptAlg:"", secId:""} [error 2023-09-06 10:05:25 nbd.(NBDDriver).setupLVMS(driver.go:168)] unable to find vg from /dev/nbd8p1: unable to find vg, output is " No volume groups found.\n" [info 2023-09-06 10:05:25 diskutils.(SKVMGuestDisk).mountKvmRootfs(kvm.go:136)] detect partition /dev/nbd8p1 [info 2023-09-06 10:05:25 kvmpart.LockXfsPartition(utils.go:24)] xfs lock 9cff3d69-3769-4ad9-8460-9c54050583f9 [info 2023-09-06 10:05:26 guestfs.IsPartitionReadonly(core.go:204)] File system /tmp/_dev_nbd8p1 is not readonly [info 2023-09-06 10:05:26 kvmpart.(SKVMGuestDiskPartition).Mount(kvmpart.go:138)] mount fs xfs on /dev/nbd8p1 successfully [info 2023-09-06 10:05:26 diskutils.(SKVMGuestDisk).mountKvmRootfs(kvm.go:144)] Use rootfs CentosRootFs, partition /dev/nbd8p1 [info 2023-09-06 10:05:26 kvmpart.(SKVMGuestDiskPartition).Umount(kvmpart.go:272)] umount /dev/nbd8p1 successfully [info 2023-09-06 10:05:26 kvmpart.UnlockXfsPartition(utils.go:43)] xfs unlock 9cff3d69-3769-4ad9-8460-9c54050583f9 [info 2023-09-06 10:05:26 fsutils.ResizeDiskFs(fsutils.go:139)] Parts: [[1 true 2048 16777215 16775168 primary xfs /dev/nbd8p1]] label: msdos [info 2023-09-06 10:05:26 fsutils.ResizeDiskFs(fsutils.go:204)] resize disk partition: [parted -a none -s /dev/nbd8 -- resizepart 1 209715199s] [error 2023-09-06 10:05:26 fsutils.FsckXfsFs(fsutils.go:324)] xfs_check failed: exec: "xfs_check": executable file not found in $PATH, , try xfs_repair -n instead [info 2023-09-06 10:05:26 kvmpart.LockXfsPartition(utils.go:24)] xfs lock 9cff3d69-3769-4ad9-8460-9c54050583f9 [info 2023-09-06 10:05:33 kvmpart.UnlockXfsPartition(utils.go:43)] xfs unlock 9cff3d69-3769-4ad9-8460-9c54050583f9 [info 2023-09-06 10:05:33 deployserver.(DeployerServer).DeployGuestFs(deployserver.go:85)] * Deploy guest fs on qemuimg.SImageInfo{Path:"/opt/cloud/workspace/disks/230b0a83-a5e3-4fb6-85c0-6862ea5e6dae", Format:"", IoLevel:0, Password:"", EncryptFormat:"", EncryptAlg:"", secId:""} [error 2023-09-06 10:05:34 nbd.(NBDDriver).setupLVMS(driver.go:168)] unable to find vg from /dev/nbd1p1: unable to find vg, output is " No volume groups found.\n" [info 2023-09-06 10:05:34 diskutils.(SKVMGuestDisk).mountKvmRootfs(kvm.go:136)] detect partition /dev/nbd1p1 [info 2023-09-06 10:05:34 kvmpart.LockXfsPartition(utils.go:24)] xfs lock 9cff3d69-3769-4ad9-8460-9c54050583f9 [info 2023-09-06 10:05:34 guestfs.IsPartitionReadonly(core.go:204)] File system /tmp/_dev_nbd1p1 is not readonly [info 2023-09-06 10:05:34 kvmpart.(SKVMGuestDiskPartition).Mount(kvmpart.go:138)] mount fs xfs on /dev/nbd1p1 successfully [info 2023-09-06 10:05:34 diskutils.(SKVMGuestDisk).mountKvmRootfs(kvm.go:144)] Use rootfs CentosRootFs, partition /dev/nbd1p1 [info 2023-09-06 10:05:34 kvmpart.(SKVMGuestDiskPartition).Umount(kvmpart.go:272)] umount /dev/nbd1p1 successfully [info 2023-09-06 10:05:34 kvmpart.UnlockXfsPartition(utils.go:43)] xfs unlock 9cff3d69-3769-4ad9-8460-9c54050583f9 [info 2023-09-06 10:05:34 fsutils.ResizeDiskFs(fsutils.go:139)] Parts: [[1 true 2048 16777215 16775168 primary xfs /dev/nbd1p1]] label: msdos [info 2023-09-06 10:05:34 fsutils.ResizeDiskFs(fsutils.go:204)] resize disk partition: [parted -a none -s /dev/nbd1 -- resizepart 1 209715199s] [error 2023-09-06 10:05:34 fsutils.FsckXfsFs(fsutils.go:324)] xfs_check failed: exec: "xfs_check": executable file not found in $PATH, , try xfs_repair -n instead [info 2023-09-06 10:05:34 diskutils.(SKVMGuestDisk).mountKvmRootfs(kvm.go:136)] detect partition /dev/nbd3p1 [info 2023-09-06 10:05:34 kvmpart.LockXfsPartition(utils.go:24)] xfs lock 9cff3d69-3769-4ad9-8460-9c54050583f9 [info 2023-09-06 10:05:34 guestfs.IsPartitionReadonly(core.go:204)] File system /tmp/_dev_nbd3p1 is not readonly [info 2023-09-06 10:05:34 kvmpart.(SKVMGuestDiskPartition).Mount(kvmpart.go:138)] mount fs xfs on /dev/nbd3p1 successfully [info 2023-09-06 10:05:34 diskutils.(SKVMGuestDisk).mountKvmRootfs(kvm.go:144)] Use rootfs CentosRootFs, partition /dev/nbd3p1 [info 2023-09-06 10:05:34 guestfs.IsPartitionReadonly(core.go:204)] File system /tmp/_dev_nbd3p1 is not readonly [info 2023-09-06 10:05:34 kvmpart.LockXfsPartition(utils.go:24)] xfs lock 9cff3d69-3769-4ad9-8460-9c54050583f9 [error 2023-09-06 10:05:34 kvmpart.(*SLocalGuestFS).GenerateSshHostKeys(localfs.go:318)] ssh-keygen host keys fail: exit status 255, cannot read from /dev/urandom, No such file or directory

[error 2023-09-06 10:05:34 fsdriver.(*sLinuxRootFs).DeployNetworkingScripts(linux.go:348)] rootFs.GenerateSshHostKeys fail cannot read from /dev/urandom, No such file or directory

[error 2023-09-06 10:05:34 kvmpart.(*SLocalGuestFS).GenerateSshHostKeys(localfs.go:318)] ssh-keygen host keys fail: exit status 255, cannot read from /dev/urandom, No such file or directory

[error 2023-09-06 10:05:34 fsdriver.(*sLinuxRootFs).DeployNetworkingScripts(linux.go:348)] rootFs.GenerateSshHostKeys fail cannot read from /dev/urandom, No such file or directory

[info 2023-09-06 10:05:34 kvmpart.(SLocalGuestFS).Passwd(localfs.go:174)] Passwd Changing password for user root. passwd: all authentication tokens updated successfully. New password: Retype new password: [info 2023-09-06 10:05:34 kvmpart.(SLocalGuestFS).userAdd(localfs.go:280)] Useradd: [info 2023-09-06 10:05:34 guestfs.DoDeployGuestFs(core.go:184)] Deploy finished, return: distro:"CentOS" version:"7.9.2009" arch:"x86_64" os:"Linux" account:"root" key:"IQEfLCCu2tYjjfcJQ0XzL0TaEE6oBHqPUzEM6w==" telegraf_deployed:true [info 2023-09-06 10:05:35 kvmpart.(SKVMGuestDiskPartition).Umount(kvmpart.go:272)] umount /dev/nbd3p1 successfully [info 2023-09-06 10:05:35 kvmpart.UnlockXfsPartition(utils.go:43)] xfs unlock 9cff3d69-3769-4ad9-8460-9c54050583f9 [info 2023-09-06 10:05:41 kvmpart.UnlockXfsPartition(utils.go:43)] xfs unlock 9cff3d69-3769-4ad9-8460-9c54050583f9 [info 2023-09-06 10:05:41 deployserver.(DeployerServer).DeployGuestFs(deployserver.go:85)] ***** Deploy guest fs on qemuimg.SImageInfo{Path:"/opt/cloud/workspace/disks/6c7d9ce5-7334-4bb2-83a6-300ed8d38c58", Format:"", IoLevel:0, Password:"", EncryptFormat:"", EncryptAlg:"", secId:""} [info 2023-09-06 10:05:42 diskutils.(SKVMGuestDisk).mountKvmRootfs(kvm.go:136)] detect partition /dev/nbd4p1 [info 2023-09-06 10:05:42 kvmpart.LockXfsPartition(utils.go:24)] xfs lock 9cff3d69-3769-4ad9-8460-9c54050583f9 [info 2023-09-06 10:05:42 guestfs.IsPartitionReadonly(core.go:204)] File system /tmp/_dev_nbd4p1 is not readonly [info 2023-09-06 10:05:42 kvmpart.(SKVMGuestDiskPartition).Mount(kvmpart.go:138)] mount fs xfs on /dev/nbd4p1 successfully [info 2023-09-06 10:05:42 diskutils.(SKVMGuestDisk).mountKvmRootfs(kvm.go:144)] Use rootfs CentosRootFs, partition /dev/nbd4p1 [info 2023-09-06 10:05:42 guestfs.IsPartitionReadonly(core.go:204)] File system /tmp/_dev_nbd4p1 is not readonly [error 2023-09-06 10:05:43 kvmpart.(SLocalGuestFS).GenerateSshHostKeys(localfs.go:318)] ssh-keygen host keys fail: exit status 255, cannot read from /dev/urandom, No such file or directory

[error 2023-09-06 10:05:43 fsdriver.(*sLinuxRootFs).DeployNetworkingScripts(linux.go:348)] rootFs.GenerateSshHostKeys fail cannot read from /dev/urandom, No such file or directory

[error 2023-09-06 10:05:43 kvmpart.(*SLocalGuestFS).GenerateSshHostKeys(localfs.go:318)] ssh-keygen host keys fail: exit status 255, cannot read from /dev/urandom, No such file or directory

[error 2023-09-06 10:05:43 fsdriver.(*sLinuxRootFs).DeployNetworkingScripts(linux.go:348)] rootFs.GenerateSshHostKeys fail cannot read from /dev/urandom, No such file or directory

[info 2023-09-06 10:05:43 kvmpart.(SLocalGuestFS).Passwd(localfs.go:174)] Passwd Changing password for user root. passwd: all authentication tokens updated successfully. New password: Retype new password: [info 2023-09-06 10:05:43 kvmpart.(SLocalGuestFS).userAdd(localfs.go:280)] Useradd: [info 2023-09-06 10:05:43 guestfs.DoDeployGuestFs(core.go:184)] Deploy finished, return: distro:"CentOS" version:"7.9.2009" arch:"x86_64" os:"Linux" account:"root" key:"uwmju3Gp6MO7J5qJJ7MilXKih9msG1LpPuIBkQ==" telegraf_deployed:true [info 2023-09-06 10:05:53 kvmpart.UnlockXfsPartition(utils.go:43)] xfs unlock 9cff3d69-3769-4ad9-8460-9c54050583f9 [info 2023-09-06 10:19:53 deployserver.(*DeployerServer).ResizeFs(deployserver.go:136)] ***** Resize fs on qemuimg.SImageInfo{Path:"/opt/cloud/workspace/disks/504aeb1e-8244-4438-83d7-8c7aa86bb035", Format:"", IoLevel:0, Password:"", EncryptFormat:"", EncryptAlg:"", secId:""} [info 2023-09-06 10:19:54 diskutils.(SKVMGuestDisk).mountKvmRootfs(kvm.go:136)] detect partition /dev/nbd13p1 [info 2023-09-06 10:19:54 kvmpart.LockXfsPartition(utils.go:24)] xfs lock 9cff3d69-3769-4ad9-8460-9c54050583f9 [error 2023-09-06 10:19:54 kvmpart.(SKVMGuestDiskPartition).mount.func2(kvmpart.go:185)] mount fail: exit status 32 mount: /tmp/_dev_nbd13p1: wrong fs type, bad option, bad superblock on /dev/nbd13p1, missing codepage or helper program, or other error.

[error 2023-09-06 10:19:56 kvmpart.(*SKVMGuestDiskPartition).mount.func2(kvmpart.go:185)] mount fail: exit status 32 mount: /tmp/_dev_nbd13p1: wrong fs type, bad option, bad superblock on /dev/nbd13p1, missing codepage or helper program, or other error.

[error 2023-09-06 10:19:58 kvmpart.(*SKVMGuestDiskPartition).mount.func2(kvmpart.go:185)] mount fail: exit status 32 mount: /tmp/_dev_nbd13p1: wrong fs type, bad option, bad superblock on /dev/nbd13p1, missing codepage or helper program, or other error.

[info 2023-09-06 10:19:58 kvmpart.UnlockXfsPartition(utils.go:43)] xfs unlock 9cff3d69-3769-4ad9-8460-9c54050583f9 [error 2023-09-06 10:19:58 kvmpart.(SKVMGuestDiskPartition).Mount(kvmpart.go:124)] SKVMGuestDiskPartition mount error: mount failed: tried 3 times, exceeding 3, last err : exit status 32 [info 2023-09-06 10:19:58 guestfs.IsPartitionReadonly(core.go:204)] File system /tmp/_dev_nbd13p1 is not readonly [info 2023-09-06 10:19:58 kvmpart.(SKVMGuestDiskPartition).Mount(kvmpart.go:138)] mount fs xfs on /dev/nbd13p1 successfully [error 2023-09-06 10:19:58 kvmpart.(*SKVMGuestDiskPartition).IsMounted(kvmpart.go:244)] /tmp/_dev_nbd13p1 is not a mountpoint: /tmp/_dev_nbd13p1 is not a mountpoint

[info 2023-09-06 10:19:59 deployserver.(*DeployerServer).DeployGuestFs(deployserver.go:85)] ***** Deploy guest fs on qemuimg.SImageInfo{Path:"/opt/cloud/workspace/disks/504aeb1e-8244-4438-83d7-8c7aa86bb035", Format:"", IoLevel:0, Password:"", EncryptFormat:"", EncryptAlg:"", secId:""} [info 2023-09-06 10:20:00 diskutils.(SKVMGuestDisk).mountKvmRootfs(kvm.go:136)] detect partition /dev/nbd15p1 [info 2023-09-06 10:20:00 kvmpart.LockXfsPartition(utils.go:24)] xfs lock 9cff3d69-3769-4ad9-8460-9c54050583f9 [error 2023-09-06 10:20:00 kvmpart.(SKVMGuestDiskPartition).mount.func2(kvmpart.go:185)] mount fail: exit status 32 mount: /tmp/_dev_nbd15p1: wrong fs type, bad option, bad superblock on /dev/nbd15p1, missing codepage or helper program, or other error.

[error 2023-09-06 10:20:01 kvmpart.(*SKVMGuestDiskPartition).mount.func2(kvmpart.go:185)] mount fail: exit status 32 mount: /tmp/_dev_nbd15p1: wrong fs type, bad option, bad superblock on /dev/nbd15p1, missing codepage or helper program, or other error.

[error 2023-09-06 10:20:03 kvmpart.(*SKVMGuestDiskPartition).mount.func2(kvmpart.go:185)] mount fail: exit status 32 mount: /tmp/_dev_nbd15p1: wrong fs type, bad option, bad superblock on /dev/nbd15p1, missing codepage or helper program, or other error.

[info 2023-09-06 10:20:04 kvmpart.UnlockXfsPartition(utils.go:43)] xfs unlock 9cff3d69-3769-4ad9-8460-9c54050583f9 [error 2023-09-06 10:20:04 kvmpart.(SKVMGuestDiskPartition).Mount(kvmpart.go:124)] SKVMGuestDiskPartition mount error: mount failed: tried 3 times, exceeding 3, last err : exit status 32 [info 2023-09-06 10:20:04 guestfs.IsPartitionReadonly(core.go:204)] File system /tmp/_dev_nbd15p1 is not readonly [info 2023-09-06 10:20:04 kvmpart.(SKVMGuestDiskPartition).Mount(kvmpart.go:138)] mount fs xfs on /dev/nbd15p1 successfully [error 2023-09-06 10:20:04 kvmpart.(*SKVMGuestDiskPartition).IsMounted(kvmpart.go:244)] /tmp/_dev_nbd15p1 is not a mountpoint: /tmp/_dev_nbd15p1 is not a mountpoint

[info 2023-09-06 10:30:34 deployserver.(*DeployerServer).ResizeFs(deployserver.go:136)] ***** Resize fs on qemuimg.SImageInfo{Path:"/opt/cloud/workspace/disks/a5c4e178-9715-44dd-8cce-e0048d4553ff", Format:"", IoLevel:0, Password:"", EncryptFormat:"", EncryptAlg:"", secId:""} [info 2023-09-06 10:30:35 diskutils.(SKVMGuestDisk).mountKvmRootfs(kvm.go:136)] detect partition /dev/nbd12p1 [info 2023-09-06 10:30:35 kvmpart.LockXfsPartition(utils.go:24)] xfs lock 9cff3d69-3769-4ad9-8460-9c54050583f9 [error 2023-09-06 10:30:35 kvmpart.(SKVMGuestDiskPartition).mount.func2(kvmpart.go:185)] mount fail: exit status 32 mount: /tmp/_dev_nbd12p1: wrong fs type, bad option, bad superblock on /dev/nbd12p1, missing codepage or helper program, or other error.

[error 2023-09-06 10:30:37 kvmpart.(*SKVMGuestDiskPartition).mount.func2(kvmpart.go:185)] mount fail: exit status 32 mount: /tmp/_dev_nbd12p1: wrong fs type, bad option, bad superblock on /dev/nbd12p1, missing codepage or helper program, or other error.

[error 2023-09-06 10:30:39 kvmpart.(*SKVMGuestDiskPartition).mount.func2(kvmpart.go:185)] mount fail: exit status 32 mount: /tmp/_dev_nbd12p1: wrong fs type, bad option, bad superblock on /dev/nbd12p1, missing codepage or helper program, or other error.

swordqiu commented 1 year ago

@Misswjy 是否可以下载你的镜像我们试试?看报错是挂载镜像分区失败了

Misswjy commented 1 year ago

https://wx.mail.qq.com/ftn/download?func=3&key=cac65e36e6d0db8ff8b51b36673936313539e3216539363110164d4253585252005a1804040b051c060a51574800555353145405565b0f02505c0255515c2c31765c5b422a6a1b0618410d003a0f021c0709050f4b48555e420b218aa9799e02e3c12cf32c5ddb22300c084c5a3713&code=5956e961&k=cac65e36e6d0db8ff8b51b36673936313539e3216539363110164d4253585252005a1804040b051c060a51574800555353145405565b0f02505c0255515c2c31765c5b422a6a1b0618410d003a0f021c0709050f4b48555e420b218aa9799e02e3c12cf32c5ddb22300c084c5a3713&fweb=1&cl=1

Misswjy commented 1 year ago

@swordqiu 有问题吗

Misswjy commented 1 year ago

这是物理机的,是会多出一个硬盘吗 [root@master ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nbd1 43:32 0 8G 0 disk └─nbd1p1 43:33 0 8G 0 part sda 8:0 0 3.3T 0 disk ├─sda4 8:4 0 4G 0 part ├─sda2 8:2 0 2G 0 part /boot ├─sda3 8:3 0 3.3T 0 part / └─sda1 8:1 0 1M 0 part

dengju2020 commented 1 year ago

@Misswjy 我们近期测试下

swordqiu commented 1 year ago

image 我们测试是可以扩容这个CentOS镜像的,感觉是你的宿主机内核问题,宿主机操作系统和内核(uname -r) 是多少? @Misswjy

Misswjy commented 1 year ago

@swordqiu 操作系统是centos7.9.2009 [root@master ~]# uname -r 3.10.0-1160.el7.x86_64 [root@master ~]# hostnamectl Static hostname: master Icon name: computer-server Chassis: server Machine ID: 82d3eb11d239494b840b22d56f346858 Boot ID: 72c87b557a5a41688f13ed560afdfcf7 Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-1160.el7.x86_64 Architecture: x86-64

swordqiu commented 1 year ago

那是内核有问题,请更新这个内核,并且重启宿主机:

yum install -y https://iso.yunion.cn/centos/7/3.10/x86_64/rpms/kernel-5.4.130-1.yn20221208.el7.x86_64.rpm

swordqiu commented 1 year ago

@Misswjy

Misswjy commented 1 year ago

[root@master ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nbd0 43:0 0 8G 0 disk └─nbd0p1 43:1 0 8G 0 part sda 8:0 0 3.3T 0 disk ├─sda2 8:2 0 1G 0 part /boot ├─sda3 8:3 0 3.3T 0 part / └─sda1 8:1 0 1M 0 part [root@master ~]# uname -a Linux master 5.4.130-1.yn20221208.el7.x86_64 #1 SMP Thu Dec 8 12:09:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux [root@master ~]# hostnamectl Static hostname: master Icon name: computer-server Chassis: server Machine ID: 301bd0f7fc204cfe883d32c314f116f0 Boot ID: 868746c951a244dbbeba7d7fbe339563 Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 5.4.130-1.yn20221208.el7.x86_64 Architecture: x86-64 @swordqiu

Misswjy commented 1 year ago

@swordqiu 我重装了一次还是不行,我是本机给本机allinone安装,我换了台服务器还不行,不知道是不是本机给本机allinone安装的问题

Misswjy commented 1 year ago

重启所有服务器解决了 ,此贴结束@swordqiu