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]#

  • 相关阅读:
    codeforces_1075_C. The Tower is Going Home
    leetcode_Stone Game_dp_思维
    leetcode_Counting Bits_dp
    Divide and Conquer_1.最大连续子数组
    python_MachineLearning_感知机PLA
    IIS中启用gzip压缩(网站优化)
    asp.net运行机制图
    asp.net 的那点事(2、浏览器和一般处理程序)
    asp.net 的那点事(1、当用户在浏览器地址栏输入了网址后,发生了什么?)
    android环境搭配 运行android sdk manager时出现错误问题解决
  • 原文地址:https://www.cnblogs.com/dream397/p/13259744.html
Copyright © 2011-2022 走看看