易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 465|回复: 1
收起左侧

no tools available to resize disk with 'gpt' FAILED: failed to get a resizer for

[复制链接]
发表于 2023-7-15 10:00:49 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
[root@cusc_fortress ~]# lsblk ) D. _3 f5 m; W- ]: a) j
NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT! ]8 Q* I8 A* r. [3 A# D: |
vda             252:0    0   50G  0 disk
' s) o2 t2 j  R  K4 J├─vda1          252:1    0    1G  0 part /boot4 {: P; L4 y( R( e1 A
└─vda2          252:2    0   49G  0 part
/ D0 G/ r- c1 }  ├─centos-root 253:0    0  147G  0 lvm  /
& g2 n: ]+ p* M$ y# \' ^. C1 T& H  └─centos-swap 253:1    0    2G  0 lvm  [SWAP]
: p3 v/ k8 w" e) I4 d: \vdb             252:16   0  100G  0 disk
7 l2 c1 K( J" }+ F└─vdb1          252:17   0  100G  0 part
! y) T+ G' f3 v  └─centos-root 253:0    0  147G  0 lvm  /! \5 w8 q- }1 }& C* v& T9 r0 \
vdc             252:32   0    3T  0 disk
4 i2 S0 N8 j+ I6 c  b0 v└─vdc1          252:33   0    2T  0 part /test/ z4 S4 T7 k# ~: Z: A* w
[root@cusc_fortress ~]# growpart -v /dev/vdc 33: v% A, x* R2 W" m- \) {
update-partition set to true- X6 R8 ^3 ?6 l1 e; t' X- A) K
no tools available to resize disk with 'gpt'
, M* ?4 O6 I' B+ @6 f5 V- UFAILED: failed to get a resizer for id '') G' ^" O# `0 V( M
[root@cusc_fortress ~]# growpart -v /dev/vdc ^C
. y" D( Z: C* X! R$ o, L9 O[root@cusc_fortress ~]# yum install gdisk -y
6 t( b# x& l; c: s: g0 j4 B( vLoaded plugins: fastestmirror, langpacks
* Z/ ], ]: y( A* N% C/ s7 z. [+ z& p; VLoading mirror speeds from cached hostfile" W  T  J# }" U* G; c/ u! C
* base: mirrors.huaweicloud.com
3 h8 o0 W& ~. T  w1 J * extras: mirrors.bupt.edu.cn
" J# d. M+ R2 r4 b5 a! [/ C * updates: mirrors.bupt.edu.cn
! {- B4 u( Z0 h6 eResolving Dependencies# [! m3 z1 m& C# b, ?
--> Running transaction check" o, Q7 Y3 T. s# N& j, W' D
---> Package gdisk.x86_64 0:0.8.10-3.el7 will be installed
7 Z3 s# v9 W- M& z; s% d$ Y# c) ~+ E  B--> Finished Dependency Resolution  F" w3 _" }$ s7 P
/ \) N3 O. u) S7 s' \
Dependencies Resolved
, n7 |+ `  \7 }/ ^" e: D' V3 x7 b& t4 o& g1 I7 R! t9 \! s4 B0 p+ K
=================================================================================================================================================================================================================+ j7 I" V/ Z2 o. d  i% X
Package                                         Arch                                             Version                                                   Repository                                      Size$ |  m/ s: c2 k) _
=================================================================================================================================================================================================================
4 H+ i3 b  d- Q* `0 c5 _0 XInstalling:
9 u' |1 g/ C8 \0 } gdisk                                           x86_64                                           0.8.10-3.el7                                              base                                           190 k, e& y( C2 f4 f$ K2 v

, S  ?' [. P* }5 FTransaction Summary
; X" f5 c, p/ i) j! }=================================================================================================================================================================================================================
, p: ]: y' [: X9 ZInstall  1 Package
7 Y* L( G  R- {' n/ I  D: C
- G4 R7 _5 ~' E) T# _! HTotal download size: 190 k
" [9 g# {, c, F3 v. G% ?Installed size: 660 k4 d" k! l! Y* f: V- F* _
Downloading packages:* y  B3 u( I/ }- A% Z
gdisk-0.8.10-3.el7.x86_64.rpm                                                                                                                                                             | 190 kB  00:00:00     
( L6 p0 r/ G+ p& o  iRunning transaction check
( U! d) p% V1 q0 B) VRunning transaction test1 x! W+ {- b. `$ F* J; e
Transaction test succeeded
  ^) ?" Q; U% zRunning transaction
8 ], D! d1 q5 ^3 A  Installing : gdisk-0.8.10-3.el7.x86_64                                                                                                                                                                     1/1
' U3 I- l* Y. e* |, L  Verifying  : gdisk-0.8.10-3.el7.x86_64                                                                                                                                                                     1/1 $ l8 ]8 M- |0 n: T
4 q% k8 q6 k: k; U* \& Y" Y
Installed:" @* X5 n! j. U9 r
  gdisk.x86_64 0:0.8.10-3.el7                                                                                                                                                                                    
/ C  H/ F  l7 N6 |1 X7 x* X$ E% m+ u
Complete!
" q; T+ r* U" Z! [' x) l8 O[root@cusc_fortress ~]# growpart -v /dev/vdc 336 R  B, J6 G5 k/ v9 ^' D8 I( `
update-partition set to true
2 J: [# x; n. }5 ?) X' Sresizing 33 on /dev/vdc using resize_sgdisk_gpt
" [9 W  n3 n3 I! Udisk=/dev/vdc partition=33: original sgdisk info:9 u5 ]. g- S! A7 M
Partition #33 does not exist., t# W! C' l# s( k# b- s
Disk /dev/vdc: 6442450944 sectors, 3.0 TiB
: S, B8 \+ k0 O! u3 ULogical sector size: 512 bytes7 q" F8 ^+ P2 J  J( P3 M2 |" _7 Q& K; W
Disk identifier (GUID): 20ED977B-30A0-4F51-AFCC-E54A8B2A5B908 j" [$ t" ]3 G$ Y# e' M
Partition table holds up to 128 entries
2 e. d7 c# G5 \/ }5 f6 o* f( YFirst usable sector is 34, last usable sector is 4294967262$ t1 J' ~: b( F$ v' L( R3 \4 U3 a
Partitions will be aligned on 8-sector boundaries
8 r, U0 t2 D- }1 B- o2 kTotal free space is 1919 sectors (959.5 KiB)
9 H& e% d" [, R. ^
: z7 u  q% i  |# ?& }2 z% \9 iNumber  Start (sector)    End (sector)  Size       Code  Name0 C8 I, _8 V$ c; K$ @, {0 v
   1              34      4294965343   2.0 TiB     0700  0$ k1 [6 u! J* p# a; H  M" |6 B4 [
disk=/dev/vdc partition=33: pretend sgdisk info
! N) N7 H1 e7 F7 v3 sDisk /dev/vdc: 6442450944 sectors, 3.0 TiB
9 |4 j0 F# \$ }( j1 j8 v) [Logical sector size: 512 bytes
! A  B( e) B5 {7 w0 {Disk identifier (GUID): 20ED977B-30A0-4F51-AFCC-E54A8B2A5B90
8 S6 Z" c- m9 H$ `$ P- h4 I3 ZPartition table holds up to 128 entries# ?. p7 s3 d) u* w/ a) I. N
First usable sector is 34, last usable sector is 6442450910
$ e/ T5 x' H. a- l# O2 lPartitions will be aligned on 8-sector boundaries
/ E; L* F2 K) D9 q: q- lTotal free space is 2147485567 sectors (1.0 TiB)! J3 R) t- \, B/ P; I
! [( V* f6 C1 J; |6 K. e
Number  Start (sector)    End (sector)  Size       Code  Name
+ v) m/ O; B: T& W   1              34      4294965343   2.0 TiB     0700  0
. C0 z9 `8 D9 i- mFAILED: disk=/dev/vdc partition=33: failed to get start sector# @) h% j" s7 [! [6 g
[root@cusc_fortress ~]# lsblk
. F, D" w( p1 U# f; {' RNAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT  u8 n/ _: Y, D8 c. l  |) a# F1 u
vda             252:0    0   50G  0 disk
- ?" y& A5 g1 {' x' p! e+ Y├─vda1          252:1    0    1G  0 part /boot
3 p( Z/ ~$ H4 {) {& _: @* v└─vda2          252:2    0   49G  0 part
5 s- J, d5 c6 l; b8 Z. X/ N7 }  ├─centos-root 253:0    0  147G  0 lvm  /) z. l) y6 m4 r3 p5 c* T
  └─centos-swap 253:1    0    2G  0 lvm  [SWAP]* T% Q' _5 b; f; }' D+ {, F' S( |
vdb             252:16   0  100G  0 disk
# ]5 g) r& m: u+ g" m0 D└─vdb1          252:17   0  100G  0 part
( a4 N* p2 M- U/ B  └─centos-root 253:0    0  147G  0 lvm  /
+ C; k+ X' L- P4 n# s2 N  zvdc             252:32   0    3T  0 disk
" z+ k% v, F0 j3 }& F# B  q└─vdc1          252:33   0    2T  0 part /test3 I8 r1 U( z, O! n& `
% c/ `( \, w& N% V% C) n
: I+ j) Q1 L  {8 @$ e
growpart  /dev/vdc 1, I: Y. D' C: h+ E% d$ B* G& o
failed [pt_update:1] pt_update /dev/vdc 1
/ \- Y! @! h% C- u, @' ?6 u* Rpartx: /dev/vdc: error updating partition 1) r! N% o) c* n
FAILED: disk=/dev/vdc partition=1: failed to repartition
8 |3 B2 Z- t' M  l3 p! T***** WARNING: Resize failed, attempting to revert ******
5 J  t; W; y8 a# M8 Y5 gWarning: The kernel is still using the old partition table.- W  z: N4 F8 C' w
The new table will be used at the next reboot.3 D0 u' N- ]( u! ~7 p( r
The operation has completed successfully.5 \; ^# m6 z+ i- Q$ V; n3 S. O0 h
***** Appears to have gone OK ****4 \" Z  \+ h! J: ]

" F$ H/ s$ c% d
! ]1 v- p+ ^: R6 T2 w8 t1 P+ J- ]- G2 Z& |
: A! f9 i$ \9 u6 k0 i
 楼主| 发表于 2023-7-15 10:00:50 | 显示全部楼层
[root@cusc_fortress ~]# umount /test
. w0 {) o! p( ?- g/ o[root@cusc_fortress ~]# parted /dev/vdc
( D2 C4 F8 y+ ~1 cGNU Parted 3.12 d$ p3 w5 A' F- D% W/ t
Using /dev/vdc
0 S. w0 q) j( p' k, K( JWelcome to GNU Parted! Type 'help' to view a list of commands.$ E. H& O6 O, Q' t7 W6 Q
(parted) resizepart  1 3072GB                                             5 i( x& z0 {) u- @9 |% u; e
(parted) print . }7 ?4 s( f3 `1 ~  X2 z+ `
Model: Virtio Block Device (virtblk)
& Q: ^+ X9 ^# L$ W9 mDisk /dev/vdc: 3299GB5 o) l" y8 A% C! N; u
Sector size (logical/physical): 512B/512B
4 U: l' Y7 W& f' L: O, QPartition Table: gpt
+ f# G& T/ I# f- L0 j: K0 NDisk Flags:
: U$ ^1 ?0 Y/ U+ a) F" g$ _
: e% R( g8 b. y  ^8 S" O9 _- iNumber  Start   End     Size    File system  Name  Flags
- |4 f4 L% I3 n) P& L8 G 1      17.4kB  3072GB  3072GB  xfs          0: T1 x; K+ l1 o& F' Y0 w
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:30 , Processed in 0.048676 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表