zoukankan      html  css  js  c++  java
  • ironic cloudinit Failed growpart --dry-run for

    2020-07-07 03:13:16,711 - util.py[WARNING]: Failed growpart --dry-run for (/dev/sda, 3)
    2020-07-07 03:13:16,712 - util.py[DEBUG]: Failed growpart --dry-run for (/dev/sda, 3)
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/cloudinit/config/cc_growpart.py", line 145, in resize
        util.subp(["growpart", '--dry-run', diskdev, partnum])
      File "/usr/lib/python2.7/site-packages/cloudinit/util.py", line 2084, in subp
        cmd=args)
    ProcessExecutionError: Unexpected error while running command.
    Command: ['growpart', '--dry-run', '/dev/sda', '3']
    Exit code: 2
    Reason: -
    Stdout: FAILED: failed to get a resizer for id ''
    Stderr: no tools available to resize disk with 'gpt'
    2020-07-07 03:13:16,713 - util.py[DEBUG]: resize_devices took 0.035 seconds
    2020-07-07 03:13:16,713 - cc_growpart.py[DEBUG]: '/' FAILED: failed to resize: disk=/dev/sda, ptnum=3: Unexpected error while running command.
    Command: ['growpart', '--dry-run', '/dev/sda', '3']
    Exit code: 2
    Reason: -
    Stdout: FAILED: failed to get a resizer for id ''
    Stderr: no tools available to resize disk with 'gpt'
    @
    - add sgdisk and e2fsprogs into image
    - run "fsck /dev/vda1; sgdisk -d 1 -N 1 /dev/vda; resize2fs /dev/vda1"
    [root@soft-920-3 centos]# yum install gdisk -y
    已加载插件:fastestmirror
    Loading mirror speeds from cached hostfile
     * base: mirror.aktkn.sg
     * extras: mirror.aktkn.sg
     * updates: mirror.aktkn.sg
    正在解决依赖关系
    --> 正在检查事务
    ---> 软件包 gdisk.aarch64.0.0.8.10-3.el7 将被 安装
    --> 解决依赖关系完成
    
    依赖关系解决
    
    ==================================================================================================================
     Package                 架构                      版本                              源                      大小
    ==================================================================================================================
    正在安装:
     gdisk                   aarch64                   0.8.10-3.el7                      base                   190 k
    
    事务概要
    ==================================================================================================================
    安装  1 软件包
    
    总下载量:190 k
    安装大小:740 k
    Downloading packages:
    gdisk-0.8.10-3.el7.aarch64.rpm                                                             | 190 kB  00:00:00     
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      正在安装    : gdisk-0.8.10-3.el7.aarch64                                                                    1/1 
      验证中      : gdisk-0.8.10-3.el7.aarch64                                                                    1/1 
    
    已安装:
      gdisk.aarch64 0:0.8.10-3.el7                                                                                    
    
    完毕!
    [root@soft-920-3 centos]#  growpart /dev/sda 3
    unexpected output in sfdisk --version [sfdisk,来自 util-linux 2.23.2]
    [root@soft-920-3 centos]# sfdisk --version
    sfdisk,来自 util-linux 2.23.2
    [root@soft-920-3 centos]# 
    [root@soft-920-3 centos]#  growpart /dev/sda 3
    unexpected output in sfdisk --version [sfdisk,来自 util-linux 2.23.2]
    [root@soft-920-3 centos]# sfdisk --version
    sfdisk,来自 util-linux 2.23.2
    [root@soft-920-3 centos]#  LANG=en_US.UTF-8
    [root@soft-920-3 centos]#  growpart /dev/sda 3
    CHANGED: partition=3 start=1574912 old: size=166195200 end=167770112 new: size=936128142 end=937703054
    [root@soft-920-3 centos]#

  • 相关阅读:
    深入理解Nginx及使用Nginx实现负载均衡
    Linux内存管理之伙伴系统之伙伴系统概述
    TCP 协议如何解决粘包、半包问题
    Linux CPU亲缘性详解
    单实例
    关联容器和无序关联容器的区别
    基于范围的for循环
    vector讲一个容器的内容拷贝到另一个容器,容器的区间删除
    win32窗口添加按钮及按钮消息相应,动态显示时间
    判断是不是纯数字字符串
  • 原文地址:https://www.cnblogs.com/dream397/p/13259744.html
Copyright © 2011-2022 走看看