- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
[root@cusc_fortress ~]# lsblk
9 G4 F8 s0 j, m3 S0 Q" l9 }' [4 D5 nNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT* E$ [) R7 q* X
vda 252:0 0 50G 0 disk
" v/ U6 H+ p" Y├─vda1 252:1 0 1G 0 part /boot# z& P' n$ `, q: a# `+ T' B
└─vda2 252:2 0 49G 0 part 0 G8 `3 `6 e7 L5 z7 O
├─centos-root 253:0 0 147G 0 lvm /
6 F: z0 y* t3 E. U: V$ H └─centos-swap 253:1 0 2G 0 lvm [SWAP]
' H% x& k7 J% Y& f: I; Pvdb 252:16 0 100G 0 disk
0 ]& `* U; q, ?/ i! [! C& o└─vdb1 252:17 0 100G 0 part
# H+ j/ G0 g- C9 h, | └─centos-root 253:0 0 147G 0 lvm /' h0 ~( G$ v3 [
vdc 252:32 0 3T 0 disk
: e- z8 H0 L E. |( l( q( Q W└─vdc1 252:33 0 2T 0 part /test
! |; V/ e9 w) q! @" q' }: W[root@cusc_fortress ~]# growpart -v /dev/vdc 33& A. e( ^9 v1 q3 P% j
update-partition set to true
/ r) ?& o2 i, a* Lno tools available to resize disk with 'gpt'- y7 H8 j8 n* ^0 D! T/ X. {
FAILED: failed to get a resizer for id ''# B. k& i* ~0 J* F# `6 B) j/ f: R2 Q
[root@cusc_fortress ~]# growpart -v /dev/vdc ^C
$ L2 m8 l2 Q- ^1 W6 u1 Q) Z0 q: i- @[root@cusc_fortress ~]# yum install gdisk -y- B% T" w2 u' F' V1 |6 @
Loaded plugins: fastestmirror, langpacks* F6 R: G) v* K
Loading mirror speeds from cached hostfile
& A# q% t$ s3 y6 E2 U9 W6 d) G * base: mirrors.huaweicloud.com" }3 B8 Z- B4 g \
* extras: mirrors.bupt.edu.cn0 K, J% e( D9 @5 b: \' K
* updates: mirrors.bupt.edu.cn0 @" H& f1 ^9 y
Resolving Dependencies
# M- q; n, T! x' W8 k& J--> Running transaction check# o; t# R) O% m4 W( P g
---> Package gdisk.x86_64 0:0.8.10-3.el7 will be installed
3 c) q/ V a5 u; p--> Finished Dependency Resolution' }# A( n c# j7 e; S" c' o
' m/ t+ K4 Q) [ U
Dependencies Resolved1 H5 ~- x7 j2 A) Z2 q+ c& I
, z9 D8 W0 } k=================================================================================================================================================================================================================
& M; w- W3 |+ j5 [6 o0 ^4 D2 ` Package Arch Version Repository Size
# A2 i" H- N5 ?! k# }=================================================================================================================================================================================================================
! K. M; s1 x0 a! kInstalling:+ J& D& \/ f" g% U9 G% P2 @% [
gdisk x86_64 0.8.10-3.el7 base 190 k$ z4 v1 B/ H9 b
0 l8 Y; E+ i* ?" d1 F4 n: i
Transaction Summary
) V# e( Z) N/ E9 j% V7 }=================================================================================================================================================================================================================8 Q2 d1 V* C4 e& {+ M& ~5 s& \) H
Install 1 Package
3 m2 `- f f4 l; J
6 l- `/ F/ h$ v1 S# ~7 E- ]! [Total download size: 190 k
I+ | @( S. Z. g% ]( \Installed size: 660 k3 m- i' R, f7 A1 o! h" v: f/ B* x# x
Downloading packages:4 u4 H# a3 ?0 m+ k$ D: `$ C. B$ \
gdisk-0.8.10-3.el7.x86_64.rpm | 190 kB 00:00:00
' J3 H: _4 |( URunning transaction check
: I7 X' F& p1 A7 T& ~" jRunning transaction test" [9 v, K! ]9 y4 V4 V% y
Transaction test succeeded
0 B" k2 k* V" y' }' ERunning transaction8 Z: O- n, N% w
Installing : gdisk-0.8.10-3.el7.x86_64 1/1
5 p* t5 f8 v/ E% _+ Z Verifying : gdisk-0.8.10-3.el7.x86_64 1/1
3 P6 \" P3 K; }7 p% i* H$ }, m; i' y1 v' e8 Z' ^& |3 z P \
Installed:9 ?; a& _9 u; X6 z) m+ K
gdisk.x86_64 0:0.8.10-3.el7 , B0 H7 X0 w- K# r% n2 N
/ b& L; Z; u4 O. gComplete!1 D; [" ]: T' e: N* H! E
[root@cusc_fortress ~]# growpart -v /dev/vdc 33
3 }/ _5 J! {& ^update-partition set to true
/ _* L. R" M3 V3 D: h7 x1 j9 G5 eresizing 33 on /dev/vdc using resize_sgdisk_gpt
: L+ I; W4 p/ J0 a/ N* Ddisk=/dev/vdc partition=33: original sgdisk info:* l5 k. ~0 K4 C- @) ]
Partition #33 does not exist.
# M4 t9 n1 P9 P) E$ ]% H4 M! B x% KDisk /dev/vdc: 6442450944 sectors, 3.0 TiB" [+ O0 f4 S8 k
Logical sector size: 512 bytes7 e3 V) q8 @6 ?4 `: d' O# T. S
Disk identifier (GUID): 20ED977B-30A0-4F51-AFCC-E54A8B2A5B90, \8 \; b$ m* x4 F6 V0 p+ Y* P; Q
Partition table holds up to 128 entries
2 I7 P0 b5 ~0 `First usable sector is 34, last usable sector is 42949672625 I. Z+ D5 e0 ` X8 K
Partitions will be aligned on 8-sector boundaries
* M# G1 [4 M+ Q. W; RTotal free space is 1919 sectors (959.5 KiB)6 @0 P2 f- V0 K. O* s# `+ Y
^; c- v! ^/ N* q5 u, N' ?Number Start (sector) End (sector) Size Code Name
" i: l# D: s; i# [& { 1 34 4294965343 2.0 TiB 0700 0# Y @7 t1 V+ h* m- `8 v
disk=/dev/vdc partition=33: pretend sgdisk info' K) N. \2 ?7 S1 n2 B) b, A
Disk /dev/vdc: 6442450944 sectors, 3.0 TiB
! o2 R; W8 F( S' N# A; p4 uLogical sector size: 512 bytes8 B: b' r0 t: J& y
Disk identifier (GUID): 20ED977B-30A0-4F51-AFCC-E54A8B2A5B905 G6 V' _$ @" M& q% o9 b, \& m% P
Partition table holds up to 128 entries
3 i! c. c" F1 r4 }9 s. W1 E' T- KFirst usable sector is 34, last usable sector is 64424509109 W$ z2 I4 {4 ~) |
Partitions will be aligned on 8-sector boundaries: }. s2 r, |4 @% P! {# M
Total free space is 2147485567 sectors (1.0 TiB)% M- x! Q" H1 [: H+ E6 `
9 Q5 Y- X: [, s6 i+ N: Z' K5 bNumber Start (sector) End (sector) Size Code Name
]( @6 W: q9 H+ Z 1 34 4294965343 2.0 TiB 0700 0% d; ]" F- W/ @& _
FAILED: disk=/dev/vdc partition=33: failed to get start sector$ s$ w1 j, p: z/ b5 j8 @
[root@cusc_fortress ~]# lsblk
9 i- k2 `& N% k& XNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT! Z" U% x% U* }! h, o0 {
vda 252:0 0 50G 0 disk
% p; ?$ [' F/ V& ]├─vda1 252:1 0 1G 0 part /boot, g* v5 S. E2 b {6 H3 H1 B
└─vda2 252:2 0 49G 0 part
3 N8 N' e) t& {& O( s ├─centos-root 253:0 0 147G 0 lvm /
/ t! @. ]* Q7 E4 z$ u' N) h └─centos-swap 253:1 0 2G 0 lvm [SWAP]# T, P1 s6 T M1 O
vdb 252:16 0 100G 0 disk ! W; }# }( I# e- z
└─vdb1 252:17 0 100G 0 part
% q$ h8 l) l$ P3 g, x9 f └─centos-root 253:0 0 147G 0 lvm /
2 @/ ^2 X! ]% i( q0 J1 h( F7 S7 fvdc 252:32 0 3T 0 disk 7 i9 A9 u- n/ \1 i- Q
└─vdc1 252:33 0 2T 0 part /test
2 Z" y3 l+ ^3 ?
x) M1 o/ E3 d5 {5 M7 `- m6 v' C, C; `, x# e6 n, v6 [/ ?
growpart /dev/vdc 1
0 Y; ], W) q4 W6 d5 w v& C$ xfailed [pt_update:1] pt_update /dev/vdc 1
0 j1 B- B$ ]5 ~. k- x/ Y ^partx: /dev/vdc: error updating partition 1
! q6 U% w* c5 s6 N; X( TFAILED: disk=/dev/vdc partition=1: failed to repartition
/ y4 T. l8 [. m4 ?***** WARNING: Resize failed, attempting to revert ******
/ n, M* \# t# Z, s' D( OWarning: The kernel is still using the old partition table.
1 ?( o6 S0 V# j M! dThe new table will be used at the next reboot./ s7 d5 @! ]9 t
The operation has completed successfully.4 I- C" Y+ \3 y1 ?- d% b' L9 C
***** Appears to have gone OK ****) v3 `* r: O; a& j; a2 K1 ]
0 u# G+ G- m5 h, z/ ^: t9 J; E
: `* @( X# r- c) j% s2 `' H
; P- Q- n; v# m0 K [
|
|