找回密码
 注册
查看: 467|回复: 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
6 l8 o- y4 F. DNAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
4 A: v5 c0 r% gvda             252:0    0   50G  0 disk
! Z! ?) y5 w$ ]& J( d8 O( w├─vda1          252:1    0    1G  0 part /boot
* Z' a. U0 I5 W8 [3 o└─vda2          252:2    0   49G  0 part . ~8 _+ j, l7 S) x  z
  ├─centos-root 253:0    0  147G  0 lvm  /  z) j- E  M8 B( t# v7 e; R
  └─centos-swap 253:1    0    2G  0 lvm  [SWAP]( V! a) C! T1 @5 h( N
vdb             252:16   0  100G  0 disk 2 O7 }6 S2 Z" ~% N+ I# h
└─vdb1          252:17   0  100G  0 part
. @* A" R0 j0 y0 x  └─centos-root 253:0    0  147G  0 lvm  /
+ S1 \7 q5 ~* D% M) hvdc             252:32   0    3T  0 disk
4 c; ^/ j. [" L2 O2 H└─vdc1          252:33   0    2T  0 part /test
' _7 Y, {- Z7 {: I" X' Y[root@cusc_fortress ~]# growpart -v /dev/vdc 330 \: j, _/ t$ u7 P
update-partition set to true; p& x! u) V4 k) Z2 ~# E
no tools available to resize disk with 'gpt'% [2 O* j( e# o7 r$ h
FAILED: failed to get a resizer for id ''6 A- m7 _  o" w* g* O) \0 g+ `7 y
[root@cusc_fortress ~]# growpart -v /dev/vdc ^C; @' L9 V7 l0 W6 f' l/ f  G2 t
[root@cusc_fortress ~]# yum install gdisk -y
+ f# d9 r4 T6 {2 tLoaded plugins: fastestmirror, langpacks
  m! h3 L" F2 QLoading mirror speeds from cached hostfile$ M$ i% {& s0 J" O  Q3 K% c
* base: mirrors.huaweicloud.com5 N# H% ^- n: F, V7 w
* extras: mirrors.bupt.edu.cn
, q, H; r$ k; B7 H, r; ~ * updates: mirrors.bupt.edu.cn. f( \' t2 {% n
Resolving Dependencies: [% ]* R( l/ V1 I+ k4 t8 R% U9 M
--> Running transaction check% D( x- M3 C( ^
---> Package gdisk.x86_64 0:0.8.10-3.el7 will be installed7 H8 ~. p0 h) J& }
--> Finished Dependency Resolution
, F* \* j0 A5 W- J1 J3 a4 Q8 g/ T* q3 D* v5 u5 w) f3 h( V0 U
Dependencies Resolved: I: l+ w7 ^% e9 ?( N) h" f

& ^3 I* O/ \, e& }4 I3 h$ Y8 m=================================================================================================================================================================================================================$ d1 V" ?% |" U& }! k
Package                                         Arch                                             Version                                                   Repository                                      Size* p* o/ c( ^6 O3 E! I
=================================================================================================================================================================================================================
2 E: q" ]. u, W& }& _; r- ?# MInstalling:9 ?; A! R. ~! V! N; x
gdisk                                           x86_64                                           0.8.10-3.el7                                              base                                           190 k$ G" |  [$ J# ^5 V6 C

7 }! r9 p/ K# a9 s% e1 {Transaction Summary: R  w1 J2 ^7 R- Z" T/ |
=================================================================================================================================================================================================================
8 X. N5 j1 T" \  B# DInstall  1 Package9 P+ f+ [2 N# Y3 z
  D4 ?) s% L  x% @3 n' n6 G
Total download size: 190 k
8 z$ X' n0 Q  Y& q9 G/ XInstalled size: 660 k  v; x  L- Z  I' D0 Z
Downloading packages:& q1 M; u9 N. W5 c, l
gdisk-0.8.10-3.el7.x86_64.rpm                                                                                                                                                             | 190 kB  00:00:00     
4 e$ U# {+ I0 W4 k# ^# f. yRunning transaction check+ {" T) a' y: J; o6 W/ [4 G" W4 D
Running transaction test7 o7 m) J. D7 l
Transaction test succeeded
9 S4 ]  U: B" f, cRunning transaction
1 V$ W( ^. T, k  Installing : gdisk-0.8.10-3.el7.x86_64                                                                                                                                                                     1/1
! N& s5 _1 `& f- [" `  }- N- \1 o  Verifying  : gdisk-0.8.10-3.el7.x86_64                                                                                                                                                                     1/1 # D& P1 ?! K- u7 w) E

