找回密码
 立即注册
搜索
查看: 222|回复: 0

Linux磁盘分区扩容,原地扩容

[复制链接]

979

主题

90

回帖

5万

积分

管理员

积分
53057
发表于 2022-8-1 14:48:55 | 显示全部楼层 |阅读模式
[root@xyh-moon ~]# e2fsck -f /dev/vdb1
" A7 Y8 D2 o% x1 k+ a4 Ie2fsck 1.42.9 (28-Dec-2013)( t" V9 c+ u) Y2 |3 J
/dev/vdb1 is mounted.
# K3 F: }' w; Pe2fsck: Cannot continue, aborting.
; K9 r! l7 H+ X" v# U" ^" k  D( g  ~1 O

% o% E# `' e2 t0 I[root@xyh-moon ~]# resize2fs /dev/vdb1
! b3 @8 K4 y0 w* o9 U- Iresize2fs 1.42.9 (28-Dec-2013)
5 w8 M- |4 N& [' `$ p0 }Filesystem at /dev/vdb1 is mounted on /mnt/blockstorage; on-line resizing required7 Z8 r/ W* J1 d3 o! z, _0 l
old_desc_blocks = 15, new_desc_blocks = 32) p  Q) o- k7 a( p+ h& K. R: R
The filesystem on /dev/vdb1 is now 65535739 blocks long.
. [* D* S. L9 x/ e7 y- g" b: ^
5 d8 P/ o. Z& w% a) Y+ X+ Z8 Z1 z[root@xyh-moon ~]# mount -a
  x$ C. Q# `/ J1 B[root@xyh-moon ~]# df -h+ W+ c# g! }8 l/ \: E
Filesystem               Size  Used Avail Use% Mounted on
- V. x" l# j  Sdevtmpfs                 471M     0  471M   0% /dev& s3 f; _# z2 G" s
tmpfs                    490M     0  490M   0% /dev/shm* M" u9 s2 X, ?" ]0 i
tmpfs                    490M  7.5M  483M   2% /run
  [( L' }& s' Y6 S! z3 xtmpfs                    490M     0  490M   0% /sys/fs/cgroup. t; R5 ~: M' C/ Q
/dev/mapper/centos-root   29G  7.7G   22G  27% /
+ ^( Z/ Z1 _8 S. \% L! k/dev/vda1               1014M  208M  807M  21% /boot
9 V: p& Z9 |: t% Y0 l5 L/ w' itmpfs                     98M   12K   98M   1% /run/user/42
0 L( c( V% X+ B( S: D1 w6 Rtmpfs                     98M     0   98M   0% /run/user/0. [; l' g  R4 U
/dev/vdb1                246G  112G  125G  48% /mnt/blockstorage
$ z5 \- U5 l, Z8 c. g# F
7 r; M+ W8 H" x3 V6 s" K
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|

GMT+8, 2025-2-25 08:58 , Processed in 0.081299 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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