找回密码
 注册
查看: 469|回复: 1

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2023-7-15 10:00:49 | 显示全部楼层 |阅读模式
[root@cusc_fortress ~]# lsblk
! R2 h7 e3 V. S# M6 ?2 ?: oNAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
# D7 n4 D% o, y8 }9 ~vda             252:0    0   50G  0 disk
. e: Y2 e" K) O9 s2 H7 P  D% _├─vda1          252:1    0    1G  0 part /boot. R: x& q& r1 O6 Y
└─vda2          252:2    0   49G  0 part
/ c' e" s5 a# n6 F5 C4 ]& M  ├─centos-root 253:0    0  147G  0 lvm  /' l1 s: j. }3 w+ Y8 S
  └─centos-swap 253:1    0    2G  0 lvm  [SWAP]
; ~" M! |  y9 Tvdb             252:16   0  100G  0 disk 4 U- E% z9 o5 M% C) A8 s% @5 p
└─vdb1          252:17   0  100G  0 part
( z- I+ G' A7 E. p- W7 Z  └─centos-root 253:0    0  147G  0 lvm  /
. P4 V6 E+ U5 y- L( q5 Y. \5 Gvdc             252:32   0    3T  0 disk ; c! V% d( Z: G' y+ K) Y$ n- ?  {
└─vdc1          252:33   0    2T  0 part /test+ t! ?3 \' G- _. T. C8 p# H( B
[root@cusc_fortress ~]# growpart -v /dev/vdc 33* E9 |/ Q; d8 m% [2 n  h' Q0 W: O+ ^
update-partition set to true8 J8 Z* R$ Y  z0 l! \& d
no tools available to resize disk with 'gpt'
% T" U1 i" O! [8 _, IFAILED: failed to get a resizer for id ''. e) u9 [4 t: R
[root@cusc_fortress ~]# growpart -v /dev/vdc ^C7 R' N) r* @% m, `/ h% F. `
[root@cusc_fortress ~]# yum install gdisk -y
! c! M5 P% Y1 h8 V: N& CLoaded plugins: fastestmirror, langpacks8 v) S1 x$ v2 i  D
Loading mirror speeds from cached hostfile
( X4 P9 Z1 x3 ?" c$ Z. ]0 _ * base: mirrors.huaweicloud.com% b! j/ `* u; b, Q* E0 J5 I1 L1 w
* extras: mirrors.bupt.edu.cn9 a  v( t, P5 ^7 y; R" ]
* updates: mirrors.bupt.edu.cn! c* R) ]7 G& ~' ^: O
Resolving Dependencies9 A, K6 k* G8 M3 R6 P4 R2 B5 B, \- l
--> Running transaction check
* u; J4 L8 f; I6 `5 ?---> Package gdisk.x86_64 0:0.8.10-3.el7 will be installed
+ T( s+ O* P' p% s" z$ n, R--> Finished Dependency Resolution6 R2 _. ^1 \2 @4 t% P/ X

$ Z' e5 n& ~9 Y& SDependencies Resolved0 _1 ?& v+ R3 G) Z
( d) e8 B7 e# x# x" W
=================================================================================================================================================================================================================% u9 {5 @" d+ M2 M- U# n5 |$ [
Package                                         Arch                                             Version                                                   Repository                                      Size1 z8 p4 l8 q! b5 l  }
=================================================================================================================================================================================================================
0 H/ v" V  ]# A6 n/ BInstalling:- {/ x* |( |3 q* o, _
gdisk                                           x86_64                                           0.8.10-3.el7                                              base                                           190 k4 `* }# N3 F  L  Q, F6 c. Z
* J- e( n( x0 w
Transaction Summary4 [$ d' Q! D) `; g- R
=================================================================================================================================================================================================================
) r6 w+ @+ R5 C& T6 T, A& ~Install  1 Package& T7 A$ x2 N- j& D

+ |" O& _. \9 Y" A% E! eTotal download size: 190 k
9 j1 \' {- I5 H7 yInstalled size: 660 k
# i: g9 K7 a( Q. a0 C/ jDownloading packages:
: N$ G6 H) ^& U- c3 ]- Q- M5 Rgdisk-0.8.10-3.el7.x86_64.rpm                                                                                                                                                             | 190 kB  00:00:00     
* d! L5 ]% u/ C( l' s9 _! NRunning transaction check
) _4 \, t% J" a2 n/ b* A; qRunning transaction test1 \9 _7 R1 z: u  M
Transaction test succeeded
+ `8 @6 }9 W4 a% ^5 s; c4 ?Running transaction. E0 ^2 h8 j5 N7 ?6 V/ W
  Installing : gdisk-0.8.10-3.el7.x86_64                                                                                                                                                                     1/1
, j4 h' {' x* _7 x% `3 u; T  Verifying  : gdisk-0.8.10-3.el7.x86_64                                                                                                                                                                     1/1
3 v$ h; q$ I! p- F: R) N8 D: E
  y) Y9 a2 N' C* fInstalled:
