|
|
[root@cusc_fortress ~]# lsblk
. X/ T. E% C i: N, ?, iNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT& }2 ~# h* x/ ~8 K9 u ^8 [
vda 252:0 0 50G 0 disk + S, m2 N4 p6 g0 S4 }. e. U
├─vda1 252:1 0 1G 0 part /boot6 s+ t* S O8 P- p
└─vda2 252:2 0 49G 0 part
4 o5 s* u7 Z4 V ├─centos-root 253:0 0 147G 0 lvm /
# b# e/ G" f& X! y# a └─centos-swap 253:1 0 2G 0 lvm [SWAP]
" i5 ]( r# f3 o( t! a0 e, Tvdb 252:16 0 100G 0 disk
, D0 t) l P) q9 U7 s└─vdb1 252:17 0 100G 0 part
4 k$ R( H7 [* f4 V. | └─centos-root 253:0 0 147G 0 lvm /
5 e2 S" x$ z# @. d+ i }vdc 252:32 0 3T 0 disk
$ V* n% p9 a3 E5 Q$ S└─vdc1 252:33 0 2T 0 part /test' N& L, |8 z4 ?/ k) Y" o# ?
[root@cusc_fortress ~]# growpart -v /dev/vdc 33; @/ }. r. ]( R6 y% c9 y: T( x
update-partition set to true
* z- b* _! U o% Z3 ^no tools available to resize disk with 'gpt'* x9 U- @8 n% B8 @5 Q/ i* b
FAILED: failed to get a resizer for id ''4 X, c. p$ x8 r
[root@cusc_fortress ~]# growpart -v /dev/vdc ^C% F) L5 J+ h4 C1 c; j
[root@cusc_fortress ~]# yum install gdisk -y5 [% O0 ^1 G$ T
Loaded plugins: fastestmirror, langpacks8 g: t' ^2 X5 N7 Q/ s% r$ r) {
Loading mirror speeds from cached hostfile
4 r& e, U, s2 B * base: mirrors.huaweicloud.com& w, J( ^) E0 @
* extras: mirrors.bupt.edu.cn4 v2 L. F6 E! ]6 X5 W
* updates: mirrors.bupt.edu.cn$ g9 [. D7 X4 G9 S
Resolving Dependencies
2 V1 h$ o- j9 [0 {& M9 z+ {--> Running transaction check
1 F- G x7 A6 @' H) \, P---> Package gdisk.x86_64 0:0.8.10-3.el7 will be installed* e3 s/ y9 t( l& J5 I8 S
--> Finished Dependency Resolution
9 s3 ~( f U$ _ P: @/ v' @
/ O. Y" ~& P! ]5 ^8 D qDependencies Resolved
( ], R% a$ q9 }# V8 M2 }
4 g0 d- n- o! w' A=================================================================================================================================================================================================================
3 l0 l% t) i7 C' ~ l Package Arch Version Repository Size! n9 W5 z8 v8 E+ W+ r; P+ u/ ?
=================================================================================================================================================================================================================* E0 U( ~( C8 B1 V' g7 _" S; c4 J
Installing:
" Z5 q/ v5 @+ |! Y8 i% M- S/ m8 R gdisk x86_64 0.8.10-3.el7 base 190 k0 a( @0 x" D3 Q* ]" n
. T% W7 q7 ^. O+ F0 O) D* dTransaction Summary
* _7 q7 o3 E3 \' i1 m% B- d=================================================================================================================================================================================================================5 V- m9 R& {9 c; ]) l
Install 1 Package# | n& I4 P" w( a! [/ R; j5 n$ f
. M3 G, u0 J$ ]9 \
Total download size: 190 k
. z c4 ?# U+ {( u+ n" ?Installed size: 660 k
) b& V# n6 q% k" J/ @Downloading packages:
. i) H0 k0 H2 R( {, Y# ?* y5 O& jgdisk-0.8.10-3.el7.x86_64.rpm | 190 kB 00:00:00
/ M6 b; X3 _' T/ qRunning transaction check& P1 x5 B' B+ ~0 q
Running transaction test
. v* k' P2 x7 |7 ATransaction test succeeded4 P/ O4 M# \4 \& `3 m& L7 p
Running transaction
1 }$ {* J9 t5 w* Q% J! w6 B% h* h Installing : gdisk-0.8.10-3.el7.x86_64 1/1 6 I- z0 L; V7 y& D! T8 H! ^
Verifying : gdisk-0.8.10-3.el7.x86_64 1/1 3 Q# f* s- `$ [0 Y; @
6 N. y( s& _8 B2 O$ mInstalled:4 g+ D8 K9 q( N0 ]+ m: W* Z
gdisk.x86_64 0:0.8.10-3.el7 2 z: U% u# [+ ]- b" X
) [6 \0 `, \! `4 @0 m4 @ gComplete!- B# f) Q/ O6 C) s
[root@cusc_fortress ~]# growpart -v /dev/vdc 339 m- x+ ? @, T4 }4 _' h% I
update-partition set to true3 I+ _% D% s: X+ Y' v
resizing 33 on /dev/vdc using resize_sgdisk_gpt5 S% F+ Q+ N7 Q/ Y. J2 o* X0 r0 H/ H
disk=/dev/vdc partition=33: original sgdisk info:
- \+ B& m6 a& V9 hPartition #33 does not exist.& d: I+ k. U j2 f2 x. ^! y! _
Disk /dev/vdc: 6442450944 sectors, 3.0 TiB
8 j1 d4 o7 }& I9 p2 C) }3 WLogical sector size: 512 bytes4 a% w* b& a/ ?( b
Disk identifier (GUID): 20ED977B-30A0-4F51-AFCC-E54A8B2A5B90
( a5 S, g' U) v+ p9 @8 D8 r+ SPartition table holds up to 128 entries% e, S8 G" v3 g) U9 z
First usable sector is 34, last usable sector is 42949672626 ~" H$ |) w0 i
Partitions will be aligned on 8-sector boundaries) Q$ Y3 k- q( G z! r6 y
Total free space is 1919 sectors (959.5 KiB)
C# q4 e% b" a1 X/ K, [! Y6 B6 A. }3 c0 G: P4 S
Number Start (sector) End (sector) Size Code Name" O" }$ N0 F/ t6 s8 P1 q' j0 z
1 34 4294965343 2.0 TiB 0700 0" O% G3 D2 V2 G! c
disk=/dev/vdc partition=33: pretend sgdisk info
9 x9 t8 v# l6 p8 s4 y% M5 TDisk /dev/vdc: 6442450944 sectors, 3.0 TiB0 [5 H5 i s% O/ o$ \6 o) T6 l" o
Logical sector size: 512 bytes
# ~8 F- y3 M7 W8 U. l% EDisk identifier (GUID): 20ED977B-30A0-4F51-AFCC-E54A8B2A5B90# C2 j9 w& z1 h$ W% b4 B8 M9 K
Partition table holds up to 128 entries7 ?* W6 ?6 F$ ~8 r
First usable sector is 34, last usable sector is 6442450910, A2 X/ U; M& g( P9 O5 m
Partitions will be aligned on 8-sector boundaries
8 y& Z; B4 O/ ZTotal free space is 2147485567 sectors (1.0 TiB)) r; V" N& |5 n! G, d# O" H
$ W- t1 Z: Y, r0 N+ R- B4 \% g" rNumber Start (sector) End (sector) Size Code Name+ T7 U$ C" U4 ~( q* I* R- o
1 34 4294965343 2.0 TiB 0700 0
9 F7 \, ?4 w3 k I- CFAILED: disk=/dev/vdc partition=33: failed to get start sector
) r! u! O. H$ Z% S7 i, ]$ R+ Z1 O[root@cusc_fortress ~]# lsblk
0 `8 N4 Y" L, N* b1 g4 E9 hNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
) ^1 G, ~" m' u* d- j1 evda 252:0 0 50G 0 disk
4 N0 k. \) G n( S) e6 I- `├─vda1 252:1 0 1G 0 part /boot
8 o4 X2 v* A$ `/ F└─vda2 252:2 0 49G 0 part
l2 [7 |, V0 ]( e! R) E ├─centos-root 253:0 0 147G 0 lvm /; M/ i3 P! ]- u8 t% e& o
└─centos-swap 253:1 0 2G 0 lvm [SWAP]' g& D! ~& U% V5 v2 Z5 U! l
vdb 252:16 0 100G 0 disk
5 t3 H/ d" B* y) s└─vdb1 252:17 0 100G 0 part
+ ?& ~( E8 b- g% \$ ~6 ?6 i9 p# k └─centos-root 253:0 0 147G 0 lvm /
( d) g1 k$ E& s7 [* n0 I# @vdc 252:32 0 3T 0 disk 2 Z% O5 K% _# n3 m& G( j
└─vdc1 252:33 0 2T 0 part /test" @# I7 Q$ q& u7 B I: O+ J% g9 h9 z
3 k+ m9 J5 A* K f: c; G, R a7 e, p0 U9 c
growpart /dev/vdc 1
, d6 k1 O" B4 m* e, V# M. kfailed [pt_update:1] pt_update /dev/vdc 1" t, ?0 @ v) s6 O8 Q+ v
partx: /dev/vdc: error updating partition 10 j7 N! g8 R% W Y6 r
FAILED: disk=/dev/vdc partition=1: failed to repartition2 @' U8 e' g# ]+ G% J* t
***** WARNING: Resize failed, attempting to revert ******+ @% }2 A6 [' y n ?$ I- a
Warning: The kernel is still using the old partition table." b; O$ _# \5 j6 o7 }
The new table will be used at the next reboot.
% ^: i, T7 V3 H) A2 Z/ kThe operation has completed successfully.) d1 _" Z6 B" H8 H1 U
***** Appears to have gone OK ****
J k! d9 K! h6 s, i+ A( P* _5 k! Z3 {; G
3 V, G8 ?, \" s, V P- [, ^
* q% N4 f2 J! f5 o# G- y' b; b: x! K8 n6 Z, y
|
|