! L, }- H  ?3 i' LInstalled:" `6 }6 m0 G) p7 z
  gdisk.x86_64 0:0.8.10-3.el7                                                                                                                                                                                    3 ~3 ?' n3 Q* [
8 e8 h/ Z8 u, o- y" \! X! g
Complete!
/ A) b7 V* l6 z0 L7 _: Q[root@cusc_fortress ~]# growpart -v /dev/vdc 332 E0 Q  o4 T7 V/ F
update-partition set to true
# v' u. n4 X0 E0 M& ~. q' r. yresizing 33 on /dev/vdc using resize_sgdisk_gpt
& q( M* K3 O. {  o9 Adisk=/dev/vdc partition=33: original sgdisk info:- T/ V; X0 L' o) g
Partition #33 does not exist.# K3 A6 N0 u- j1 e* C2 f" O
Disk /dev/vdc: 6442450944 sectors, 3.0 TiB5 Y1 p7 C* q) {, U6 [
Logical sector size: 512 bytes# f6 U' K9 \7 ?0 H+ P" e" `0 l8 n& g
Disk identifier (GUID): 20ED977B-30A0-4F51-AFCC-E54A8B2A5B909 T  F2 p% W0 _) f2 M# q9 D, [
Partition table holds up to 128 entries
! y0 \  b, k* F3 T) e) T9 AFirst usable sector is 34, last usable sector is 4294967262" U+ n, k  ?/ m" V
Partitions will be aligned on 8-sector boundaries+ ?, c, i! J2 ?# b, b9 c
Total free space is 1919 sectors (959.5 KiB)5 N) y! e9 z+ e) m+ q+ ]+ x8 d& L
/ N7 \" z! X% u9 d& d5 [4 n$ ~# Y
Number  Start (sector)    End (sector)  Size       Code  Name
) F6 X7 C+ n% u   1              34      4294965343   2.0 TiB     0700  0
& a  ]( X) m% X5 a# e7 q+ \disk=/dev/vdc partition=33: pretend sgdisk info; |' ?. X& C! G
Disk /dev/vdc: 6442450944 sectors, 3.0 TiB
8 s! ]9 Z) J# J$ \" a7 l' XLogical sector size: 512 bytes% `% p2 J  S) Y- C0 Q, Z
Disk identifier (GUID): 20ED977B-30A0-4F51-AFCC-E54A8B2A5B90
6 |: \; }  Z8 p7 v* a/ g% g% g* J' ^Partition table holds up to 128 entries) |. \- S5 [+ l6 G
First usable sector is 34, last usable sector is 6442450910) M. m  p8 t2 c- e; a/ v5 b4 v+ l# g
Partitions will be aligned on 8-sector boundaries* K- X7 Y8 e1 F3 s; A' l
Total free space is 2147485567 sectors (1.0 TiB)  d; O0 X  q9 ^. p& z5 R* d
0 k; h. O% M1 E0 o
Number  Start (sector)    End (sector)  Size       Code  Name( Q. r; {( ?& H( N' r3 y$ o
   1              34      4294965343   2.0 TiB     0700  0
1 M" L# e/ {2 n0 K# W9 s: fFAILED: disk=/dev/vdc partition=33: failed to get start sector
1 s9 w2 h& I3 ~& Q) o1 i[root@cusc_fortress ~]# lsblk 5 J: I( a0 z) u  v) Z
NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
2 I( k0 B1 |' R  _- {$ wvda             252:0    0   50G  0 disk   I' w% o' G$ G0 b  w
├─vda1          252:1    0    1G  0 part /boot% F) N3 l6 v5 F( U; z! `+ e6 E2 R! r
└─vda2          252:2    0   49G  0 part
' N" Z  G) X1 K0 ^; I5 E- C3 M1 A  ├─centos-root 253:0    0  147G  0 lvm  /
) H/ l6 B# ^" G  └─centos-swap 253:1    0    2G  0 lvm  [SWAP]
1 V! q6 e* [# a2 n4 [2 Nvdb             252:16   0  100G  0 disk $ k4 i/ Q  A! n
└─vdb1          252:17   0  100G  0 part 4 ]% A4 |' c" ^6 Y
  └─centos-root 253:0    0  147G  0 lvm  /# ]/ }% x- F. q, e$ [% W. C
vdc             252:32   0    3T  0 disk
. a( {7 x6 I, q7 c2 L, Q4 h. t' D└─vdc1          252:33   0    2T  0 part /test3 o& H! }- Y% |/ p" a9 @, h

! k2 O& f4 ^! T1 K
: x$ |- Y9 _5 i: l+ Z7 K* b# P8 Hgrowpart  /dev/vdc 1
; L0 o# Z, n5 w( i6 [# D1 W7 sfailed [pt_update:1] pt_update /dev/vdc 10 p2 j+ i" y' W/ W$ b5 k1 q
partx: /dev/vdc: error updating partition 1
, b% J+ \# g2 w# X; M8 ]; y4 }- EFAILED: disk=/dev/vdc partition=1: failed to repartition4 w5 d2 o# j  X8 L! A0 c
***** WARNING: Resize failed, attempting to revert ******/ A: M: h# o% f, m
Warning: The kernel is still using the old partition table.
# d4 v% c# ]5 |0 [# P" {9 G( VThe new table will be used at the next reboot.# P" P0 W# v9 r) i: V3 V
The operation has completed successfully.8 ^& q, i3 {! `5 c  H1 b1 k
***** Appears to have gone OK ****
1 w, D( Z/ e( h' M$ E; y7 c6 I; \3 T7 j* \* Y2 P- c! C( B

9 |, a5 f' B3 N
  d/ }) i4 ]5 d1 N# K: J
1 z' B' E5 u+ V7 d" ]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2023-7-15 10:00:50 | 显示全部楼层
[root@cusc_fortress ~]# umount /test
7 ^! `+ ^4 e/ q[root@cusc_fortress ~]# parted /dev/vdc
" J8 o& ]) x/ {' r; I1 l( _. AGNU Parted 3.1
/ {" D# Z" _' I0 RUsing /dev/vdc
2 L6 d  F" q  y( n9 r1 z, yWelcome to GNU Parted! Type 'help' to view a list of commands.; k; i2 j+ _. C$ d0 c
(parted) resizepart  1 3072GB                                             % l; J# q8 g9 ?; ?1 @
(parted) print * @! K* f3 B8 _' a3 A
Model: Virtio Block Device (virtblk). y' ^+ g% ]; Y1 z! S: {' H
Disk /dev/vdc: 3299GB
* ?  J. g+ G4 m6 Y7 ~/ ^8 ]0 XSector size (logical/physical): 512B/512B
. Q5 b/ V% o8 }Partition Table: gpt
9 h% l# ?# V1 G, L2 nDisk Flags:
& x6 G. V( w& b% j
3 ^$ J3 J+ J9 }, M' q9 gNumber  Start   End     Size    File system  Name  Flags+ e! v" C( \% ^
1      17.4kB  3072GB  3072GB  xfs          0
5 ]5 K: O; ^& s
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:43 , Processed in 0.023718 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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