: i- W; ~' P+ v" g( I  gdisk.x86_64 0:0.8.10-3.el7                                                                                                                                                                                    0 Z; G9 |% q8 W

5 V* ~9 B! e1 i, ~4 S9 iComplete!
2 L- c" T6 ]# o* V3 G! L[root@cusc_fortress ~]# growpart -v /dev/vdc 33
, m% n. h; y# H. R) X9 [) d" y9 {- Uupdate-partition set to true3 K5 V9 E! u& o' f) O% I
resizing 33 on /dev/vdc using resize_sgdisk_gpt
4 l& K: Q9 n$ `* F+ Cdisk=/dev/vdc partition=33: original sgdisk info:
7 r) N( F  J( M+ r! r+ }Partition #33 does not exist.3 C. V& q  F0 v; O0 v- A: T1 ]5 y
Disk /dev/vdc: 6442450944 sectors, 3.0 TiB; w  p. m2 j5 m. q9 B9 F9 s
Logical sector size: 512 bytes- }" ?6 y+ H6 o$ h
Disk identifier (GUID): 20ED977B-30A0-4F51-AFCC-E54A8B2A5B90
$ p; w4 n/ J9 k  \. x+ _, }Partition table holds up to 128 entries
9 |, _  y. g: G9 X/ r! q6 I' z! tFirst usable sector is 34, last usable sector is 4294967262
4 D0 {- @7 |7 `- e4 DPartitions will be aligned on 8-sector boundaries9 a/ @( T, e8 c  F/ D, }+ j
Total free space is 1919 sectors (959.5 KiB)0 @) X% J3 Z) n

' z0 w+ {5 K$ I2 r0 T6 e3 R1 \0 zNumber  Start (sector)    End (sector)  Size       Code  Name' F2 S- F1 o/ j, c, q
   1              34      4294965343   2.0 TiB     0700  0
- O0 j, D1 l  n" Z+ U/ Fdisk=/dev/vdc partition=33: pretend sgdisk info
) t5 \" B$ i2 a. d+ u" C( q# NDisk /dev/vdc: 6442450944 sectors, 3.0 TiB" {0 k) j. T) ]
Logical sector size: 512 bytes# s8 {# V1 d/ A0 c
Disk identifier (GUID): 20ED977B-30A0-4F51-AFCC-E54A8B2A5B90
. v9 G1 m  a" y9 a8 Z: iPartition table holds up to 128 entries" T5 V* \3 r: p8 K4 L4 _
First usable sector is 34, last usable sector is 6442450910
  n3 C6 ~- P) q0 V7 U$ X  GPartitions will be aligned on 8-sector boundaries4 z! H$ N7 H! G6 p/ I' Q
