AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

问题[ovirt](server)

Martin Hope
iTeY
Asked: 2021-08-12 00:46:04 +0800 CST

无法使用 LVM 或 resize2fs 将 oVirt VM 磁盘扩展到新大小

  • 0

我有一个带有 VM 的 oVirt 服务器,该 VM 是使用 20GB 磁盘创建的,但很快就用完了空间,所以我又添加了 20GB 空间,现在我正在尝试扩展磁盘。

我以前在旧虚拟机上做过一次,然后我运行了以下命令:

$ sudo lvm
lvm> lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
  Size of logical volume ubuntu-vg/ubuntu-lv changed from 4.00 GiB (1024 extents) to <49.00 GiB (12543 extents).
  Logical volume ubuntu-vg/ubuntu-lv successfully resized.
lvm> exit
  Exiting.



$ sudo lvm
lvm> lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
  Size of logical volume ubuntu-vg/ubuntu-lv changed from 4.00 GiB (1024 extents) to <49.00 GiB (12543 extents).
  Logical volume ubuntu-vg/ubuntu-lv successfully resized.
lvm> exit
  Exiting.
$ sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
resize2fs 1.45.5 (07-Jan-2020)
Filesystem at /dev/mapper/ubuntu--vg-ubuntu--lv is mounted on /; on-line resizing required old_desc_blocks = 1, new_desc_blocks = 7
The filesystem on /dev/mapper/ubuntu--vg-ubuntu--lv is now 12844032 (4k) blocks long.
$ df -h
Filesystem                         Size  Used Avail Use% Mounted on
udev                               949M     0  949M   0% /dev
tmpfs                              199M  1.2M  198M   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv   49G  3.8G   43G   9% /
tmpfs                              993M     0  993M   0% /dev/shm
tmpfs                              5.0M     0  5.0M   0% /run/lock
tmpfs                              993M     0  993M   0% /sys/fs/cgroup
/dev/sda2                          976M  107M  803M  12% /boot
/dev/loop0                          28M   28M     0 100% /snap/snapd/7264
/dev/loop1                          55M   55M     0 100% /snap/core18/1705
/dev/loop2                          69M   69M     0 100% /snap/lxd/14804
/dev/loop3                          33M   33M     0 100% /snap/snapd/12159
/dev/loop4                          56M   56M     0 100% /snap/core18/2074
/dev/loop5                          62M   62M     0 100% /snap/core20/1026
/dev/loop6                          67M   67M     0 100% /snap/lxd/20840
tmpfs                              199M     0  199M   0% /run/user/1000

这扩展了磁盘,但现在由于某种原因在我的新 VM 上这些命令不起作用,我得到以下输出:

$ sudo lvm
lvm> lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
  New size (4863 extents) matches existing size (4863 extents).
lvm>



$ sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
resize2fs 1.45.5 (07-Jan-2020)
The filesystem is already 4979712 (4k) blocks long.  Nothing to do!

调查fdisk -l我有以下内容:

Disk /dev/loop0: 54.97 MiB, 57614336 bytes, 112528 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 55.45 MiB, 58134528 bytes, 113544 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 61.79 MiB, 64770048 bytes, 126504 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 68.26 MiB, 71573504 bytes, 139792 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop4: 68.17 MiB, 71475200 bytes, 139600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop5: 27.9 MiB, 28405760 bytes, 55480 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop6: 32.3 MiB, 33865728 bytes, 66144 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 40 GiB, 42949672960 bytes, 83886080 sectors
Disk model: QEMU HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: EFA99D35-85DD-4D0D-A4DE-19514BF6AE89

Device       Start      End  Sectors Size Type
/dev/sda1     2048     4095     2048   1M BIOS boot
/dev/sda2     4096  2101247  2097152   1G Linux filesystem
/dev/sda3  2101248 41940991 39839744  19G Linux filesystem


Disk /dev/mapper/ubuntu--vg-ubuntu--lv: 18.102 GiB, 20396900352 bytes, 39837696                                                                                                              sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
ubuntu kvm-virtualization ovirt
  • 1 个回答
  • 426 Views
Martin Hope
Andrew
Asked: 2019-12-25 04:06:38 +0800 CST

如果“另一个电源管理操作正在进行中”,如何在 Ovirt 中“确认重新启动”无响应的主机。防止它?

  • 0

问题:

在内存不足的情况下,节点开始显示为无响应,但大多数虚拟机实际上都在工作,甚至可以从 ovirt-engine 访问,但有些虚拟机显示为 UP,但实际上已关闭。

我决定隔离一个失败的节点并重新启动它。我在 UI 中按下“重新启动”,然后继续重新启动节点。在它出现后,它仍然处于非响应状态,并且在此主机上运行的虚拟机处于“未知”状态。

