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

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

[复制链接]

991

主题

92

回帖

5万

积分

管理员

积分
55457
发表于 2022-8-1 14:48:55 | 显示全部楼层 |阅读模式
[root@xyh-moon ~]# e2fsck -f /dev/vdb1
7 t' s7 k. R+ L# qe2fsck 1.42.9 (28-Dec-2013)! {- q; P/ V" }. i
/dev/vdb1 is mounted.
: \2 M) F; ^5 l4 Ke2fsck: Cannot continue, aborting.
" S, I: M, x1 Z) C( B6 n# r3 z* m$ n7 g0 m3 w- j

( u$ Z) t5 o9 b) G* @  ^[root@xyh-moon ~]# resize2fs /dev/vdb1
# m* ^0 ^1 ?0 V/ K2 P; Y$ u3 presize2fs 1.42.9 (28-Dec-2013)
# U2 g9 O, O. ^Filesystem at /dev/vdb1 is mounted on /mnt/blockstorage; on-line resizing required8 r1 T# q( ^3 e3 N0 n
old_desc_blocks = 15, new_desc_blocks = 32
* G$ A4 m7 y! j8 B( Y% h" ^! iThe filesystem on /dev/vdb1 is now 65535739 blocks long.& ]4 [3 X* S+ b/ [$ R6 }3 W% ]% ?

% e" ]0 f2 ~% `6 }% S- m[root@xyh-moon ~]# mount -a. \, E( O& ]/ f0 ?
[root@xyh-moon ~]# df -h4 |/ O. N  R4 ]/ ^
Filesystem               Size  Used Avail Use% Mounted on8 z8 y0 M( h/ g; b" I
devtmpfs                 471M     0  471M   0% /dev
3 V% x: i% |$ Utmpfs                    490M     0  490M   0% /dev/shm
- W& t. A# e+ ^" Y: m/ f0 P$ _% mtmpfs                    490M  7.5M  483M   2% /run+ S" Y: h1 Z; Q# ]/ g0 u
tmpfs                    490M     0  490M   0% /sys/fs/cgroup$ |" I+ U9 e; j3 J  ]4 D
/dev/mapper/centos-root   29G  7.7G   22G  27% // @4 U* v3 e! T* B; }
/dev/vda1               1014M  208M  807M  21% /boot
" |1 @7 f+ G$ V* N  x& }8 X2 A$ ztmpfs                     98M   12K   98M   1% /run/user/42
4 g$ u# N' p( K- ?1 l2 f4 gtmpfs                     98M     0   98M   0% /run/user/0
9 ?" `5 V4 G0 F- R- V$ {/dev/vdb1                246G  112G  125G  48% /mnt/blockstorage
. w+ G0 v3 u( D- x1 q7 |
) a' P* \$ @! p! G5 n' E
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|

GMT+8, 2026-8-5 03:25 PM , Processed in 0.098781 second(s), 22 queries .

Powered by xyh-moon X3.5

© 2001-2026 Discuz! Team.

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