Total free space is 2147485567 sectors (1.0 TiB)
( Z6 q" |% G  d( \. q9 C3 C; t! v6 j# H2 v
Number  Start (sector)    End (sector)  Size       Code  Name: P& U, e. o4 `. O+ n9 R
   1              34      4294965343   2.0 TiB     0700  0
  v; j7 i) @1 V; o! w! n9 e; [FAILED: disk=/dev/vdc partition=33: failed to get start sector
: E: x6 _( q$ J4 x[root@cusc_fortress ~]# lsblk
% n3 e% a$ |% `5 \8 j' BNAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT* @; d# J6 o- ], n' Q) j2 C* z# t$ t
vda             252:0    0   50G  0 disk
2 K2 h8 V+ C  Z& d- p├─vda1          252:1    0    1G  0 part /boot
7 q+ E% @# @7 q+ F4 e! T└─vda2          252:2    0   49G  0 part
% x& |) L% @' Y6 Y  ├─centos-root 253:0    0  147G  0 lvm  /+ \/ W4 E" h. c' A1 @! a
  └─centos-swap 253:1    0    2G  0 lvm  [SWAP]
3 ^: O. B! G1 b5 `6 q) x6 fvdb             252:16   0  100G  0 disk
4 D5 a) q9 \5 [7 C└─vdb1          252:17   0  100G  0 part
0 B- o% i: S! t( c+ ^  T1 r  └─centos-root 253:0    0  147G  0 lvm  /' {& l1 @+ k. z9 [, g# I
vdc             252:32   0    3T  0 disk 3 K. y' x( @0 O0 ]+ {+ Y: n2 b2 g
└─vdc1          252:33   0    2T  0 part /test
; R! ^0 n1 R8 S- H" c6 W. c5 h" _# [5 c1 @' @4 Y% V0 Z  ^5 m

8 E8 T# {7 l- b# ?- Q5 _3 Sgrowpart  /dev/vdc 1% y+ I7 Y3 v1 c: p9 b" `
failed [pt_update:1] pt_update /dev/vdc 1
0 I( J  M" P4 k/ r' _6 Hpartx: /dev/vdc: error updating partition 1
. p+ U( B( W5 {6 n+ s0 H4 oFAILED: disk=/dev/vdc partition=1: failed to repartition
9 c% q& O5 u7 D8 x***** WARNING: Resize failed, attempting to revert ******) S$ w/ b0 c: _$ q/ Y7 h$ q1 w! }
Warning: The kernel is still using the old partition table.& n) Y1 J% {! W3 l& {; y/ v
The new table will be used at the next reboot.) b% P1 E! j& Z
The operation has completed successfully.+ j& ]( N2 O6 X, S( \
***** Appears to have gone OK ****9 m. a/ _1 p  Z7 ]

$ y0 N% s7 u, G! j# K) k$ Y
- g5 D& O- K/ k8 m6 f' o! }6 O# g0 s- T, N9 Y

- `* U  X/ `( q. t4 j# ]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2023-7-15 10:00:50 | 显示全部楼层
[root@cusc_fortress ~]# umount /test ) S9 M( a2 H/ l  d" x; N/ T( b" w% B
[root@cusc_fortress ~]# parted /dev/vdc
# O$ ^; K. L2 _! S# c0 oGNU Parted 3.1
% T% n; p: ?/ x' QUsing /dev/vdc  X$ ]3 b5 [, l$ t% ?1 k+ e
Welcome to GNU Parted! Type 'help' to view a list of commands.
8 v9 B$ W6 _/ k% T; N4 r& a(parted) resizepart  1 3072GB                                             
4 T; s$ y  {) V3 p9 L) y/ ~% `1 i(parted) print / x% l, D+ @0 {! I+ r: @& w
Model: Virtio Block Device (virtblk)
' R1 |9 i, j' e8 F8 A, MDisk /dev/vdc: 3299GB
! W$ z8 [" i- T$ k1 ZSector size (logical/physical): 512B/512B0 _. ~' t( Y) B" J% N
Partition Table: gpt
) S- Q- s6 h! U5 J* P4 D" m0 FDisk Flags: # N$ z! @3 F" A

! Y3 A. c# o- q" R# q. u& K$ gNumber  Start   End     Size    File system  Name  Flags
  z; y0 {6 F1 z' ^6 K 1      17.4kB  3072GB  3072GB  xfs          04 C4 p" Q2 j0 Q$ L) X3 }
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 01:46 , Processed in 0.016334 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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