当我单击“确认主机已重新启动”时,出现以下错误:“另一个电源管理操作已在进行中。”,由于“无响应状态”和“此节点已运行”,将其置于维护状态不佳vm 的”消息。

如何手动隔离主机并让我的虚拟机在其他工作主机上运行?

环境:

  • oVirt 节点 4.3.5.2
  • Ovirt 引擎:4.3.5.5-1.el7
ovirt
  • 1 个回答
  • 2907 Views
Martin Hope
Aleksov
Asked: 2019-06-03 10:33:50 +0800 CST

oVirt Hosted-Engine 升级文件

  • 0

我在将oVirt Hosted-Engine 从 4.2.8 升级到 4.3.3 时遇到问题。

在 Engine VM 中安装此版本yum update后,我运行了,然后engine-setup收到此错误:

              --== DATABASE CONFIGURATION ==--

[WARNING] This release requires PostgreSQL server 10.6 but the engine database is currently hosted on PostgreSQL server 9.5.14.
[ INFO  ] Verifying PostgreSQL SELinux file context rules
[ ERROR ] Failed to execute stage 'Environment customization': could not stat file "base/13699369/1259_fsm": Permission denied

[ INFO  ] Stage: Clean up
          Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20190602110956-iqr6bc.log
[ INFO  ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20190602111120-setup.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Execution of setup failed

但我没有找到关于如何解决这个问题的任何解决方案。

也许我做错了什么?

ovirt
  • 1 个回答
  • 114 Views
Martin Hope
itsafire
Asked: 2018-07-25 01:52:25 +0800 CST

在小升级之前从节点取消部署托管引擎?

  • 1

我们的 ovirt 集群中的一个节点显示了一个可用的升级。该节点上部署了托管引擎,但当前在另一个节点上提供服务。在进行小升级之前,我是否需要先取消部署托管引擎?

目前,对于每次升级,我都会将节点移至维护,然后我将取消部署托管引擎。之后节点再次处于活动状态,我必须在开始升级之前再次对其进行维护。升级后节点再次处于活动状态,因此必须再次对其进行维护,然后再次部署托管引擎。

升级需要采取很多步骤。我可以跳过托管引擎的取消部署吗?

ovirt
  • 1 个回答
  • 210 Views
Martin Hope
ahmedjaad
Asked: 2017-01-24 22:25:53 +0800 CST

在 oVirt 4.0 上绕过 SSO 属性

  • 1

我已将 oVirt 引擎从 3.6 升级到 4.0,升级后我无法访问 webadmin 门户,欢迎页面显示以下消息:

The client is not authorized to request an authorization. It's required to access the system using FQDN.

在阅读了 oVirt 4.04 发行说明后,我了解到这是由于使用 OAUTH2 协议进行单点登录,ovirt 要求我使用 FQDN 访问引擎,不幸的是,我只使用一个公共 IP 远程管理我的资源并且我不拥有任何域名。我该如何解决这个问题?如果有任何帮助,以下是我的 oVirt 引擎设置摘要

      Default SAN wipe after delete           : False
      Firewall manager                        : firewalld
      Update Firewall                         : True
      Host FQDN                               : ovirt
      Upgrade packages                        : True
      Engine database secured connection      : False
      Engine database host                    : localhost
      Engine database user name               : engine
      Engine database name                    : engine
      Engine database port                    : 5432
      Engine database host name validation    : False
      DWH database secured connection         : False
      DWH database host                       : localhost
      DWH database user name                  : ovirt_engine_history
      DWH database name                       : ovirt_engine_history
      DWH database port                       : 5432
      DWH database host name validation       : False
      Engine installation                     : True
      PKI organization                        : some_organization
      DWH installation                        : True
      Configure local DWH database            : True
      Engine Host FQDN                        : ovirt
      Configure Image I/O Proxy               : True
      Configure VMConsole Proxy               : True
      Configure WebSocket Proxy               : True
domain-name-system ovirt fqdn rhev
  • 2 个回答
  • 5212 Views
Martin Hope
Marc05
Asked: 2016-09-09 04:43:19 +0800 CST

oVirt 自托管引擎集群没有高可用性

  • 0

我正在尝试 oVirt 的虚拟机集群 HA(特别是 Red Hat Virtualization 4.0,但我没有任何运气让 Manager VM 具有高可用性。我采取的步骤基本上是:

  1. 设置 node1 并使用 iSCSI 存储运行托管引擎脚本。
  2. 设置 node2 并使用相同的 iSCSI 路径继续托管引擎脚本。
  3. 将集群/主存储添加到 Manager VM 并让数据中心运行。

我已按照 Red Hat 提供的文档说明此时应启用 HA。问题是,当我通过其 Web 门户访问 Manager VM 设置时,它指出“使用托管引擎时无法将 VM 设置为高可用性”。

我错过了什么?

redhat cluster high-availability ovirt
  • 2 个回答
  • 1510 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve